qt3: remove
Not used by any other package, and has vulnerabilities. Close #99841 , Close #96827, Close #90955.
This commit is contained in:
parent
d5f51d0660
commit
a5088c098a
@ -1,38 +0,0 @@
|
||||
source $stdenv/setup
|
||||
|
||||
|
||||
preConfigure() {
|
||||
|
||||
# Patch some of the configure files a bit to get of global paths.
|
||||
# (Buildings using stuff in those paths will fail anyway, but it
|
||||
# will cause ./configure misdetections).
|
||||
for i in config.tests/unix/checkavail config.tests/*/*.test mkspecs/*/qmake.conf; do
|
||||
echo "patching $i..."
|
||||
substituteInPlace "$i" \
|
||||
--replace " /lib" " /FOO" \
|
||||
--replace "/usr" "/FOO"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
# !!! TODO: -system-libmng
|
||||
configureFlags="-prefix $out $configureFlags"
|
||||
dontAddPrefix=1
|
||||
|
||||
configureScript=configureScript
|
||||
configureScript() {
|
||||
echo yes | ./configure $configureFlags
|
||||
export LD_LIBRARY_PATH=$(pwd)/lib
|
||||
}
|
||||
|
||||
|
||||
postInstall() {
|
||||
# Qt's `make install' is broken; it copies ./bin/qmake, which
|
||||
# is a symlink to ./qmake/qmake. So we end up with a dangling
|
||||
# symlink.
|
||||
rm $out/bin/qmake
|
||||
cp -p qmake/qmake $out/bin
|
||||
}
|
||||
|
||||
|
||||
genericBuild
|
@ -1,92 +0,0 @@
|
||||
{ lib, stdenv, fetchurl
|
||||
, xftSupport ? true, libXft ? null
|
||||
, xrenderSupport ? true, libXrender ? null
|
||||
, xrandrSupport ? true, libXrandr ? null
|
||||
, xineramaSupport ? true, libXinerama ? null
|
||||
, cursorSupport ? true, libXcursor ? null
|
||||
, threadSupport ? true
|
||||
, mysqlSupport ? false, libmysqlclient ? null
|
||||
, libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
|
||||
, openglSupport ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms
|
||||
, libGL ? null, libGLU ? null, libXmu ? null
|
||||
, xlibsWrapper, xorgproto, zlib, libjpeg, libpng, which
|
||||
}:
|
||||
|
||||
assert xftSupport -> libXft != null;
|
||||
assert xrenderSupport -> xftSupport && libXrender != null;
|
||||
assert xrandrSupport -> libXrandr != null;
|
||||
assert cursorSupport -> libXcursor != null;
|
||||
assert mysqlSupport -> libmysqlclient != null;
|
||||
assert openglSupport -> libGL != null && libGLU != null && libXmu != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "qt-3.3.8";
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.qt.io/archive/qt/3/qt-x11-free-3.3.8.tar.bz2";
|
||||
sha256 = "0jd4g3bwkgk2s4flbmgisyihm7cam964gzb3pawjlkhas01zghz8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ which ];
|
||||
propagatedBuildInputs = [libpng xlibsWrapper libXft libXrender zlib libjpeg];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
configureFlags = let
|
||||
mk = cond: name: "-${lib.optionalString (!cond) "no-"}${name}";
|
||||
in [
|
||||
"-v"
|
||||
"-system-zlib" "-system-libpng" "-system-libjpeg"
|
||||
"-qt-gif"
|
||||
"-I${xorgproto}/include"
|
||||
(mk threadSupport "thread")
|
||||
(mk xrenderSupport "xrender")
|
||||
(mk xrandrSupport "xrandr")
|
||||
(mk xineramaSupport "xinerama")
|
||||
(mk xrandrSupport "xrandr")
|
||||
(mk xftSupport "xft")
|
||||
] ++ lib.optionals openglSupport [
|
||||
"-dlopen-opengl"
|
||||
"-L${libGL}/lib" "-I${libGLU}/include"
|
||||
"-L${libXmu.out}/lib" "-I${libXmu.dev}/include"
|
||||
] ++ lib.optionals xrenderSupport [
|
||||
"-L${libXrender.out}/lib" "-I${libXrender.dev}/include"
|
||||
] ++ lib.optionals xrandrSupport [
|
||||
"-L${libXrandr.out}/lib" "-I${libXrandr.dev}/include"
|
||||
] ++ lib.optionals xineramaSupport [
|
||||
"-L${libXinerama.out}/lib" "-I${libXinerama.dev}/include"
|
||||
] ++ lib.optionals cursorSupport [
|
||||
"-L${libXcursor.out}/lib -I${libXcursor.dev}/include"
|
||||
] ++ lib.optionals mysqlSupport [
|
||||
"-qt-sql-mysql" "-L${libmysqlclient}/lib/mysql" "-I${libmysqlclient}/include/mysql"
|
||||
] ++ lib.optionals xftSupport [
|
||||
"-L${libXft.out}/lib" "-I${libXft.dev}/include"
|
||||
"-L${libXft.freetype.out}/lib" "-I${libXft.freetype.dev}/include"
|
||||
"-L${libXft.fontconfig.lib}/lib" "-I${libXft.fontconfig.dev}/include"
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Don't strip everything so we can get useful backtraces.
|
||||
./strip.patch
|
||||
|
||||
# Build on NixOS.
|
||||
./qt-pwd.patch
|
||||
|
||||
# randr.h and Xrandr.h need not be in the same prefix.
|
||||
./xrandr.patch
|
||||
|
||||
# Make it build with gcc 4.6.0
|
||||
./qt3-gcc4.6.0.patch
|
||||
];
|
||||
|
||||
passthru = {inherit mysqlSupport;};
|
||||
|
||||
meta = with lib; {
|
||||
license = with licenses; [ gpl2 qpl ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
diff -ruN qt-x11-free-3.3.3/configure qt-x11-free-3.3.3.new/configure
|
||||
--- qt-x11-free-3.3.3/configure 2004-06-14 11:18:55.000000000 +0200
|
||||
+++ qt-x11-free-3.3.3.new/configure 2005-11-12 19:39:43.000000000 +0100
|
||||
@@ -16,9 +16,9 @@
|
||||
relconf=`basename $0`
|
||||
# the directory of this script is the "source tree"
|
||||
relpath=`dirname $0`
|
||||
-relpath=`(cd $relpath; /bin/pwd)`
|
||||
+relpath=`(cd $relpath; pwd)`
|
||||
# the current directory is the "build tree" or "object tree"
|
||||
-outpath=`/bin/pwd`
|
||||
+outpath=`pwd`
|
||||
|
||||
# later cache the command line in config.status
|
||||
OPT_CMDLINE=`echo $@ | sed "s,-v ,,g; s,-v$,,g"`
|
@ -1,23 +0,0 @@
|
||||
I picked it here:
|
||||
https://bugs.archlinux.org/task/23915
|
||||
|
||||
--- qt-x11-free-3.3.8b/src/tools/qmap.h~ 2008-01-15 19:09:13.000000000 +0000
|
||||
+++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-04-11 00:16:04.000000000 +0100
|
||||
@@ -50,6 +50,7 @@
|
||||
#endif // QT_H
|
||||
|
||||
#ifndef QT_NO_STL
|
||||
+#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <map>
|
||||
#endif
|
||||
--- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~ 2008-01-15 19:09:13.000000000 +0000
|
||||
+++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-04-11 00:16:49.000000000 +0100
|
||||
@@ -48,6 +48,7 @@
|
||||
#endif // QT_H
|
||||
|
||||
#ifndef QT_NO_STL
|
||||
+#include <cstddef>
|
||||
#include <iterator>
|
||||
#include <list>
|
||||
#endif
|
@ -1 +0,0 @@
|
||||
export QTDIR=@out@
|
@ -1,18 +0,0 @@
|
||||
diff -rc qt-x11-free-3.3.3-orig/mkspecs/linux-g++/qmake.conf qt-x11-free-3.3.3/mkspecs/linux-g++/qmake.conf
|
||||
*** qt-x11-free-3.3.3-orig/mkspecs/linux-g++/qmake.conf 2004-08-05 16:42:57.000000000 +0200
|
||||
--- qt-x11-free-3.3.3/mkspecs/linux-g++/qmake.conf 2005-03-02 12:25:55.000000000 +0100
|
||||
***************
|
||||
*** 85,90 ****
|
||||
QMAKE_DEL_FILE = rm -f
|
||||
QMAKE_DEL_DIR = rmdir
|
||||
QMAKE_STRIP = strip
|
||||
! QMAKE_STRIPFLAGS_LIB += --strip-unneeded
|
||||
QMAKE_CHK_DIR_EXISTS = test -d
|
||||
QMAKE_MKDIR = mkdir -p
|
||||
--- 85,90 ----
|
||||
QMAKE_DEL_FILE = rm -f
|
||||
QMAKE_DEL_DIR = rmdir
|
||||
QMAKE_STRIP = strip
|
||||
! QMAKE_STRIPFLAGS_LIB += --strip-debug
|
||||
QMAKE_CHK_DIR_EXISTS = test -d
|
||||
QMAKE_MKDIR = mkdir -p
|
@ -1,42 +0,0 @@
|
||||
diff -rc qt-x11-free-3.3.6-orig/config.tests/x11/xrandr.test qt-x11-free-3.3.6/config.tests/x11/xrandr.test
|
||||
*** qt-x11-free-3.3.6-orig/config.tests/x11/xrandr.test 2006-09-14 14:00:08.000000000 +0200
|
||||
--- qt-x11-free-3.3.6/config.tests/x11/xrandr.test 2006-09-14 14:10:39.000000000 +0200
|
||||
***************
|
||||
*** 52,69 ****
|
||||
INCDIRS="$IN_INCDIRS $XDIRS /FOO/include /include"
|
||||
F=
|
||||
for INCDIR in $INCDIRS; do
|
||||
! if [ -f $INCDIR/$INC -a -f $INCDIR/$INC2 ]; then
|
||||
F=yes
|
||||
! XRANDR_H=$INCDIR/$INC
|
||||
RANDR_H=$INCDIR/$INC2
|
||||
! [ "$VERBOSE" = "yes" ] && echo " Found $INC in $INCDIR"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ -z "$F" ]
|
||||
then
|
||||
XRANDR=no
|
||||
! [ "$VERBOSE" = "yes" ] && echo " Could not find $INC anywhere in $INCDIRS"
|
||||
fi
|
||||
fi
|
||||
|
||||
--- 52,69 ----
|
||||
INCDIRS="$IN_INCDIRS $XDIRS /FOO/include /include"
|
||||
F=
|
||||
for INCDIR in $INCDIRS; do
|
||||
! if [ -f $INCDIR/$INC2 ]; then
|
||||
F=yes
|
||||
! # XRANDR_H=$INCDIR/$INC
|
||||
RANDR_H=$INCDIR/$INC2
|
||||
! [ "$VERBOSE" = "yes" ] && echo " Found $INC2 in $INCDIR"
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ -z "$F" ]
|
||||
then
|
||||
XRANDR=no
|
||||
! [ "$VERBOSE" = "yes" ] && echo " Could not find $INC2 anywhere in $INCDIRS"
|
||||
fi
|
||||
fi
|
||||
|
@ -550,6 +550,7 @@ mapAliases ({
|
||||
retroshare06 = retroshare;
|
||||
gtk-recordmydesktop = throw "gtk-recordmydesktop has been removed from nixpkgs, as it's unmaintained and uses deprecated libraries"; # added 2019-12-10
|
||||
qt-recordmydesktop = throw "qt-recordmydesktop has been removed from nixpkgs, as it's abandoned and uses deprecated libraries"; # added 2019-12-10
|
||||
qt-3 = throw "qt-3 has been removed from nixpkgs, as it's unmaintained and insecure"; # added 2021-02-15
|
||||
rfkill = throw "rfkill has been removed, as it's included in util-linux"; # added 2020-08-23
|
||||
riak-cs = throw "riak-cs is not maintained anymore"; # added 2020-10-14
|
||||
rkt = throw "rkt was archived by upstream"; # added 2020-05-16
|
||||
|
@ -16200,10 +16200,6 @@ in
|
||||
|
||||
qolibri = libsForQt5.callPackage ../applications/misc/qolibri { };
|
||||
|
||||
qt3 = callPackage ../development/libraries/qt-3 {
|
||||
libpng = libpng12;
|
||||
};
|
||||
|
||||
qt4 = qt48;
|
||||
|
||||
qt48 = callPackage ../development/libraries/qt-4.x/4.8 {
|
||||
|
Loading…
Reference in New Issue
Block a user