mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <r.hieber@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <r.hieber@pengutronix.de>,
	Roland Hieber <rohieb@rohieb.name>
Subject: [ptxdist] [PATCH] lrzsz: install into DESTDIR in all cases
Date: Mon, 12 Jun 2017 20:37:31 +0200	[thread overview]
Message-ID: <20170612183731.8794-1-r.hieber@pengutronix.de> (raw)

From: Roland Hieber <rohieb@rohieb.name>

Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
---
 ...akefile-with-DESTDIR-don-t-act-on-usr-bin.patch | 55 ++++++++++++++++++++++
 patches/lrzsz-0.12.20/series                       |  4 ++
 2 files changed, 59 insertions(+)
 create mode 100644 patches/lrzsz-0.12.20/0001-Makefile-with-DESTDIR-don-t-act-on-usr-bin.patch
 create mode 100644 patches/lrzsz-0.12.20/series

diff --git a/patches/lrzsz-0.12.20/0001-Makefile-with-DESTDIR-don-t-act-on-usr-bin.patch b/patches/lrzsz-0.12.20/0001-Makefile-with-DESTDIR-don-t-act-on-usr-bin.patch
new file mode 100644
index 0000000..8661d99
--- /dev/null
+++ b/patches/lrzsz-0.12.20/0001-Makefile-with-DESTDIR-don-t-act-on-usr-bin.patch
@@ -0,0 +1,55 @@
+From: Roland Hieber <r.hieber@pengutronix.de>
+Date: Mon, 12 Jun 2017 19:32:52 +0200
+Subject: [PATCH] Makefile: with DESTDIR, don't act on /usr/bin
+
+Makefile.in was manually updated because I could not dig up old enough
+autotools that would regenerate it without errors.
+
+Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
+---
+ src/Makefile.am | 6 +++---
+ src/Makefile.in | 6 +++---
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index dd0a56c6ad8b..287b09e39c36 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -18,13 +18,13 @@ install-exec-local:
+ 	rm -f $(DESTDIR)/$(bindir)/`echo lsb | sed -e '$(transform)'`
+ 	ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
+ 		$(DESTDIR)/$(bindir)/`echo lsb |sed -e '$(transform)'` 
+-	rm -f $(bindir)/`echo lsx | sed -e '$(transform)'`
++	rm -f $(DESTDIR)/$(bindir)/`echo lsx | sed -e '$(transform)'`
+ 	ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
+ 		$(DESTDIR)/$(bindir)/`echo lsx |sed -e '$(transform)'` 
+-	rm -f $(bindir)/`echo lrb | sed -e '$(transform)'`
++	rm -f $(DESTDIR)/$(bindir)/`echo lrb | sed -e '$(transform)'`
+ 	ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
+ 		$(DESTDIR)/$(bindir)/`echo lrb |sed -e '$(transform)'` 
+-	rm -f $(bindir)/`echo lrx | sed -e '$(transform)'`
++	rm -f $(DESTDIR)/$(bindir)/`echo lrx | sed -e '$(transform)'`
+ 	ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
+ 		$(DESTDIR)/$(bindir)/`echo lrx |sed -e '$(transform)'` 
+ #	rm -f $(bindir)/`echo lrzszbug | sed -e '$(transform)'`
+diff --git a/src/Makefile.in b/src/Makefile.in
+index d7846b6a2672..a410595d0730 100644
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -372,13 +372,13 @@ install-exec-local:
+ 	rm -f $(DESTDIR)/$(bindir)/`echo lsb | sed -e '$(transform)'`
+ 	ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
+ 		$(DESTDIR)/$(bindir)/`echo lsb |sed -e '$(transform)'` 
+-	rm -f $(bindir)/`echo lsx | sed -e '$(transform)'`
++	rm -f $(DESTDIR)/$(bindir)/`echo lsx | sed -e '$(transform)'`
+ 	ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
+ 		$(DESTDIR)/$(bindir)/`echo lsx |sed -e '$(transform)'` 
+-	rm -f $(bindir)/`echo lrb | sed -e '$(transform)'`
++	rm -f $(DESTDIR)/$(bindir)/`echo lrb | sed -e '$(transform)'`
+ 	ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
+ 		$(DESTDIR)/$(bindir)/`echo lrb |sed -e '$(transform)'` 
+-	rm -f $(bindir)/`echo lrx | sed -e '$(transform)'`
++	rm -f $(DESTDIR)/$(bindir)/`echo lrx | sed -e '$(transform)'`
+ 	ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
+ 		$(DESTDIR)/$(bindir)/`echo lrx |sed -e '$(transform)'` 
+ #	rm -f $(bindir)/`echo lrzszbug | sed -e '$(transform)'`
diff --git a/patches/lrzsz-0.12.20/series b/patches/lrzsz-0.12.20/series
new file mode 100644
index 0000000..a170ac6
--- /dev/null
+++ b/patches/lrzsz-0.12.20/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-Makefile-with-DESTDIR-don-t-act-on-usr-bin.patch
+# 78944bb019fb35e94820ca202a618489  - git-ptx-patches magic
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2017-06-12 18:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170612183731.8794-1-r.hieber@pengutronix.de \
    --to=r.hieber@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=rohieb@rohieb.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox