Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Apr 2012 21:02:01 -0500
From:      Stephen Montgomery-Smith <stephen@missouri.edu>
To:        freebsd-ports@freebsd.org
Subject:   autodetecting dependencies
Message-ID:  <4F839499.8050103@missouri.edu>

next in thread | raw e-mail | index | archive | help
So suppose we are building port A.  It turns out that the configure in 
port A autodetects whether package B is present or not.  It will build 
either way.  But if built with package B, it will not operate without it.

So suppose I build port A on machine X which has package B installed. 
Then I create a package from A, and copy the package to machine Y. 
Machine Y does not have package B installed, and so when package A is 
installed, it doesn't work on machine Y.

What are the accepted ways of handling this?

1.  Don't worry about it.  tinderbox builds will never build port A in 
the presence of package B.

2.  Have the Makefile of port A detect whether package B is installed, 
and if it is then add B as a dependency of A.

3.  Cripple the configure in port A so that it doesn't autodetect for 
package B.  (Sometimes this can be done using a suitable CONFIGURE_ARGS, 
but not in my particular situation.)

I prefer the answer (1).  But I am interested in other people's 
opinions.  One problem with (2) or (3) is that the creator of the port 
might never find out which packages could be autodetected by port A's 
configure without performing an exhaustive search of the source code of A.

Thanks, Stephen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F839499.8050103>