<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<div class="moz-cite-prefix">On 9/18/20 4:12 PM, Sven Hartge wrote:<br>
</div>
<blockquote type="cite"
cite="mid:0d4eef52-648b-cc10-b379-9e7549f85140@svenhartge.de"><br>
<pre class="moz-quote-pre" wrap="">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.
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">In other words: does it make sense to build it and package it using
these locations at this stage?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Yes, it does.
</pre>
</blockquote>
<p>OK, I tried changing in GNUmakefile:<br>
<tt>ifndef LIBDIR</tt><tt><br>
</tt><tt> LIBDIR := ${DESTDIR}/lib/</tt><tt><b>bacula</b></tt><tt><br>
</tt><tt>endif</tt><br>
<br>
</p>
<p>Build went ok, but installation of packages failed due some
overlapping.</p>
<p>Error:<br>
<tt><span style="color: rgb(34, 34, 34); font-size: small;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255,
255, 255); text-decoration-style: initial;
text-decoration-color: initial; display: inline !important;
float: none;">dpkg: error processing archive
/root/libs3-20200523/build/</span></tt><tt><span style="color:
rgb(34, 34, 34); font-size: small; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">pkg/libs3-dev_4.1.bac_amd64.</span></tt><tt><br>
</tt><wbr style="color: rgb(34, 34, 34); font-size: small;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-style: initial; text-decoration-color:
initial;"><wbr style="color: rgb(34, 34, 34); font-size: small;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-style: initial; text-decoration-color:
initial;"><tt><span style="color: rgb(34, 34, 34); font-size:
small; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255,
255, 255); text-decoration-style: initial;
text-decoration-color: initial; display: inline !important;
float: none;">deb (--unpack):</span></tt><tt><br style="color:
rgb(34, 34, 34); font-size: small; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial;">
</tt><tt><span style="color: rgb(34, 34, 34); font-size: small;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255,
255, 255); text-decoration-style: initial;
text-decoration-color: initial; display: inline !important;
float: none;"> trying to overwrite '/usr/lib/bacula/libs3.a',
which is also in package libs3 4.1.bac</span></tt><tt><br
style="color: rgb(34, 34, 34); font-size: small; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial;">
</tt><tt><span style="color: rgb(34, 34, 34); font-size: small;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255,
255, 255); text-decoration-style: initial;
text-decoration-color: initial; display: inline !important;
float: none;">Errors were encountered while processing:</span></tt><tt><br
style="color: rgb(34, 34, 34); font-size: small; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial;">
</tt><tt><span style="color: rgb(34, 34, 34); font-size: small;
font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255,
255, 255); text-decoration-style: initial;
text-decoration-color: initial; display: inline !important;
float: none;"> /root/libs3-20200523/build/</span></tt><wbr
style="color: rgb(34, 34, 34); font-size: small; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial;"><tt><span
style="color: rgb(34, 34, 34); font-size: small; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">pkg/libs3-dev_4.1.bac_amd64.</span></tt><wbr
style="color: rgb(34, 34, 34); font-size: small; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial;"><tt><span
style="color: rgb(34, 34, 34); font-size: small; font-style:
normal; font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: 400; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">deb</span></tt></p>
<p><br>
</p>
<p>With default build we have in packages:<span style="color:
rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif;
font-size: small; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;"><br>
<tt>root@backup-dev:~/libs3-20200523/build/pkg# dpkg -c
libs3_4.1.bac_amd64.deb </tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57 ./</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/bin/</tt><tt><br>
</tt><tt>-rwxr-xr-x root/root 68512 2020-09-20 08:57
./usr/bin/s3</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/lib/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 93168 2020-09-20 08:57
./usr/lib/libs3.so.4.1.bac</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/share/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/share/doc/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/share/doc/libs3/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 214 2020-09-20 08:57
./usr/share/doc/libs3/changelog.Debian.gz</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 174 2020-09-20 08:57
./usr/share/doc/libs3/changelog.gz</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 969 2020-09-20 08:57
./usr/share/doc/libs3/copyright</tt><tt><br>
</tt><tt>lrwxrwxrwx root/root 0 2020-09-20 08:57
./usr/lib/libs3.so -> libs3.so.4</tt><tt><br>
</tt><tt>lrwxrwxrwx root/root 0 2020-09-20 08:57
./usr/lib/libs3.so.4 -> libs3.so.4.1.bac</tt><tt><br>
</tt><tt><br>
</tt><tt>root@backup-dev:~/libs3-20200523/build/pkg# dpkg -c
libs3-dev_4.1.bac_amd64.deb </tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57 ./</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57 ./usr/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/include/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 118491 2020-05-23 18:23
./usr/include/libs3.h</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/lib/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 159410 2020-09-20 08:57
./usr/lib/libs3.a</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/share/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/share/doc/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:57
./usr/share/doc/libs3-dev/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 214 2020-09-20 08:57
./usr/share/doc/libs3-dev/changelog.Debian.gz</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 174 2020-09-20 08:57
./usr/share/doc/libs3-dev/changelog.gz</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 969 2020-09-20 08:57
./usr/share/doc/libs3-dev/copyright</tt><tt><br>
</tt><br>
</span></p>
<p>However, package created with this changed lib path, some files
end up in both of them and therefore it gets rejected:<br>
<span style="color: rgb(34, 34, 34); font-family: Arial,
Helvetica, sans-serif; font-size: small; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;"><tt>root@backup-dev:~/libs3-20200523/build/pkg#
dpkg -c libs3_4.1.bac_amd64.deb </tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59 ./</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/bin/</tt><tt><br>
</tt><tt>-rwxr-xr-x root/root 68512 2020-09-20 08:59
./usr/bin/s3</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/lib/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/lib/bacula/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 159410 2020-09-20 08:59 <b>./usr/lib/bacula/libs3.a</b></tt><tt><br>
</tt><tt>-rw-r--r-- root/root 93168 2020-09-20 08:59
./usr/lib/bacula/libs3.so.4.1.bac</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/share/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/share/doc/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/share/doc/libs3/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 214 2020-09-20 08:59
./usr/share/doc/libs3/changelog.Debian.gz</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 174 2020-09-20 08:59
./usr/share/doc/libs3/changelog.gz</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 969 2020-09-20 08:59
./usr/share/doc/libs3/copyright</tt><tt><br>
</tt><tt>lrwxrwxrwx root/root 0 2020-09-20 08:59
./usr/lib/bacula/libs3.so -> libs3.so.4</tt><tt><br>
</tt><tt>lrwxrwxrwx root/root 0 2020-09-20 08:59
./usr/lib/bacula/libs3.so.4 -> libs3.so.4.1.bac</tt><tt><br>
</tt><tt><br>
</tt><tt>root@backup-dev:~/libs3-20200523/build/pkg# dpkg -c
libs3-dev_4.1.bac_amd64.deb </tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59 ./</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59 ./usr/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/include/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 118491 2020-05-23 18:23
./usr/include/libs3.h</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/lib/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/lib/bacula/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 159410 2020-09-20 08:59
./usr/lib/bacula/libs3.a</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 93168 2020-09-20 08:59 </tt><tt><b>./usr/lib/bacula/libs3.so.4.1.bac</b></tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/share/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/share/doc/</tt><tt><br>
</tt><tt>drwxr-xr-x root/root 0 2020-09-20 08:59
./usr/share/doc/libs3-dev/</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 214 2020-09-20 08:59
./usr/share/doc/libs3-dev/changelog.Debian.gz</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 174 2020-09-20 08:59
./usr/share/doc/libs3-dev/changelog.gz</tt><tt><br>
</tt><tt>-rw-r--r-- root/root 969 2020-09-20 08:59
./usr/share/doc/libs3-dev/copyright</tt><tt><br>
</tt><tt>lrwxrwxrwx root/root 0 2020-09-20 08:59 </tt><tt><b>./usr/lib/bacula/libs3.so
-> libs3.so.4</b></tt><tt><br>
</tt><tt>lrwxrwxrwx root/root 0 2020-09-20 08:59 .</tt><tt><b>/usr/lib/bacula/libs3.so.4
-> libs3.so.4.1.bac</b></tt></span></p>
<p><span style="color: rgb(34, 34, 34); font-family: Arial,
Helvetica, sans-serif; font-size: small; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;"><br>
</span>I guess changing only LIBDIR destination is not good
enough. <br>
What would be a proper way to control location for LIBS during
build & packaging process?<br>
<span style="color: rgb(34, 34, 34); font-family: Arial,
Helvetica, sans-serif; font-size: small; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); text-decoration-style: initial; text-decoration-color:
initial; display: inline !important; float: none;"></span></p>
<blockquote type="cite"
cite="mid:0d4eef52-648b-cc10-b379-9e7549f85140@svenhartge.de">
<pre class="moz-quote-pre" wrap="">
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.
</pre>
<br>
</blockquote>
<p>Does it mean Bacula Enterprise relies on the same libs3 package
we are talking about?</p>
<p>Best regards,<br>
<br>
--<br>
Mario.<br>
</p>
</body>
</html>