USNavalResearchLaboratory/ospf-mdr

Building Deb Package

Closed this issue · 4 comments

Working on trying to build a deb package in an Ubuntu 22.04 environment. I currently can get through building packages, but they are missing most of the executables, it only contains vtysh.

Basically these executables found in the rpm package:

/usr/sbin/babeld
/usr/sbin/bgpd
/usr/sbin/isisd
/usr/sbin/ospf6d
/usr/sbin/ospfd
/usr/sbin/ripd
/usr/sbin/ripngd
/usr/sbin/watchquagga
/usr/sbin/xpimd
/usr/sbin/zebra

I also currently need to patch a couple files to avoid issue:

diff --git a/debian/compat b/debian/compat
index 7ed6ff8..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+10
diff --git a/debian/control.in b/debian/control.in
index f722ada..c427137 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -3,7 +3,7 @@ Section: net
 Priority: optional
 Maintainer: @MAINTAINER@ <@MAINTAINER_EMAIL@>
 Build-Depends: debhelper (>= 5), autotools-dev, gawk, libreadline-dev, pkg-config
-Build-Depends-Indep: texinfo (>= 4.7), imagemagick, texlive-latex-base, texlive-generic-recommended, groff
+Build-Depends-Indep: texinfo (>= 4.7), imagemagick, texlive-latex-base, texlive-plain-generic, groff
 Standards-Version: 3.8.4
 Homepage: http://www.nrl.navy.mil/itd/ncs/products/ospf-manet

I am building it like so, with what I believe are enough of the right dependencies to avoid error

git clone https://github.com/USNavalResearchLaboratory/ospf-mdr.git
cd ospf-mdr
git apply /opt/ospf-deb.patch
./bootstrap.sh
./configure
make -f quagga.deb.mk build

Any help would be appreciated.

Thanks for looking into this. Can you see if this resolves the issue: 7c9e891

Thanks!, That would help fix the adjustments I am making, but not resolve the issue with the missing executables. Potentially I am going about trying to build it wrong? Or am missing some other step.

That is the bigger issue at the moment, since the package is non functional for actual use.

b00ga commented

I tested the change @tomgoff made on both 20.04 and 22.04. They are now both building. All the daemon binaries appear to be in the package, just not in sbin:

$ dpkg-deb -c quagga-mr_0.99.21mr2.2.20231203.191519.g7c9e891_amd64.deb | grep usr/lib/quagga
drwxr-xr-x root/root         0 2023-12-04 17:40 ./usr/lib/quagga/
-rwxr-xr-x root/root    107264 2023-12-04 17:40 ./usr/lib/quagga/babeld
-rwxr-xr-x root/root    867200 2023-12-04 17:40 ./usr/lib/quagga/bgpd
-rwxr-xr-x root/root    257176 2023-12-04 17:40 ./usr/lib/quagga/isisd
-rwxr-xr-x root/root    448064 2023-12-04 17:40 ./usr/lib/quagga/ospf6d
-rwxr-xr-x root/root     14568 2023-12-04 17:40 ./usr/lib/quagga/ospfclient
-rwxr-xr-x root/root     19240 2023-12-04 17:40 ./usr/lib/quagga/ospfd
-rwxr-xr-x root/root    137088 2023-12-04 17:40 ./usr/lib/quagga/ripd
-rwxr-xr-x root/root    108288 2023-12-04 17:40 ./usr/lib/quagga/ripngd
-rwxr-xr-x root/root     39456 2023-12-04 17:40 ./usr/lib/quagga/watchquagga
-rwxr-xr-x root/root   3636264 2023-12-04 17:40 ./usr/lib/quagga/xpimd
-rwxr-xr-x root/root    234872 2023-12-04 17:40 ./usr/lib/quagga/zebra

I was able to test and verify, this update works, thanks!

I realized something else I need to adjust/account for on my end of things.