Re: [lfs-patches] r4000 - trunk/mupdf

2019-09-20 Thread Ken Moffat
On Fri, Sep 20, 2019 at 07:54:13PM -0500, Bruce Dubbs wrote:
> On 9/20/19 7:43 PM, Ken Moffat wrote:
> > On Fri, Sep 20, 2019 at 11:15:48PM -, bdu...@higgs.linuxfromscratch.org 
> > wrote:
> > > Author: bdubbs
> > > Date: Fri Sep 20 16:15:47 2019
> > > New Revision: 4000
> > > 
> > > Log:
> > > Add updated mopdf patch
> > > 
> > > Added:
> > > trunk/mupdf/mupdf-1.16.1-shared_libs-1.patch
> > > 
> > 
> > I *really* dislike having two versions of the same patch in the
> > wild.  This ought to be -2.
> 
> You are right of course.  I should have done that.  Do you think I need to
> fix it or can we just chalk it up to experience and not do it again?
> 
> The original was a symlink to 1.16.0 and is wrong also.
> 
>   -- Bruce
> 

No problem with creating a better version, it's just the semantics
of versioning that I think require a new version.

The problem with keeping the patchversion constant is that those of
us who have a local copy will not notice that it is out of date.

I see that I'm the one who tagged it for 9.0, so perhaps there is
something different in my builds - but I would have though someone
else might have hit a failure by now if the combination generally
does not link.

ĸen
-- 
thread 'main' panicked at 'giraffe',
/tmp/rustc-1.32.0-src/src/test/run-fail/while-panic.rs:17:13
-- 
http://lists.linuxfromscratch.org/listinfo/patches
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-patches] r4000 - trunk/mupdf

2019-09-20 Thread Bruce Dubbs

On 9/20/19 7:43 PM, Ken Moffat wrote:

On Fri, Sep 20, 2019 at 11:15:48PM -, bdu...@higgs.linuxfromscratch.org 
wrote:

Author: bdubbs
Date: Fri Sep 20 16:15:47 2019
New Revision: 4000

Log:
Add updated mopdf patch

Added:
trunk/mupdf/mupdf-1.16.1-shared_libs-1.patch



I *really* dislike having two versions of the same patch in the
wild.  This ought to be -2.


You are right of course.  I should have done that.  Do you think I need 
to fix it or can we just chalk it up to experience and not do it again?


The original was a symlink to 1.16.0 and is wrong also.

  -- Bruce


--
http://lists.linuxfromscratch.org/listinfo/patches
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


[lfs-patches] r4000 - trunk/mupdf

2019-09-20 Thread bdubbs
Author: bdubbs
Date: Fri Sep 20 16:15:47 2019
New Revision: 4000

Log:
Add updated mopdf patch

Added:
   trunk/mupdf/mupdf-1.16.1-shared_libs-1.patch

Added: trunk/mupdf/mupdf-1.16.1-shared_libs-1.patch
==
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ trunk/mupdf/mupdf-1.16.1-shared_libs-1.patchFri Sep 20 16:15:47 
2019(r4000)
@@ -0,0 +1,65 @@
+Submitted By: Bruce Dubbs  
+Date: 2018-04-21
+Initial Package Version: 1.13
+Upstream Status: Not submitted
+Origin: Self
+Description: Change static libraries to shared libraries
+
+Rediffed for Version 1.14 2018-10-07
+Rediffed for Version 1.16 2018-10-07
+
+diff -Naur mupdf-1.14.0-source.orig/Makefile mupdf-1.14.0-source/Makefile
+--- mupdf-1.14.0-source.orig/Makefile  2018-10-04 04:19:28.0 -0500
 mupdf-1.14.0-source/Makefile   2018-10-07 15:13:52.617926593 -0500
+@@ -20,7 +20,7 @@
+ # Do not specify CFLAGS or LIBS on the make invocation line - specify
+ # XCFLAGS or XLIBS instead. Make ignores any lines in the makefile that
+ # set a variable that was set on the command line.
+-CFLAGS += $(XCFLAGS) -Iinclude
++CFLAGS += $(XCFLAGS) -Iinclude -fPIC
+ LIBS += $(XLIBS) -lm
+ 
+ ifneq ($(threading),no)
+@@ -190,17 +190,21 @@
+ 
+ # --- Library ---
+ 
+-MUPDF_LIB = $(OUT)/libmupdf.a
+-THIRD_LIB = $(OUT)/libmupdf-third.a
+-THREAD_LIB = $(OUT)/libmupdf-threads.a
+-PKCS7_LIB = $(OUT)/libmupdf-pkcs7.a
++MUPDF_LIB = $(OUT)/libmupdf.so
++THIRD_LIB = $(OUT)/libmupdf-third.so
++THREAD_LIB = $(OUT)/libmupdf-threads.so
++PKCS7_LIB = $(OUT)/libmupdf-pkcs7.so
+ 
+-$(MUPDF_LIB) : $(MUPDF_OBJ)
++$(MUPDF_LIB) : $(MUPDF_OBJ) $(THIRD_LIB) $(THREAD_LIB)
++  $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdf.so -Wl,--no-undefined 
$(THIRD_LIBS)
+ $(THIRD_LIB) : $(THIRD_OBJ)
++  $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdf-third.so -Wl,--no-undefined
+ $(THREAD_LIB) : $(THREAD_OBJ)
++  $(LINK_CMD) -shared -Wl,-soname -Wl,libmupdf-threads.so 
-Wl,--no-undefined -lpthread
+ $(PKCS7_LIB) : $(PKCS7_OBJ)
++  $(LINK_CMD) -shared -Wl,-soname -Wl,libmupfs-pkcs7.so
+ 
+-INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB)
++INSTALL_LIBS := $(MUPDF_LIB) $(THIRD_LIB) $(THREAD_LIB) $(PKCS7_LIB)
+ 
+ # --- Main tools and viewers ---
+ 
+--- a/Makethird.orig  2018-10-08 00:01:36.527172802 -0500
 b/Makethird   2018-10-08 00:02:27.443126830 -0500
+@@ -3,9 +3,9 @@
+ ifeq ($(USE_SYSTEM_LIBS),yes)
+   USE_SYSTEM_FREETYPE := yes
+   USE_SYSTEM_HARFBUZZ := yes
+-  USE_SYSTEM_JBIG2DEC := yes
++  USE_SYSTEM_JBIG2DEC := no
+   USE_SYSTEM_JPEGXR := no # not available
+-  USE_SYSTEM_LCMS2 := no # lcms2mt is strongly preferred
++  USE_SYSTEM_LCMS2 := yes # lcms2mt is strongly preferred
+   USE_SYSTEM_LIBJPEG := yes
+   USE_SYSTEM_MUJS := no # not available
+   USE_SYSTEM_OPENJPEG := yes
+
-- 
http://lists.linuxfromscratch.org/listinfo/patches
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page