Can't build debian packages of libosmocore
diff mbox

Message ID 54038D59.7080407@autistici.org
State Superseded
Headers show

Commit Message

Ciaby Aug. 31, 2014, 9:02 p.m. UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 08/31/2014 03:07 PM, Ciaby wrote:
> I'm having this problem with the latest code from git:
[...]
> So, it looks like it's trying to build a libosmogsm6 package, but
> only libosmogsm5.1.0 gets built. I looked around, and the only
> reference I found is in src/gsm/Makefile.am, and it's correct
> (6:0:1). What am I doing wrong? :)
This is a tentative patch to fix the issue. It works for me,
libosmogsm6 and libosmoctrl0 are built successfully, however I'm not
sure if that's the right thing to do.
Cheers

Ciaby
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iF4EAREKAAYFAlQDjVAACgkQC30ZhxNccpEJNAD/Z5uiLUwGkKfEfl331bOk7yRo
1rG1g1qDJsz7InEEzZwA/RC24KagL8xZDSNtRjl6i+mU97XqoL+BoFsvqV2M6c/2
=o+xL
-----END PGP SIGNATURE-----

Comments

Holger Freyther Sept. 1, 2014, 6:43 p.m. UTC | #1
On Sun, Aug 31, 2014 at 04:02:17PM -0500, Ciaby wrote:

Hi!

> > So, it looks like it's trying to build a libosmogsm6 package, but
> > only libosmogsm5.1.0 gets built. I looked around, and the only
> > reference I found is in src/gsm/Makefile.am, and it's correct
> > (6:0:1). What am I doing wrong? :)
> This is a tentative patch to fix the issue. It works for me,
> libosmogsm6 and libosmoctrl0 are built successfully, however I'm not
> sure if that's the right thing to do.


can you try to use the -M option? It will show plain renames.

> --- a/src/gsm/Makefile.am
> +++ b/src/gsm/Makefile.am
> @@ -1,6 +1,6 @@
>  # This is _NOT_ the library release version, it's an API version.
>  # Please read Chapter 6 "Library interface versions" of the libtool documentation before making any modification
> -LIBVERSION=6:0:1
> +LIBVERSION=6:0:0

that is odd. What build issue do you get without the versioning?

Patch
diff mbox

From 412be4e74d5cb09cadeffb5a03e20c1be825867a Mon Sep 17 00:00:00 2001
From: Ciaby <ciaby@rhizomatica.org>
Date: Sun, 31 Aug 2014 15:35:29 -0500
Subject: [PATCH] debian: fix build errors with libosmogsm and libosmoctrl

libosmogsm: the transition from 5 to 6 wasn't done properly. Fixed version number.
libosmoctrl: missing definition in debian/control and also missing libosmoctrl0.install.
---
 debian/control              |    6 ++++++
 debian/libosmoctrl0.install |    1 +
 debian/libosmogsm5.install  |    1 -
 debian/libosmogsm6.install  |    1 +
 src/gsm/Makefile.am         |    2 +-
 5 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 debian/libosmoctrl0.install
 delete mode 100644 debian/libosmogsm5.install
 create mode 100644 debian/libosmogsm6.install

diff --git a/debian/control b/debian/control
index 3204f0f..e81f7cf 100644
--- a/debian/control
+++ b/debian/control
@@ -44,6 +44,12 @@  Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Osmo VTY library
 
+Package: libosmoctrl0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Osmo control library
+
 Package: libosmocore-dev
 Section: libdevel
 Architecture: any
diff --git a/debian/libosmoctrl0.install b/debian/libosmoctrl0.install
new file mode 100644
index 0000000..6b23be8
--- /dev/null
+++ b/debian/libosmoctrl0.install
@@ -0,0 +1 @@ 
+usr/lib/libosmoctrl*.so.*
diff --git a/debian/libosmogsm5.install b/debian/libosmogsm5.install
deleted file mode 100644
index 12c9180..0000000
--- a/debian/libosmogsm5.install
+++ /dev/null
@@ -1 +0,0 @@ 
-usr/lib/libosmogsm*.so.*
diff --git a/debian/libosmogsm6.install b/debian/libosmogsm6.install
new file mode 100644
index 0000000..12c9180
--- /dev/null
+++ b/debian/libosmogsm6.install
@@ -0,0 +1 @@ 
+usr/lib/libosmogsm*.so.*
diff --git a/src/gsm/Makefile.am b/src/gsm/Makefile.am
index 4207959..1e2d893 100644
--- a/src/gsm/Makefile.am
+++ b/src/gsm/Makefile.am
@@ -1,6 +1,6 @@ 
 # This is _NOT_ the library release version, it's an API version.
 # Please read Chapter 6 "Library interface versions" of the libtool documentation before making any modification
-LIBVERSION=6:0:1
+LIBVERSION=6:0:0
 
 AM_CFLAGS = -Wall ${GCC_FVISIBILITY_HIDDEN} $(all_includes) -I$(top_srcdir)/include
 
-- 
1.7.9.5