DistributionPackaging broken for Debian/Ubuntu rebuild process - debuild?

bs27975 <[email protected]> Mon, 26 Aug 2019 01:10:51 -0400
Newsgroups gmane.linux.mondo.devel
Message-ID <CAH9E=nX1FxK3JLp8sCoLeG4g2mrXpAbGsD2+qswkjkh2KBkhxg@mail.gmail.com>
In trying to follow Debian/Ubuntu rebuild process at
http://trac.mondorescue.org/wiki/DistributionPackaging ...

Rather than (exactly) following the script there, was able to largely get
to the same place via:
sudo gdebi <package.deb>

See prior note on using
ftp://ftp.mondorescue.org/test/debian/9/mondorescue-test.sources.list with
[arch=amd64], which got me mindi-busybox and mondo-doc (in instructions
testing), but not libmondorescue-perl for lack of libprojectbuilder-perl.

sudo gdebi
ftp://ftp.mondorescue.org/debian/9/libprojectbuilder-perl_0.15.1-1_all.deb
- got me libprojectbuilder-perl, which probably would have let me 'sudo
apt-get install libmondorescue-perl', except I had already done
sudo gdebi libmondorescue-perl_3.3.1-0.20190821211640.s3720M_all.deb
- upon which 'aptitude search mindi mondo' showed libmondorescue-perl as
now being installed.

sudo gdebi mondo_3.3.1-0.20190821211640.s3720M_amd64.deb
- fails, as expected, for lack of mindi.

http://trac.mondorescue.org/wiki/DistributionPackaging shows:
% tar xvfz mindi-[0-9]*tar.gz
% cd mindi-[0-9]*
% sudo apt-get build-dep mindi
% debuild -us -uc
% cd ..
% sudo dpkg -i mindi-busybox_*.deb

Note: 'mindi-[0-9]*tar.gz' does not match
'mindi_3.3.1-0.20190821211640.s3720M.tar.gz' - could those instructions be
updated please.
(First '-' -> '_'?)

% debuild -us -uc
- fails. Could those instructions be enhanced, please?
[No such beastie as 'debuild' (any more?).]

-----
D'oh, in constructing this report, noticed:
/usr/local/src/Mondo/mindi-3.3.0.0.20190821211640/INSTALL

which includes: To install, please download the tarball to /tmp and then
type: ...
./install.sh

Doing so gave many 'Operation not permitted's. Could the instructions be
updated with 'sudo' prefixes as appropriate, please?

$ sudo ./install.sh
Warning - your PATH environmental variable is BROKEN. Please add
/usr/local/usr/sbin to your PATH.
mindi 3.3.0-r3720M will be installed under /usr/local
Creating target directories ...
Copying files ...
WARNING: no busybox found, mindi will not work on this arch (x86_64)

Yet:
/usr/local/src/Mondo/mindi-3.3.0.0.20190821211640$ aptitude search busybox
i   busybox                                                - Tiny utilities
for small and embedded systems
p   busybox:i386                                           - Tiny utilities
for small and embedded systems
p   busybox-static                                         - Standalone
rescue shell with tons of builtin utilities
p   busybox-static:i386                                    - Standalone
rescue shell with tons of builtin utilities
p   busybox-syslogd                                        - Provides
syslogd and klogd using busybox
i   mindi-busybox                                          - Busybox
version suited for Mindi

$ sudo nice --10 bash
# ./install.sh
Warning - your PATH environmental variable is BROKEN. Please add
/usr/local/usr/sbin to your PATH.
mindi 3.3.0-r3720M will be installed under /usr/local
Creating target directories ...
Copying files ...
WARNING: no busybox found, mindi will not work on this arch (x86_64)

Yet:
# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
# ls /usr/local/usr/sbin
ls: cannot access '/usr/local/usr/sbin': No such file or directory

# which busybox
/bin/busybox

With further inspection, despite 'WARNING: no busybox found, mindi will not
work on this arch (x86_64)', it turns out mindi actually got installed.
Could a 'mindi installed' message be added to the above, please?
(Installation being different than not working.)

PS:
- 'apt-get install gawk' was needed. Perhaps worth noting any such lack in
the script above.
- REQ: Could 'mindi --help' do the expected, please?

Thanks for listening.

_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel