Source: alsa-tools
Severity: normal
Tags: patch
User: [email protected]
Usertags: usrmerge environment
X-Debbugs-Cc: [email protected]

./usr/share/doc/ld10k1/examples/emu10k1MIDIEffects/Makefile.gz contains
several variables which get a different value depending on if the system
has a merged /usr, where /bin and /sbin are symlinks to /usr/bin and
/usr/sbin respectively:

  EGREP·​=·​/​bin/​grep·​-​E

vs.

  EGREP·​=·​/​usr/​bin/​grep·​-​E

The attached patch sets several of these values in the ./configure phase
to use the /bin/ directory, as this works both on merged /usr and
unmerged /usr systems.

Alternately, consider removing this mentioned Makefile entirely, as it
make not actually be functional without considerable changes anyways.


live well,
  vagrant

From 961d29c0b88c2ea82d70db526d8bdd33dadc2cb4 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <[email protected]>
Date: Sun, 12 Jan 2020 21:54:59 -0800
Subject: [PATCH 1/2] debian/rules: set GREP, MKDIR_P, SED and SHELL from
 ./configure, to prevent variations when built on a system with merged /usr.

---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index e6922fb..5288edf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,6 +50,10 @@ config-stamp:
 	    --datadir=\$${prefix}/share \
 	    --cache-file=$(CURDIR)/config.cache \
 	    $(shell dpkg-buildflags --export=configure) \
+	    GREP=/bin/grep \
+	    MKDIR_P="/bin/mkdir -p" \
+	    SED=/bin/sed \
+	    SHELL=/bin/bash \
 	  ); \
 	done
 
-- 
2.20.1

Attachment: signature.asc
Description: PGP signature

Reply via email to