···56kde {
7008 # todo: polkit isn't found by the build system
910 buildInputs = [
···56kde {
78+ patches = [ ./pykde4-gcc-5.patch ];
9+10 # todo: polkit isn't found by the build system
1112 buildInputs = [
-144
pkgs/development/compilers/gcc/4.3/builder.sh
···1-source $stdenv/setup
2-3-4-export NIX_FIXINC_DUMMY=$NIX_BUILD_TOP/dummy
5-mkdir $NIX_FIXINC_DUMMY
6-7-8-# libstdc++ needs this; otherwise it will use /lib/cpp, which is a Bad
9-# Thing.
10-export CPP="gcc -E"
11-12-13-if test "$noSysDirs" = "1"; then
14-15- if test -e $NIX_CC/nix-support/orig-libc; then
16-17- # Figure out what extra flags to pass to the gcc compilers
18- # being generated to make sure that they use our glibc.
19- extraCFlags="$(cat $NIX_CC/nix-support/libc-cflags)"
20- extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)"
21-22- # Use *real* header files, otherwise a limits.h is generated
23- # that does not include Glibc's limits.h (notably missing
24- # SSIZE_MAX, which breaks the build).
25- export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include
26-27- else
28- # Hack: support impure environments.
29- extraCFlags="-isystem /usr/include"
30- extraLDFlags="-L/usr/lib64 -L/usr/lib"
31- export NIX_FIXINC_DUMMY=/usr/include
32- fi
33-34-35- extraCFlags="-g0 -I$gmp/include -I$mpfr/include $extraCFlags"
36- extraLDFlags="--strip-debug $extraLDFlags"
37-38- export NIX_EXTRA_CFLAGS=$extraCFlags
39- for i in $extraLDFlags; do
40- export NIX_EXTRA_LDFLAGS="$NIX_EXTRA_LDFLAGS -Wl,$i"
41- done
42-43- if test -n "$targetConfig"; then
44- if test -z "$crossStageStatic"; then
45- extraXCFlags="-B${libcCross}/lib -idirafter ${libcCross}/include"
46- extraXLDFlags="-L${libcCross}/lib"
47- export NIX_EXTRA_CFLAGS_TARGET=$extraXCFlags
48- for i in $extraXLDFlags; do
49- export NIX_EXTRA_LDFLAGS_TARGET="$NIX_EXTRA_LDFLAGS_TARGET -Wl,$i"
50- done
51- fi
52-53- makeFlagsArray=( \
54- "${makeFlagsArray[@]}" \
55- NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
56- SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
57- CFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS_TARGET $NIX_EXTRA_LDFLAGS_TARGET" \
58- LDFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS_TARGET $NIX_EXTRA_LDFLAGS_TARGET" \
59- )
60- else
61- export NIX_EXTRA_CFLAGS_TARGET=$NIX_EXTRA_CFLAGS
62- export NIX_EXTRA_LDFLAGS_TARGET=$NIX_EXTRA_LDFLAGS
63- makeFlagsArray=( \
64- "${makeFlagsArray[@]}" \
65- NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
66- SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
67- CFLAGS_FOR_BUILD="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \
68- CFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \
69- LDFLAGS_FOR_BUILD="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \
70- LDFLAGS_FOR_TARGET="$NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS" \
71- )
72- fi
73-74- if test -n "$targetConfig" -a "$crossStageStatic" == 1; then
75- # We don't want the gcc build to assume there will be a libc providing
76- # limits.h in this stagae
77- makeFlagsArray=( \
78- "${makeFlagsArray[@]}" \
79- LIMITS_H_TEST=false \
80- )
81- else
82- makeFlagsArray=( \
83- "${makeFlagsArray[@]}" \
84- LIMITS_H_TEST=true \
85- )
86- fi
87-fi
88-89-if test -n "$targetConfig"; then
90- # The host strip will destroy everything in the target binaries otherwise
91- dontStrip=1
92-fi
93-94-preConfigure() {
95- # Perform the build in a different directory.
96- mkdir ../build
97- cd ../build
98- configureScript=../$sourceRoot/configure
99-}
100-101-102-postInstall() {
103- # Remove precompiled headers for now. They are very big and
104- # probably not very useful yet.
105- find $out/include -name "*.gch" -exec rm -rf {} \; -prune
106-107- # Remove `fixincl' to prevent a retained dependency on the
108- # previous gcc.
109- rm -rf $out/libexec/gcc/*/*/install-tools
110- rm -rf $out/lib/gcc/*/*/install-tools
111-112- # Get rid of some "fixed" header files
113- rm -rf $out/lib/gcc/*/*/include/root
114-115- # Replace hard links for i686-pc-linux-gnu-gcc etc. with symlinks.
116- for i in $out/bin/*-gcc*; do
117- if cmp -s $out/bin/gcc $i; then
118- ln -sfn gcc $i
119- fi
120- done
121-122- for i in $out/bin/*-c++* $out/bin/*-g++*; do
123- if cmp -s $out/bin/g++ $i; then
124- ln -sfn g++ $i
125- fi
126- done
127-128- eval "$postInstallGhdl"
129-}
130-131-132-if test -z "$targetConfig"; then
133- if test -z "$profiledCompiler"; then
134- buildFlags="bootstrap $buildFlags"
135- else
136- buildFlags="profiledbootstrap $buildFlags"
137- fi
138-else
139-:
140-# buildFlags="all-gcc all-target-libgcc $buildFlags"
141-# installTargets="install-gcc install-target-libgcc"
142-fi
143-144-genericBuild
···1-diff -ru gcc-4.3.1-orig/libgfortran/configure gcc-4.3.1/libgfortran/configure
2---- gcc-4.3.1-orig/libgfortran/configure 2008-06-06 16:49:11.000000000 +0200
3-+++ gcc-4.3.1/libgfortran/configure 2008-06-27 08:25:08.000000000 +0200
4-@@ -35405,6 +35405,11 @@
5- # A language specific compiler.
6- CC=$lt_compiler
7-8-+# Ugly hack to get libmudflap (and possibly other libraries) to build.
9-+# Libtool filters out \`-B' flags when linking (why?), so the \`-B' flag
10-+# to Glibc gets lost. Here we forcibly add it to any invocation.
11-+CC="\$CC $NIX_EXTRA_CFLAGS $NIX_EXTRA_LDFLAGS"
12-+
13- # Is the compiler the GNU compiler?
14- with_gcc=$GCC
15-
···1-source $stdenv/setup
2-3-4-export NIX_FIXINC_DUMMY=$NIX_BUILD_TOP/dummy
5-mkdir $NIX_FIXINC_DUMMY
6-7-8-# libstdc++ needs this; otherwise it will use /lib/cpp, which is a Bad
9-# Thing.
10-export CPP="gcc -E"
11-12-if test "$staticCompiler" = "1"; then
13- EXTRA_LDFLAGS="-static"
14-else
15- EXTRA_LDFLAGS=""
16-fi
17-18-if test "$noSysDirs" = "1"; then
19-20- if test -e $NIX_CC/nix-support/orig-libc; then
21-22- # Figure out what extra flags to pass to the gcc compilers
23- # being generated to make sure that they use our glibc.
24- extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)"
25- extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before)"
26-27- # Use *real* header files, otherwise a limits.h is generated
28- # that does not include Glibc's limits.h (notably missing
29- # SSIZE_MAX, which breaks the build).
30- export NIX_FIXINC_DUMMY=$(cat $NIX_CC/nix-support/orig-libc)/include
31-32- # The path to the Glibc binaries such as `crti.o'.
33- glibc_libdir="$(cat $NIX_CC/nix-support/orig-libc)/lib"
34-35- else
36- # Hack: support impure environments.
37- extraFlags="-isystem /usr/include"
38- extraLDFlags="-L/usr/lib64 -L/usr/lib"
39- glibc_libdir="/usr/lib"
40- export NIX_FIXINC_DUMMY=/usr/include
41- fi
42-43- extraFlags="-g0 -O2 -I$NIX_FIXINC_DUMMY $extraFlags"
44- extraLDFlags="--strip-debug -L$glibc_libdir -rpath $glibc_libdir $extraLDFlags"
45-46- EXTRA_FLAGS="$extraFlags"
47- for i in $extraLDFlags; do
48- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,$i"
49- done
50-51- if test -n "$targetConfig"; then
52- # Cross-compiling, we need gcc not to read ./specs in order to build
53- # the g++ compiler (after the specs for the cross-gcc are created).
54- # Having LIBRARY_PATH= makes gcc read the specs from ., and the build
55- # breaks. Having this variable comes from the default.nix code to bring
56- # gcj in.
57- unset LIBRARY_PATH
58- unset CPATH
59- if test -z "$crossStageStatic"; then
60- EXTRA_FLAGS_TARGET="-g0 -O2 -B${libcCross}/lib -idirafter ${libcCross}/include"
61- EXTRA_LDFLAGS_TARGET="-Wl,-L${libcCross}/lib"
62- fi
63- else
64- if test -z "$NIX_CC_CROSS"; then
65- EXTRA_FLAGS_TARGET="$EXTRA_FLAGS"
66- EXTRA_LDFLAGS_TARGET="$EXTRA_LDFLAGS"
67- else
68- # This the case of cross-building the gcc.
69- # We need special flags for the target, different than those of the build
70- # Assertion:
71- test -e $NIX_CC_CROSS/nix-support/orig-libc
72-73- # Figure out what extra flags to pass to the gcc compilers
74- # being generated to make sure that they use our glibc.
75- extraFlags="$(cat $NIX_CC_CROSS/nix-support/libc-cflags)"
76- extraLDFlags="$(cat $NIX_CC_CROSS/nix-support/libc-ldflags) $(cat $NIX_CC_CROSS/nix-support/libc-ldflags-before)"
77-78- # Use *real* header files, otherwise a limits.h is generated
79- # that does not include Glibc's limits.h (notably missing
80- # SSIZE_MAX, which breaks the build).
81- NIX_FIXINC_DUMMY_CROSS=$(cat $NIX_CC_CROSS/nix-support/orig-libc)/include
82-83- # The path to the Glibc binaries such as `crti.o'.
84- glibc_libdir="$(cat $NIX_CC_CROSS/nix-support/orig-libc)/lib"
85-86- extraFlags="-g0 -O2 -I$NIX_FIXINC_DUMMY_CROSS $extraFlags"
87- extraLDFlags="--strip-debug -L$glibc_libdir -rpath $glibc_libdir $extraLDFlags"
88-89- EXTRA_FLAGS_TARGET="$extraFlags"
90- for i in $extraLDFlags; do
91- EXTRA_LDFLAGS_TARGET="$EXTRA_LDFLAGS_TARGET -Wl,$i"
92- done
93- fi
94- fi
95-96-97- # CFLAGS_FOR_TARGET are needed for the libstdc++ configure script to find
98- # the startfiles.
99- # FLAGS_FOR_TARGET are needed for the target libraries to receive the -Bxxx
100- # for the startfiles.
101- makeFlagsArray=( \
102- "${makeFlagsArray[@]}" \
103- NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
104- SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \
105- CFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
106- CFLAGS_FOR_TARGET="$EXTRA_FLAGS_TARGET $EXTRA_LDFLAGS_TARGET" \
107- FLAGS_FOR_TARGET="$EXTRA_FLAGS_TARGET $EXTRA_LDFLAGS_TARGET" \
108- LDFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
109- LDFLAGS_FOR_TARGET="$EXTRA_FLAGS_TARGET $EXTRA_LDFLAGS_TARGET" \
110- )
111-112- if test -z "$targetConfig"; then
113- makeFlagsArray=( \
114- "${makeFlagsArray[@]}" \
115- BOOT_CFLAGS="$EXTRA_FLAGS $EXTRA_LDFLAGS" \
116- BOOT_LDFLAGS="$EXTRA_FLAGS_TARGET $EXTRA_LDFLAGS_TARGET" \
117- )
118- fi
119-120- if test -n "$targetConfig" -a "$crossStageStatic" == 1; then
121- # We don't want the gcc build to assume there will be a libc providing
122- # limits.h in this stagae
123- makeFlagsArray=( \
124- "${makeFlagsArray[@]}" \
125- LIMITS_H_TEST=false \
126- )
127- else
128- makeFlagsArray=( \
129- "${makeFlagsArray[@]}" \
130- LIMITS_H_TEST=true \
131- )
132- fi
133-fi
134-135-if test -n "$targetConfig"; then
136- # The host strip will destroy some important details of the objects
137- dontStrip=1
138-fi
139-140-preConfigure() {
141- if test -n "$newlibSrc"; then
142- tar xvf "$newlibSrc" -C ..
143- ln -s ../newlib-*/newlib newlib
144- # Patch to get armvt5el working:
145- sed -i -e 's/ arm)/ arm*)/' newlib/configure.host
146- fi
147- # Bug - they packaged zlib
148- if test -d "zlib"; then
149- # This breaks the build without-headers, which should build only
150- # the target libgcc as target libraries.
151- # See 'configure:5370'
152- rm -Rf zlib
153- fi
154-155- # Perform the build in a different directory.
156- mkdir ../build
157- cd ../build
158- configureScript=../$sourceRoot/configure
159-}
160-161-162-postInstall() {
163- # Remove precompiled headers for now. They are very big and
164- # probably not very useful yet.
165- find $out/include -name "*.gch" -exec rm -rf {} \; -prune
166-167- # Remove `fixincl' to prevent a retained dependency on the
168- # previous gcc.
169- rm -rf $out/libexec/gcc/*/*/install-tools
170- rm -rf $out/lib/gcc/*/*/install-tools
171-172- # Get rid of some "fixed" header files
173- rm -rf $out/lib/gcc/*/*/include/root
174-175- # Replace hard links for i686-pc-linux-gnu-gcc etc. with symlinks.
176- for i in $out/bin/*-gcc*; do
177- if cmp -s $out/bin/gcc $i; then
178- ln -sfn gcc $i
179- fi
180- done
181-182- for i in $out/bin/*-c++* $out/bin/*-g++*; do
183- if cmp -s $out/bin/g++ $i; then
184- ln -sfn g++ $i
185- fi
186- done
187-188- eval "$postInstallGhdl"
189-}
190-191-192-if test -z "$targetConfig" && test -z "$crossConfig"; then
193- if test -z "$profiledCompiler"; then
194- buildFlags="bootstrap $buildFlags"
195- else
196- buildFlags="profiledbootstrap $buildFlags"
197- fi
198-fi
199-200-genericBuild
···1-diff --git a/libada/Makefile.in b/libada/Makefile.in
2-index f5057a0..337e0c6 100644
3---- a/libada/Makefile.in
4-+++ b/libada/Makefile.in
5-@@ -55,7 +55,7 @@ GCC_WARN_CFLAGS = $(LOOSE_WARN)
6- WARN_CFLAGS = @warn_cflags@
7-8- TARGET_LIBGCC2_CFLAGS=
9--GNATLIBCFLAGS= -g -O2
10-+GNATLIBCFLAGS= -g -O2 $(CFLAGS)
11- GNATLIBCFLAGS_FOR_C = $(GNATLIBCFLAGS) $(TARGET_LIBGCC2_CFLAGS) -fexceptions \
12- -DIN_RTS @have_getipinfo@
13-14---- a/gcc/ada/gcc-interface/Makefile.in
15-+++ b/gcc/ada/gcc-interface/Makefile.in
16-@@ -105,7 +105,7 @@ ADAFLAGS = -W -Wall -gnatpg -gnata
17- SOME_ADAFLAGS =-gnata
18- FORCE_DEBUG_ADAFLAGS = -g
19- GNATLIBFLAGS = -gnatpg -nostdinc
20--GNATLIBCFLAGS = -g -O2
21-+GNATLIBCFLAGS = -g -O2 $(CFLAGS_FOR_TARGET)
22- # Pretend that _Unwind_GetIPInfo is available for the target by default. This
23- # should be autodetected during the configuration of libada and passed down to
24- # here, but we need something for --disable-libada and hope for the best.
25-@@ -1838,7 +1838,7 @@ ADA_INCLUDE_SRCS =\
26-27- LIBGNAT=../$(RTSDIR)/libgnat.a
28-29--GCC_LINK=$(CC) -static-libgcc $(ADA_INCLUDES)
30-+GCC_LINK=$(CC) -static-libgcc $(CFLAGS_FOR_TARGET) $(ADA_INCLUDES)
31-32- # when compiling the tools, the runtime has to be first on the path so that
33- # it hides the runtime files lying with the rest of the sources
···29 description = "Library for manipulation of term data structures in C";
30 platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
31 maintainers = [ stdenv.lib.maintainers.eelco ];
032 };
33}
···29 description = "Library for manipulation of term data structures in C";
30 platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
31 maintainers = [ stdenv.lib.maintainers.eelco ];
32+ broken = true;
33 };
34}
+1-1
pkgs/development/libraries/gsl/default.nix
···13 ./disable-fma.patch # http://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html
14 ];
1516- doCheck = true;
1718 meta = {
19 description = "The GNU Scientific Library, a large numerical library";
···13 ./disable-fma.patch # http://lists.gnu.org/archive/html/bug-gsl/2011-11/msg00019.html
14 ];
1516+ doCheck = stdenv.system != "i686-linux"; # https://lists.gnu.org/archive/html/bug-gsl/2015-11/msg00012.html
1718 meta = {
19 description = "The GNU Scientific Library, a large numerical library";