pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/mupdf mupdf: Avoid bash dependency



details:   https://anonhg.NetBSD.org/pkgsrc/rev/deedd141377b
branches:  trunk
changeset: 382254:deedd141377b
user:      leot <leot%pkgsrc.org@localhost>
date:      Sun Jul 24 10:13:38 2022 +0000

description:
mupdf: Avoid bash dependency

Should hopefully fix the build.

Problem reported by <wiz>, thanks!

diffstat:

 print/mupdf/distinfo                         |   5 +++--
 print/mupdf/patches/patch-ac                 |  17 ++++++++++++++---
 print/mupdf/patches/patch-scripts_hexdump.sh |  18 ++++++++++++++++++
 3 files changed, 35 insertions(+), 5 deletions(-)

diffs (79 lines):

diff -r 9cd66648cfdd -r deedd141377b print/mupdf/distinfo
--- a/print/mupdf/distinfo      Sun Jul 24 08:58:32 2022 +0000
+++ b/print/mupdf/distinfo      Sun Jul 24 10:13:38 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.58 2022/07/23 15:09:43 leot Exp $
+$NetBSD: distinfo,v 1.59 2022/07/24 10:13:38 leot Exp $
 
 BLAKE2s (mupdf-1.20.0-source.tar.gz) = 64fd8e785c6795a23894c6905b9590f1188d8956752c1b5ced032bb9911a28ed
 SHA512 (mupdf-1.20.0-source.tar.gz) = 6837299c589ece9cc443b027433fa3eee545f5155aeb6359b7a43da239d2e99195e9ae3950ddec6cb6ebae77bc877573c6f89a90754c58723d7e87d9739ed1f4
@@ -6,9 +6,10 @@
 SHA1 (patch-Makelists) = 474ad296aa550272b9d734e2b001af1371ae06ad
 SHA1 (patch-Makethird) = 415a3fe6e0e58a948565b9098c8325e85d19d561
 SHA1 (patch-ab) = acbb4e8a34ccad701323a521600f361175668b9e
-SHA1 (patch-ac) = 81d3edd4732e4cf8a0dc8d37b219ac2e3998277b
+SHA1 (patch-ac) = d3d70857bdffa9e4264444c2047f1ad909f141ce
 SHA1 (patch-ae) = c6b113818b32cb4470e8549c00a16e0b2f364ede
 SHA1 (patch-platform_gl_gl-app.h) = 48f48f13c9a6376231de25aa63411560ea9d91ca
 SHA1 (patch-platform_gl_gl-main.c) = c760d16f0ac4a9b09800869d22b7324724bc007b
+SHA1 (patch-scripts_hexdump.sh) = 1f1299e24ffa5e6bf040f73b75dc49dd6f5272c4
 SHA1 (patch-source_fitz_load-jpx.c) = 8d7f58168c8429a82127b821387298341a1fcbfb
 SHA1 (patch-thirdparty_mujs_Makefile) = dda76ff0d35abca49a828cd85e29a28b700518a1
diff -r 9cd66648cfdd -r deedd141377b print/mupdf/patches/patch-ac
--- a/print/mupdf/patches/patch-ac      Sun Jul 24 08:58:32 2022 +0000
+++ b/print/mupdf/patches/patch-ac      Sun Jul 24 10:13:38 2022 +0000
@@ -1,9 +1,10 @@
-$NetBSD: patch-ac,v 1.28 2022/07/23 15:09:43 leot Exp $
+$NetBSD: patch-ac,v 1.29 2022/07/24 10:13:38 leot Exp $
 
 - libtool support 
 - Install target cleanup
 - Also install muthreads and mupkcs7 libraries (needed by various tools)
 - Do not force `-O0' flag when building
+- Use sh instead of bash
 - Get rid of unused VERSION variable and `version:' target (otherwise `git' can
   be invoked during the building phase)
 - Install mupdf with curl support as `mupdf-curl'
@@ -147,8 +148,18 @@
  
  # --- Generated embedded font files ---
  
-@@ -187,13 +187,13 @@ generated/%.ttf.c : %.ttf $(HEXDUMP_SH) 
- generated/%.ttc.c : %.ttc $(HEXDUMP_SH) ; $(QUIET_GEN) $(MKTGTDIR) ; bash $(HEXDUMP_SH) > $@ $<
+@@ -181,19 +181,19 @@ FONT_BIN += $(sort $(wildcard resources/
+ 
+ FONT_GEN := $(FONT_BIN:%=generated/%.c)
+ 
+-generated/%.cff.c : %.cff $(HEXDUMP_SH) ; $(QUIET_GEN) $(MKTGTDIR) ; bash $(HEXDUMP_SH) > $@ $<
+-generated/%.otf.c : %.otf $(HEXDUMP_SH) ; $(QUIET_GEN) $(MKTGTDIR) ; bash $(HEXDUMP_SH) > $@ $<
+-generated/%.ttf.c : %.ttf $(HEXDUMP_SH) ; $(QUIET_GEN) $(MKTGTDIR) ; bash $(HEXDUMP_SH) > $@ $<
+-generated/%.ttc.c : %.ttc $(HEXDUMP_SH) ; $(QUIET_GEN) $(MKTGTDIR) ; bash $(HEXDUMP_SH) > $@ $<
++generated/%.cff.c : %.cff $(HEXDUMP_SH) ; $(QUIET_GEN) $(MKTGTDIR) ; sh $(HEXDUMP_SH) > $@ $<
++generated/%.otf.c : %.otf $(HEXDUMP_SH) ; $(QUIET_GEN) $(MKTGTDIR) ; sh $(HEXDUMP_SH) > $@ $<
++generated/%.ttf.c : %.ttf $(HEXDUMP_SH) ; $(QUIET_GEN) $(MKTGTDIR) ; sh $(HEXDUMP_SH) > $@ $<
++generated/%.ttc.c : %.ttc $(HEXDUMP_SH) ; $(QUIET_GEN) $(MKTGTDIR) ; sh $(HEXDUMP_SH) > $@ $<
  
  ifeq ($(HAVE_OBJCOPY),yes)
 -  MUPDF_OBJ += $(FONT_BIN:%=$(OUT)/%.o)
diff -r 9cd66648cfdd -r deedd141377b print/mupdf/patches/patch-scripts_hexdump.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/mupdf/patches/patch-scripts_hexdump.sh      Sun Jul 24 10:13:38 2022 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-scripts_hexdump.sh,v 1.1 2022/07/24 10:13:38 leot Exp $
+
+Avoid bash dependency, there is not any bash-ism in the script.
+
+--- scripts/hexdump.sh.orig    2022-06-14 12:19:22.000000000 +0000
++++ scripts/hexdump.sh
+@@ -1,9 +1,9 @@
+-#!/bin/bash
++#!/bin/sh
+ 
+ FILE=$1
+ if [ ! -f "$FILE" ]
+ then
+-      echo usage: bash scripts/hexdump.sh input.ttf
++      echo usage: sh scripts/hexdump.sh input.ttf
+       exit 1
+ fi
+ 



Home | Main Index | Thread Index | Old Index