You are not logged in.

#1 2005-03-15 11:45:00

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

err like how to stop install

The package I'm making uses

make install

then it just installs everthing....

from within a PKGBUILD how do I create a pkg ...

without it installing ......(in build) ?

Thanks in Advance

:?


Mr Green

Offline

#2 2005-03-15 16:35:09

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

Re: err like how to stop install

I don't know if I understood correctly. Try:

make DESTDIR=$startdir/pkg install 

Offline

#3 2005-03-15 17:18:20

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: err like how to stop install

and always make packages as a normal user.

Offline

#4 2005-03-15 17:27:54

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: err like how to stop install

In the best case, you can use Snowman's line. In the worst, you'll have to patch or sed the makefile to change the destination directory, possibly in multiple places if the person who made the makefile didn't know much about their syntax.

Dusty

Offline

#5 2005-03-15 18:58:16

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,914
Website

Re: err like how to stop install

Yes I have snowmans line in PKGBUILD

I'll look at another way to build it ...

Thanks


Mr Green

Offline

#6 2005-03-15 21:08:24

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

Re: err like how to stop install

If DESTDIR doesn't work, try using prefix or PREFIX instead.  Look at the Makefile to see what is it using or if there are hard-coded paths.

Offline

#7 2005-03-16 11:48:06

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: err like how to stop install

i never build as anything other than root - it always gives me permissions problems - i'd rather be root and and fix my rare fuck ups

Offline

#8 2005-03-16 17:17:31

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

Re: err like how to stop install

dibblethewrecker wrote:

i never build as anything other than root - it always gives me permissions problems - i'd rather be root and and fix my rare fuck ups

If you get permission problems, it means that it puts files directly in the system instead of putting them in the package.  The packages is likely broken (missing files).  And you get get orphaned files laying around or overwritten files.  Personnally I always build as user. These "permissions problems" tell me how to change the PKGBUILD to get a working packages.

Offline

#9 2005-03-16 17:20:11

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: err like how to stop install

Snowman wrote:
dibblethewrecker wrote:

i never build as anything other than root - it always gives me permissions problems - i'd rather be root and and fix my rare fuck ups

If you get permission problems, it means that it puts files directly in the system instead of putting them in the package.  The packages is likely broken (missing files).  And you get get orphaned files laying around or overwritten files.  Personnally I always build as user. These "permissions problems" tell me how to change the PKGBUILD to get a working packages.

I'll second that... when my "makepkg" command spits out "cannot access /etc" I know something is borked

Offline

Board footer

Powered by FluxBB