ports/61840: Port sysutils/cdrdao might corrupt package database

Heiner h.eichmann at gmx.de
Sun Jan 25 22:19:02 UTC 2004


On Sunday 25 January 2004 22:27, Pav Lucistnik wrote:
> So you're hitting general issue with installing A, optional autodetected
> dependency of B, later, and having C, which depends on B, recorded A as
> it's dependency.

Yes, thats the problem.

> This is general ports system design definiency and I don't know how to
> fix it.
> Or you're hitting the cdrdao port weirdness that it depends on gnome--
> but checks presence of gnomelibs?

Yes and no. 


Yes: If the port should follow the instructions in 
http://www.freebsd.org/gnome/docs/porting.html. Especially: use USE_GNOME for 
variable dependencies; NEVER use LIB_DEPENDS. I guess that C (in your 
example) scans the MAKEFILE of A for LIB_DEPENDS. If there are no, C will not 
depend on B. In other words: replace the 

LIB_DEPENDS+=           gtkmm.2:${PORTSDIR}/x11-toolkits/gtk--
LIB_DEPENDS+=           gnomemm-1.2.10:${PORTSDIR}/x11-toolkits/gnome--

by

USE_GNOME=              gnomelibs gtk-- gnome--

This requires bsd.gnome.mk to be touched as well (gtk-- and gnome-- have to be 
added). I made this on my machine (for testing purposes) and afterwards the 
port installation worked fine in both cases (discussed in the PR).


No: cdrdao is a commandline tool. Why does it depend on gnome? I guess (I do 
not have gnome) gnome has a gui interface to cdrdao. For people just using 
the command line this gui stuff is a big overhead. My prefered solution is to 
split the port as written in the PR. None gnome user install cdrdao; others 
cdrdao-gnome (which depends on cdrdao).

This also solves another problem: Afaik the packages are built automatically. 
I guess (not checked) the build system in cleaned, the dependent ports are 
installed, the port is built and the package is created and stored on the 
FreeBSD ftp server. Therefore the cdrdao package either contains the gnome 
stuff or not (I guess not). In any case there will be group of people, which 
can not use the package! If there were 2 ports (cdrdao and cdrdao-gnome), 
there will be 2 packages; one for each group of people.

Good night 

Heiner



More information about the freebsd-ports-bugs mailing list