summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2002-08-11 02:34:26 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2002-08-11 02:34:26 +0000
commit68163062dfbd89860df61aead358bb27cf698399 (patch)
tree4fb96a5c04c17a48eafb698d02e4761ed952a30c /print
parent6d4290082e272c81d15d27bfdaa38fe2f6baf0f6 (diff)
downloadpkgsrc-68163062dfbd89860df61aead358bb27cf698399.tar.gz
decrease optimization level on a handful of files to make this compile
using netbsd-1.5.3/alpha and the gcc-2.95.3 package. while here fix the test for endian-ness instead of relying on a small set of hard coded processor types.
Diffstat (limited to 'print')
-rw-r--r--print/lyx/distinfo7
-rw-r--r--print/lyx/patches/patch-ab81
-rw-r--r--print/lyx/patches/patch-ac41
-rw-r--r--print/lyx/patches/patch-ad26
-rw-r--r--print/lyx/patches/patch-ae68
5 files changed, 209 insertions, 14 deletions
diff --git a/print/lyx/distinfo b/print/lyx/distinfo
index 9f783f5473c..4b772de9759 100644
--- a/print/lyx/distinfo
+++ b/print/lyx/distinfo
@@ -1,6 +1,9 @@
-$NetBSD: distinfo,v 1.10 2002/05/29 07:36:31 martti Exp $
+$NetBSD: distinfo,v 1.11 2002/08/11 02:34:26 dmcmahill Exp $
SHA1 (lyx-1.2.0.tar.gz) = 56db850f316c18e00c4b10946216b6eb25107dab
Size (lyx-1.2.0.tar.gz) = 6418424 bytes
SHA1 (patch-aa) = c7837f717a9cddd0f2577dd5f942641f75220044
-SHA1 (patch-ab) = 02d7b4247aaffefb1fb6862d2b0877e4bfe4755a
+SHA1 (patch-ab) = 13fa4b1e787742c2f82a591e154b2d9b7afeeade
+SHA1 (patch-ac) = 48cb4ee6bfee21ee981db52d20e34c8e23316928
+SHA1 (patch-ad) = 5b744b75ac59a4f47fd3d02fe0a4b9ce551a39b7
+SHA1 (patch-ae) = f09bdf2b9e8da14e9b58b683ab40e89775344ec3
diff --git a/print/lyx/patches/patch-ab b/print/lyx/patches/patch-ab
index c8ad7e439d0..6522ee2d640 100644
--- a/print/lyx/patches/patch-ab
+++ b/print/lyx/patches/patch-ab
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.2 2002/05/29 07:36:31 martti Exp $
+$NetBSD: patch-ab,v 1.3 2002/08/11 02:34:26 dmcmahill Exp $
Avoid the following error with gcc-2.95.3 (NetBSD-1.5ZC-m68k):
@@ -17,18 +17,75 @@ Avoid the following error with gcc-2.95.3 (NetBSD-1.5ZC-m68k):
Line 3027 is a single close bracket, the end of a switch statement that starts
on line 675. Increasing the process stack size to 32768 didn't help.
---- src/Makefile.in.orig Fri May 3 22:53:28 2002
-+++ src/Makefile.in Mon May 6 08:30:00 2002
-@@ -652,6 +652,12 @@
- @rm -f lyx$(EXEEXT)
- $(CXXLINK) $(lyx_LDFLAGS) $(lyx_OBJECTS) $(lyx_LDADD) $(LIBS)
+
+Also avoid a c++ bug with gcc-2.95.3 on alpha where the assembler runs for ever and never
+finishes
+
+--- src/Makefile.in.orig Thu May 23 08:05:19 2002
++++ src/Makefile.in
+@@ -548,6 +548,11 @@ depcomp = $(SHELL) $(top_srcdir)/config/
+ @AMDEP_TRUE@ $(DEPDIR)/undo_funcs.Po $(DEPDIR)/undostack.Po \
+ @AMDEP_TRUE@ $(DEPDIR)/vc-backend.Po $(DEPDIR)/version.Po \
+ @AMDEP_TRUE@ $(DEPDIR)/vspace.Po
++CXXCOMPILE_NOOPT = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
++ $(AM_CPPFLAGS) $(CPPFLAGS_NOOPT) $(AM_CXXFLAGS) $(CXXFLAGS_NOOPT)
++LTCXXCOMPILE_NOOPT = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
++ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS_NOOPT) \
++ $(AM_CXXFLAGS) $(CXXFLAGS_NOOPT)
+ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+ LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
+@@ -558,6 +563,8 @@ CXXLINK = $(LIBTOOL) --mode=link $(CXXLD
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+ CXXFLAGS = @CXXFLAGS@
+ CFLAGS = @CFLAGS@
++CPPFLAGS_NOOPT = $(CPPFLAGS:C/-O[0-9]*//)
++CXXFLAGS_NOOPT = $(CXXFLAGS:C/-O[0-9]*//)
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+@@ -579,8 +586,15 @@ SOURCES = $(lyx_SOURCES)
+ all: $(BUILT_SOURCES) config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
++buffer.o: buffer.cc
++buffer.lo: buffer.cc
++lyxfunc.o: lyxfunc.cc
++lyxfunc.lo: lyxfunc.cc
++tex-accent.o: tex-accent.cc
++tex-accent.lo: tex-accent.cc
++
+ .SUFFIXES:
+-.SUFFIXES: .C .lo .o .obj
++.SUFFIXES: .C .cc .lo .o .obj
+
+ mostlyclean-libtool:
+ -rm -f *.lo
+@@ -752,6 +766,14 @@ distclean-compile:
-+lyxfunc.o: lyxfunc.C
-+ $(CXX) $(DEFS) -I. $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) -O -c $<
+ distclean-depend:
+ -rm -rf $(DEPDIR)
++.C.cc:
++ cp -f $< $@
+
-+lyxfunc.lo: lyxfunc.C
-+ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) -I. $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) -O -c $<
++.cc.o:
++@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
++@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
++@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
++ $(CXXCOMPILE_NOOPT) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
+
+ .C.o:
+ @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@@ -764,6 +786,12 @@ distclean-depend:
+ @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ $(CXXCOMPILE) -c -o $@ `cygpath -w $<`
+
- mostlyclean-compile:
- -rm -f *.$(OBJEXT) core *.core
++.cc.lo:
++@AMDEP_TRUE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
++@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
++@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
++ $(LTCXXCOMPILE_NOOPT) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
+ .C.lo:
+ @AMDEP_TRUE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
diff --git a/print/lyx/patches/patch-ac b/print/lyx/patches/patch-ac
new file mode 100644
index 00000000000..8478191e87a
--- /dev/null
+++ b/print/lyx/patches/patch-ac
@@ -0,0 +1,41 @@
+$NetBSD: patch-ac,v 1.1 2002/08/11 02:34:26 dmcmahill Exp $
+
+--- src/insets/Makefile.in.orig Thu May 23 08:05:22 2002
++++ src/insets/Makefile.in
+@@ -352,10 +352,17 @@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_IN
+ LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CXXFLAGS) $(CXXFLAGS)
++CXXCOMPILE_NOOPT = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
++ $(AM_CPPFLAGS) $(CPPFLAGS_NOOPT) $(AM_CXXFLAGS) $(CXXFLAGS_NOOPT)
++LTCXXCOMPILE_NOOPT = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
++ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS_NOOPT) \
++ $(AM_CXXFLAGS) $(CXXFLAGS_NOOPT)
+ CXXLD = $(CXX)
+ CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+ CXXFLAGS = @CXXFLAGS@
++CPPFLAGS_NOOPT = $(CPPFLAGS:C/-O[1-9]*//)
++CXXFLAGS_NOOPT = $(CXXFLAGS:C/-O[1-9]*//)
+ CFLAGS = @CFLAGS@
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+@@ -369,6 +376,18 @@ DIST_COMMON = ChangeLog Makefile.am Make
+ SOURCES = $(libinsets_la_SOURCES)
+
+ all: all-am
++
++insetlatexaccent.o: insetlatexaccent.C
++@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
++@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
++@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
++ $(CXXCOMPILE_NOOPT) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
++
++insetlatexaccent.lo: insetlatexaccent.C
++@AMDEP_TRUE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
++@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
++@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
++ $(LTCXXCOMPILE_NOOPT) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
+
+ .SUFFIXES:
+ .SUFFIXES: .C .lo .o .obj
diff --git a/print/lyx/patches/patch-ad b/print/lyx/patches/patch-ad
new file mode 100644
index 00000000000..67665300c3f
--- /dev/null
+++ b/print/lyx/patches/patch-ad
@@ -0,0 +1,26 @@
+$NetBSD: patch-ad,v 1.1 2002/08/11 02:34:26 dmcmahill Exp $
+
+--- boost/boost/detail/limits.hpp.orig Wed Aug 29 18:33:34 2001
++++ boost/boost/detail/limits.hpp
+@@ -38,12 +38,21 @@
+ #include <cwchar> // for WCHAR_MIN and WCHAR_MAX
+ #include <boost/config.hpp>
+
++#ifdef __NetBSD__
++#include <machine/endian.h>
++#if BYTE_ORDER == BIG_ENDIAN
++#define BOOST_BIG_ENDIAN
++#else
++#define BOOST_LITTLE_ENDIAN
++#endif
++#else
+ #if defined(__sparc) || defined(__sparc__) || defined(__powerpc__) || defined(__ppc__) || defined(__hppa) || defined(_MIPSEB)
+ #define BOOST_BIG_ENDIAN
+ #elif defined(__i386__)
+ #define BOOST_LITTLE_ENDIAN
+ #else
+ #error The file boost/detail/limits.hpp needs to be set up for your CPU type.
++#endif
+ #endif
+
+ namespace std {
diff --git a/print/lyx/patches/patch-ae b/print/lyx/patches/patch-ae
new file mode 100644
index 00000000000..b7f3f8617cf
--- /dev/null
+++ b/print/lyx/patches/patch-ae
@@ -0,0 +1,68 @@
+$NetBSD: patch-ae,v 1.1 2002/08/11 02:34:26 dmcmahill Exp $
+
+--- src/frontends/xforms/Makefile.in.orig Sat Aug 10 00:22:18 2002
++++ src/frontends/xforms/Makefile.in
+@@ -656,10 +656,17 @@ CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_IN
+ LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CXXFLAGS) $(CXXFLAGS)
++CXXCOMPILE_NOOPT = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
++ $(AM_CPPFLAGS) $(CPPFLAGS_NOOPT) $(AM_CXXFLAGS) $(CXXFLAGS_NOOPT)
++LTCXXCOMPILE_NOOPT = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \
++ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS_NOOPT) \
++ $(AM_CXXFLAGS) $(CXXFLAGS_NOOPT)
+ CXXLD = $(CXX)
+ CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+ CXXFLAGS = @CXXFLAGS@
++CPPFLAGS_NOOPT = $(CPPFLAGS:C/-O[1-9]*//)
++CXXFLAGS_NOOPT = $(CXXFLAGS:C/-O[1-9]*//)
+ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+ LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
+@@ -678,10 +685,15 @@ DIST_COMMON = ChangeLog Makefile.am Make
+ DIST_SUBDIRS = $(SUBDIRS)
+ SOURCES = $(libxforms_la_SOURCES)
+
++FormForks.o: FormForks.cc
++FormForks.lo: FormForks.cc
++FormPreferences.o: FormPreferences.cc
++FormPreferences.lo: FormPreferences.cc
++
+ all: all-recursive
+
+ .SUFFIXES:
+-.SUFFIXES: .C .c .lo .o .obj
++.SUFFIXES: .C .c .cc .lo .o .obj
+
+ mostlyclean-libtool:
+ -rm -f *.lo
+@@ -813,6 +825,15 @@ distclean-compile:
+ distclean-depend:
+ -rm -rf $(DEPDIR)
+
++.C.cc:
++ cp -f $< $@
++
++.cc.o:
++@AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
++@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
++@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
++ $(CXXCOMPILE_NOOPT) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
++
+ .C.o:
+ @AMDEP_TRUE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+@@ -824,6 +845,12 @@ distclean-depend:
+ @AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
+ @AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ $(CXXCOMPILE) -c -o $@ `cygpath -w $<`
++
++.cc.lo:
++@AMDEP_TRUE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
++@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
++@AMDEP_TRUE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
++ $(LTCXXCOMPILE_NOOPT) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
+
+ .C.lo:
+ @AMDEP_TRUE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@