Fri, 03 Aug 2012 20:11:53 +0200
Neutralize buggy code causing OpenPKG to have 'fatal problems' in
spite of correct installation, configuration, and operation. An
administrator suffering from this failure is even unable to
uninstall the flawed software.
michael@320 | 1 | Index: config.guess |
michael@332 | 2 | diff -Nau config.guess.orig config.guess |
michael@332 | 3 | --- config.guess.orig 2011-03-21 16:02:29.000000000 +0100 |
michael@332 | 4 | +++ config.guess 2011-03-27 18:06:45.404612233 +0200 |
michael@320 | 5 | @@ -194,7 +194,7 @@ |
michael@320 | 6 | release='-gnu' |
michael@320 | 7 | ;; |
michael@320 | 8 | *) |
michael@320 | 9 | - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` |
michael@320 | 10 | + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'` |
michael@320 | 11 | ;; |
michael@320 | 12 | esac |
michael@320 | 13 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
michael@332 | 14 | Index: gcc/config/alpha/osf5.h |
michael@332 | 15 | diff -Nau gcc/config/alpha/osf5.h.orig gcc/config/alpha/osf5.h |
michael@332 | 16 | --- gcc/config/alpha/osf5.h.orig 2010-11-21 01:54:14.000000000 +0100 |
michael@332 | 17 | +++ gcc/config/alpha/osf5.h 2011-03-27 18:06:45.432326155 +0200 |
michael@332 | 18 | @@ -94,7 +94,7 @@ |
michael@320 | 19 | constructor and call-frame data structures are not accidentally |
michael@320 | 20 | overridden. */ |
michael@320 | 21 | #define LINK_SPEC \ |
michael@320 | 22 | - "-G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \ |
michael@320 | 23 | + "-oldstyle_liblookup %{!o:-o a.out} -G 8 %{O*:-O3} %{!O*:-O1} -S %{static:-non_shared} \ |
michael@320 | 24 | %{!static:%{shared:-shared -hidden_symbol _GLOBAL_*} \ |
michael@320 | 25 | %{!shared:-call_shared}} %{pg} %{taso} %{rpath*}" |
michael@320 | 26 | |
michael@320 | 27 | Index: gcc/config/i386/sol2-10.h |
michael@332 | 28 | diff -Nau gcc/config/i386/sol2-10.h.orig gcc/config/i386/sol2-10.h |
michael@332 | 29 | --- gcc/config/i386/sol2-10.h.orig 2011-01-26 21:23:17.000000000 +0100 |
michael@332 | 30 | +++ gcc/config/i386/sol2-10.h 2011-03-27 18:06:45.455032224 +0200 |
michael@332 | 31 | @@ -105,7 +105,7 @@ |
michael@320 | 32 | -R /usr/ucblib/64} \ |
michael@320 | 33 | %{!compat-bsd: \ |
michael@320 | 34 | %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \ |
michael@320 | 35 | - %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}" |
michael@320 | 36 | + %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}} -rpath-link /lib/64:/usr/lib/64}" |
michael@320 | 37 | |
michael@320 | 38 | #undef LINK_ARCH64_SPEC |
michael@320 | 39 | #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE |
michael@332 | 40 | @@ -122,7 +122,7 @@ |
michael@320 | 41 | #endif |
michael@320 | 42 | |
michael@320 | 43 | #define TARGET_LD_EMULATION "%{m64:-m " X86_64_EMULATION "}" \ |
michael@320 | 44 | - "%{!m64:-m " I386_EMULATION "} " |
michael@320 | 45 | + "%{!m64:} " |
michael@320 | 46 | #else |
michael@320 | 47 | #define TARGET_LD_EMULATION "" |
michael@320 | 48 | #endif |
michael@320 | 49 | Index: gcc/config/i386/sol2.h |
michael@332 | 50 | diff -Nau gcc/config/i386/sol2.h.orig gcc/config/i386/sol2.h |
michael@332 | 51 | --- gcc/config/i386/sol2.h.orig 2011-02-02 17:58:49.000000000 +0100 |
michael@332 | 52 | +++ gcc/config/i386/sol2.h 2011-03-27 18:06:45.458713885 +0200 |
michael@332 | 53 | @@ -73,6 +73,9 @@ |
michael@320 | 54 | #undef ASM_QUAD |
michael@320 | 55 | #endif |
michael@320 | 56 | |
michael@320 | 57 | +#undef DEFAULT_PCC_STRUCT_RETURN |
michael@320 | 58 | +#define DEFAULT_PCC_STRUCT_RETURN 1 |
michael@320 | 59 | + |
michael@320 | 60 | /* The Solaris assembler wants a .local for non-exported aliases. */ |
michael@320 | 61 | #define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET) \ |
michael@320 | 62 | do { \ |
michael@320 | 63 | Index: gcc/config/sol2.h |
michael@332 | 64 | diff -Nau gcc/config/sol2.h.orig gcc/config/sol2.h |
michael@332 | 65 | --- gcc/config/sol2.h.orig 2011-01-26 21:23:17.000000000 +0100 |
michael@332 | 66 | +++ gcc/config/sol2.h 2011-03-27 18:06:45.477952967 +0200 |
michael@406 | 67 | @@ -181,8 +181,8 @@ |
michael@332 | 68 | "%{h*} %{v:-V} \ |
michael@320 | 69 | %{!shared:%{!static:%{rdynamic: " RDYNAMIC_SPEC "}}} \ |
michael@320 | 70 | %{static:-dn -Bstatic} \ |
michael@320 | 71 | - %{shared:-G -dy %{!mimpure-text:-z text}} \ |
michael@320 | 72 | - %{symbolic:-Bsymbolic -G -dy -z text} \ |
michael@320 | 73 | + %{shared:-G -dy} \ |
michael@320 | 74 | + %{symbolic:-Bsymbolic -G -dy} \ |
michael@406 | 75 | %{pthreads|pthread|threads:" LIB_THREAD_LDFLAGS_SPEC "} \ |
michael@320 | 76 | %(link_arch) \ |
michael@320 | 77 | %{Qy:} %{!Qn:-Qy}" |
michael@320 | 78 | Index: gcc/system.h |
michael@332 | 79 | diff -Nau gcc/system.h.orig gcc/system.h |
michael@332 | 80 | --- gcc/system.h.orig 2011-01-09 13:41:33.000000000 +0100 |
michael@332 | 81 | +++ gcc/system.h 2011-03-27 18:06:45.498233251 +0200 |
michael@332 | 82 | @@ -430,10 +430,6 @@ |
michael@320 | 83 | extern char *strstr (const char *, const char *); |
michael@320 | 84 | #endif |
michael@320 | 85 | |
michael@320 | 86 | -#ifdef HAVE_MALLOC_H |
michael@320 | 87 | -#include <malloc.h> |
michael@320 | 88 | -#endif |
michael@320 | 89 | - |
michael@320 | 90 | #if defined (HAVE_DECL_MALLOC) && !HAVE_DECL_MALLOC |
michael@320 | 91 | extern void *malloc (size_t); |
michael@320 | 92 | #endif |
michael@320 | 93 | Index: libcpp/charset.c |
michael@332 | 94 | diff -Nau libcpp/charset.c.orig libcpp/charset.c |
michael@332 | 95 | --- libcpp/charset.c.orig 2011-01-03 21:52:22.000000000 +0100 |
michael@332 | 96 | +++ libcpp/charset.c 2011-03-27 18:06:45.522800310 +0200 |
michael@320 | 97 | @@ -75,6 +75,7 @@ |
michael@320 | 98 | #define iconv_open(x, y) (errno = EINVAL, (iconv_t)-1) |
michael@320 | 99 | #define iconv(a,b,c,d,e) (errno = EINVAL, (size_t)-1) |
michael@320 | 100 | #define iconv_close(x) (void)0 |
michael@320 | 101 | +#undef ICONV_CONST |
michael@320 | 102 | #define ICONV_CONST |
michael@320 | 103 | #endif |
michael@320 | 104 | |
michael@320 | 105 | Index: libcpp/internal.h |
michael@332 | 106 | diff -Nau libcpp/internal.h.orig libcpp/internal.h |
michael@332 | 107 | --- libcpp/internal.h.orig 2010-09-29 20:18:38.000000000 +0200 |
michael@332 | 108 | +++ libcpp/internal.h 2011-03-27 18:06:45.537431542 +0200 |
michael@320 | 109 | @@ -29,6 +29,7 @@ |
michael@320 | 110 | #if HAVE_ICONV |
michael@320 | 111 | #include <iconv.h> |
michael@320 | 112 | #else |
michael@320 | 113 | +#undef HAVE_ICONV |
michael@320 | 114 | #define HAVE_ICONV 0 |
michael@320 | 115 | typedef int iconv_t; /* dummy */ |
michael@320 | 116 | #endif |