FS#13025 - cups package installs /usr/lib64
Attached to Project:
Arch Linux
Opened by Val L. (onestep_ua) - Wednesday, 28 January 2009, 19:33 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 10 February 2009, 18:19 GMT
Opened by Val L. (onestep_ua) - Wednesday, 28 January 2009, 19:33 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 10 February 2009, 18:19 GMT
|
Details
Description:
CUPS package installs libcupsimage.so in /usr/lib64. I think it's related to a general typos (== and -e) in PKGBUILD: if [ "$CARCH" = "x86_64" ]; then if [ -f $startdir/pkg/usr/lib64 ]; then rm -rf ${startdir}/pkg/usr/lib64/ fi fi needs to be if [ "$CARCH" == "x86_64" ]; then if [ -e ${pkgdir}/usr/lib64 ]; then rm -rf ${pkgdir}/usr/lib64/ fi fi Additional info: * package version: cups-1.3.9-4 Steps to reproduce: build cups on x86_64 architecture. |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Tuesday, 10 February 2009, 18:19 GMT
Reason for closing: Not a bug
Tuesday, 10 February 2009, 18:19 GMT
Reason for closing: Not a bug
[root@workstation64 andyrtr]#
[root@workstation64 andyrtr]# pacman -Ql libcups | grep libcupsimage
libcups /usr/lib/libcupsimage.so
libcups /usr/lib/libcupsimage.so.2
[root@workstation64 andyrtr]# pacman -Q cups libcups
cups 1.3.9-4
libcups 1.3.9-3
So this works for me well and the packages from the repo look clean. So what's up?
BTW: In Bash scipts do never use "==" ! No idea if another shell might handle this different like C does. Going to close this as "works for me" or "not a bug".
And, yes, I had two instances of libcupsimage.so. First in /usr/lib, owned by libcups, and second in /usr/lib64, owned by cups.
[andyrtr@laptop64 ~]$
my package doesn't contain a /usr/lib64 file! going to close this as "works for me".
drwxr-xr-x root/root 0 2009-02-10 11:27 usr/lib64/
-rwxr-xr-x root/root 319038 2009-02-10 11:27 usr/lib64/libcupsimage.so.2
lrwxrwxrwx root/root 0 2009-02-10 11:27 usr/lib64/libcupsimage.so -> libcupsimage.so.2
I'm not talking about package from repository - this is a package I've built on my side using your PKGBUILD. Please consider using -e (or, maybe, even -d) to prevent appearance of lib64 in future builds, because in other case the whole your `if` construction is useless, at least in bash.
Probably the cups package does a check if /usr/lib64 exists and then it expects to put its libraries there. But ArchLinux x86_64 is built to have no /usr/lib64 directory. I won't put an unnessacy workaround into our PKGBUILD. If you customize your system you should know how to deal with it. Arch way ;)