Control: tags 873895 + patch

Hi Aaron,

thanks for the report. I've prepared a patch that should hopefully fix the 
issue. Could you check if it works for you?

Thanks for your cooperation!

-- 
PGP-encrypted mails preferred
PGP Fingerprint: 74CD D9FE 5BCB FE0D 13EE 8EEA 61F3 4426 74DE 6624
diff -Nru libsml-0.1.1+git20170608/debian/changelog libsml-0.1.1+git20170608/debian/changelog
--- libsml-0.1.1+git20170608/debian/changelog	2017-06-08 20:17:01.000000000 +0200
+++ libsml-0.1.1+git20170608/debian/changelog	2017-09-15 21:29:19.000000000 +0200
@@ -1,3 +1,9 @@
+libsml (0.1.1+git20170608-2) unstable; urgency=medium
+
+  * Add patch to allow building on non-Linux. (Closes: #873895)
+
+ -- Andreas Moog <andreas.m...@warperbbs.de>  Fri, 15 Sep 2017 21:29:19 +0200
+
 libsml (0.1.1+git20170608-1) unstable; urgency=medium
 
   * Initial release. (Closes: #864314)
diff -Nru libsml-0.1.1+git20170608/debian/patches/0002-build-non-linux.patch libsml-0.1.1+git20170608/debian/patches/0002-build-non-linux.patch
--- libsml-0.1.1+git20170608/debian/patches/0002-build-non-linux.patch	1970-01-01 01:00:00.000000000 +0100
+++ libsml-0.1.1+git20170608/debian/patches/0002-build-non-linux.patch	2017-09-15 21:25:06.000000000 +0200
@@ -0,0 +1,59 @@
+Description: Change Makefile to allow building on non-Linux, while still 
+ special-casing Darwin.
+Author: Andreas Moog <andreas.m...@warperbbs.de>
+Origin: other
+Bug-Debian: https://bugs.debian.org/873895
+Last-Update: 2017-09-15
+
+Index: libsml/examples/Makefile
+===================================================================
+--- libsml.orig/examples/Makefile
++++ libsml/examples/Makefile
+@@ -3,7 +3,7 @@ CFLAGS += -I../sml/include/ -g -std=c99
+ OBJS = sml_server.o
+ LIBSML = ../sml/lib/libsml.a
+ 
+-ifeq ($(UNAME), Linux)
++ifneq ($(UNAME), Darwin)
+ LIBS = -luuid
+ endif
+ 
+Index: libsml/sml/Makefile
+===================================================================
+--- libsml.orig/sml/Makefile
++++ libsml/sml/Makefile
+@@ -4,7 +4,7 @@ CFLAGS += -I./include/ -fPIC -fno-stack-
+ # Available Flags:
+ # SML_NO_UUID_LIB - compile without uuid lib
+ 
+-ifeq ($(UNAME), Linux)
++ifneq ($(UNAME), Darwin)
+ LIBS=-luuid
+ endif
+ 
+@@ -48,10 +48,9 @@ OBJS = \
+ 	src/sml_get_profile_list_request.o \
+ 	src/sml_get_profile_list_response.o
+ 
+-ifeq ($(UNAME), Linux)
++ifneq ($(UNAME), Darwin)
+ libsml: $(DYN_LIB) $(ST_LIB) $(OBJ_LIB)
+-endif
+-ifeq ($(UNAME), Darwin)
++else
+ libsml: $(ST_LIB) $(OBJ_LIB)
+ endif
+ 
+Index: libsml/test/Makefile
+===================================================================
+--- libsml.orig/test/Makefile
++++ libsml/test/Makefile
+@@ -2,7 +2,7 @@ UNAME := $(shell uname)
+ CFLAGS += -I../sml/include/ -std=c99 -Wall -Wextra -pedantic
+ LIBSML = ../sml/lib/libsml.a
+ 
+-ifeq ($(UNAME), Linux)
++ifneq ($(UNAME), Darwin)
+ LIBS = -luuid
+ endif
+ 
diff -Nru libsml-0.1.1+git20170608/debian/patches/series libsml-0.1.1+git20170608/debian/patches/series
--- libsml-0.1.1+git20170608/debian/patches/series	2017-06-08 20:17:01.000000000 +0200
+++ libsml-0.1.1+git20170608/debian/patches/series	2017-09-15 21:25:19.000000000 +0200
@@ -1 +1,2 @@
 0001-honor-buildflags.patch
+0002-build-non-linux.patch

Attachment: signature.asc
Description: PGP signature

Reply via email to