Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-network-info for
openSUSE:Factory checked in at 2022-02-11 23:09:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-network-info (Old)
and /work/SRC/openSUSE:Factory/.ghc-network-info.new.1956 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-network-info"
Fri Feb 11 23:09:23 2022 rev:5 rq:953504 version:0.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-network-info/ghc-network-info.changes
2020-12-22 11:43:20.481711806 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-network-info.new.1956/ghc-network-info.changes
2022-02-11 23:11:18.863276537 +0100
@@ -1,0 +2,9 @@
+Mon Jan 31 03:08:16 UTC 2022 - Peter Simons <[email protected]>
+
+- Update network-info to version 0.2.1.
+ Upstream has edited the change log file since the last release in
+ a non-trivial way, i.e. they did more than just add a new entry
+ at the top. You can review the file at:
+ http://hackage.haskell.org/package/network-info-0.2.1/src/CHANGELOG.md
+
+-------------------------------------------------------------------
Old:
----
network-info-0.2.0.10.tar.gz
network-info.cabal
New:
----
network-info-0.2.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-network-info.spec ++++++
--- /var/tmp/diff_new_pack.A4QbQ6/_old 2022-02-11 23:11:19.319277856 +0100
+++ /var/tmp/diff_new_pack.A4QbQ6/_new 2022-02-11 23:11:19.327277879 +0100
@@ -1,7 +1,7 @@
#
# spec file for package ghc-network-info
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,12 @@
%global pkg_name network-info
Name: ghc-%{pkg_name}
-Version: 0.2.0.10
+Version: 0.2.1
Release: 0
Summary: Access the local computer's basic network configuration
License: BSD-3-Clause
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
-Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
ExcludeArch: %{ix86}
@@ -34,9 +33,8 @@
networking configuration. It is currently capable of getting a list of all the
network interfaces and their respective IPv4, IPv6 and MAC addresses.
-network-info has been tested and is known to work on Ubuntu 10.10, FreeBSD 9.0,
-Mac OS X 10.6.4 and Windows XP/7. It probably works on other flavours of Linux,
-OS X, FreeBSD and Windows as well.
+network-info has been tested and is known to work on Ubuntu, FreeBSD, NetBSD,
+Mac OS and Windows.
%package devel
Summary: Haskell %{pkg_name} library development files
@@ -50,7 +48,6 @@
%prep
%autosetup -n %{pkg_name}-%{version}
-cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
++++++ network-info-0.2.0.10.tar.gz -> network-info-0.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/network-info-0.2.0.10/CHANGELOG.md
new/network-info-0.2.1/CHANGELOG.md
--- old/network-info-0.2.0.10/CHANGELOG.md 2018-03-25 10:23:04.000000000
+0200
+++ new/network-info-0.2.1/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200
@@ -1,4 +1,10 @@
-## 0.2.0.10 (2018-03-??)
+## 0.2.1 (2022-01-31)
+
+* Support NetBSD (#21)
+* Increase upper bound on interfaces to 128 (#24)
+* Fix segmentation fault for more than 64 interfaces (#23)
+
+## 0.2.0.10 (2018-03)
* Fixed a link error that manifested when the C compiler uses C99 by
- default ([#17](https://github.com/jystic/network-info/issues/17)).
+ default ([#17](https://github.com/jacobstanley/network-info/issues/17)).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/network-info-0.2.0.10/cbits/network-unix.c
new/network-info-0.2.1/cbits/network-unix.c
--- old/network-info-0.2.0.10/cbits/network-unix.c 2018-03-25
10:23:04.000000000 +0200
+++ new/network-info-0.2.1/cbits/network-unix.c 2001-09-09 03:46:40.000000000
+0200
@@ -36,6 +36,10 @@
# include <netinet/in.h>
#endif
+#ifdef __NetBSD__
+# include <netinet/in.h>
+#endif
+
#include "network.h"
#include "common.h"
@@ -132,6 +136,9 @@
/* lookup or add a new interface with the given name */
n = add_interface(ns, name, max_ns);
+ if (n == NULL)
+ break;
+
/* extract the address from this item */
family = addr->sa_family;
if (family == AF_INET) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/network-info-0.2.0.10/network-info.cabal
new/network-info-0.2.1/network-info.cabal
--- old/network-info-0.2.0.10/network-info.cabal 2018-03-25
10:23:04.000000000 +0200
+++ new/network-info-0.2.1/network-info.cabal 2001-09-09 03:46:40.000000000
+0200
@@ -1,5 +1,5 @@
name: network-info
-version: 0.2.0.10
+version: 0.2.1
synopsis: Access the local computer's basic network configuration
description: This library provides simple read-only access to the
@@ -9,19 +9,22 @@
addresses.
.
network-info has been tested and is known to work on
- Ubuntu 10.10, FreeBSD 9.0, Mac OS X 10.6.4 and Windows
- XP/7. It probably works on other flavours of Linux,
- OS X, FreeBSD and Windows as well.
+ Ubuntu, FreeBSD, NetBSD, Mac OS and Windows.
-homepage: http://github.com/jystic/network-info
+homepage: http://github.com/jacobstanley/network-info
license: BSD3
license-file: LICENSE
author: Jacob Stanley
maintainer: Jacob Stanley <[email protected]>
category: Network
build-type: Simple
-cabal-version: >= 1.6
-tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.1
+cabal-version: >= 1.10
+
+tested-with:
+ GHC == 8.8.4,
+ GHC == 8.10.7,
+ GHC == 9.0.1,
+ GHC == 9.2.1
extra-source-files:
cbits/common.h,
@@ -36,9 +39,10 @@
source-repository head
type: git
- location: git://github.com/jystic/network-info.git
+ location: git://github.com/jacobstanley/network-info.git
-Library
+library
+ default-language: Haskell2010
hs-source-dirs: src
include-dirs: cbits
cc-options: -Wall -std=c99
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/network-info-0.2.0.10/src/Network/Info.hsc
new/network-info-0.2.1/src/Network/Info.hsc
--- old/network-info-0.2.0.10/src/Network/Info.hsc 2018-03-25
10:23:04.000000000 +0200
+++ new/network-info-0.2.1/src/Network/Info.hsc 2001-09-09 03:46:40.000000000
+0200
@@ -58,8 +58,8 @@
-- the local computer.
getNetworkInterfaces :: IO [NetworkInterface]
getNetworkInterfaces =
- allocaArray 64 $ \ptr -> do
- count <- c_get_network_interfaces ptr 64
+ allocaArray 128 $ \ptr -> do
+ count <- c_get_network_interfaces ptr 128
peekArray (fromIntegral count) ptr