Change in osmo-cbc[master]: debian: Package cbc-apitool.py as a sub-package

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Jan 24 13:48:44 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-cbc/+/22408 )


Change subject: debian: Package cbc-apitool.py as a sub-package
......................................................................

debian: Package cbc-apitool.py as a sub-package

We don't want osmo-cbc to depend on python3 at runtime, so let's use
a sub-package for osmo-cbc-apitool.py

Change-Id: Id16613811993a2baa06ebc2da6c6591ace70a3f9
---
M debian/control
A debian/osmo-cbc-utils.install
M debian/rules
3 files changed, 10 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-cbc refs/changes/08/22408/1

diff --git a/debian/control b/debian/control
index f2c7c7f..9fcafc8 100644
--- a/debian/control
+++ b/debian/control
@@ -27,6 +27,12 @@
 Depends: ${misc:Depends}, ${shlibs:Depends}
 Description: OsmoCBC: Osmocom's Cell Broadcast Center
 
+Package: osmo-cbc-utils
+Architecture: any
+Multi-Arch: foreign
+Depends: ${misc:Depends}, ${shlibs:Depends}, python3
+Description: Utilities for OsmoCBC: Osmocom's Cell Broadcast Center
+
 Package: osmo-cbc-dbg
 Section: debug
 Architecture: any
diff --git a/debian/osmo-cbc-utils.install b/debian/osmo-cbc-utils.install
new file mode 100644
index 0000000..102de7c
--- /dev/null
+++ b/debian/osmo-cbc-utils.install
@@ -0,0 +1 @@
+usr/bin/cbc-apitool.py
diff --git a/debian/rules b/debian/rules
index c57fa05..7d40e3d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,8 +50,9 @@
 	dh_auto_configure -- $(CONFIGURE_FLAGS)
 #
 # Do not install libtool archive, python .pyc .pyo
-#override_dh_install:
-#	dh_install --list-missing -X.la -X.pyc -X.pyo
+override_dh_install:
+	install -m 755 contrib/cbc-apitool.py debian/tmp/usr/bin/cbc-apitool.py
+	dh_install
 
 # See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg
 override_dh_strip:

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-cbc/+/22408
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-cbc
Gerrit-Branch: master
Gerrit-Change-Id: Id16613811993a2baa06ebc2da6c6591ace70a3f9
Gerrit-Change-Number: 22408
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210124/416125a9/attachment.htm>


More information about the gerrit-log mailing list