summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/ncompress-fix-softlinks.patch
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2019-09-15 20:36:12 +0200
committerJan Nieuwenhuizen <janneke@gnu.org>2019-12-06 06:52:36 +0100
commit9720104c430b8c72a705f8c898a6922b9fc416fb (patch)
treee47f4faa23ab79c7ea74fa4418162c2d14b58ac8 /gnu/packages/patches/ncompress-fix-softlinks.patch
parentd4d7bf60e8a273839627bf400bb9683842f19de3 (diff)
downloadguix-patches-9720104c430b8c72a705f8c898a6922b9fc416fb.tar
guix-patches-9720104c430b8c72a705f8c898a6922b9fc416fb.tar.gz
gnu: Add ncompress.
* gnu/packages/compression.scm (ncompress): New variable. * gnu/packages/patches/compress-fix-softlinks.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/patches/ncompress-fix-softlinks.patch')
-rw-r--r--gnu/packages/patches/ncompress-fix-softlinks.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/patches/ncompress-fix-softlinks.patch b/gnu/packages/patches/ncompress-fix-softlinks.patch
new file mode 100644
index 0000000000..98752e8e64
--- /dev/null
+++ b/gnu/packages/patches/ncompress-fix-softlinks.patch
@@ -0,0 +1,24 @@
+Patch taken from Debian sid.
+
+Description: Support uncompressing and compressing soft links.
+ Historically, ncompress for Debian has been built using a command line
+ directly in debian/rules. For 4.2.4.5-1, I simplified by swtching to the
+ upstream Makefile. However, that caused a regression - the Debian version of
+ ncompress has always successfully handled soft links, but this stopped
+ working. To revert to the original behavior, I need to remove -DLSTAT from
+ the build options, to be consistent with how the code was previously built.
+Author: Kenneth J. Pronovici <pronovic@debian.org>
+Bug-Debian: http://bugs.debian.org/918836
+Index: ncompress/GNUmakefile
+===================================================================
+--- ncompress.orig/GNUmakefile
++++ ncompress/GNUmakefile
+@@ -9,7 +9,7 @@ distclean: cleanup
+
+ Makefile: Makefile.def GNUmakefile
+ sed \
+- -e 's:options= :options= $$(CFLAGS) -DNOFUNCDEF -DUTIME_H -DLSTAT $$(LDFLAGS) :' \
++ -e 's:options= :options= $$(CFLAGS) -DNOFUNCDEF -DUTIME_H $$(LDFLAGS) :' \
+ Makefile.def > Makefile
+
+ check: