Date: Sat, 5 May 2007 16:56:03 -0400 From: Kris Kennaway <kris@obsecurity.org> To: Mike Durian <durian@shadetreesoftware.com> Cc: freebsd-ports@freebsd.org Subject: Re: How to manage pkg-plists when two ports install the same files Message-ID: <20070505205603.GA19746@xor.obsecurity.org> In-Reply-To: <200705051451.38625.durian@shadetreesoftware.com> References: <200705051254.45659.durian@shadetreesoftware.com> <20070505192618.GA67138@xor.obsecurity.org> <20070505195320.GA4137@glitch.rwxrwxrwx.net> <200705051451.38625.durian@shadetreesoftware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 05, 2007 at 02:51:36PM -0600, Mike Durian wrote: > On Saturday 05 May 2007, Martin Tournoij wrote: > > On Sat 05 May 2007 15:05, Kris Kennaway wrote: > > > On Sat, May 05, 2007 at 12:54:44PM -0600, Mike Durian wrote: > > > > I have just noticed that both net/sipxtacklib and net/sipxcalllib > > > > install the some of the same header files. How to I manage pkg-plists > > > > for both ports and keep tinderbox happy? > > > > > > > > If I list the files in both packing lists, the first port to > > > > deinstall removes the files. Then tinderbox gets unhappy because > > > > files that were present before the port was deinstalled are now > > > > missing. > > > > > > Only one port is allowed to install such files. If they both need to > > > use it then either "ownership" of the common file needs to move into a > > > common dependency, or the ports be marked with CONFLICTS so they can't > > > be installed on top of each other. > > > > You can also install the header files in a different location, for example > > include/siptacklib/*.h and include/sipxcalllib/*.h > > > > What you need to consider: > > - Is it likely that someone would want to install both ports at the > > same time? > > - How much work would be involved? Changing the location of the > > headers would mean changing all the ports that depend on this one. > > > In this particular case, both sipxtacklib and sipxcalllib exist to > support the toplevel sipxpbx port. While in theory they could be > used by other applications, in practice they are only used when > installing sipxpbx. In fact, I believe future development of sipX > is getting rid of the modularity and is unifying everything under > one sipXecs tree - but that doesn't help now. > > Given that both sipxtacklib and sipxcallib would both be installed > and deinstalled together, I thought there might be a way to let > tinderbox know that it shouldn't worry that the header files overlap. > I'm not really up for splitting off a separate dependancy just to > install the header files, so I think I'll just make sure one of > the two ports depends on the other and patch-out the code the installs > the header files in the second port. That would be fine. Kris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070505205603.GA19746>