FS#19608 - symlink to absolute path in PKGBUILD gives broken link once installed with pacman --root

Attached to Project: Pacman
Opened by solsTiCe (zebul666) - Thursday, 27 May 2010, 13:38 GMT
Last edited by Dan McGee (toofishes) - Thursday, 27 May 2010, 13:54 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version 3.3.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I gave a corrected PKGBUILD on AUR and the maintainer ignored a second fix I was providing.
He used
ln -sf /usr/share/icons/hicolor/48x48/apps/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
instead of
ln -sf ../icons/hicolor/48x48/apps/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png

So I wondered if I was right to use relative symlink.

By building a test package and installing it with pacman --root somewhere, I verified the symlink is broken. when using an absolute path.

My point of view is that all the PKGBUILD that use absolute symlink are broken.

I ask you : is it a bug of pacman ? is it desirable that pacman is fixed to work around that ?
This task depends upon

Closed by  Dan McGee (toofishes)
Thursday, 27 May 2010, 13:54 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Haha, I didn't think it would be that easy to convince you. :)

Closure Request: Reason for request: OMG. I'm splitting hairs. again. Dan is right. please close this
Comment by Dan McGee (toofishes) - Thursday, 27 May 2010, 13:43 GMT
This isn't too clear what you mean here. Define "broken"- we need the output of ln -s, what you expect it to be, and what it is.

Pacman *will not* rewrite absolute symlinks, even if installed with --root. That just doesn't make any sense. The only point of the --root option is to have that spot in your filesystem later be used for either a running system or a place to chroot.
Comment by solsTiCe (zebul666) - Thursday, 27 May 2010, 13:48 GMT
the test package installs /usr/share/applications/test/test and /tmp/test2341234 which is an absolute symlink to it

Loading...