FS#32839 - [lib32-giflib] libungif.so is 64 bit instead of 32

Attached to Project: Community Packages
Opened by Nicola Mori (snack) - Sunday, 25 November 2012, 11:25 GMT
Last edited by Florian Pritz (bluewind) - Sunday, 25 November 2012, 23:21 GMT
Task Type Bug Report
Category Packages: Multilib
Status Closed
Assigned To Florian Pritz (bluewind)
Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
/usr/lib32/libungif.so is a 64 bit library instead of 32.

$ file /usr/lib32/libungif.so.4.1.6
/usr/lib32/libungif.so.4.1.6: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x010490a7776addb7c7b452b96c2cce8171fc0825, stripped


Additional info:
* package version(s)
lib32-giflib 4.1.6-7

* config and/or log files etc.


Steps to reproduce:
1) install lib32-giflib from [multilib]
2) $ file /usr/lib32/libungif.so.4.1.6
This task depends upon

Closed by  Florian Pritz (bluewind)
Sunday, 25 November 2012, 23:21 GMT
Reason for closing:  Fixed
Additional comments about closing:  lib32-giflib 4.1.6-8
Comment by Nicola Mori (snack) - Sunday, 25 November 2012, 11:42 GMT
Trivial patch for PKGBUILD. Tested and it works. Patched PKGBUILD attached.

--- PKGBUILD-bugged 2012-11-25 12:41:38.925075515 +0100
+++ PKGBUILD 2012-11-25 12:40:19.735487140 +0100
@@ -6,7 +6,7 @@
_pkgbasename=giflib
pkgname=lib32-$_pkgbasename
pkgver=4.1.6
-pkgrel=7
+pkgrel=8
pkgdesc="A library for reading and writing gif images (32-bit)"
url="http://sourceforge.net/projects/giflib/"
arch=('x86_64')
@@ -37,7 +37,7 @@

# libungif compatibility - instructions taken from Redhat specfile
MAJOR=`echo ${pkgver} | sed 's/\([0-9]\+\)\..*/\1/'`
- gcc -shared -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs -lgif -o libungif.so.${pkgver}
+ gcc -shared -m32 -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs -lgif -o libungif.so.${pkgver}
install -m755 libungif.so.${pkgver} ${pkgdir}/usr/lib32/
ln -sf libungif.so.${pkgver} ${pkgdir}/usr/lib32/libungif.so.4
ln -sf libungif.so.4 ${pkgdir}/usr/lib32/libungif.so
   PKGBUILD (1.6 KiB)

Loading...