pkgng detect conflict between bacula-server and bacula-client ports

Subbsd subbsd at gmail.com
Tue Jun 12 18:57:46 UTC 2012


Hi,

Ive try to use pkgng ( WITH_PKGNG=yes ) for build new environment and
got failed:
...
===>   Registering installation for bacula-server-5.2.6
Installing bacula-server-5.2.6...pkg: bacula-server-5.2.6 conflicts
with bacula-client-5.2.6 (installs files into the same place).
Problematic file: /usr/local/man/man8/bacula-fd.8.gz
*** Error code 3

Stop in /usr/ports/sysutils/bacula-server.
*** Error code 1

Stop in /usr/ports/sysutils/bacula-server.

===>>> Installation of bacula-server-5.2.6 (sysutils/bacula-server) failed
===>>> Aborting update

===>>> Update for sysutils/bacula-server failed
===>>> Aborting update

Terminated
...

As i see, /usr/ports/sysutils/bacula-client/Makefile use
/usr/ports/sysutils/bacula-server/Makefile. And this looks like
bacula-fd.8.gz should be in Makefile or in case(WITH_CLIENT_ONLY)
constructions because file relating to *-client port. However,
bacula-fd.8.gz will appear in any case with installation of *-server
part too:
..

.if defined(WITH_CLIENT_ONLY)
MAN8=                   bacula-fd.8 bconsole.8
EXTRA_PATCHES+=         ${FILESDIR}/extra__manpages__Makefile.in
.else
MAN1=                   bat.1 bsmtp.1 bacula-tray-monitor.1 bacula-bwxconsole.1
MAN8=                   bacula.8 bacula-dir.8 bacula-fd.8 bacula-sd.8
bconsole.8 \
                        bcopy.8 bextract.8 bls.8 bregex.8 bscan.8 btape.8 \
                        btraceback.8 bwild.8 dbcheck.8
..

In this case the logic is broken and I should register PR to a bacula
maintainer for spliting conflict files or such situation is normal and
isn't considered by pkgng?


More information about the freebsd-ports mailing list