[pkg-bacula-devel] Contribution
Mario Pranjic
mario at pranjic.no
Sun Sep 20 08:07:10 BST 2020
On 9/18/20 4:12 PM, Sven Hartge wrote:
>
> Most importantly here is the need to segregate the library and its
> headers away from the normal paths where other programs and ld.so can
> find them.
>
> So using /usr/lib/bacula (which already contains the other libraries and
> plugins Bacula components use) and /usr/include/bacula is the right way
> to go here.
>
> Also, if possible, a rename of the library should be done, to further
> reduce confusion what it is fore.
>
>> In other words: does it make sense to build it and package it using
>> these locations at this stage?
> Yes, it does.
>
OK, I tried changing in GNUmakefile:
ifndef LIBDIR
LIBDIR := ${DESTDIR}/lib/*bacula*
endif
Build went ok, but installation of packages failed due some overlapping.
Error:
dpkg: error processing archive
/root/libs3-20200523/build/pkg/libs3-dev_4.1.bac_amd64.
deb (--unpack):
trying to overwrite '/usr/lib/bacula/libs3.a', which is also in package
libs3 4.1.bac
Errors were encountered while processing:
/root/libs3-20200523/build/pkg/libs3-dev_4.1.bac_amd64.deb
With default build we have in packages:
root at backup-dev:~/libs3-20200523/build/pkg# dpkg -c libs3_4.1.bac_amd64.deb
drwxr-xr-x root/root 0 2020-09-20 08:57 ./
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/bin/
-rwxr-xr-x root/root 68512 2020-09-20 08:57 ./usr/bin/s3
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/lib/
-rw-r--r-- root/root 93168 2020-09-20 08:57 ./usr/lib/libs3.so.4.1.bac
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/share/
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/share/doc/
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/share/doc/libs3/
-rw-r--r-- root/root 214 2020-09-20 08:57
./usr/share/doc/libs3/changelog.Debian.gz
-rw-r--r-- root/root 174 2020-09-20 08:57
./usr/share/doc/libs3/changelog.gz
-rw-r--r-- root/root 969 2020-09-20 08:57
./usr/share/doc/libs3/copyright
lrwxrwxrwx root/root 0 2020-09-20 08:57 ./usr/lib/libs3.so ->
libs3.so.4
lrwxrwxrwx root/root 0 2020-09-20 08:57 ./usr/lib/libs3.so.4 ->
libs3.so.4.1.bac
root at backup-dev:~/libs3-20200523/build/pkg# dpkg -c
libs3-dev_4.1.bac_amd64.deb
drwxr-xr-x root/root 0 2020-09-20 08:57 ./
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/include/
-rw-r--r-- root/root 118491 2020-05-23 18:23 ./usr/include/libs3.h
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/lib/
-rw-r--r-- root/root 159410 2020-09-20 08:57 ./usr/lib/libs3.a
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/share/
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/share/doc/
drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/share/doc/libs3-dev/
-rw-r--r-- root/root 214 2020-09-20 08:57
./usr/share/doc/libs3-dev/changelog.Debian.gz
-rw-r--r-- root/root 174 2020-09-20 08:57
./usr/share/doc/libs3-dev/changelog.gz
-rw-r--r-- root/root 969 2020-09-20 08:57
./usr/share/doc/libs3-dev/copyright
However, package created with this changed lib path, some files end up
in both of them and therefore it gets rejected:
root at backup-dev:~/libs3-20200523/build/pkg# dpkg -c libs3_4.1.bac_amd64.deb
drwxr-xr-x root/root 0 2020-09-20 08:59 ./
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/bin/
-rwxr-xr-x root/root 68512 2020-09-20 08:59 ./usr/bin/s3
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/lib/
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/lib/bacula/
-rw-r--r-- root/root 159410 2020-09-20 08:59 *./usr/lib/bacula/libs3.a*
-rw-r--r-- root/root 93168 2020-09-20 08:59
./usr/lib/bacula/libs3.so.4.1.bac
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/share/
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/share/doc/
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/share/doc/libs3/
-rw-r--r-- root/root 214 2020-09-20 08:59
./usr/share/doc/libs3/changelog.Debian.gz
-rw-r--r-- root/root 174 2020-09-20 08:59
./usr/share/doc/libs3/changelog.gz
-rw-r--r-- root/root 969 2020-09-20 08:59
./usr/share/doc/libs3/copyright
lrwxrwxrwx root/root 0 2020-09-20 08:59
./usr/lib/bacula/libs3.so -> libs3.so.4
lrwxrwxrwx root/root 0 2020-09-20 08:59
./usr/lib/bacula/libs3.so.4 -> libs3.so.4.1.bac
root at backup-dev:~/libs3-20200523/build/pkg# dpkg -c
libs3-dev_4.1.bac_amd64.deb
drwxr-xr-x root/root 0 2020-09-20 08:59 ./
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/include/
-rw-r--r-- root/root 118491 2020-05-23 18:23 ./usr/include/libs3.h
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/lib/
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/lib/bacula/
-rw-r--r-- root/root 159410 2020-09-20 08:59 ./usr/lib/bacula/libs3.a
-rw-r--r-- root/root 93168 2020-09-20 08:59
*./usr/lib/bacula/libs3.so.4.1.bac*
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/share/
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/share/doc/
drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/share/doc/libs3-dev/
-rw-r--r-- root/root 214 2020-09-20 08:59
./usr/share/doc/libs3-dev/changelog.Debian.gz
-rw-r--r-- root/root 174 2020-09-20 08:59
./usr/share/doc/libs3-dev/changelog.gz
-rw-r--r-- root/root 969 2020-09-20 08:59
./usr/share/doc/libs3-dev/copyright
lrwxrwxrwx root/root 0 2020-09-20 08:59
*./usr/lib/bacula/libs3.so -> libs3.so.4*
lrwxrwxrwx root/root 0 2020-09-20 08:59
.*/usr/lib/bacula/libs3.so.4 -> libs3.so.4.1.bac*
I guess changing only LIBDIR destination is not good enough.
What would be a proper way to control location for LIBS during build &
packaging process?
> The cloud driver *is* available in the community edition. The only (and
> this is quite a big "only) hindrance is the usage of a special forked
> libs3 to get it working.
>
Does it mean Bacula Enterprise relies on the same libs3 package we are
talking about?
Best regards,
--
Mario.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-bacula-devel/attachments/20200920/8c8b2759/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-bacula-devel/attachments/20200920/8c8b2759/attachment-0001.sig>
More information about the pkg-bacula-devel
mailing list