[glibc] 01/01: debian/script.in/nohwcap.sh: always check for all optimized packages as multiarch allows one to install foreign architectures. Closes: #882272.

2017-11-21 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch sid
in repository glibc.

commit 802190a104e14e5c79755720dcb42ad2025d4ecf
Author: Aurelien Jarno 
Date:   Wed Nov 22 00:13:48 2017 +0100

debian/script.in/nohwcap.sh: always check for all optimized packages as 
multiarch allows one to install foreign architectures.  Closes: #882272.
---
 debian/changelog|  3 +++
 debian/script.in/nohwcap.sh | 30 --
 2 files changed, 11 insertions(+), 22 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 1b70c9d..bfa64ad 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,9 @@ glibc (2.25-2) UNRELEASED; urgency=medium
   * debian/patches/git-updates.diff: update from upstream stable branch:
 - Don't use IFUNC resolver for longjmp or system in libpthread.
   Closes: #882336.
+  * debian/script.in/nohwcap.sh: always check for all optimized packages
+as multiarch allows one to install foreign architectures.  Closes:
+#882272.
 
   [ YunQiang Su ]
   * Add symbol files for mipsn32 and mips64.
diff --git a/debian/script.in/nohwcap.sh b/debian/script.in/nohwcap.sh
index 163327d..b22f407 100644
--- a/debian/script.in/nohwcap.sh
+++ b/debian/script.in/nohwcap.sh
@@ -3,30 +3,16 @@
 # from /lib, and ignore all optimised libraries. This file is
 # inconditionaly created in the preinst script of libc.
  
-# Get the list of optimized packages for a given architecture
-# Before removing a package from this list, make sure it appears
-# in the Conflicts: line of libc.
-case ${DPKG_MAINTSCRIPT_ARCH} in
-alpha)
-hwcappkgs="libc6.1-alphaev67"
-;;
-i386)
-hwcappkgs="libc6-xen"
-;;
-esac
- 
 # We check the version between the current installed libc and
-# all optimized packages (on architectures where such packages
-# exists).
+# all optimized packages. Due to multiarch, this has to be done
+# independently of the architecture of the package.
 all_upgraded=yes
-if [ -n "$hwcappkgs" ]; then
-for pkg in $hwcappkgs ; do
-ver=$(dpkg-query -l $pkg 2>/dev/null | sed -e 
'/^[a-z][a-z]\s/!d;/^.[nc]/d;' -e "s/^..\s\+$pkg[0-9a-z:]*\s\+//;s/\s.*//g")
-if [ -n "$ver" ] && [ "$ver" != "CURRENT_VER" ]; then
-all_upgraded=no
-fi
-done
-fi
+for pkg in libc6.1-alphaev67 libc6-xen ; do
+ver=$(dpkg-query -l $pkg 2>/dev/null | sed -e 
'/^[a-z][a-z]\s/!d;/^.[nc]/d;' -e "s/^..\s\+$pkg[0-9a-z:]*\s\+//;s/\s.*//g")
+if [ -n "$ver" ] && [ "$ver" != "CURRENT_VER" ]; then
+all_upgraded=no
+fi
+done
 
 # If the versions of all optimized packages are the same as the libc
 # one, we could remove /etc/ld.so.nohwcap. Otherwise, it will be removed

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-glibc/glibc.git



[glibc] 01/01: debian/script.in/nohwcap.sh: always check for all optimized packages as multiarch allows one to install foreign architectures. Closes: #882272.

2017-11-21 Thread Aurelien Jarno
This is an automated email from the git hooks/post-receive script.

aurel32 pushed a commit to branch stretch
in repository glibc.

commit 89f27bec7719f53c7f161d7a72e2d793569b64d4
Author: Aurelien Jarno 
Date:   Tue Nov 21 22:22:50 2017 +0100

debian/script.in/nohwcap.sh: always check for all optimized packages as 
multiarch allows one to install foreign architectures.  Closes: #882272.
---
 debian/changelog|  3 +++
 debian/script.in/nohwcap.sh | 33 -
 2 files changed, 11 insertions(+), 25 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 239aacd..cb182fb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,9 @@ glibc (2.24-11+deb9u2) UNRELEASED; urgency=medium
 - Fix invalid cast in group merging affecting ppc64 and s390x.
 - Define collation for Malayalam chillu characters.
 - Correct collation of U+0D36 and U+0D37 Malayalam characters.
+  * debian/script.in/nohwcap.sh: always check for all optimized packages
+as multiarch allows one to install foreign architectures.  Closes:
+#882272.
 
   [ Santiago Vila ]
   * debian/debhelper.in/libc-bin.postinst: do not update /etc/nsswitch.conf
diff --git a/debian/script.in/nohwcap.sh b/debian/script.in/nohwcap.sh
index b952b88..5e0d0ae 100644
--- a/debian/script.in/nohwcap.sh
+++ b/debian/script.in/nohwcap.sh
@@ -3,33 +3,16 @@
 # from /lib, and ignore all optimised libraries. This file is
 # inconditionaly created in the preinst script of libc.
  
-# Get the list of optimized packages for a given architecture
-# Before removing a package from this list, make sure it appears
-# in the Conflicts: line of libc.
-case ${DPKG_MAINTSCRIPT_ARCH} in
-alpha)
-hwcappkgs="libc6-alphaev67"
-;;
-i386)
-hwcappkgs="libc6-i686 libc6-xen"
-;;
-kfreebsd-i386)
-hwcappkgs="libc0.1-i686"
-;;
-esac
- 
 # We check the version between the current installed libc and
-# all optimized packages (on architectures where such packages
-# exists).
+# all optimized packages. Due to multiarch, this has to be done
+# independently of the architecture of the package.
 all_upgraded=yes
-if [ -n "$hwcappkgs" ]; then
-for pkg in $hwcappkgs ; do
-ver=$(dpkg-query -l $pkg 2>/dev/null | sed -e 
'/^[a-z][a-z]\s/!d;/^.[nc]/d;' -e "s/^..\s\+$pkg[0-9a-z:]*\s\+//;s/\s.*//g")
-if [ -n "$ver" ] && [ "$ver" != "CURRENT_VER" ]; then
-all_upgraded=no
-fi
-done
-fi
+for pkg in libc6.1-alphaev67 libc6-i686 libc6-xen libc0.1-i686 ; do
+ver=$(dpkg-query -l $pkg 2>/dev/null | sed -e 
'/^[a-z][a-z]\s/!d;/^.[nc]/d;' -e "s/^..\s\+$pkg[0-9a-z:]*\s\+//;s/\s.*//g")
+if [ -n "$ver" ] && [ "$ver" != "CURRENT_VER" ]; then
+all_upgraded=no
+fi
+done
 
 # If the versions of all optimized packages are the same as the libc
 # one, we could remove /etc/ld.so.nohwcap. Otherwise, it will be removed

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-glibc/glibc.git