qt3: remove

Not used by any other package, and has vulnerabilities.

Close #99841 , Close #96827, Close #90955.

+1 -233
-38
pkgs/development/libraries/qt-3/builder.sh
··· 1 - source $stdenv/setup 2 - 3 - 4 - preConfigure() { 5 - 6 - # Patch some of the configure files a bit to get of global paths. 7 - # (Buildings using stuff in those paths will fail anyway, but it 8 - # will cause ./configure misdetections). 9 - for i in config.tests/unix/checkavail config.tests/*/*.test mkspecs/*/qmake.conf; do 10 - echo "patching $i..." 11 - substituteInPlace "$i" \ 12 - --replace " /lib" " /FOO" \ 13 - --replace "/usr" "/FOO" 14 - done 15 - } 16 - 17 - 18 - # !!! TODO: -system-libmng 19 - configureFlags="-prefix $out $configureFlags" 20 - dontAddPrefix=1 21 - 22 - configureScript=configureScript 23 - configureScript() { 24 - echo yes | ./configure $configureFlags 25 - export LD_LIBRARY_PATH=$(pwd)/lib 26 - } 27 - 28 - 29 - postInstall() { 30 - # Qt's `make install' is broken; it copies ./bin/qmake, which 31 - # is a symlink to ./qmake/qmake. So we end up with a dangling 32 - # symlink. 33 - rm $out/bin/qmake 34 - cp -p qmake/qmake $out/bin 35 - } 36 - 37 - 38 - genericBuild
···
-92
pkgs/development/libraries/qt-3/default.nix
··· 1 - { lib, stdenv, fetchurl 2 - , xftSupport ? true, libXft ? null 3 - , xrenderSupport ? true, libXrender ? null 4 - , xrandrSupport ? true, libXrandr ? null 5 - , xineramaSupport ? true, libXinerama ? null 6 - , cursorSupport ? true, libXcursor ? null 7 - , threadSupport ? true 8 - , mysqlSupport ? false, libmysqlclient ? null 9 - , libGLSupported ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms 10 - , openglSupport ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms 11 - , libGL ? null, libGLU ? null, libXmu ? null 12 - , xlibsWrapper, xorgproto, zlib, libjpeg, libpng, which 13 - }: 14 - 15 - assert xftSupport -> libXft != null; 16 - assert xrenderSupport -> xftSupport && libXrender != null; 17 - assert xrandrSupport -> libXrandr != null; 18 - assert cursorSupport -> libXcursor != null; 19 - assert mysqlSupport -> libmysqlclient != null; 20 - assert openglSupport -> libGL != null && libGLU != null && libXmu != null; 21 - 22 - stdenv.mkDerivation { 23 - name = "qt-3.3.8"; 24 - 25 - builder = ./builder.sh; 26 - 27 - setupHook = ./setup-hook.sh; 28 - 29 - src = fetchurl { 30 - url = "http://download.qt.io/archive/qt/3/qt-x11-free-3.3.8.tar.bz2"; 31 - sha256 = "0jd4g3bwkgk2s4flbmgisyihm7cam964gzb3pawjlkhas01zghz8"; 32 - }; 33 - 34 - nativeBuildInputs = [ which ]; 35 - propagatedBuildInputs = [libpng xlibsWrapper libXft libXrender zlib libjpeg]; 36 - 37 - hardeningDisable = [ "format" ]; 38 - 39 - configureFlags = let 40 - mk = cond: name: "-${lib.optionalString (!cond) "no-"}${name}"; 41 - in [ 42 - "-v" 43 - "-system-zlib" "-system-libpng" "-system-libjpeg" 44 - "-qt-gif" 45 - "-I${xorgproto}/include" 46 - (mk threadSupport "thread") 47 - (mk xrenderSupport "xrender") 48 - (mk xrandrSupport "xrandr") 49 - (mk xineramaSupport "xinerama") 50 - (mk xrandrSupport "xrandr") 51 - (mk xftSupport "xft") 52 - ] ++ lib.optionals openglSupport [ 53 - "-dlopen-opengl" 54 - "-L${libGL}/lib" "-I${libGLU}/include" 55 - "-L${libXmu.out}/lib" "-I${libXmu.dev}/include" 56 - ] ++ lib.optionals xrenderSupport [ 57 - "-L${libXrender.out}/lib" "-I${libXrender.dev}/include" 58 - ] ++ lib.optionals xrandrSupport [ 59 - "-L${libXrandr.out}/lib" "-I${libXrandr.dev}/include" 60 - ] ++ lib.optionals xineramaSupport [ 61 - "-L${libXinerama.out}/lib" "-I${libXinerama.dev}/include" 62 - ] ++ lib.optionals cursorSupport [ 63 - "-L${libXcursor.out}/lib -I${libXcursor.dev}/include" 64 - ] ++ lib.optionals mysqlSupport [ 65 - "-qt-sql-mysql" "-L${libmysqlclient}/lib/mysql" "-I${libmysqlclient}/include/mysql" 66 - ] ++ lib.optionals xftSupport [ 67 - "-L${libXft.out}/lib" "-I${libXft.dev}/include" 68 - "-L${libXft.freetype.out}/lib" "-I${libXft.freetype.dev}/include" 69 - "-L${libXft.fontconfig.lib}/lib" "-I${libXft.fontconfig.dev}/include" 70 - ]; 71 - 72 - patches = [ 73 - # Don't strip everything so we can get useful backtraces. 74 - ./strip.patch 75 - 76 - # Build on NixOS. 77 - ./qt-pwd.patch 78 - 79 - # randr.h and Xrandr.h need not be in the same prefix. 80 - ./xrandr.patch 81 - 82 - # Make it build with gcc 4.6.0 83 - ./qt3-gcc4.6.0.patch 84 - ]; 85 - 86 - passthru = {inherit mysqlSupport;}; 87 - 88 - meta = with lib; { 89 - license = with licenses; [ gpl2 qpl ]; 90 - platforms = platforms.linux; 91 - }; 92 - }
···
-15
pkgs/development/libraries/qt-3/qt-pwd.patch
··· 1 - diff -ruN qt-x11-free-3.3.3/configure qt-x11-free-3.3.3.new/configure 2 - --- qt-x11-free-3.3.3/configure 2004-06-14 11:18:55.000000000 +0200 3 - +++ qt-x11-free-3.3.3.new/configure 2005-11-12 19:39:43.000000000 +0100 4 - @@ -16,9 +16,9 @@ 5 - relconf=`basename $0` 6 - # the directory of this script is the "source tree" 7 - relpath=`dirname $0` 8 - -relpath=`(cd $relpath; /bin/pwd)` 9 - +relpath=`(cd $relpath; pwd)` 10 - # the current directory is the "build tree" or "object tree" 11 - -outpath=`/bin/pwd` 12 - +outpath=`pwd` 13 - 14 - # later cache the command line in config.status 15 - OPT_CMDLINE=`echo $@ | sed "s,-v ,,g; s,-v$,,g"`
···
-23
pkgs/development/libraries/qt-3/qt3-gcc4.6.0.patch
··· 1 - I picked it here: 2 - https://bugs.archlinux.org/task/23915 3 - 4 - --- qt-x11-free-3.3.8b/src/tools/qmap.h~ 2008-01-15 19:09:13.000000000 +0000 5 - +++ qt-x11-free-3.3.8b/src/tools/qmap.h 2011-04-11 00:16:04.000000000 +0100 6 - @@ -50,6 +50,7 @@ 7 - #endif // QT_H 8 - 9 - #ifndef QT_NO_STL 10 - +#include <cstddef> 11 - #include <iterator> 12 - #include <map> 13 - #endif 14 - --- qt-x11-free-3.3.8b/src/tools/qvaluelist.h~ 2008-01-15 19:09:13.000000000 +0000 15 - +++ qt-x11-free-3.3.8b/src/tools/qvaluelist.h 2011-04-11 00:16:49.000000000 +0100 16 - @@ -48,6 +48,7 @@ 17 - #endif // QT_H 18 - 19 - #ifndef QT_NO_STL 20 - +#include <cstddef> 21 - #include <iterator> 22 - #include <list> 23 - #endif
···
-1
pkgs/development/libraries/qt-3/setup-hook.sh
··· 1 - export QTDIR=@out@
···
-18
pkgs/development/libraries/qt-3/strip.patch
··· 1 - 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 2 - *** qt-x11-free-3.3.3-orig/mkspecs/linux-g++/qmake.conf 2004-08-05 16:42:57.000000000 +0200 3 - --- qt-x11-free-3.3.3/mkspecs/linux-g++/qmake.conf 2005-03-02 12:25:55.000000000 +0100 4 - *************** 5 - *** 85,90 **** 6 - QMAKE_DEL_FILE = rm -f 7 - QMAKE_DEL_DIR = rmdir 8 - QMAKE_STRIP = strip 9 - ! QMAKE_STRIPFLAGS_LIB += --strip-unneeded 10 - QMAKE_CHK_DIR_EXISTS = test -d 11 - QMAKE_MKDIR = mkdir -p 12 - --- 85,90 ---- 13 - QMAKE_DEL_FILE = rm -f 14 - QMAKE_DEL_DIR = rmdir 15 - QMAKE_STRIP = strip 16 - ! QMAKE_STRIPFLAGS_LIB += --strip-debug 17 - QMAKE_CHK_DIR_EXISTS = test -d 18 - QMAKE_MKDIR = mkdir -p
···
-42
pkgs/development/libraries/qt-3/xrandr.patch
··· 1 - 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 2 - *** qt-x11-free-3.3.6-orig/config.tests/x11/xrandr.test 2006-09-14 14:00:08.000000000 +0200 3 - --- qt-x11-free-3.3.6/config.tests/x11/xrandr.test 2006-09-14 14:10:39.000000000 +0200 4 - *************** 5 - *** 52,69 **** 6 - INCDIRS="$IN_INCDIRS $XDIRS /FOO/include /include" 7 - F= 8 - for INCDIR in $INCDIRS; do 9 - ! if [ -f $INCDIR/$INC -a -f $INCDIR/$INC2 ]; then 10 - F=yes 11 - ! XRANDR_H=$INCDIR/$INC 12 - RANDR_H=$INCDIR/$INC2 13 - ! [ "$VERBOSE" = "yes" ] && echo " Found $INC in $INCDIR" 14 - break 15 - fi 16 - done 17 - if [ -z "$F" ] 18 - then 19 - XRANDR=no 20 - ! [ "$VERBOSE" = "yes" ] && echo " Could not find $INC anywhere in $INCDIRS" 21 - fi 22 - fi 23 - 24 - --- 52,69 ---- 25 - INCDIRS="$IN_INCDIRS $XDIRS /FOO/include /include" 26 - F= 27 - for INCDIR in $INCDIRS; do 28 - ! if [ -f $INCDIR/$INC2 ]; then 29 - F=yes 30 - ! # XRANDR_H=$INCDIR/$INC 31 - RANDR_H=$INCDIR/$INC2 32 - ! [ "$VERBOSE" = "yes" ] && echo " Found $INC2 in $INCDIR" 33 - break 34 - fi 35 - done 36 - if [ -z "$F" ] 37 - then 38 - XRANDR=no 39 - ! [ "$VERBOSE" = "yes" ] && echo " Could not find $INC2 anywhere in $INCDIRS" 40 - fi 41 - fi 42 -
···
+1
pkgs/top-level/aliases.nix
··· 550 retroshare06 = retroshare; 551 gtk-recordmydesktop = throw "gtk-recordmydesktop has been removed from nixpkgs, as it's unmaintained and uses deprecated libraries"; # added 2019-12-10 552 qt-recordmydesktop = throw "qt-recordmydesktop has been removed from nixpkgs, as it's abandoned and uses deprecated libraries"; # added 2019-12-10 553 rfkill = throw "rfkill has been removed, as it's included in util-linux"; # added 2020-08-23 554 riak-cs = throw "riak-cs is not maintained anymore"; # added 2020-10-14 555 rkt = throw "rkt was archived by upstream"; # added 2020-05-16
··· 550 retroshare06 = retroshare; 551 gtk-recordmydesktop = throw "gtk-recordmydesktop has been removed from nixpkgs, as it's unmaintained and uses deprecated libraries"; # added 2019-12-10 552 qt-recordmydesktop = throw "qt-recordmydesktop has been removed from nixpkgs, as it's abandoned and uses deprecated libraries"; # added 2019-12-10 553 + qt-3 = throw "qt-3 has been removed from nixpkgs, as it's unmaintained and insecure"; # added 2021-02-15 554 rfkill = throw "rfkill has been removed, as it's included in util-linux"; # added 2020-08-23 555 riak-cs = throw "riak-cs is not maintained anymore"; # added 2020-10-14 556 rkt = throw "rkt was archived by upstream"; # added 2020-05-16
-4
pkgs/top-level/all-packages.nix
··· 16200 16201 qolibri = libsForQt5.callPackage ../applications/misc/qolibri { }; 16202 16203 - qt3 = callPackage ../development/libraries/qt-3 { 16204 - libpng = libpng12; 16205 - }; 16206 - 16207 qt4 = qt48; 16208 16209 qt48 = callPackage ../development/libraries/qt-4.x/4.8 {
··· 16200 16201 qolibri = libsForQt5.callPackage ../applications/misc/qolibri { }; 16202 16203 qt4 = qt48; 16204 16205 qt48 = callPackage ../development/libraries/qt-4.x/4.8 {