Hello community, here is the log from the commit of package mkdud for openSUSE:Factory checked in at 2019-01-10 15:20:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/mkdud (Old) and /work/SRC/openSUSE:Factory/.mkdud.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "mkdud" Thu Jan 10 15:20:57 2019 rev:27 rq:663616 version:1.44 Changes: -------- --- /work/SRC/openSUSE:Factory/mkdud/mkdud.changes 2018-12-21 08:22:33.893505622 +0100 +++ /work/SRC/openSUSE:Factory/.mkdud.new.28833/mkdud.changes 2019-01-10 15:21:16.998458338 +0100 @@ -1,0 +2,7 @@ +Tue Jan 8 09:39:11 UTC 2019 - snw...@suse.de + +- merge gh#openSUSE/mkdud#27 +- fix architecture auto-detection for elf binaries and libraries +- 1.44 + +-------------------------------------------------------------------- Old: ---- mkdud-1.43.tar.xz New: ---- mkdud-1.44.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ mkdud.spec ++++++ --- /var/tmp/diff_new_pack.MiGiL5/_old 2019-01-10 15:21:17.622457691 +0100 +++ /var/tmp/diff_new_pack.MiGiL5/_new 2019-01-10 15:21:17.622457691 +0100 @@ -22,7 +22,7 @@ Summary: Create driver update from rpms License: GPL-3.0+ Group: Hardware/Other -Version: 1.43 +Version: 1.44 Release: 0 Source: %{name}-%{version}.tar.xz Url: https://github.com/openSUSE/mkdud ++++++ mkdud-1.43.tar.xz -> mkdud-1.44.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdud-1.43/VERSION new/mkdud-1.44/VERSION --- old/mkdud-1.43/VERSION 2018-12-20 12:00:46.000000000 +0100 +++ new/mkdud-1.44/VERSION 2019-01-08 10:39:11.000000000 +0100 @@ -1 +1 @@ -1.43 +1.44 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdud-1.43/changelog new/mkdud-1.44/changelog --- old/mkdud-1.43/changelog 2018-12-20 12:00:46.000000000 +0100 +++ new/mkdud-1.44/changelog 2019-01-08 10:39:11.000000000 +0100 @@ -1,3 +1,7 @@ +2019-01-08: 1.44 + - merge gh#openSUSE/mkdud#27 + - fix architecture auto-detection for elf binaries and libraries + 2018-12-20: 1.43 - merge gh#openSUSE/mkdud#26 - fix building on old distros diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/mkdud-1.43/mkdud new/mkdud-1.44/mkdud --- old/mkdud-1.43/mkdud 2018-12-20 12:00:46.000000000 +0100 +++ new/mkdud-1.44/mkdud 2019-01-08 10:39:11.000000000 +0100 @@ -658,15 +658,30 @@ # sub get_file_arch { - local $_; + my $file = $_[0]; - for (`objdump -f $_[0] 2>/dev/null`) { - if(/^architecture:\s*(\S+)/) { - my $ar = $1; - $ar =~ s/^.*:|,$//g; - $ar = "i386" if $ar =~ /^i.86$/; - $ar =~ tr/-/_/; - return $ar if $ar ne ""; + # Use objdump's 'file format' to determine architecture tag. + # Note that objdump's 'architecture' entry does not differentiate between + # 'ppc64' and 'ppc64le'. + my $arch_map = { + 'elf32-i386' => 'i386', + 'elf32-littlearm' => 'armv7hl', # same for 'armv6hl' + 'elf32-powerpc' => 'ppc', + 'elf32-s390' => 's390', + 'elf64-ia64-little' => 'ia64', + 'elf64-littleaarch64' => 'aarch64', + 'elf64-littleriscv' => 'riscv64', + 'elf64-powerpc' => 'ppc64', + 'elf64-powerpcle' => 'ppc64le', + 'elf64-s390' => 's390x', + 'elf64-x86-64' => 'x86_64', + }; + + for (`objdump -f $file 2>/dev/null`) { + if(/ file format (\S+)$/) { + my $ar = $arch_map->{$1}; + die "$file: unsupported elf arch \"$1\"\n" if !$ar; + return $ar; } }