Re: makepkg/PKGBUILD - handle same files provided by 2 non-dependent packages?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 03/25/2012 12:44 AM, David C. Rankin wrote:
Guys,

   I need to know if makepkg/PKGBUILD can handle a check to see whether the same
files provided by two different packages (which are not dependencies of each
other) exist in the file system to prevent an installation failure due to
conflicting files?

   The situation is this. Both tdesdk and tdesvn both provide:

/opt/trinity/share/services/svn+file.protocol
/opt/trinity/share/services/svn+http.protocol
/opt/trinity/share/services/svn+https.protocol
/opt/trinity/share/services/svn+ssh.protocol
/opt/trinity/share/services/svn.protocol

   Since neither package is a dependency for the other, tdesvn needs to provide
the files if tdesdk isn't installed and tdesdk needs to provide the files if
tdesvn isn't installed, but avoid the conflict if both are installed. Is this
possible?

   If they were dependencies of each other, then that would be an easy fix. If
both were assured to be installed, that would also be an easy fix by rm'ing the
files from one package or the other, but in the case when either or both can be
installed -- How do you handle this?? Thanks for any ideas you have.


This is simple.

Split those files out of both packages and put them into a separate file.
Then make both packages depend on the new split-out package.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux