On Thursday 09 May 2019 12:50:08 pm Chris Hassell wrote:

> [oop.. left this email unsent yesterday]
>
> For those who were wondering.. I left out libglib2.0-dev and bison and
> flex.   Here's the revised instructions for a Debian-based 3.5 build.
>
> % sudo apt-get install ca-certificates xinetd perl gettext bsd-mailx
> dpkg-dev \ debhelper dump gnuplot-nox libtool mtx smbclient \
> libcurl4-gnutls-dev libncurses5-dev libreadline-dev libssl-dev \
> docbook-xsl swig xsltproc libglib2.0-dev bison flex
>
> % git clone git://github.com/zmanda/amanda.git
>
> % cd amanda
>
> % git checkout -b 3_5mine origin/3_5
>
> % bash autogen && ./packaging/deb/buildpkg
>
> It worked for Debian Stretch and Ubuntu 18.04.  I'm interested what
> older platforms fail, if some know of them?  Thanks.  (Note: this is
> for 3.5.1 only, in effect and I'll submit a pull request for trunk
> soon.)
>
>     -- CH
Didn't quite work fore this debian stretch, close though.
Now, I did all the above as amanda, obtained by sudo -i
then su amanda.

I had a good sized tanker full of deprecated_declarations and if its 
still in the scroll-back, unused_functions. And lots of other noise that 
didn't look too serious, but I ended up with this:

# fix perms manually
chown -R amandabackup:disk debian/*/var/lib/*
chown: invalid user: ‘amandabackup:disk’
debian/rules:122: recipe for target 'binary-arch' failed
make: *** [binary-arch] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit 
status 2

And indeed, there is no amandabackup user in this new install.

Took about 45 wall minutes, but next time I won't have to manually check 
all the installed bits.

So I ctl-d'd out of amanda, then adduser amandabackup, doing something I 
never had to do before, give amandabackup both a passwd and I see its 
also got /bin/bash for a shell, so there goes the security model by 
giving anybody who knows the amanda passwd a route into the machine, bad 
dog. without that its just an emasculated username, accessible only to 
root.  So be aware you may have to edit that crap back out 
of /etc/passwd.  But after doing the usreadd, and without that editing, 
I see the second stage of the build, making the deb, looks like its 
starting from scratch. But this time it finished up with this:

echo "Amanda version `cat FULL_VERSION`" 
>  
> /home/amanda/amanda/build/debian/amanda-backup-server//var/lib/amanda/amanda-release
echo "Amanda version `cat FULL_VERSION`" 
>  
> /home/amanda/amanda/build/debian/amanda-backup-client//var/lib/amanda/amanda-release
install -o root -g root -m 0644 debian/amanda-backup-client.lintian \
        
/home/amanda/amanda/build/debian/amanda-backup-client/usr/share/lintian/overrides/amanda-backup-client
install -o root -g root -m 0644 debian/amanda-backup-server.lintian \
        
/home/amanda/amanda/build/debian/amanda-backup-server/usr/share/lintian/overrides/amanda-backup-server
dh_makeshlibs  >> /home/amanda/amanda/build/debian/dpkg.log 2>&1
dh_perl >> /home/amanda/amanda/build/debian/dpkg.log 2>&1
dh_shlibdeps 
-l"/home/amanda/amanda/build/debian/tmp/usr/lib/x86_64-linux-gnu:/home/amanda/amanda/build/debian/amanda-backup-client/usr/lib/x86_64-linux-gnu:/home/amanda/amanda/build/debian/amanda-backup-server/usr/lib/x86_64-linux-gnu"
 
>> /home/amanda/amanda/build/debian/dpkg.log 2>&1
dh_installdeb >> /home/amanda/amanda/build/debian/dpkg.log 2>&1
dh_gencontrol >> /home/amanda/amanda/build/debian/dpkg.log 2>&1
dh_md5sums  >> /home/amanda/amanda/build/debian/dpkg.log 2>&1
dh_builddeb  >> /home/amanda/amanda/build/debian/dpkg.log 2>&1
 dpkg-genbuildinfo
 dpkg-genchanges  >../amanda_3.5.1.git.19364c7b-1Debian99_amd64.changes
dpkg-genchanges: info: including full source code in upload
 dpkg-source --after-build build
dpkg-buildpackage: info: full upload; Debian-native package (full source 
is included)

And, I'm looking at 4 debs:
amanda@coyote:~/amanda$ ls -l *.deb
-rw-r--r-- 1 amanda amanda 1298594 May  9 14:48 
amanda-backup-client_3.5.1.git.19364c7b-1Debian99_amd64.deb
-rw-r--r-- 1 amanda amanda  101638 May  9 14:48 
amanda-backup-client-dbgsym_3.5.1.git.19364c7b-1Debian99_amd64.deb
-rw-r--r-- 1 amanda amanda 2085650 May  9 14:48 
amanda-backup-server_3.5.1.git.19364c7b-1Debian99_amd64.deb
-rw-r--r-- 1 amanda amanda  140310 May  9 14:48 
amanda-backup-server-dbgsym_3.5.1.git.19364c7b-1Debian99_amd64.deb

Now the pen-ultimate test, failed.:

root@coyote:amanda$ dpkg -i *.deb
Selecting previously unselected package amanda-backup-client.
dpkg: regarding 
amanda-backup-client_3.5.1.git.19364c7b-1Debian99_amd64.deb containing 
amanda-backup-client:
 amanda-backup-client conflicts with amanda-client
  amanda-client (version 1:3.3.9-5) is present and installed.

dpkg: error processing archive 
amanda-backup-client_3.5.1.git.19364c7b-1Debian99_amd64.deb (--install):
 conflicting packages - not installing amanda-backup-client
Selecting previously unselected package amanda-backup-client-dbgsym.
(Reading database ... 267815 files and directories currently installed.)
Preparing to unpack 
amanda-backup-client-dbgsym_3.5.1.git.19364c7b-1Debian99_amd64.deb ...
Unpacking amanda-backup-client-dbgsym (3.5.1.git.19364c7b-1Debian99) ...
Selecting previously unselected package amanda-backup-server.
dpkg: regarding 
amanda-backup-server_3.5.1.git.19364c7b-1Debian99_amd64.deb containing 
amanda-backup-server:
 amanda-backup-server conflicts with amanda-client
  amanda-client (version 1:3.3.9-5) is present and installed.

dpkg: error processing archive 
amanda-backup-server_3.5.1.git.19364c7b-1Debian99_amd64.deb (--install):
 conflicting packages - not installing amanda-backup-server
Selecting previously unselected package amanda-backup-server-dbgsym.
Preparing to unpack 
amanda-backup-server-dbgsym_3.5.1.git.19364c7b-1Debian99_amd64.deb ...
Unpacking amanda-backup-server-dbgsym (3.5.1.git.19364c7b-1Debian99) ...
dpkg: error processing archive 
amanda-backup-server-dbgsym_3.5.1.git.19364c7b-1Debian99_amd64.deb 
(--install):
 trying to 
overwrite 
'/usr/lib/debug/.build-id/06/a6d45701283ff745c5ea6b44c461817e1288a5.debug', 
which is also in package amanda-backup-client-dbgsym 
3.5.1.git.19364c7b-1Debian99
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
dpkg: dependency problems prevent configuration of 
amanda-backup-client-dbgsym:
 amanda-backup-client-dbgsym depends on amanda-backup-client (= 
3.5.1.git.19364c7b-1Debian99); however:
  Package amanda-backup-client is not installed.

dpkg: error processing package amanda-backup-client-dbgsym (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 amanda-backup-client_3.5.1.git.19364c7b-1Debian99_amd64.deb
 amanda-backup-server_3.5.1.git.19364c7b-1Debian99_amd64.deb
 amanda-backup-server-dbgsym_3.5.1.git.19364c7b-1Debian99_amd64.deb
 amanda-backup-client-dbgsym

The only amanda stuff was /usr/local/etc/amanda/DAILY copied from the old 
disk to preserve my system, and about 20 files of the old amanda install 
in /usr/local/lib/amanda, all dated from Jan 2017 so they aren't 
precious now.  But all the old installs using amanda's own Makefile, 
simply overwrote them instead of having a litter of calves.

So I nuked what I could find of the january 2017 install the at may have 
been copied to the new drive.  Getting essentially the same message from 

dpkg -i *.deb

WTH is wrong now?  Your turn Chris.
 



Copyright 2019 by Maurice E. Heskett
Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>


Reply via email to