FS#15266 - [readline] Moving static version to /usr/lib like in 5.0

Attached to Project: Arch Linux
Opened by Gerardo Exequiel Pozzi (djgera) - Friday, 26 June 2009, 00:40 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 26 July 2009, 18:54 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Andreas Radke (AndyRTR)
Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: OK, there is no rule about this in Arch Linux. But is a good idea to keep static libs under /usr/lib instead of /lib. Acording to FHS recomendations /lib is only for shared libs.

# ls -lh /lib/libreadline.a /lib/libhistory.a
-rw-r--r-- 1 root root 34K 2009-06-12 18:02 /lib/libhistory.a
-rw-r--r-- 1 root root 290K 2009-06-12 18:02 /lib/libreadline.a

In the previous version the static libraries was is /usr/lib

Additional info:
readline-6.0.00-1
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 26 July 2009, 18:54 GMT
Reason for closing:  Fixed
Comment by Aaron Griffin (phrakture) - Friday, 26 June 2009, 17:56 GMT
Comitted to trunk, will be in next release
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 25 July 2009, 21:56 GMT
oops!, See [#1] lftp fails to compile

shared libs that are on /lib and also provides a static version in
/usr/lib must have a symlink in /usr/lib/ that points to shared lib in /lib

Trivial example:

# gcc foo.c -o foo -lreadline
# readelf -d foo | grep readline
# ln -s ../../lib/libreadline.so /usr/lib/libreadline.so
# gcc foo.c -o foo -lreadline
# readelf -d foo | grep readline
0x00000001 (NEEDED) Shared library: [libreadline.so.6]

[#1] http://www.archlinux.org/pipermail/arch-general/2009-July/006611.html
Comment by Gerardo Exequiel Pozzi (djgera) - Saturday, 25 July 2009, 22:04 GMT
Please add these lines to the PKGBUILD

ln -s ../../lib/libhistory.so $pkgdir/usr/lib/libhistory.so
ln -s ../../lib/libreadline.so $pkgdir/usr/lib/libreadline.so

Loading...