summaryrefslogtreecommitdiff
path: root/package/setserial
diff options
context:
space:
mode:
Diffstat (limited to 'package/setserial')
-rw-r--r--package/setserial/setserial-2.17-build-system-fix.patch28
-rw-r--r--package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch (renamed from package/setserial/setserial-tiocghayesesp-build-fix.patch)0
-rw-r--r--package/setserial/setserial.mk16
3 files changed, 37 insertions, 7 deletions
diff --git a/package/setserial/setserial-2.17-build-system-fix.patch b/package/setserial/setserial-2.17-build-system-fix.patch
new file mode 100644
index 000000000..eec7993d1
--- /dev/null
+++ b/package/setserial/setserial-2.17-build-system-fix.patch
@@ -0,0 +1,28 @@
+Install the setserial program in /usr/bin instead of /bin, and make
+sure that the directories (especially the manpages directory) are
+created before installing files to them. This is similar to what
+automake does.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ Makefile.in | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+Index: setserial-2.17/Makefile.in
+===================================================================
+--- setserial-2.17.orig/Makefile.in
++++ setserial-2.17/Makefile.in
+@@ -26,9 +26,10 @@ setserial.cat: setserial.8
+ nroff -man setserial.8 > setserial.cat
+
+ install: setserial setserial.8
+- $(INSTALL_PROGRAM) setserial $(DESTDIR)/bin
+- $(STRIP) $(DESTDIR)/bin/setserial
+- $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/man/man8
++ mkdir -p $(DESTDIR)/usr/bin
++ $(INSTALL_PROGRAM) setserial $(DESTDIR)/usr/bin
++ mkdir -p $(DESTDIR)/usr/share/man/man8
++ $(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/share/man/man8
+
+ clean:
+ $(RM) setserial setserial.o setserial.cat *~
diff --git a/package/setserial/setserial-tiocghayesesp-build-fix.patch b/package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch
index 176a0c9e1..176a0c9e1 100644
--- a/package/setserial/setserial-tiocghayesesp-build-fix.patch
+++ b/package/setserial/setserial-2.17-tiocghayesesp-build-fix.patch
diff --git a/package/setserial/setserial.mk b/package/setserial/setserial.mk
index 1c222a209..0b673469c 100644
--- a/package/setserial/setserial.mk
+++ b/package/setserial/setserial.mk
@@ -3,16 +3,18 @@
# Setserial
#
#############################################################
-SETSERIAL_VERSION:=2.17
-SETSERIAL_PATCH_VERSION:=.orig
-SETSERIAL_PATCH_FILE:=setserial_2.17-45.diff.gz
-SETSERIAL_SOURCE:=setserial_$(SETSERIAL_VERSION)$(SETSERIAL_PATCH_VERSION).tar.gz
-SETSERIAL_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/s/setserial/
-SETSERIAL_INSTALL_TARGET_OPT=DESTDIR=$(TARGET_DIR) install
+SETSERIAL_VERSION = 2.17
+SETSERIAL_PATCH = setserial_2.17-45.2.diff.gz
+SETSERIAL_SOURCE = setserial_$(SETSERIAL_VERSION).orig.tar.gz
+SETSERIAL_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/s/setserial/
+SETSERIAL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
define SETSERIAL_APPLY_DEBIAN_PATCHES
+ # Touching gorhack.h is needed for the Debian patch 18 to work
if [ -d $(@D)/debian/patches ]; then \
- toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
+ touch $(@D)/gorhack.h; \
+ rm $(@D)/debian/patches/01_makefile.dpatch; \
+ toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches *.dpatch; \
fi
endef