You are not logged in.

#1 2008-06-08 17:19:33

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Linking Somewhere to get a Package Compiled

Hey There,

I'm trying to create a package for util-vserver.. I'm compiling it with dietlibc support but it's installed in /opt/diet.. Since util-vserver's configure searches diet in /usr/lib/dietlibc/ I should create that as a soft link in order to get util-vserver compiled..

Is it possible to warn (and abort installation) the user about creating a symlink if the link doesn't exist ?


Quis custodiet ipsos custodiet?

Offline

#2 2008-06-08 17:25:26

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Linking Somewhere to get a Package Compiled

I bet there's a switch (to configure) where you can specify where the diet libraries and compiler are. Creating symlinks in the real filesystem in a PKGBUILD is a *bad* idea.

EDIT: if you 'return 1' in a PKGBUILD, makepkg fails.

EDIT2: Another solution is to run a little sed script on Makefile to change the directories before running make.

Last edited by bender02 (2008-06-08 17:33:11)

Offline

#3 2008-06-08 17:39:57

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: Linking Somewhere to get a Package Compiled

expanding path for diet binary file did the trick... but i'll keep your suggestions in mind.. thanks..!


Quis custodiet ipsos custodiet?

Offline

Board footer

Powered by FluxBB