[pkg-bacula-devel] Making bacula-director-{pgsql, mysql, sqlite3} Arch: all

Sven Hartge sven at svenhartge.de
Sat Dec 15 00:06:54 GMT 2018


Um 00:35 Uhr am 15.12.18 schrieb Sven Hartge:

> Um 23:57 Uhr am 14.12.18 schrieb Sven Hartge:
> 
> > I'll meditate a bit over debian/rules and try to figure out, which
> > packages to use as link-doc target for
> > bacula-director-{pgsql,mysql,sqlite3}.
> 
> Well, there is no other package, so linking the docs for those packages is
> out of the question now. Investigating.

And, as always, things are not as easy as they first look. piuparts then
barfs during the 9.2.2-7 to 9.2.2-8 upgrade test because:

,----[ https://salsa.debian.org/hartge-guest/bacula/-/jobs/93018
| 2m6.3s ERROR: FAIL: silently overwrites files via directory symlinks:
|   /usr/share/doc/bacula-director-common/NEWS.Debian.gz (bacula-director-common) != /usr/share/doc/bacula-common/NEWS.Debian.gz (bacula-common)
|     /usr/share/doc/bacula-director-common -> bacula-common
|   /usr/share/doc/bacula-director-common/changelog.Debian.gz (bacula-director-common) != /usr/share/doc/bacula-common/changelog.Debian.gz (bacula-common)
|     /usr/share/doc/bacula-director-common -> bacula-common
|   /usr/share/doc/bacula-director-common/changelog.gz (bacula-director-common) != /usr/share/doc/bacula-common/changelog.gz (bacula-common)
|     /usr/share/doc/bacula-director-common -> bacula-common
|   /usr/share/doc/bacula-director-common/copyright (bacula-director-common) != /usr/share/doc/bacula-common/copyright (bacula-common)
|     /usr/share/doc/bacula-director-common -> bacula-common
|   /usr/share/doc/bacula-director-mysql/NEWS.Debian.gz (bacula-director-mysql) != /usr/share/doc/bacula-common/NEWS.Debian.gz (bacula-common)
|     /usr/share/doc/bacula-director-mysql -> bacula-common
|   /usr/share/doc/bacula-director-mysql/changelog.Debian.gz (bacula-director-mysql) != /usr/share/doc/bacula-common/changelog.Debian.gz (bacula-common)
|     /usr/share/doc/bacula-director-mysql -> bacula-common
|   /usr/share/doc/bacula-director-mysql/changelog.gz (bacula-director-mysql) != /usr/share/doc/bacula-common/changelog.gz (bacula-common)
|     /usr/share/doc/bacula-director-mysql -> bacula-common
|   /usr/share/doc/bacula-director-mysql/copyright (bacula-director-mysql) != /usr/share/doc/bacula-common/copyright (bacula-common)
|     /usr/share/doc/bacula-director-mysql -> bacula-common
`----

I thought dpkg removes the symlink when it changes to a real directory
instead of just blindly clobbering the contents of the symlinked
directory. What am I missing here?

...

Ah, I am missing "dpkg-maintscript-helper symlink_to_dir" it seems.
Time to write some maintscripts.

Grüße,
Sven



More information about the pkg-bacula-devel mailing list