Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2006 18:45:42 +0100 (MET)
From:      Oliver Grenz <oliver.grenz@huber-spedition.de>
To:        ports@FreeBSD.org
Subject:   WRKDIRPREFIX with portmanager
Message-ID:  <455B5230.70702@huber-spedition.de>

next in thread | raw e-mail | index | archive | help
*Hallo ports team,

I had the problem that

# portmanager databases/firebird2-server

won't install because of the following:*

========================================================================
portmanager 0.4.1_6
FreeBSD testFreeBSD.test.lan 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun
May  7 04:32:43 UTC 2006
    root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
------------------------------------------------------------------------
autoConflicts              0  autoMoved                  0
backUp                     0  buildDependsAreLeaves      0
forced                     0  interactive                0
log                        1  pmMode                     1
pristine                   0  resume                     0
------------------------------------------------------------------------
Wed Nov 15 15:17:55 2006
 firebird-client-2.0.0_2             /databases/firebird2-client  
    MISSING dependency of              
firebird-server-2.0.0_2             /databases/firebird2-server  

Wed Nov 15 15:19:00 2006
 firebird-client-2.0.0_2             /databases/firebird2-client  
    failed during make, adding to
ignore.db                                                                  

Wed Nov 15 15:19:00 2006
 portmanager                         0.4.1_6                      
    INFO: finished with some ports not updated  if --log was used see
/var/log/portmanager.log                                                                  


Wed Nov 15 15:19:00 2006
 end of log


*I asked then skv@freebsd.org to help me and he answered:*

Firebird must not be builed under 'root' account because it may cause
> serious troubles with SysV semaphores.

You can build any port under non-privileged account, if you set
WRKDIRPREFIX environment variable. See "man ports" for more details.

To install port 'root' privileges are required of course. In this case
ports system calls "su" to switch to root and install files.

Or you can use "sudo" - just add to /etc/make.conf:
SU_CMD=         /usr/local/bin/sudo /bin/sh -c

I don't know how to build under non-root with portmaster, please ask the
author.

*This answer helped!

I build a directory with all permissions under my non root account and
compiled with the command:

$ make WRKDIRPREFIX=/home/oliver/ports/firebird install clean

This worked but is it possible to use the portmanager program for this
task? I use it for all other installations with success (ISC-DHCP,
Samba, etc...)

I would appreciate if you can help me.

Sincerly
Oliver Grenz*

-- 
Heinz Huber Internationale Spedition GmbH & Co.
Fraunhoferstr. 9
85301 Schweitenkirchen
Phone : 08444/9194-96
Fax   : 08444/9194-518
SMS   : 08444/9194-528
Mail  : oliver.grenz@huber-spedition.de
WWW   : www.huber-spedition.de

Public key : www.huber-spedition.de/edv.html




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?455B5230.70702>