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

Bug#437949: texlive-bin: FTBFS on hurd-i386 because of icu



Package: texlive-bin
Version: 2007-13
Severity: important
Tags: patch

Hi,

texlive-bin currently FTBFS on hurd-i386 because of the copy of icu that
it embeds. Here is the patch that already got applied to the icu package
and is being forwarded icu upstream.

There was also a problem with xxx.l which uses the NOFILE macro which is
linux-only.

Samuel

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel Thibault <samuel.thibault@ens-lyon.org>
Anyone who thinks UNIX is intuitive should be forced to write 5000 lines of 
code using nothing but vi or emacs. AAAAACK!
(Discussion in comp.os.linux.misc on the intuitiveness of commands, especially
Emacs.)
diff -urN texlive-bin-2007/build/source/libs/icu-xetex.orig/aclocal.m4 texlive-bin-2007/build/source/libs/icu-xetex/aclocal.m4
--- texlive-bin-2007/build/source/libs/icu-xetex.orig/aclocal.m4	2006-07-25 14:37:43.000000000 +0200
+++ texlive-bin-2007/build/source/libs/icu-xetex/aclocal.m4	2007-08-14 18:42:25.000000000 +0200
@@ -31,6 +31,7 @@
 	  	icu_cv_host_frag=mh-linux-va
 	fi ;;
 *-*-linux*) icu_cv_host_frag=mh-linux ;;
+*-*-gnu*) icu_cv_host_frag=mh-gnu ;;
 *-*-cygwin)
 	if test "$GCC" = yes; then
 	  	icu_cv_host_frag=mh-cygwin
diff -urN texlive-bin-2007/build/source/libs/icu-xetex.orig/config/mh-gnu texlive-bin-2007/build/source/libs/icu-xetex/config/mh-gnu
--- texlive-bin-2007/build/source/libs/icu-xetex.orig/config/mh-gnu	1970-01-01 01:00:00.000000000 +0100
+++ texlive-bin-2007/build/source/libs/icu-xetex/config/mh-gnu	2007-08-14 18:43:02.000000000 +0200
@@ -0,0 +1,81 @@
+## -*-makefile-*-
+## GNU-specific setup
+## Copyright (c) 1999-2004, International Business Machines Corporation and
+## others. All Rights Reserved.
+
+## Commands to generate dependency files
+GEN_DEPS.c=  $(CC) -E -MM $(DEFS) $(CPPFLAGS)
+GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
+
+## Flags for position independent code
+SHAREDLIBCFLAGS = -fPIC
+SHAREDLIBCXXFLAGS = -fPIC
+SHAREDLIBCPPFLAGS = -DPIC
+
+## Additional flags when building libraries and with threads
+LIBCPPFLAGS = -D_REENTRANT
+THREADSCPPFLAGS = -D_REENTRANT
+
+## Compiler switch to embed a runtime search path
+LD_RPATH=	
+LD_RPATH_PRE = -Wl,-rpath,
+
+## These are the library specific LDFLAGS
+LDFLAGSICUDT=-nodefaultlibs -nostdlib
+
+## Compiler switch to embed a library name
+# The initial tab in the next line is to prevent icu-config from reading it.
+	LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
+#SH# # We can't depend on MIDDLE_SO_TARGET being set.
+#SH# LD_SONAME=
+
+## Shared object suffix
+SO = so
+## Non-shared intermediate object suffix
+STATIC_O = ao
+
+## Compilation rules
+%.$(STATIC_O): $(srcdir)/%.c
+	$(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
+%.o: $(srcdir)/%.c
+	$(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
+
+%.$(STATIC_O): $(srcdir)/%.cpp
+	$(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
+%.o: $(srcdir)/%.cpp
+	$(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
+
+
+## Dependency rules
+%.d: $(srcdir)/%.c
+	@echo "generating dependency information for $<"
+	@$(SHELL) -ec '$(GEN_DEPS.c) $< \
+		| sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
+		[ -s $@ ] || rm -f $@'
+
+%.d: $(srcdir)/%.cpp
+	@echo "generating dependency information for $<"
+	@$(SHELL) -ec '$(GEN_DEPS.cc) $< \
+		| sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
+		[ -s $@ ] || rm -f $@'
+
+## Versioned libraries rules
+
+%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
+	$(RM) $@ && ln -s ${<F} $@
+%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
+	$(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
+
+##  Bind internal references
+
+# LDflags that pkgdata will use
+BIR_LDFLAGS= -Wl,-Bsymbolic
+
+# CPPflags for genccode/gencmn
+BIR_CPPFLAGS= -DU_HAVE_BIND_INTERNAL_REFERENCES
+
+# Dependencies [i.e. map files] for the final library
+BIR_DEPS=
+
+## End Linux-specific setup
+
diff -urN texlive-bin-2007/build/source/libs/icu-xetex.orig/configure texlive-bin-2007/build/source/libs/icu-xetex/configure
--- texlive-bin-2007/build/source/libs/icu-xetex.orig/configure	2006-07-25 14:37:43.000000000 +0200
+++ texlive-bin-2007/build/source/libs/icu-xetex/configure	2007-08-14 18:42:21.000000000 +0200
@@ -3270,6 +3270,7 @@
 	  	icu_cv_host_frag=mh-linux-va
 	fi ;;
 *-*-linux*) icu_cv_host_frag=mh-linux ;;
+*-*-gnu*) icu_cv_host_frag=mh-gnu ;;
 *-*-cygwin)
 	if test "$GCC" = yes; then
 	  	icu_cv_host_frag=mh-cygwin
--- texlive-bin-2007/build/source/Work/texk/detex/xxx.l.orig	2007-08-14 22:44:53.229859000 +0200
+++ texlive-bin-2007/build/source/Work/texk/detex/xxx.l	2007-08-14 22:45:19.329634000 +0200
@@ -59,6 +59,10 @@
 
 #endif
 
+#ifndef NOFILE
+#define NOFILE 256
+#endif
+
 extern void SetEnvIgnore(char *sbEnvList);
 extern int BeginEnv(char *sbEnv);
 extern int EndEnv(char *sbEnv);

Reply to: