Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package moreutils for openSUSE:Factory 
checked in at 2021-02-09 21:17:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/moreutils (Old)
 and      /work/SRC/openSUSE:Factory/.moreutils.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "moreutils"

Tue Feb  9 21:17:25 2021 rev:8 rq:870507 version:0.65

Changes:
--------
--- /work/SRC/openSUSE:Factory/moreutils/moreutils.changes      2020-10-12 
13:59:52.578230147 +0200
+++ /work/SRC/openSUSE:Factory/.moreutils.new.28504/moreutils.changes   
2021-02-09 21:17:26.722854944 +0100
@@ -1,0 +2,7 @@
+Mon Feb  8 22:04:42 UTC 2021 - Dirk M??ller <dmuel...@suse.com>
+
+- update to 0.65:
+  * vipe: Added --suffix option.
+  * ifdata: fail when -ph is given but no hwaddr is available 
+
+-------------------------------------------------------------------

Old:
----
  moreutils-0.64.tar.gz

New:
----
  moreutils-0.65.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ moreutils.spec ++++++
--- /var/tmp/diff_new_pack.p4MPOI/_old  2021-02-09 21:17:27.354855688 +0100
+++ /var/tmp/diff_new_pack.p4MPOI/_new  2021-02-09 21:17:27.358855693 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package moreutils
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           moreutils
-Version:        0.64
+Version:        0.65
 Release:        0
 Summary:        Additional Unix Utilities
 License:        GPL-2.0-or-later AND GPL-2.0-only AND MIT
@@ -30,9 +30,6 @@
 Requires:       perl-IPC-Run
 Requires:       perl-Time-Duration
 Requires:       perl-TimeDate
-# These perl modules add functionality to the ts command, as they are added in 
eval'd code they are not
-# picked up automatically by rpm.
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
 This is a growing collection of the Unix tools that nobody thought to write 
long ago, when Unix was young.
@@ -68,7 +65,6 @@
 
   - parallel: run multiple jobs at once
 
-
 %prep
 %setup -q
 sed -e 's/^CFLAGS =/CFLAGS ?=/' -i is_utf8/Makefile
@@ -76,21 +72,21 @@
 %build
 export CFLAGS="%{optflags}"
 %if 0%{?suse_version}
-export DOCBOOKXSL="/usr/share/xml/docbook/stylesheet/nwalsh/current"
+export DOCBOOKXSL="%{_datadir}/xml/docbook/stylesheet/nwalsh/current"
 %endif
 %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
-export DOCBOOKXSL="/usr/share/sgml/docbook/xsl-stylesheets"
+export DOCBOOKXSL="%{_datadir}/sgml/docbook/xsl-stylesheets"
 %endif
-make %{?_smp_mflags}
+%make_build
 echo "### before install ###"
 
 %install
-make DESTDIR=%{buildroot} install %{?_smp_mflags}
+%make_install
 echo "### after install ###"
 
 %files
-%defattr(-, root, root)
-%doc COPYING README
+%license COPYING
+%doc README
 %attr(644, root, root) %{_mandir}/man1/chronic.1*
 %attr(644, root, root) %{_mandir}/man1/combine.1*
 %attr(644, root, root) %{_mandir}/man1/errno.1*
@@ -121,8 +117,8 @@
 %{_bindir}/zrun
 
 %files parallel
-%defattr(-,root,root)
-%doc README COPYING
+%doc README
+%license COPYING
 %attr(644, root, root) %{_mandir}/man1/parallel.1.gz
 %{_bindir}/parallel
 

++++++ moreutils-0.64.tar.gz -> moreutils-0.65.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/moreutils-0.64/debian/changelog 
new/moreutils-0.65/debian/changelog
--- old/moreutils-0.64/debian/changelog 2020-08-29 19:59:47.000000000 +0200
+++ new/moreutils-0.65/debian/changelog 2021-01-02 17:25:26.000000000 +0100
@@ -1,3 +1,13 @@
+moreutils (0.65) unstable; urgency=medium
+
+  * vipe: Added --suffix option.
+    Thanks, P??l Gr??n??s Drange.
+  * ifdata: fail when -ph is given but no hwaddr is available 
+    (Closes: #386755)
+    Thanks, Nicolas Schier
+
+ -- Joey Hess <i...@joeyh.name>  Sat, 02 Jan 2021 12:24:51 -0400
+
 moreutils (0.64) unstable; urgency=medium
 
   * parallel: fix typo in usage message.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/moreutils-0.64/ifdata.c new/moreutils-0.65/ifdata.c
--- old/moreutils-0.64/ifdata.c 2020-08-29 19:59:47.000000000 +0200
+++ new/moreutils-0.65/ifdata.c 2021-01-02 17:25:26.000000000 +0100
@@ -195,6 +195,13 @@
                return;
 
        hwaddr = (unsigned char *)r.ifr_hwaddr.sa_data;
+
+       if (!hwaddr[0] && !hwaddr[1] && !hwaddr[2] &&
+           !hwaddr[3] && !hwaddr[4] && !hwaddr[5]) {
+               fprintf(stderr, "Error: %s: no hardware address\n", iface);
+               exit(1);
+       }
+
        printf("%02X:%02X:%02X:%02X:%02X:%02X",
               hwaddr[0], hwaddr[1], hwaddr[2], hwaddr[3], hwaddr[4], 
hwaddr[5]);
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/moreutils-0.64/ifdata.docbook 
new/moreutils-0.65/ifdata.docbook
--- old/moreutils-0.64/ifdata.docbook   2020-08-29 19:59:47.000000000 +0200
+++ new/moreutils-0.65/ifdata.docbook   2021-01-02 17:25:26.000000000 +0100
@@ -61,7 +61,7 @@
                <para>
                        <command>ifdata</command> can be used to check for
                        the existence of a network interface, or to get
-                       information abut the interface, such as its IP
+                       information about the interface, such as its IP
                        address. Unlike <command>ifconfig</command> or
                        <command>ip</command>, <command>ifdata</command>
                        has simple to parse output that is designed to be
@@ -155,7 +155,10 @@
                        <term><option>-ph</option></term>
                        <listitem>
                                <para>Prints the hardware address of the
-                                       interface.</para>
+                                        interface. Exit with a failure exit 
code
+                                        if there is not hardware address for 
the
+                                        given network interface.
+                                </para>
                        </listitem>
                </varlistentry>
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/moreutils-0.64/vipe new/moreutils-0.65/vipe
--- old/moreutils-0.64/vipe     2020-08-29 19:59:47.000000000 +0200
+++ new/moreutils-0.65/vipe     2021-01-02 17:25:26.000000000 +0100
@@ -15,6 +15,18 @@
 have the full data being piped from command1 loaded into it, and when you
 close it, that data will be piped into command2.
 
+=head1 ARGUMENTS
+
+vipe takes an argument --suffix that can be used to provide a file
+extension to the temp file generated.  This enables editors to provide
+syntax highlighting and activate modes.  For example, you can call vipe
+like
+
+  vipe --suffix csv
+
+to create a tempfile with .csv extensions which makes Emacs (or your
+favorite editor) launch in CSV major mode.
+
 =head1 ENVIRONMENT VARIABLES
 
 =over 4
@@ -40,10 +52,17 @@
 use warnings;
 use strict;
 use File::Temp q{tempfile};
+use Getopt::Long;
 
 $/=undef;
 
-my ($fh, $tmp)=tempfile(UNLINK => 1);
+my $suffix = "";
+if (! GetOptions("suffix=s" => \$suffix)) {
+       die "Usage: $0 [--suffix=extension]\n";
+}
+$suffix = ".$suffix" if $suffix =~ m/^[^.]/;
+
+my ($fh, $tmp)=tempfile(UNLINK => 1, SUFFIX => $suffix);
 die "cannot create tempfile" unless $fh;
 print ($fh <STDIN>) || die "write temp: $!";
 close $fh;

Reply via email to