Skip to contentSkip to conversation

package/cups-filters: fix ln -r workaround for older patch versions

Buildroot Peter Korsgaard 2 participants 3 messages Oct 4, 2019 – Oct 5, 2019

lore
Share & tools
lore
#0 lore raw

Fixes:
http://autobuild.buildroot.net/results/d06/d06f908cbe80340312bdfe1b75cb577b68cd46d8/

0001-install-support-old-ln-versions-without-the-r-option.patch adds a ln-srf script for older distributions to emulate 'ln -r', but GNU patch < 2.7 does not handle the git patch permission extensions - So ensure it is executable.

https://savannah.gnu.org/forum/forum.php?forum_id=7361

---
 package/cups-filters/cups-filters.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)
package/cups-filters/cups-filters.mk +10 -0
index 292c8e9be9..e5d7318961 100644
@@ -22,6 +22,16 @@ CUPS_FILTERS_CONF_OPTS = --disable-imagefilters \
 	--with-pdftops=pdftops \
 	--with-jpeg
 
+# 0001-install-support-old-ln-versions-without-the-r-option.patch adds
+# a ln-srf script for older distributions, but GNU patch < 2.7 does
+# not handle the git patch permission extensions - So ensure it is
+# executable
+define CUPS_FILTERS_MAKE_LN_SRF_EXECUTABLE
+	chmod +x $(@D)/ln-srf
+endef
+
+CUPS_FILTERS_POST_PATCH_HOOKS += CUPS_FILTERS_MAKE_LN_SRF_EXECUTABLE
+
 # After 0002-filter-texttotext.c-link-with-libiconv-if-needed.patch autoreconf
 # needs config.rpath and ABOUT-NLS, which are not in v1.25.4 yet. Fake them.
 define CUPS_FILTERS_ADD_MISSING_FILE
Signature · 1 line
2.20.1
Reviewed-by
#1 lore raw
Quoted 40 lines · Peter Korsgaard

Fixes:
http://autobuild.buildroot.net/results/d06/d06f908cbe80340312bdfe1b75cb577b68cd46d8/

0001-install-support-old-ln-versions-without-the-r-option.patch adds a ln-srf script for older distributions to emulate 'ln -r', but GNU patch < 2.7 does not handle the git patch permission extensions - So ensure it is executable.

https://savannah.gnu.org/forum/forum.php?forum_id=7361

---
 package/cups-filters/cups-filters.mk | 10 ++++++++++
 1 file changed, 10 insertions(+)
package/cups-filters/cups-filters.mk +10 -1
index 292c8e9be9..e5d7318961 100644
@@ -22,6 +22,16 @@ CUPS_FILTERS_CONF_OPTS = --disable-imagefilters \
        --with-pdftops=pdftops \
        --with-jpeg
 
+# 0001-install-support-old-ln-versions-without-the-r-option.patch adds
+# a ln-srf script for older distributions, but GNU patch < 2.7 does
+# not handle the git patch permission extensions - So ensure it is
+# executable
+define CUPS_FILTERS_MAKE_LN_SRF_EXECUTABLE
+       chmod +x $(@D)/ln-srf
+endef
+
+CUPS_FILTERS_POST_PATCH_HOOKS += CUPS_FILTERS_MAKE_LN_SRF_EXECUTABLE
+
 # After 0002-filter-texttotext.c-link-with-libiconv-if-needed.patch autoreconf
 # needs config.rpath and ABOUT-NLS, which are not in v1.25.4 yet. Fake them.
 define CUPS_FILTERS_ADD_MISSING_FILE
--

2.20.1

Quoted 4 lines

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#2 lore raw
In reply to Peter Korsgaard
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

Fixes:
http://autobuild.buildroot.net/results/d06/d06f908cbe80340312bdfe1b75cb577b68cd46d8/

Quoted 8 lines

0001-install-support-old-ln-versions-without-the-r-option.patch adds a ln-srf script for older distributions to emulate 'ln -r', but GNU patch < 2.7 does not handle the git patch permission extensions - So ensure it is executable.

https://savannah.gnu.org/forum/forum.php?forum_id=7361

Committed to 2019.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard