diff options
44 files changed, 563 insertions, 1230 deletions
diff --git a/package/beecrypt/Makefile b/package/beecrypt/Makefile new file mode 100644 index 000000000..0f8a9a593 --- /dev/null +++ b/package/beecrypt/Makefile @@ -0,0 +1,28 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= beecrypt +PKG_VERSION:= 4.2.1 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 8441c014170823f2dff97e33df55af1e +PKG_DESCR:= cryptography toolkit +PKG_SECTION:= crypto +PKG_URL:= http://beecrypt.sourceforge.net/ +PKG_SITES:= http://sourceforge.net/projects/beecrypt/files/beecrypt/$(PKG_VERSION)/ + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,BEECRYPT,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIGURE_ARGS+= --without-cplusplus \ + --without-python \ + --without-java + +post-install: + $(INSTALL_DIR) $(IDIR_BEECRYPT)/usr/lib + $(CP) $(WRKINST)/usr/lib/libbeecrypt*.so* \ + $(IDIR_BEECRYPT)/usr/lib + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/bogofilter/patches/patch-configure b/package/bogofilter/patches/patch-configure new file mode 100644 index 000000000..21db7d973 --- /dev/null +++ b/package/bogofilter/patches/patch-configure @@ -0,0 +1,96 @@ +--- bogofilter-1.2.2.orig/configure 2010-07-08 05:30:26.000000000 +0200 ++++ bogofilter-1.2.2/configure 2010-11-09 23:29:25.894996376 +0100 +@@ -10284,93 +10284,7 @@ $as_echo "$LIBDB" >&6; } + + saveLIBS="$LIBS" + LIBS="$LIBS $LIBDB" +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if a program can be linked against Berkeley DB and run" >&5 +-$as_echo_n "checking if a program can be linked against Berkeley DB and run... " >&6; } +- if test "$cross_compiling" = yes; then : +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error "cannot run test program while cross compiling +-See \`config.log' for more details." "$LINENO" 5; } +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-#ifdef HAVE_INTTYPES_H +-#include <inttypes.h> +-#endif +-#include <db.h> +- +-int +-main () +-{ +- +-return 0; +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- as_fn_error "Cannot run a program linked against libdb. +-Did you adjust your library search path to include your libdb?" "$LINENO" 5 +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +- conftest.$ac_objext conftest.beam conftest.$ac_ext +-fi +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +-$as_echo "yes" >&6; } +- +- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB header and library versions match" >&5 +-$as_echo_n "checking if Berkeley DB header and library versions match... " >&6; } +- rm -r -f bfadtestdir +- mkdir bfadtestdir +- if test "$cross_compiling" = yes; then : +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error "cannot run test program while cross compiling +-See \`config.log' for more details." "$LINENO" 5; } +-else +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +- #include <stdlib.h> +- #include <stdio.h> +-#ifdef HAVE_INTTYPES_H +-#include <inttypes.h> +-#endif +- #include <db.h> + +-int +-main () +-{ +- +- int maj, min; +- (void)db_version(&maj, &min, 0); +- (void)fprintf(stderr, "headers: %d.%d, library: %d.%d\n", +- DB_VERSION_MAJOR, DB_VERSION_MINOR, maj, min); +- if (maj != DB_VERSION_MAJOR) exit(1); +- if (min != DB_VERSION_MINOR) exit(1); +- exit(0); +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_run "$LINENO"; then : +- +-else +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +-$as_echo "no" >&6; } +- as_fn_error "db.h header file and db library version do not match." "$LINENO" 5 +-fi +-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ +- conftest.$ac_objext conftest.beam conftest.$ac_ext +-fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 + $as_echo "yes" >&6; } diff --git a/package/cups/Makefile b/package/cups/Makefile index 0e48afb3a..8f764ba1b 100644 --- a/package/cups/Makefile +++ b/package/cups/Makefile @@ -22,6 +22,7 @@ $(eval $(call PKG_template,CUPS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_ CONFIGURE_ENV+= ac_cv_func_sigset=no \ OPTIM='-fPIC' + CONFIGURE_ARGS+= --with-cups-user=cups \ --with-cups-group=cups \ --disable-ldap \ diff --git a/package/firefox/Makefile b/package/firefox/Makefile index 2126892dd..163d740f6 100644 --- a/package/firefox/Makefile +++ b/package/firefox/Makefile @@ -4,16 +4,16 @@ include $(TOPDIR)/rules.mk PKG_NAME:= firefox -PKG_VERSION:= 3.6.10 +PKG_VERSION:= 3.6.12 PKG_RELEASE:= 1 -PKG_MD5SUM:= 0ee5f14fd8be07513d16131027ebcb61 +PKG_MD5SUM:= 80f4d83f23a7c45fc3f1904964ea2a5a PKG_DESCR:= graphical webbrowser PKG_SECTION:= x11/apps PKG_DEPENDS:= libpthread alsa-lib dbus-glib glib libgtk+ libnotify PKG_DEPENDS+= nspr nss libjpeg atk pango cairo libxt libx11 libstdcxx PKG_DEPENDS+= libxdamage libxfixes libidl PKG_BUILDDEP:= alsa-lib dbus-glib glib gtk+ libnotify libIDL libX11 -PKG_BUILDDEP+= nspr nss jpeg libXt +PKG_BUILDDEP+= nspr nss jpeg libXt fontconfig PKG_URL:= http://www.mozilla.org/ PKG_SITES:= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PKG_VERSION}/source/ @@ -38,7 +38,9 @@ endif CONFIGURE_ENV+= CROSS_COMPILE=1 HOST_CC="${HOSTCC}" HOST_CFLAGS="${HOSTCFLAGS}" \ HOST_CXX="${HOSTCXX}" HOST_CXXFLAGS="${HOSTCXXFLAGS}" \ HOST_LIBIDL_CONFIG="/usr/bin/libIDL-config-2" \ - ac_cv_thread_keyword=no + CPPFLAGS="-I${STAGING_DIR}/usr/include/freetype2" \ + ac_cv_thread_keyword=no \ + ac_cv_sizeof_int_p=4 CONFIGURE_ARGS+= --enable-application=browser \ --with-system-zlib \ --with-system-jpeg \ @@ -49,6 +51,7 @@ CONFIGURE_ARGS+= --enable-application=browser \ --with-glib-prefix=${STAGING_DIR}/usr \ --enable-libxul \ --disable-tests \ + --disable-libconic \ --disable-static \ --disable-gnomeui \ --disable-gnomevfs \ diff --git a/package/firefox/patches/patch-configure b/package/firefox/patches/patch-configure index 28035c66a..0127a7bab 100644 --- a/package/firefox/patches/patch-configure +++ b/package/firefox/patches/patch-configure @@ -1,5 +1,5 @@ ---- mozilla-1.9.2.orig/configure 2010-07-23 00:00:19.000000000 +0200 -+++ mozilla-1.9.2/configure 2010-07-30 09:52:43.000000000 +0200 +--- mozilla-1.9.2.orig/configure 2010-10-27 05:09:28.000000000 +0200 ++++ mozilla-1.9.2/configure 2010-11-11 22:26:20.594995948 +0100 @@ -3970,7 +3970,7 @@ else echo "$ac_t""yes" 1>&6 fi @@ -9,7 +9,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 -@@ -21285,8 +21285,8 @@ if test -n "$CROSS_COMPILE"; then +@@ -21465,8 +21465,8 @@ if test -n "$CROSS_COMPILE"; then HOST_LIBIDL_CONFIG="$LIBIDL_CONFIG" fi if test -n "$HOST_LIBIDL_CONFIG" && test "$HOST_LIBIDL_CONFIG" != "no"; then diff --git a/package/firefox/patches/patch-content_base_src_nsContentSink_cpp b/package/firefox/patches/patch-content_base_src_nsContentSink_cpp new file mode 100644 index 000000000..a97306351 --- /dev/null +++ b/package/firefox/patches/patch-content_base_src_nsContentSink_cpp @@ -0,0 +1,10 @@ +--- mozilla-1.9.2.orig/content/base/src/nsContentSink.cpp 2010-10-27 05:01:11.000000000 +0200 ++++ mozilla-1.9.2/content/base/src/nsContentSink.cpp 2010-11-11 22:40:48.404995720 +0100 +@@ -1973,7 +1973,6 @@ nsIAtom** const kDefaultAllowedAttribute + &nsGkAtoms::nowrap, + &nsGkAtoms::open, + &nsGkAtoms::optimum, +- &nsGkAtoms::pattern, + &nsGkAtoms::placeholder, + &nsGkAtoms::pointSize, + &nsGkAtoms::prompt, diff --git a/package/firefox/patches/patch-ipc_chromium_src_base_debug_util_posix_cc b/package/firefox/patches/patch-ipc_chromium_src_base_debug_util_posix_cc new file mode 100644 index 000000000..833e94185 --- /dev/null +++ b/package/firefox/patches/patch-ipc_chromium_src_base_debug_util_posix_cc @@ -0,0 +1,29 @@ +--- mozilla-1.9.2.orig/ipc/chromium/src/base/debug_util_posix.cc 2010-10-27 05:01:17.000000000 +0200 ++++ mozilla-1.9.2/ipc/chromium/src/base/debug_util_posix.cc 2010-11-12 11:53:10.614327269 +0100 +@@ -114,6 +114,9 @@ void DebugUtil::BreakDebugger() { + } + + StackTrace::StackTrace() { ++#ifdef CHROMIUM_MOZILLA_BUILD ++ return; ++#else + const int kMaxCallers = 256; + + void* callers[kMaxCallers]; +@@ -128,11 +131,16 @@ StackTrace::StackTrace() { + } else { + trace_.resize(0); + } ++#endif + } + + void StackTrace::PrintBacktrace() { ++#ifdef CHROMIUM_MOZILLA_BUILD ++ return; ++#else + fflush(stderr); + backtrace_symbols_fd(&trace_[0], trace_.size(), STDERR_FILENO); ++#endif + } + + void StackTrace::OutputToStream(std::ostream* os) { diff --git a/package/heimdal/Makefile b/package/heimdal/Makefile index dfe5c0c65..dfffe8523 100644 --- a/package/heimdal/Makefile +++ b/package/heimdal/Makefile @@ -70,8 +70,9 @@ endif TCFLAGS+= -I${STAGING_DIR}/usr/include/et -pthread -CONFIGURE_ARGS+= ${CONFIGURE_OPTS} -CONFIGURE_ENV+= ac_cv_func_getaddrinfo_numserv=yes +CONFIGURE_ARGS+= ${CONFIGURE_OPTS} --with-cross-tools=${STAGING_TOOLS}/bin +CONFIGURE_ENV+= cross_compiling=yes \ + ac_cv_func_getaddrinfo_numserv=yes ifeq ($(ADK_HOST_CYGWIN),y) EXEEXT:= .exe @@ -79,17 +80,23 @@ endif pre-configure: (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \ - ./configure ${CONFIGURE_OPTS} \ + ./configure --prefix=$(STAGING_TOOLS) \ + --disable-pk-init \ + --without-openldap \ + --disable-otp \ ); + ${MAKE} -C ${WRKBUILD}/include ${MAKE} -C ${WRKBUILD}/lib/roken ${MAKE} -C ${WRKBUILD}/lib/vers ${MAKE} -C ${WRKBUILD}/lib/editline ${MAKE} -C ${WRKBUILD}/lib/asn1 asn1_compile$(EXEEXT) ${MAKE} -C ${WRKBUILD}/lib/sl slc$(EXEEXT) - ${INSTALL_BIN} ${WRKBUILD}/lib/asn1/asn1_compile$(EXEEXT) \ + ${INSTALL_BIN} ${WRKBUILD}/lib/roken/make-roken$(EXEEXT) \ ${STAGING_TOOLS}/bin ${INSTALL_BIN} ${WRKBUILD}/lib/sl/slc$(EXEEXT) \ ${STAGING_TOOLS}/bin + ${MAKE} -C ${WRKBUILD}/lib/roken install + ${MAKE} -C ${WRKBUILD}/lib/asn1 install ${MAKE} -C ${WRKBUILD}/lib/asn1 clean ${MAKE} -C ${WRKBUILD}/lib/roken clean ${MAKE} -C ${WRKBUILD} clean diff --git a/package/heimdal/patches/patch-lib_roken_Makefile_in b/package/heimdal/patches/patch-lib_roken_Makefile_in new file mode 100644 index 000000000..a702be6b7 --- /dev/null +++ b/package/heimdal/patches/patch-lib_roken_Makefile_in @@ -0,0 +1,41 @@ +--- heimdal-1.4.orig/lib/roken/Makefile.in 2010-09-13 09:24:23.000000000 +0200 ++++ heimdal-1.4/lib/roken/Makefile.in 2010-11-10 19:56:51.764995802 +0100 +@@ -726,9 +726,6 @@ getifaddrs-test$(EXEEXT): $(getifaddrs_t + hex-test$(EXEEXT): $(hex_test_OBJECTS) $(hex_test_DEPENDENCIES) + @rm -f hex-test$(EXEEXT) + $(LINK) $(hex_test_OBJECTS) $(hex_test_LDADD) $(LIBS) +-make-roken$(EXEEXT): $(make_roken_OBJECTS) $(make_roken_DEPENDENCIES) +- @rm -f make-roken$(EXEEXT) +- $(LINK) $(make_roken_OBJECTS) $(make_roken_LDADD) $(LIBS) + parse_bytes-test$(EXEEXT): $(parse_bytes_test_OBJECTS) $(parse_bytes_test_DEPENDENCIES) + @rm -f parse_bytes-test$(EXEEXT) + $(LINK) $(parse_bytes_test_OBJECTS) $(parse_bytes_test_LDADD) $(LIBS) +@@ -1977,18 +1974,18 @@ $(LTLIBOBJS) $(libroken_la_OBJECTS): rok + .hin.h: + cp $< $@ + +-@CROSS_COMPILE_FALSE@roken.h: make-roken$(EXEEXT) +-@CROSS_COMPILE_FALSE@ @./make-roken$(EXEEXT) > tmp.h ;\ +-@CROSS_COMPILE_FALSE@ if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ +-@CROSS_COMPILE_FALSE@ else rm -f roken.h; mv tmp.h roken.h; fi ++roken.h: make-roken$(EXEEXT) ++ ./make-roken$(EXEEXT) > tmp.h ;\ ++ if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ ++ else rm -f roken.h; mv tmp.h roken.h; fi + +-@CROSS_COMPILE_FALSE@make-roken.c: roken.h.in roken.awk +-@CROSS_COMPILE_FALSE@ $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c ++make-roken.c: roken.h.in roken.awk ++ $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c ++ ++make-roken$(EXEEXT): make-roken.c ++ $(HOSTCC) $(HOSTCFLAGS) -I$(top_builddir)/include -DHAVE_CONFIG_H \ ++ -o $@ $< + +-@CROSS_COMPILE_TRUE@roken.h: $(top_srcdir)/cf/roken-h-process.pl roken.h.in +-@CROSS_COMPILE_TRUE@ perl $(top_srcdir)/cf/roken-h-process.pl \ +-@CROSS_COMPILE_TRUE@ -c $(top_builddir)/include/config.h \ +-@CROSS_COMPILE_TRUE@ -p $(srcdir)/roken.h.in -o roken.h + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/package/heimdal/patches/patch-lib_roken_Makefile_in.orig b/package/heimdal/patches/patch-lib_roken_Makefile_in.orig new file mode 100644 index 000000000..7d207e474 --- /dev/null +++ b/package/heimdal/patches/patch-lib_roken_Makefile_in.orig @@ -0,0 +1,27 @@ +--- heimdal-1.4.orig/lib/roken/Makefile.in 2010-09-13 09:24:23.000000000 +0200 ++++ heimdal-1.4/lib/roken/Makefile.in 2010-11-10 18:57:00.174995995 +0100 +@@ -1977,18 +1977,13 @@ $(LTLIBOBJS) $(libroken_la_OBJECTS): rok + .hin.h: + cp $< $@ + +-@CROSS_COMPILE_FALSE@roken.h: make-roken$(EXEEXT) +-@CROSS_COMPILE_FALSE@ @./make-roken$(EXEEXT) > tmp.h ;\ +-@CROSS_COMPILE_FALSE@ if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ +-@CROSS_COMPILE_FALSE@ else rm -f roken.h; mv tmp.h roken.h; fi +- +-@CROSS_COMPILE_FALSE@make-roken.c: roken.h.in roken.awk +-@CROSS_COMPILE_FALSE@ $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c ++roken.h: make-roken$(EXEEXT) ++ ./make-roken$(EXEEXT) > tmp.h ;\ ++ if [ -f roken.h ] && cmp -s tmp.h roken.h ; then rm -f tmp.h ; \ ++ else rm -f roken.h; mv tmp.h roken.h; fi + +-@CROSS_COMPILE_TRUE@roken.h: $(top_srcdir)/cf/roken-h-process.pl roken.h.in +-@CROSS_COMPILE_TRUE@ perl $(top_srcdir)/cf/roken-h-process.pl \ +-@CROSS_COMPILE_TRUE@ -c $(top_builddir)/include/config.h \ +-@CROSS_COMPILE_TRUE@ -p $(srcdir)/roken.h.in -o roken.h ++make-roken.c: roken.h.in roken.awk ++ $(AWK) -f $(srcdir)/roken.awk $(srcdir)/roken.h.in > make-roken.c + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/package/heimdal/patches/patch-lib_roken_roken_h_in b/package/heimdal/patches/patch-lib_roken_roken_h_in new file mode 100644 index 000000000..59e9a2c52 --- /dev/null +++ b/package/heimdal/patches/patch-lib_roken_roken_h_in @@ -0,0 +1,11 @@ +--- heimdal-1.4.orig/lib/roken/roken.h.in 2010-09-13 09:23:34.000000000 +0200 ++++ heimdal-1.4/lib/roken/roken.h.in 2010-11-10 19:46:45.916683899 +0100 +@@ -524,7 +524,7 @@ ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL ge + ROKEN_LIB_FUNCTION char * ROKEN_LIB_CALL strerror(int); + #endif + +-#if (!defined(HAVE_STRERROR_R) && !defined(strerror_r)) || (!defined(STRERROR_R_PROTO_COMPATIBLE) && defined(HAVE_STRERROR_R)) ++#if ( !defined(HAVE_STRERROR_R) && !defined(strerror_r)) || (!defined(STRERROR_R_PROTO_COMPATIBLE) && defined(HAVE_STRERROR_R)) + int ROKEN_LIB_FUNCTION rk_strerror_r(int, char *, size_t); + #else + #define rk_strerror_r strerror_r diff --git a/package/heimdal/src/cf/roken-h-process.pl b/package/heimdal/src/cf/roken-h-process.pl new file mode 100644 index 000000000..a54c9216d --- /dev/null +++ b/package/heimdal/src/cf/roken-h-process.pl @@ -0,0 +1,181 @@ +#!/usr/bin/perl + +require 'getopts.pl'; + +my $debug = 0; + +Getopts('dc:p:o:') || die "foo"; + +if ($opt_d) { + $debug = 1; +} + +die "missing arg" if (!defined $opt_c || !defined $opt_p || !defined $opt_o); + +my %defines; +my $IN; +my $OUT; + +print "parse config.h\n" if ($debug); + +open IN, $opt_c || die "failed open ${opt_c}"; + +my @nesting; + +push @nesting, 1; + +while (<IN>) { + if (m/\s*#ifdef\s+(.*)/) { + my $var = $1; + if (defined $defines{$var}) { + push @nesting, 1; + } else { + push @nesting, 0; + } + next; + } elsif (m/\s*#ifndef\s+(.*)/) { + my $var = $1; + if (defined $defines{$var}) { + push @nesting, 0; + } else { + push @nesting, 1; + } + next; + } elsif (m/\s*#else/) { + my $var = pop @nesting; + $var = !$var; + push @nesting, $var; + next; + } elsif ($nesting[$#nesting] and m/\s*#define\s+(\w+)\s+(\S+)/) { + my $res = $2; + $res = 1 if (!defined $res); + $defines{$1} = $res; + } +} + +close IN; + +if ($debug) { + foreach my $i (keys %defines) { + print "k: $i v: $defines{$i}\n"; + } +} + +open IN, "$opt_p" || die "failed open ${opt_p}"; +open OUT, ">$opt_o" || die "failed open ${opt_o}"; + +print "parse roken.h.in\n" if ($debug); + +print OUT "/* This is an OS dependent, generated file */\n"; +print OUT "\n"; +print OUT "\n"; +print OUT "#ifndef __ROKEN_H__\n"; +print OUT "#define __ROKEN_H__\n"; +print OUT "\n"; + +@nesting = (1); + +while (<IN>) { + if (m/\s*#ifdef\s+(.*)/) { + my $var = $1; + if (defined $defines{$var}) { + push @nesting, 1; + } else { + push @nesting, 0; + } + next; + } elsif (m/\s*#ifndef\s+(.*)/) { + my $var = $1; + if (defined $defines{$var}) { + push @nesting, 0; + } else { + push @nesting, 1; + } + next; + } elsif (m/\s*#if\s+(.*)/) { + my $res = parse_if($1); + print "line = $res: $1\n" if ($debug); + push @nesting, $res; + next; + } elsif (m/\s*#elif\s+(.*)/) { + my $res = pop @nesting; + if ($res gt 0) { + $res = -1; + } else { + my $res = parse_if($1); + } + push @nesting, $res; + next; + } elsif (m/\s*#else/) { + my $var = pop @nesting; + $var = !$var; + push @nesting, $var; + next; + } elsif (m/\s*#endif/) { + pop @nesting; + next; + } + print "line: $_\n" if ($debug); + print "nesting dep $#{nesting}\n" if ($debug); + my $i = 0, $t = 1; + while ($i le $#nesting) { + $t = 0 if ($nesting[$i] le 0); + print "nesting $i val $nesting[$i] -> $t\n" if ($debug); + $i++; + } + if ($t) { + print OUT; + } +} + +print OUT "\n"; +print OUT "#endif /* __ROKEN_H__ */\n"; + + +close IN; + +exit 0; + +sub parse_if +{ + my ($neg, $var); + + $_ = shift; + + if (m/^\s*$/) { + print "end $_\n" if ($debug); + return 1; + } elsif (m/^([^&]+)\&\&(.*)$/) { + print "$1 and $2\n" if ($debug); + return parse_if($1) and parse_if($2); + } elsif (m/^([^\|]+)\|\|(.*)$/) { + print "$1 or $2\n" if ($debug); + return parse_if($1) or parse_if($2); + } elsif (m/^\s*(\!)?\s*defined\((\w+)\)/) { + ($neg, $var) = ($1, $2); + print "def: ${neg}-defined(${var})\n" if ($debug); + my $res = defined $defines{$var}; + if ($neg eq "!") { + if ($res) { + $res = 0; + } else { + $res = 1; + } + } + print "res: $res\n" if ($debug); + return $res; + } elsif (m/^\s*(\!)?(\w+)/) { + ($neg, $var) = ($1, $2); + print "var: $neg $var\n" if ($debug); + my $res; + if (defined $defines{$var}) { + $res = $defines{$var}; + } else { + $res = 0; + } + $res = ! $res if ($neg =~ m/!/); + print "res: $res\n" if ($debug); + return $res; + } + die "failed parse: $_\n"; +} diff --git a/package/libtirpc/patches/patch-src_Makefile_in b/package/libtirpc/patches/patch-src_Makefile_in index f6e41aa3b..18ce6ffe2 100644 --- a/package/libtirpc/patches/patch-src_Makefile_in +++ b/package/libtirpc/patches/patch-src_Makefile_in @@ -1,5 +1,5 @@ --- libtirpc-0.2.1.orig/src/Makefile.in 2009-11-30 15:10:21.000000000 +0100 -+++ libtirpc-0.2.1/src/Makefile.in 2010-01-13 21:28:55.000000000 +0100 ++++ libtirpc-0.2.1/src/Makefile.in 2010-11-11 10:41:48.394995633 +0100 @@ -81,8 +81,8 @@ am__libtirpc_la_SOURCES_DIST = auth_none rpc_commondata.c rpc_callmsg.c rpc_generic.c rpc_soc.c \ rpcb_clnt.c rpcb_prot.c rpcb_st_xdr.c svc.c svc_auth.c \ @@ -21,6 +21,15 @@ libtirpc_la-xdr_rec.lo libtirpc_la-xdr_array.lo \ libtirpc_la-xdr_float.lo libtirpc_la-xdr_mem.lo \ libtirpc_la-xdr_reference.lo libtirpc_la-xdr_stdio.lo \ +@@ -286,7 +285,7 @@ lib_LTLIBRARIES = libtirpc.la + # release number of your package. This is an abuse that only fosters + # misunderstanding of the purpose of library versions." + # +-libtirpc_la_LDFLAGS = -lnsl -lpthread -version-info 1:10:0 \ ++libtirpc_la_LDFLAGS = -lpthread -version-info 1:10:0 \ + $(am__append_2) + libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c \ + bindresvport.c clnt_bcast.c clnt_dg.c clnt_generic.c \ @@ -297,8 +296,8 @@ libtirpc_la_SOURCES = auth_none.c auth_u rpc_commondata.c rpc_callmsg.c rpc_generic.c rpc_soc.c \ rpcb_clnt.c rpcb_prot.c rpcb_st_xdr.c svc.c svc_auth.c \ diff --git a/package/lvm/Makefile b/package/lvm/Makefile index 313c1fc9e..81124486c 100644 --- a/package/lvm/Makefile +++ b/package/lvm/Makefile @@ -4,9 +4,9 @@ include ${TOPDIR}/rules.mk PKG_NAME:= lvm -PKG_VERSION:= 2.02.74 +PKG_VERSION:= 2.02.76 PKG_RELEASE:= 1 -PKG_MD5SUM:= 3f86b528310183cad73c81c8efda0c34 +PKG_MD5SUM:= 1a43a943c218cb00ce1a6ce39889a6ae PKG_DESCR:= logical volume management PKG_SECTION:= fs PKG_DEPENDS:= libdevmapper libncurses diff --git a/package/mrd6/patches/patch-src_linux_mrd_components_cpp b/package/mrd6/patches/patch-src_linux_mrd_components_cpp index e604a63dd..4416c29db 100644 --- a/package/mrd6/patches/patch-src_linux_mrd_components_cpp +++ b/package/mrd6/patches/patch-src_linux_mrd_components_cpp @@ -1,14 +1,59 @@ --- mrd6-0.9.6.orig/src/linux/mrd_components.cpp 2007-01-07 03:11:27.000000000 +0100 -+++ mrd6-0.9.6/src/linux/mrd_components.cpp 2009-06-19 21:49:44.000000000 +0200 -@@ -90,10 +90,8 @@ char *mrd::obtain_frame_description(void ++++ mrd6-0.9.6/src/linux/mrd_components.cpp 2010-11-11 11:16:08.114995686 +0100 +@@ -28,10 +28,6 @@ + #include <mrdpriv/linux/us_mfa.h> + #include <mrdpriv/linux/icmp_raw.h> + +-#if defined(__GLIBC__) && !defined(__UCLIBC__) +-#include <execinfo.h> +-#endif +- + bool mrd::prepare_os_components() { + m_mfa = new us_mfa(); + +@@ -57,45 +53,14 @@ const char *mrd::loopback_interface_name + #define MAX_DEEP_BACKTRACE 32 + + void mrd::output_backtrace(base_stream &out) const { +-#if defined(__GLIBC__) && !defined(__UCLIBC__) +- void *bt[MAX_DEEP_BACKTRACE]; +- +- int count = backtrace(bt, MAX_DEEP_BACKTRACE); +- +- char **btnames = backtrace_symbols(bt, count); +- +- for (int i = 0; i < count; i++) { +- out.xprintf("#%i %s\n", i+1, btnames[i]); +- } +- +- free(btnames); +-#else + out.writeline("Backtraces aren't available in this system."); +-#endif + } + + char *mrd::obtain_frame_description(void *ptr) const { +-#if defined(__GLIBC__) && !defined(__UCLIBC__) +- void *p[1] = { ptr }; +- +- char **names = backtrace_symbols(p, 1); +- char *ret = strdup(names[0]); +- free(names); +- +- return ret; +-#else + return 0; +-#endif + } void *mrd::posix_uctx::get_current_frame() const { - #if defined(__GLIBC__) +-#if defined(__GLIBC__) -#if defined(__i386__) -+#if defined(__i386__) - return (void *)base->uc_mcontext.gregs[REG_EIP]; +- return (void *)base->uc_mcontext.gregs[REG_EIP]; -#elif defined(__mips__) - return (void *)base->uc_mcontext.gpregs[CTX_EPC]; - #endif - #endif +-#endif +-#endif return 0; + } + diff --git a/package/mrd6/patches/patch-src_scripts_generate-modules-cpp_pl b/package/mrd6/patches/patch-src_scripts_generate-modules-cpp_pl index c56cae4e9..8ff48d3f9 100644 --- a/package/mrd6/patches/patch-src_scripts_generate-modules-cpp_pl +++ b/package/mrd6/patches/patch-src_scripts_generate-modules-cpp_pl @@ -1,7 +1,8 @@ --- mrd6-0.9.6.orig/src/scripts/generate-modules-cpp.pl 2007-03-22 03:37:07.000000000 +0100 -+ |