You are not logged in.

#1 2009-03-16 23:51:36

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

symnlinks from a PKGBUILD [not-solved]

Hi All,
is it possible to install a symlink from a PKGBUILD,

i tried running ln -s foobar /foo/bar
and i get a permission denied

thanks for your help
Matthew

okay i though i had fixed it but now i get a symlink destination of /home/matthew/Projects/foo instead of /usr/bin/foo

Last edited by genisis300 (2009-03-17 00:16:53)


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#2 2009-03-17 03:59:55

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: symnlinks from a PKGBUILD [not-solved]

ln -s /usr/bin/foo $pkgdir/link_path/link_name

Offline

#3 2009-03-17 11:06:55

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: symnlinks from a PKGBUILD [not-solved]

Well, creating the pkg.tar.gz after creating the symlink should be a problem, since the symlink will be broken after installation (IIRC).
I would advice to symlinking in the .install script (which could intervene on the live filesystem after the installation of the package).


syntaxerrormmm - Homepage

Offline

#4 2009-03-17 11:12:47

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: symnlinks from a PKGBUILD [not-solved]

No, we use the entry given by Snowman in quite a few Arch packages. It works as expected.

Offline

#5 2009-03-17 11:19:12

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: symnlinks from a PKGBUILD [not-solved]

Thanks tomk for pointing out. I will use it also.


syntaxerrormmm - Homepage

Offline

#6 2009-03-17 20:07:45

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: symnlinks from a PKGBUILD [not-solved]

thanks all, thats cleared that up for me smile


Regards
Matthew


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

Board footer

Powered by FluxBB