From 1db04193b6e309629edea5291a9575915c94987b1f82eb53cff7d221b7631f8f Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 7 Jan 2020 11:34:36 +0000 Subject: [PATCH 1/3] Accepting request 760941 from home:mnhauke:osmocom:CNI-2020-01 - Update to new upstream release 1.2.0 * ASP FSM: Permit DOWN -> DOWN "transition" * xua: Implement traffic mode broadcast * osmo_ss7: Add osmo_ss7_asp_find() * introduce public enum osmo_ss7_asp_role for ASP/SG/IPSP * ss7: Implement AS traffic mode loadshare using round robin ASP selection * ipa: Fix crash when parsing of received IPA SCCP message fails * ipa: Don't send non-SCCP data over IPA/SCCPlite - Update patch * 0001-build-fixes.patch - Add patch * 0002-build-fixes.patch OBS-URL: https://build.opensuse.org/request/show/760941 OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmo-sccp?expand=0&rev=35 --- 0001-build-fixes.patch | 25 ++++--------------------- 0002-build-fixes.patch | 17 +++++++++++++++++ _service | 4 ++-- libosmo-sccp-1.1.0.tar.xz | 3 --- libosmo-sccp-1.2.0.tar.xz | 3 +++ libosmo-sccp.changes | 17 +++++++++++++++++ libosmo-sccp.spec | 30 +++++++++++++++--------------- 7 files changed, 58 insertions(+), 41 deletions(-) create mode 100644 0002-build-fixes.patch delete mode 100644 libosmo-sccp-1.1.0.tar.xz create mode 100644 libosmo-sccp-1.2.0.tar.xz diff --git a/0001-build-fixes.patch b/0001-build-fixes.patch index e783bf7..5cb7444 100644 --- a/0001-build-fixes.patch +++ b/0001-build-fixes.patch @@ -26,10 +26,10 @@ Index: libosmo-sccp-0.8.1/configure.ac PKG_PROG_PKG_CONFIG([0.20]) +PKG_CHECK_MODULES([TALLOC], [talloc]) - PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.0.0) - PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 1.0.0) - PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 1.0.0) - PKG_CHECK_MODULES(LIBOSMONETIF, libosmo-netif >= 0.4.0) + PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.3.0) + PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 1.3.0) + PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 1.3.0) + PKG_CHECK_MODULES(LIBOSMONETIF, libosmo-netif >= 0.6.0) Index: libosmo-sccp-0.8.1/libosmo-mtp.pc.in =================================================================== @@ -102,23 +102,6 @@ Index: libosmo-sccp-0.8.1/tests/m2ua/Makefile.am m2ua_test_SOURCES = m2ua_test.c -m2ua_test_LDADD = $(top_builddir)/src/libxua.a $(LIBOSMOCORE_LIBS) +m2ua_test_LDADD = $(top_builddir)/src/libosmo-xua.la $(LIBOSMOCORE_LIBS) ${TALLOC_LIBS} -Index: libosmo-sccp-0.8.1/tests/sccp/Makefile.am -=================================================================== ---- libosmo-sccp-0.8.1.orig/tests/sccp/Makefile.am -+++ libosmo-sccp-0.8.1/tests/sccp/Makefile.am -@@ -1,4 +1,4 @@ --AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -+AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include ${TALLOC_CFLAGS} - AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) - - EXTRA_DIST = sccp_test.ok -@@ -6,5 +6,5 @@ EXTRA_DIST = sccp_test.ok - noinst_PROGRAMS = sccp_test - - sccp_test_SOURCES = sccp_test.c $(top_srcdir)/src/sccp.c --sccp_test_LDADD = $(LIBOSMOCORE_LIBS) -+sccp_test_LDADD = $(LIBOSMOCORE_LIBS) ${TALLOC_LIBS} - Index: libosmo-sccp-0.8.1/tests/ss7/Makefile.am =================================================================== --- libosmo-sccp-0.8.1.orig/tests/ss7/Makefile.am diff --git a/0002-build-fixes.patch b/0002-build-fixes.patch new file mode 100644 index 0000000..71312aa --- /dev/null +++ b/0002-build-fixes.patch @@ -0,0 +1,17 @@ +diff --git a/tests/sccp/Makefile.am b/tests/sccp/Makefile.am +index 85dbe64..ad7ddf3 100644 +--- a/tests/sccp/Makefile.am ++++ b/tests/sccp/Makefile.am +@@ -1,4 +1,4 @@ +-AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include ++AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include ${TALLOC_CFLAGS} + AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) + + EXTRA_DIST = sccp_test.ok +@@ -9,5 +9,6 @@ sccp_test_SOURCES = sccp_test.c + sccp_test_LDADD = \ + $(LIBOSMOCORE_LIBS) \ + $(top_builddir)/src/sccp.o \ ++ ${TALLOC_LIBS} \ + $(NULL) + diff --git a/_service b/_service index f9d2ea1..20eb723 100644 --- a/_service +++ b/_service @@ -2,8 +2,8 @@ git git://git.osmocom.org/libosmo-sccp - 1.1.0 - 1.1.0 + 1.2.0 + 1.2.0 *.tar diff --git a/libosmo-sccp-1.1.0.tar.xz b/libosmo-sccp-1.1.0.tar.xz deleted file mode 100644 index 8613a9d..0000000 --- a/libosmo-sccp-1.1.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b788a01024c12a9eb05d840779b08c523c9d9550f9dda59e15b2546360cfbb3 -size 204432 diff --git a/libosmo-sccp-1.2.0.tar.xz b/libosmo-sccp-1.2.0.tar.xz new file mode 100644 index 0000000..a850639 --- /dev/null +++ b/libosmo-sccp-1.2.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f2adbc725abd654585d02088db211227d3905510b5e61e76a33006341b52ca0 +size 210384 diff --git a/libosmo-sccp.changes b/libosmo-sccp.changes index 844e8dd..b72ebd0 100644 --- a/libosmo-sccp.changes +++ b/libosmo-sccp.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Sun Jan 5 10:19:06 UTC 2020 - Martin Hauke + +- Update to new upstream release 1.2.0 + * ASP FSM: Permit DOWN -> DOWN "transition" + * xua: Implement traffic mode broadcast + * osmo_ss7: Add osmo_ss7_asp_find() + * introduce public enum osmo_ss7_asp_role for ASP/SG/IPSP + * ss7: Implement AS traffic mode loadshare using round robin ASP + selection + * ipa: Fix crash when parsing of received IPA SCCP message fails + * ipa: Don't send non-SCCP data over IPA/SCCPlite +- Update patch + * 0001-build-fixes.patch +- Add patch + * 0002-build-fixes.patch + ------------------------------------------------------------------- Thu Aug 15 04:44:32 UTC 2019 - Jan Engelhardt diff --git a/libosmo-sccp.spec b/libosmo-sccp.spec index 6a59319..43da5f5 100644 --- a/libosmo-sccp.spec +++ b/libosmo-sccp.spec @@ -1,7 +1,7 @@ # # spec file for package libosmo-sccp # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: libosmo-sccp -Version: 1.1.0 +Version: 1.2.0 Release: 0 %define libversion %(echo "%version" | sed 's/\\./_/g') Summary: Osmocom library for the A-bis interface between BTS and BSC @@ -28,6 +28,7 @@ Url: https://projects.osmocom.org/projects/libosmo-sccp #Git-Clone: git://git.osmocom.org/libosmo-sccp Source: %name-%version.tar.xz Patch1: 0001-build-fixes.patch +Patch2: 0002-build-fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: automake >= 1.6 BuildRequires: libtool >= 2 @@ -35,10 +36,10 @@ BuildRequires: lksctp-tools-devel BuildRequires: pkg-config >= 0.20 BuildRequires: systemd-rpm-macros BuildRequires: xz -BuildRequires: pkgconfig(libosmo-netif) >= 0.4.0 -BuildRequires: pkgconfig(libosmocore) >= 1.0.0 -BuildRequires: pkgconfig(libosmogsm) >= 1.0.0 -BuildRequires: pkgconfig(libosmovty) >= 1.0.0 +BuildRequires: pkgconfig(libosmo-netif) >= 0.7.0 +BuildRequires: pkgconfig(libosmocore) >= 1.3.0 +BuildRequires: pkgconfig(libosmogsm) >= 1.3.0 +BuildRequires: pkgconfig(libosmovty) >= 1.3.0 %description SCCP is a network layer protocol that provides extended routing, flow @@ -98,19 +99,19 @@ in SS7 telecommunications networks. This subpackage contains the development files for the Osmocom SCCP library. -%package -n libosmo-sigtran3 +%package -n libosmo-sigtran5 Summary: Osmocom SIGTRAN library License: GPL-2.0-or-later Group: System/Libraries -%description -n libosmo-sigtran3 +%description -n libosmo-sigtran5 Osmocom implementation of (parts of) SIGTRAN. %package -n libosmo-sigtran-devel Summary: Development files for the Osmocom sigtran library License: GPL-2.0-or-later Group: Development/Libraries/C and C++ -Requires: libosmo-sigtran3 = %version +Requires: libosmo-sigtran5 = %version %description -n libosmo-sigtran-devel Osmocom implementation of (parts of) SIGTRAN. @@ -155,8 +156,7 @@ implementation, missing lots of the functionality usually present in a STP, such as Global Title Routing, Global Title Translation. %prep -%setup -q -%patch -P 1 -p1 +%autosetup -p1 %build echo "%version" >.tarball-version @@ -187,8 +187,8 @@ fi %postun -n libosmo-mtp-%libversion -p /sbin/ldconfig %post -n libosmo-sccp-%libversion -p /sbin/ldconfig %postun -n libosmo-sccp-%libversion -p /sbin/ldconfig -%post -n libosmo-sigtran3 -p /sbin/ldconfig -%postun -n libosmo-sigtran3 -p /sbin/ldconfig +%post -n libosmo-sigtran5 -p /sbin/ldconfig +%postun -n libosmo-sigtran5 -p /sbin/ldconfig %post -n libosmo-xua-%libversion -p /sbin/ldconfig %postun -n libosmo-xua-%libversion -p /sbin/ldconfig @@ -228,9 +228,9 @@ fi %_libdir/libosmo-sccp.so %_libdir/pkgconfig/libosmo-sccp.pc -%files -n libosmo-sigtran3 +%files -n libosmo-sigtran5 %defattr(-,root,root) -%_libdir/libosmo-sigtran.so.3* +%_libdir/libosmo-sigtran.so.5* %files -n libosmo-sigtran-devel %defattr(-,root,root) From 5ef7300407c72a94570cc6b1dd6d3e2c6a4740b290bab1e71abb39fbd94b3db2 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 7 Jan 2020 11:35:37 +0000 Subject: [PATCH 2/3] join 0001 and 0002 back again OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmo-sccp?expand=0&rev=36 --- 0001-build-fixes.patch | 69 +++++++++++++++++++++++++----------------- 0002-build-fixes.patch | 17 ----------- libosmo-sccp.changes | 4 --- libosmo-sccp.spec | 4 +-- 4 files changed, 44 insertions(+), 50 deletions(-) delete mode 100644 0002-build-fixes.patch diff --git a/0001-build-fixes.patch b/0001-build-fixes.patch index 5cb7444..29e6ab1 100644 --- a/0001-build-fixes.patch +++ b/0001-build-fixes.patch @@ -7,21 +7,21 @@ Find and use system talloc, do not rely on OSMO's bundled copy. Rename libmtp to libosmo-mtp, as libmtp is already used by the Multimedia Transfer Protocol library. --- - configure.ac | 2 +- + configure.ac | 1 + libosmo-mtp.pc.in | 2 +- libosmo-sccp.pc.in | 2 +- src/Makefile.am | 20 +++++++++++++++----- tests/m2ua/Makefile.am | 2 +- - tests/sccp/Makefile.am | 4 ++-- + tests/sccp/Makefile.am | 3 ++- tests/ss7/Makefile.am | 2 -- tests/xua/Makefile.am | 6 ++---- - 8 files changed, 23 insertions(+), 17 deletions(-) + 8 files changed, 23 insertions(+), 15 deletions(-) -Index: libosmo-sccp-0.8.1/configure.ac +Index: libosmo-sccp-1.2.0/configure.ac =================================================================== ---- libosmo-sccp-0.8.1.orig/configure.ac -+++ libosmo-sccp-0.8.1/configure.ac -@@ -30,6 +29,7 @@ if test "x$PKG_CONFIG_INSTALLED" = "xno" +--- libosmo-sccp-1.2.0.orig/configure.ac ++++ libosmo-sccp-1.2.0/configure.ac +@@ -29,6 +29,7 @@ if test "x$PKG_CONFIG_INSTALLED" = "xno" fi PKG_PROG_PKG_CONFIG([0.20]) @@ -29,12 +29,10 @@ Index: libosmo-sccp-0.8.1/configure.ac PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 1.3.0) PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 1.3.0) PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 1.3.0) - PKG_CHECK_MODULES(LIBOSMONETIF, libosmo-netif >= 0.6.0) - -Index: libosmo-sccp-0.8.1/libosmo-mtp.pc.in +Index: libosmo-sccp-1.2.0/libosmo-mtp.pc.in =================================================================== ---- libosmo-sccp-0.8.1.orig/libosmo-mtp.pc.in -+++ libosmo-sccp-0.8.1/libosmo-mtp.pc.in +--- libosmo-sccp-1.2.0.orig/libosmo-mtp.pc.in ++++ libosmo-sccp-1.2.0/libosmo-mtp.pc.in @@ -6,5 +6,5 @@ includedir=@includedir@ Name: Osmo MTP Lib Description: Osmo MTP Lib @@ -42,10 +40,10 @@ Index: libosmo-sccp-0.8.1/libosmo-mtp.pc.in -Libs: -L${libdir} -lmtp +Libs: -L${libdir} -losmo-mtp Cflags: -I${includedir}/ -Index: libosmo-sccp-0.8.1/libosmo-sccp.pc.in +Index: libosmo-sccp-1.2.0/libosmo-sccp.pc.in =================================================================== ---- libosmo-sccp-0.8.1.orig/libosmo-sccp.pc.in -+++ libosmo-sccp-0.8.1/libosmo-sccp.pc.in +--- libosmo-sccp-1.2.0.orig/libosmo-sccp.pc.in ++++ libosmo-sccp-1.2.0/libosmo-sccp.pc.in @@ -6,5 +6,5 @@ includedir=@includedir@ Name: OpenBSC SCCP Lib Description: OpenBSC SCCP Lib @@ -53,10 +51,10 @@ Index: libosmo-sccp-0.8.1/libosmo-sccp.pc.in -Libs: -L${libdir} -lsccp +Libs: -L${libdir} -losmo-sccp Cflags: -I${includedir}/ -Index: libosmo-sccp-0.8.1/src/Makefile.am +Index: libosmo-sccp-1.2.0/src/Makefile.am =================================================================== ---- libosmo-sccp-0.8.1.orig/src/Makefile.am -+++ libosmo-sccp-0.8.1/src/Makefile.am +--- libosmo-sccp-1.2.0.orig/src/Makefile.am ++++ libosmo-sccp-1.2.0/src/Makefile.am @@ -7,15 +7,21 @@ noinst_HEADERS = sccp_internal.h xua_asp # Legacy static libs @@ -92,20 +90,37 @@ Index: libosmo-sccp-0.8.1/src/Makefile.am +noinst_LTLIBRARIES = libosmo-sigtran-internal.la +libosmo_sigtran_internal_la_SOURCES = $(libosmo_sigtran_la_SOURCES) +libosmo_sigtran_internal_la_LIBADD = $(libosmo_sigtran_la_LIBADD) -Index: libosmo-sccp-0.8.1/tests/m2ua/Makefile.am +Index: libosmo-sccp-1.2.0/tests/m2ua/Makefile.am =================================================================== ---- libosmo-sccp-0.8.1.orig/tests/m2ua/Makefile.am -+++ libosmo-sccp-0.8.1/tests/m2ua/Makefile.am +--- libosmo-sccp-1.2.0.orig/tests/m2ua/Makefile.am ++++ libosmo-sccp-1.2.0/tests/m2ua/Makefile.am @@ -5,4 +5,4 @@ EXTRA_DIST = m2ua_test.ok noinst_PROGRAMS = m2ua_test m2ua_test_SOURCES = m2ua_test.c -m2ua_test_LDADD = $(top_builddir)/src/libxua.a $(LIBOSMOCORE_LIBS) +m2ua_test_LDADD = $(top_builddir)/src/libosmo-xua.la $(LIBOSMOCORE_LIBS) ${TALLOC_LIBS} -Index: libosmo-sccp-0.8.1/tests/ss7/Makefile.am +Index: libosmo-sccp-1.2.0/tests/sccp/Makefile.am =================================================================== ---- libosmo-sccp-0.8.1.orig/tests/ss7/Makefile.am -+++ libosmo-sccp-0.8.1/tests/ss7/Makefile.am +--- libosmo-sccp-1.2.0.orig/tests/sccp/Makefile.am ++++ libosmo-sccp-1.2.0/tests/sccp/Makefile.am +@@ -1,4 +1,4 @@ +-AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include ++AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include ${TALLOC_CFLAGS} + AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) + + EXTRA_DIST = sccp_test.ok +@@ -9,5 +9,6 @@ sccp_test_SOURCES = sccp_test.c + sccp_test_LDADD = \ + $(LIBOSMOCORE_LIBS) \ + $(top_builddir)/src/sccp.o \ ++ ${TALLOC_LIBS} \ + $(NULL) + +Index: libosmo-sccp-1.2.0/tests/ss7/Makefile.am +=================================================================== +--- libosmo-sccp-1.2.0.orig/tests/ss7/Makefile.am ++++ libosmo-sccp-1.2.0/tests/ss7/Makefile.am @@ -1,7 +1,5 @@ AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -Wall AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) @@ -114,10 +129,10 @@ Index: libosmo-sccp-0.8.1/tests/ss7/Makefile.am LDADD = $(top_builddir)/src/libosmo-sigtran.la \ $(LIBOSMOCORE_LIBS) $(LIBOSMOVTY_LIBS) $(LIBOSMONETIF_LIBS) $(LIBSCTP_LIBS) -Index: libosmo-sccp-0.8.1/tests/xua/Makefile.am +Index: libosmo-sccp-1.2.0/tests/xua/Makefile.am =================================================================== ---- libosmo-sccp-0.8.1.orig/tests/xua/Makefile.am -+++ libosmo-sccp-0.8.1/tests/xua/Makefile.am +--- libosmo-sccp-1.2.0.orig/tests/xua/Makefile.am ++++ libosmo-sccp-1.2.0/tests/xua/Makefile.am @@ -1,8 +1,6 @@ -AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -Wall +AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(LIBOSMONETIF_CFLAGS) $(LIBSCTP_CFLAGS) diff --git a/0002-build-fixes.patch b/0002-build-fixes.patch deleted file mode 100644 index 71312aa..0000000 --- a/0002-build-fixes.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/tests/sccp/Makefile.am b/tests/sccp/Makefile.am -index 85dbe64..ad7ddf3 100644 ---- a/tests/sccp/Makefile.am -+++ b/tests/sccp/Makefile.am -@@ -1,4 +1,4 @@ --AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -+AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include ${TALLOC_CFLAGS} - AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) - - EXTRA_DIST = sccp_test.ok -@@ -9,5 +9,6 @@ sccp_test_SOURCES = sccp_test.c - sccp_test_LDADD = \ - $(LIBOSMOCORE_LIBS) \ - $(top_builddir)/src/sccp.o \ -+ ${TALLOC_LIBS} \ - $(NULL) - diff --git a/libosmo-sccp.changes b/libosmo-sccp.changes index b72ebd0..c64e295 100644 --- a/libosmo-sccp.changes +++ b/libosmo-sccp.changes @@ -10,10 +10,6 @@ Sun Jan 5 10:19:06 UTC 2020 - Martin Hauke selection * ipa: Fix crash when parsing of received IPA SCCP message fails * ipa: Don't send non-SCCP data over IPA/SCCPlite -- Update patch - * 0001-build-fixes.patch -- Add patch - * 0002-build-fixes.patch ------------------------------------------------------------------- Thu Aug 15 04:44:32 UTC 2019 - Jan Engelhardt diff --git a/libosmo-sccp.spec b/libosmo-sccp.spec index 43da5f5..bd0be42 100644 --- a/libosmo-sccp.spec +++ b/libosmo-sccp.spec @@ -1,7 +1,7 @@ # # spec file for package libosmo-sccp # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,7 +23,7 @@ Release: 0 Summary: Osmocom library for the A-bis interface between BTS and BSC License: AGPL-3.0-or-later AND GPL-2.0-or-later Group: Hardware/Mobile -Url: https://projects.osmocom.org/projects/libosmo-sccp +URL: https://projects.osmocom.org/projects/libosmo-sccp #Git-Clone: git://git.osmocom.org/libosmo-sccp Source: %name-%version.tar.xz From 32cae2f874487396295d604c4fc730fb659421da1180d30f3dc434d116db80b1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 7 Jan 2020 11:42:59 +0000 Subject: [PATCH 3/3] - Update 0001-build-fixes.patch to build sccp_test with SOURCES, not LDADD. OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmo-sccp?expand=0&rev=37 --- 0001-build-fixes.patch | 19 +++++++++++++------ libosmo-sccp.changes | 6 ++++++ libosmo-sccp.spec | 1 - 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/0001-build-fixes.patch b/0001-build-fixes.patch index 29e6ab1..eb80149 100644 --- a/0001-build-fixes.patch +++ b/0001-build-fixes.patch @@ -4,6 +4,9 @@ Date: Mon, 21 Jul 2014 10:13:00 +0200 Subject: [PATCH] build: fixes Find and use system talloc, do not rely on OSMO's bundled copy. + +Avoid adding .o files into _LDADD, this is nonportable. + Rename libmtp to libosmo-mtp, as libmtp is already used by the Multimedia Transfer Protocol library. --- @@ -12,10 +15,10 @@ Multimedia Transfer Protocol library. libosmo-sccp.pc.in | 2 +- src/Makefile.am | 20 +++++++++++++++----- tests/m2ua/Makefile.am | 2 +- - tests/sccp/Makefile.am | 3 ++- + tests/sccp/Makefile.am | 6 +++--- tests/ss7/Makefile.am | 2 -- tests/xua/Makefile.am | 6 ++---- - 8 files changed, 23 insertions(+), 15 deletions(-) + 8 files changed, 24 insertions(+), 17 deletions(-) Index: libosmo-sccp-1.2.0/configure.ac =================================================================== @@ -104,17 +107,21 @@ Index: libosmo-sccp-1.2.0/tests/sccp/Makefile.am =================================================================== --- libosmo-sccp-1.2.0.orig/tests/sccp/Makefile.am +++ libosmo-sccp-1.2.0/tests/sccp/Makefile.am -@@ -1,4 +1,4 @@ +@@ -1,13 +1,13 @@ -AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include +AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include ${TALLOC_CFLAGS} AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) EXTRA_DIST = sccp_test.ok -@@ -9,5 +9,6 @@ sccp_test_SOURCES = sccp_test.c + + noinst_PROGRAMS = sccp_test + +-sccp_test_SOURCES = sccp_test.c ++sccp_test_SOURCES = sccp_test.c ${top_srcdir}/src/sccp.c sccp_test_LDADD = \ $(LIBOSMOCORE_LIBS) \ - $(top_builddir)/src/sccp.o \ -+ ${TALLOC_LIBS} \ +- $(top_builddir)/src/sccp.o \ ++ ${TALLOC_LIBS} \ $(NULL) Index: libosmo-sccp-1.2.0/tests/ss7/Makefile.am diff --git a/libosmo-sccp.changes b/libosmo-sccp.changes index c64e295..89026fb 100644 --- a/libosmo-sccp.changes +++ b/libosmo-sccp.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 7 11:42:32 UTC 2020 - Jan Engelhardt + +- Update 0001-build-fixes.patch to build sccp_test with SOURCES, + not LDADD. + ------------------------------------------------------------------- Sun Jan 5 10:19:06 UTC 2020 - Martin Hauke diff --git a/libosmo-sccp.spec b/libosmo-sccp.spec index bd0be42..51295ee 100644 --- a/libosmo-sccp.spec +++ b/libosmo-sccp.spec @@ -28,7 +28,6 @@ URL: https://projects.osmocom.org/projects/libosmo-sccp #Git-Clone: git://git.osmocom.org/libosmo-sccp Source: %name-%version.tar.xz Patch1: 0001-build-fixes.patch -Patch2: 0002-build-fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: automake >= 1.6 BuildRequires: libtool >= 2