Merge pull request #4238 from wkennington/master.boost

Make boost 156 the default

+488 -1839
-1
nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix
··· 76 76 pkgs.ntfsprogs # for resizing NTFS partitions 77 77 pkgs.btrfsProgs 78 78 pkgs.jfsutils 79 - pkgs.jfsrec 80 79 81 80 # Some compression/archiver tools. 82 81 pkgs.unzip
-1
nixos/modules/profiles/base.nix
··· 34 34 pkgs.xfsprogs 35 35 pkgs.jfsutils 36 36 pkgs.f2fs-tools 37 - #pkgs.jfsrec # disabled because of Boost dependency 38 37 39 38 # Some compression/archiver tools. 40 39 pkgs.unzip
-1
nixos/modules/rename.nix
··· 131 131 ++ obsolete' [ "programs" "bash" "enable" ] 132 132 ++ obsolete' [ "services" "samba" "defaultShare" ] 133 133 ++ obsolete' [ "services" "syslog-ng" "serviceName" ] 134 - ++ obsolete' [ "services" "syslog-ng" "listenToJournal" ] 135 134 136 135 )
+16 -2
nixos/modules/services/logging/syslog-ng.nix
··· 43 43 The package providing syslog-ng binaries. 44 44 ''; 45 45 }; 46 + listenToJournal = mkOption { 47 + type = types.bool; 48 + default = true; 49 + description = '' 50 + Whether syslog-ng should listen to the syslog socket used 51 + by journald, and therefore receive all logs that journald 52 + produces. 53 + ''; 54 + }; 46 55 extraModulePaths = mkOption { 47 56 type = types.listOf types.str; 48 57 default = []; ··· 65 74 configHeader = mkOption { 66 75 type = types.lines; 67 76 default = '' 68 - @version: 3.6 77 + @version: 3.5 69 78 @include "scl.conf" 70 79 ''; 71 80 description = '' ··· 77 86 }; 78 87 79 88 config = mkIf cfg.enable { 89 + systemd.sockets.syslog = mkIf cfg.listenToJournal { 90 + wantedBy = [ "sockets.target" ]; 91 + socketConfig.Service = "syslog-ng.service"; 92 + }; 80 93 systemd.services.syslog-ng = { 81 94 description = "syslog-ng daemon"; 82 95 preStart = "mkdir -p /{var,run}/syslog-ng"; 83 - wantedBy = [ "multi-user.target" ]; 96 + wantedBy = optional (!cfg.listenToJournal) "multi-user.target"; 84 97 after = [ "multi-user.target" ]; # makes sure hostname etc is set 85 98 serviceConfig = { 86 99 Type = "notify"; 100 + Sockets = if cfg.listenToJournal then "syslog.socket" else null; 87 101 StandardOutput = "null"; 88 102 Restart = "on-failure"; 89 103 ExecStart = "${cfg.package}/sbin/syslog-ng ${concatStringsSep " " syslogngOptions}";
+1 -1
pkgs/applications/audio/guitarix/default.nix
··· 12 12 }; 13 13 14 14 buildInputs = [ 15 - avahi boost boost.lib eigen fftw gettext glib glibmm gtk gtkmm intltool 15 + avahi boost eigen fftw gettext glib glibmm gtk gtkmm intltool 16 16 jack2 ladspaH librdf libsndfile lilv lv2 pkgconfig python serd sord sratom 17 17 ]; 18 18
+1 -1
pkgs/applications/audio/ingen/default.nix
··· 13 13 }; 14 14 15 15 buildInputs = [ 16 - boost boost.lib ganv glibmm gtk gtkmm jack2 lilv lv2 pkgconfig python 16 + boost ganv glibmm gtk gtkmm jack2 lilv lv2 pkgconfig python 17 17 raul serd sord sratom suil 18 18 ]; 19 19
+1 -1
pkgs/applications/audio/pamixer/default.nix
··· 14 14 sha256 = "03r0sbfj85wp6yxa87pjg69ivmk0mxxa2nykr8gf2c607igmb034"; 15 15 }; 16 16 17 - buildInputs = [ pulseaudio boost boost.lib ]; 17 + buildInputs = [ pulseaudio boost ]; 18 18 19 19 installPhase = '' 20 20 mkdir -p $out/bin
+1 -1
pkgs/applications/audio/yoshimi/default.nix
··· 14 14 }; 15 15 16 16 buildInputs = [ 17 - alsaLib boost boost.lib cairo fftwSinglePrec fltk jack2 libsndfile mesa 17 + alsaLib boost cairo fftwSinglePrec fltk jack2 libsndfile mesa 18 18 minixml zlib xorg.libpthreadstubs 19 19 ]; 20 20
+1 -1
pkgs/applications/graphics/freecad/default.nix
··· 12 12 }; 13 13 14 14 buildInputs = [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost 15 - boost.lib zlib python swig gfortran soqt libf2c makeWrapper matplotlib 15 + zlib python swig gfortran soqt libf2c makeWrapper matplotlib 16 16 pycollada pyside pysideShiboken 17 17 ]; 18 18
+19 -15
pkgs/applications/graphics/geeqie/default.nix
··· 1 - { stdenv, fetchgit, pkgconfig, autoconf, automake, gtk, libpng, exiv2, lcms 2 - , intltool, gettext, libchamplain, fbida }: 1 + { stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, gtk, libpng, exiv2 2 + , lcms, intltool, gettext, libchamplain, fbida 3 + }: 3 4 4 5 stdenv.mkDerivation rec { 5 6 name = "geeqie-${version}"; ··· 11 12 sha256 = "1h9w0jrcqcp5jjgmks5pvpppnfxhcd1s3vqlyb3qyil2wfk8n8wp"; 12 13 }; 13 14 14 - preConfigure = "./autogen.sh"; 15 + configureFlags = [ 16 + "--enable-gps" 17 + ]; 15 18 16 - configureFlags = [ "--enable-gps" ]; 19 + configurePhase = '' 20 + ./autogen.sh $configureFlags 21 + ''; 17 22 18 - buildInputs = 19 - [ pkgconfig autoconf automake gtk libpng exiv2 lcms intltool gettext 20 - libchamplain 21 - ]; 23 + buildInputs = [ 24 + autoconf automake libtool pkgconfig gtk libpng exiv2 lcms intltool gettext 25 + libchamplain 26 + ]; 22 27 23 - postInstall = 24 - '' 25 - # Allow geeqie to find exiv2 and exiftran, necessary to 26 - # losslessly rotate JPEG images. 27 - sed -i $out/lib/geeqie/geeqie-rotate \ 28 - -e '1 a export PATH=${exiv2}/bin:${fbida}/bin:$PATH' 29 - ''; 28 + postInstall = '' 29 + # Allow geeqie to find exiv2 and exiftran, necessary to 30 + # losslessly rotate JPEG images. 31 + sed -i $out/lib/geeqie/geeqie-rotate \ 32 + -e '1 a export PATH=${exiv2}/bin:${fbida}/bin:$PATH' 33 + ''; 30 34 31 35 meta = with stdenv.lib; { 32 36 description = "Lightweight GTK+ based image viewer";
+1 -1
pkgs/applications/graphics/luminance-hdr/default.nix
··· 12 12 13 13 NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR"; 14 14 15 - buildInputs = [ qt5 boost boost.lib exiv2 fftwFloat gsl ilmbase lcms2 libraw libtiff openexr ]; 15 + buildInputs = [ qt5 boost exiv2 fftwFloat gsl ilmbase lcms2 libraw libtiff openexr ]; 16 16 17 17 nativeBuildInputs = [ cmake pkgconfig ]; 18 18
+1 -1
pkgs/applications/graphics/openimageio/default.nix
··· 12 12 }; 13 13 14 14 buildInputs = [ 15 - boost boost.lib cmake ilmbase libjpeg libpng libtiff opencolorio openexr 15 + boost cmake ilmbase libjpeg libpng libtiff opencolorio openexr 16 16 unzip 17 17 ]; 18 18
+1 -1
pkgs/applications/graphics/openscad/default.nix
··· 12 12 }; 13 13 14 14 buildInputs = [ 15 - qt4 bison flex eigen boost boost.lib mesa glew opencsg cgal mpfr gmp glib 15 + qt4 bison flex eigen boost mesa glew opencsg cgal mpfr gmp glib 16 16 pkgconfig 17 17 ]; 18 18
+1 -1
pkgs/applications/graphics/rapcad/default.nix
··· 10 10 sha256 = "37c7107dc4fcf8942a4ad35377c4e42e6aedfa35296e5fcf8d84882ae35087c7"; 11 11 }; 12 12 13 - buildInputs = [qt4 cgal boost boost.lib gmp mpfr flex bison dxflib]; 13 + buildInputs = [qt4 cgal boost gmp mpfr flex bison dxflib]; 14 14 15 15 configurePhase = '' 16 16 qmake;
+14 -6
pkgs/applications/graphics/synfigstudio/default.nix
··· 23 23 sha256 = "04mx321z929ngl65hfc1hv5jw37wqbh8y2avmpvajagvn6lp3zdl"; 24 24 }; 25 25 26 + configureFlags = [ 27 + "--with-boost=${boost.dev}" 28 + "--with-boost-libdir=${boost.lib}/lib" 29 + ]; 30 + 26 31 patches = [ ./synfig-cstring.patch ]; 27 32 28 33 buildInputs = [ 29 - ETL boost boost.lib cairo gettext glibmm libsigcxx libtool libxmlxx pango 34 + ETL boost cairo gettext glibmm libsigcxx libtool libxmlxx pango 30 35 pkgconfig 31 36 ]; 32 - 33 - configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ]; 34 37 }; 35 38 in 36 39 stdenv.mkDerivation rec { 37 40 name = "synfigstudio-${version}"; 38 41 39 42 src = fetchurl { 40 - url = "mirror://sourceforge/synfig/${name}.tar.gz"; 41 - sha256 = "13hw4z6yx70g4mnjmvmxkk7b1qzlwmqjhxflq5dd6cqdsmfw9mc7"; 42 - }; 43 + url = "mirror://sourceforge/synfig/${name}.tar.gz"; 44 + sha256 = "13hw4z6yx70g4mnjmvmxkk7b1qzlwmqjhxflq5dd6cqdsmfw9mc7"; 45 + }; 43 46 44 47 buildInputs = [ 45 48 ETL boost cairo fontsConf gettext glibmm gtk gtkmm imagemagick intltool 46 49 intltool libsigcxx libtool libxmlxx pkgconfig synfig 50 + ]; 51 + 52 + configureFlags = [ 53 + "--with-boost=${boost.dev}" 54 + "--with-boost-libdir=${boost.lib}/lib" 47 55 ]; 48 56 49 57 preBuild = ''
-4
pkgs/applications/misc/bitcoin/default.nix
··· 23 23 cd bitcoin* 24 24 ''; 25 25 26 - configureFlags = [ 27 - "--with-boost=${boost}" 28 - ]; 29 - 30 26 preCheck = '' 31 27 # At least one test requires writing in $HOME 32 28 HOME=$TMPDIR
-1
pkgs/applications/misc/bitcoin/dogecoin.nix
··· 30 30 ./autogen.sh \ 31 31 && ./configure --prefix=$out \ 32 32 --with-incompatible-bdb \ 33 - --with-boost-libdir=${boost}/lib \ 34 33 ${ if withGui then "--with-gui" else "" } 35 34 ''; 36 35
+1 -1
pkgs/applications/misc/blender/default.nix
··· 17 17 }; 18 18 19 19 buildInputs = 20 - [ SDL boost boost.lib cmake ffmpeg gettext glew ilmbase libXi 20 + [ SDL boost cmake ffmpeg gettext glew ilmbase libXi 21 21 libjpeg libpng libsamplerate libsndfile libtiff mesa openal 22 22 opencolorio openexr openimageio /* openjpeg */ python zlib fftw 23 23 ]
-4
pkgs/applications/misc/d4x/default.nix
··· 10 10 sha256 = "1i1jj02bxynisqapv31481sz9jpfp3f023ky47spz1v1wlwbs13m"; 11 11 }; 12 12 13 - configurePhase = "./configure --prefix=\$out " 14 - + " --with-boost-libdir=\$boost/lib" 15 - + " --with-boost-includedir=\$boost/include"; 16 - 17 13 buildInputs = [ gtk glib pkgconfig openssl boost ]; 18 14 19 15 meta = {
+1 -1
pkgs/applications/misc/freicoin/default.nix
··· 11 11 12 12 # I think that openssl and zlib are required, but come through other 13 13 # packages 14 - buildInputs = [ db boost boost.lib gmp mpfr miniupnpc qt4 unzip ]; 14 + buildInputs = [ db boost gmp mpfr miniupnpc qt4 unzip ]; 15 15 16 16 configurePhase = "qmake"; 17 17
+1 -1
pkgs/applications/misc/gnuradio/default.nix
··· 31 31 }; 32 32 33 33 buildInputs = [ 34 - cmake pkgconfig git boost boost.lib cppunit fftw python swig2 orc lxml qt4 34 + cmake pkgconfig git boost cppunit fftw python swig2 orc lxml qt4 35 35 qwt alsaLib SDL libusb1 uhd gsl makeWrapper 36 36 ]; 37 37
+1 -1
pkgs/applications/misc/librecad/2.0.nix
··· 15 15 ''; 16 16 17 17 configurePhase = '' 18 - qmake librecad.pro PREFIX=$out MUPARSER_DIR=${muparser} BOOST_DIR=${boost} 18 + qmake librecad.pro PREFIX=$out MUPARSER_DIR=${muparser} BOOST_DIR=${boost.dev} 19 19 ''; 20 20 21 21 installPhase = ''
+1 -1
pkgs/applications/misc/monero/default.nix
··· 11 11 sha256 = "0bbhqjjzh922aymjqrnl2hd3r8x6p7x5aa5jidv3l4d77drhlgzy"; 12 12 }; 13 13 14 - buildInputs = [ cmake boost boost.lib ]; 14 + buildInputs = [ cmake boost ]; 15 15 16 16 # these tests take a long time and don't 17 17 # always complete in the build environment
+1 -1
pkgs/applications/misc/namecoin/default.nix
··· 12 12 13 13 # Don't build with miniupnpc due to namecoin using a different verison that 14 14 # ships with NixOS and it is API incompatible. 15 - buildInputs = [ db4 boost boost.lib openssl unzip ]; 15 + buildInputs = [ db4 boost openssl unzip ]; 16 16 17 17 patchPhase = '' 18 18 sed -e 's/-Wl,-Bstatic//g' -e 's/-l gthread-2.0//g' -e 's/-l z//g' -i src/Makefile
+1 -1
pkgs/applications/misc/namecoin/qt.nix
··· 8 8 9 9 # Don't build with miniupnpc due to namecoin using a different verison that 10 10 # ships with NixOS and it is API incompatible. 11 - buildInputs = [ db4 boost boost.lib openssl unzip qt4 ]; 11 + buildInputs = [ db4 boost openssl unzip qt4 ]; 12 12 13 13 configurePhase = '' 14 14 qmake USE_UPNP=-
+1 -1
pkgs/applications/misc/twmn/default.nix
··· 10 10 sha256 = "1jd2y0ydcpjdmjbx77lw35710sqfwbgyrnpv66mi3gwvrbyiwpf3"; 11 11 }; 12 12 13 - buildInputs = [ qt4 pkgconfig boost boost.lib ]; 13 + buildInputs = [ qt4 pkgconfig boost ]; 14 14 propagatedBuildInputs = [ dbus ]; 15 15 16 16 configurePhase = "qmake";
+1 -1
pkgs/applications/networking/instant-messengers/ekiga/default.nix
··· 16 16 perl perlXMLParser evolution_data_server gnome_doc_utils avahi 17 17 libsigcxx gtk dbus_glib libnotify libXext xextproto sqlite 18 18 gnome3.libsoup glib gnome3.gnome_icon_theme_symbolic 19 - hicolor_icon_theme gnome3.gnome_icon_theme boost boost.lib 19 + hicolor_icon_theme gnome3.gnome_icon_theme boost 20 20 autoreconfHook pkgconfig libxml2 videoproto unixODBC db nspr 21 21 nss zlib libsecret libXrandr randrproto which libxslt libtasn1 22 22 gmp nettle makeWrapper ];
+1 -1
pkgs/applications/networking/instant-messengers/twinkle/default.nix
··· 20 20 configureFlags = "--with-extra-includes=${libjpeg}/include"; 21 21 22 22 buildInputs = 23 - [ pkgconfig autoreconfHook commoncpp2 openssl boost boost.lib libsndfile 23 + [ pkgconfig autoreconfHook commoncpp2 openssl boost libsndfile 24 24 libxml2 libjpeg readline qt3 perl file 25 25 # optional ? : 26 26 alsaLib speex
+1 -1
pkgs/applications/networking/linssid/default.nix
··· 9 9 sha256 = "13d35rlcjncd8lx3khkgn9x8is2xjd5fp6ns5xsn3w6l4xj9b4gl"; 10 10 }; 11 11 12 - buildInputs = [ qt5 pkgconfig boost boost.lib ]; 12 + buildInputs = [ qt5 pkgconfig boost ]; 13 13 14 14 postPatch = '' 15 15 sed -e "s|/usr/include/|/nonexistent/|g" -i linssid-app/*.pro
+1 -1
pkgs/applications/networking/p2p/eiskaltdcpp/default.nix
··· 8 8 sha256 = "3d9170645450f9cb0a605278b8646fec2110b9637910d86fd27cf245cbe24eaf"; 9 9 }; 10 10 11 - buildInputs = [ cmake pkgconfig qt4 boost boost.lib bzip2 libX11 pcre libidn lua5 miniupnpc aspell gettext ]; 11 + buildInputs = [ cmake pkgconfig qt4 boost bzip2 libX11 pcre libidn lua5 miniupnpc aspell gettext ]; 12 12 13 13 cmakeFlags = '' 14 14 -DUSE_ASPELL=ON
+9 -6
pkgs/applications/networking/p2p/qbittorrent/default.nix
··· 2 2 , pkgconfig }: 3 3 4 4 stdenv.mkDerivation rec { 5 - name = "qbittorrent-3.1.10"; 5 + name = "qbittorrent-3.1.11"; 6 6 7 7 src = fetchurl { 8 8 url = "mirror://sourceforge/qbittorrent/${name}.tar.xz"; 9 - sha256 = "0xhqli191r5v9b5x6wj1wsjlj6svf6ldgzl7jza39q3ipr5c2pg6"; 9 + sha256 = "0qvz8ifk01b9sw9x5yh3b5kmssx5yi026zvgvabdvfaqkvcmw43i"; 10 10 }; 11 11 12 - buildInputs = [ qt4 which dbus_libs boost libtorrentRasterbar 13 - pkgconfig ]; 12 + buildInputs = [ 13 + qt4 which dbus_libs boost libtorrentRasterbar pkgconfig 14 + ]; 14 15 15 - configureFlags = "--with-libboost-inc=${boost}/include " 16 - + "--with-libboost-lib=${boost}/lib"; 16 + configureFlags = [ 17 + "--with-libboost-lib=${boost.lib}/lib" 18 + "--with-libboost-inc=${boost.dev}/include" 19 + ]; 17 20 18 21 # https://github.com/qbittorrent/qBittorrent/issues/1992 19 22 #enableParallelBuilding = true;
-1
pkgs/applications/networking/p2p/twister/default.nix
··· 26 26 configureFlags = [ 27 27 "--with-libgeoip" 28 28 "--with-libiconv" 29 - "--with-boost=${boost}" 30 29 "--disable-deprecated-functions" 31 30 "--enable-tests" 32 31 "--enable-python-binding"
+1 -1
pkgs/applications/office/ledger/3.0.nix
··· 14 14 sha256 = "0fmmhr3as4v2kb6h64k1fq979080cqhd75jvxfg7axk2mylb6b3q"; 15 15 }; 16 16 17 - buildInputs = [ cmake boost boost.lib gmp mpfr libedit python texinfo gnused ]; 17 + buildInputs = [ cmake boost gmp mpfr libedit python texinfo gnused ]; 18 18 19 19 enableParallelBuilding = true; 20 20
+8 -6
pkgs/applications/office/libreoffice/default.nix
··· 40 40 sha256 = "10amvz7fzr1kcy3svfspkdykmspqgpjdmk44cyr406wi7v4lwnf9"; 41 41 }; 42 42 43 - configureFlags = "--with-boost=${boost}"; 43 + buildInputs = [ boost mdds pkgconfig ]; 44 44 45 - buildInputs = [ boost boost.lib mdds pkgconfig ]; 45 + configureFlags = [ "--with-boost=${boost.dev}" ]; 46 46 }; 47 47 48 48 fetchThirdParty = {name, md5, brief, subDir ? ""}: fetchurl { ··· 60 60 (x: x.name == "${name}.tar.bz2") 61 61 ("Error: update liborcus version inside LO expression") 62 62 (import ./libreoffice-srcs.nix)); 63 - configureFlags = "--with-boost=${boost}"; 63 + 64 + buildInputs = [ boost mdds pkgconfig zlib libixion ]; 64 65 65 - buildInputs = [ boost boost.lib mdds pkgconfig zlib libixion ]; 66 + configureFlags = [ "--with-boost=${boost.dev}" ]; 66 67 }; 67 68 68 69 fetchSrc = {name, sha256}: fetchurl { ··· 183 184 ''; 184 185 185 186 configureFlags = [ 187 + "--with-boost=${boost.dev}" 188 + "--with-boost-libdir=${boost.lib}/lib" 186 189 "--with-vendor=NixOS" 187 190 188 191 # Without these, configure does not finish ··· 198 201 "--with-system-headers" 199 202 "--with-system-openssl" 200 203 "--with-system-openldap" 201 - "--with-boost-libdir=${boost.lib}/lib" 202 204 "--without-system-libwps" # TODO 203 205 "--without-doxygen" 204 206 ··· 236 238 ''; 237 239 238 240 buildInputs = with xorg; 239 - [ ant ArchiveZip autoconf automake bison boost boost.lib cairo clucene_core 241 + [ ant ArchiveZip autoconf automake bison boost cairo clucene_core 240 242 CompressZlib cppunit cups curl db dbus_glib expat file flex fontconfig 241 243 freetype GConf getopt gnome_vfs gperf gst_plugins_base gstreamer gtk 242 244 hunspell icu jdk kde4.kdelibs lcms libcdr libexttextcat unixODBC libjpeg
+1 -1
pkgs/applications/science/electronics/pulseview/default.nix
··· 10 10 sha256 = "1pf1dgwd9j586nqmni6gqf3qxrsmawcmi9wzqfzqkjci18xd7dgy"; 11 11 }; 12 12 13 - buildInputs = [ pkgconfig cmake glib qt4 boost boost.lib libsigrok 13 + buildInputs = [ pkgconfig cmake glib qt4 boost libsigrok 14 14 libsigrokdecode libserialport libzip udev libusb1 libftdi 15 15 ]; 16 16
+1 -1
pkgs/applications/science/logic/stp/default.nix
··· 7 7 rev = "3aa11620a823d617fc033d26aedae91853d18635"; 8 8 sha256 = "832520787f57f63cf47364d080f30ad10d6d6e00f166790c19b125be3d6dd45c"; 9 9 }; 10 - buildInputs = [ cmake boost boost.lib bison flex perl zlib ]; 10 + buildInputs = [ cmake boost bison flex perl zlib ]; 11 11 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ]; 12 12 patchPhase = '' 13 13 sed -e 's,^export(PACKAGE.*,,' -i CMakeLists.txt
+2 -2
pkgs/applications/version-management/gource/default.nix
··· 13 13 14 14 buildInputs = [ 15 15 glew SDL ftgl pkgconfig libpng libjpeg pcre SDL_image mesa 16 - boost boost.lib glm 16 + boost glm 17 17 ]; 18 18 19 - configureFlags = "--with-boost-libdir=${boost.lib}/lib"; 19 + configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ]; 20 20 21 21 NIX_CFLAGS_COMPILE = "-fpermissive"; # fix build with newer gcc versions 22 22
+1 -3
pkgs/applications/video/aegisub/default.nix
··· 29 29 }; 30 30 31 31 buildInputs = with stdenv.lib; 32 - [ intltool libX11 gettext wxGTK libiconv fontconfig freetype mesa libass fftw ffms ffmpeg pkgconfig zlib icu boost boost.lib ] 32 + [ intltool libX11 gettext wxGTK libiconv fontconfig freetype mesa libass fftw ffms ffmpeg pkgconfig zlib icu boost ] 33 33 ++ optional spellChecking hunspell 34 34 ++ optional automationSupport lua 35 35 ++ optional openalSupport openal ··· 39 39 ; 40 40 41 41 NIX_LDFLAGS = "-liconv -lavutil -lavformat -lavcodec -lswscale -lz -lm -lGL"; 42 - 43 - configureFlags = "--with-boost-libdir=${boost.lib}/lib/"; 44 42 45 43 postInstall = "ln -s $out/bin/aegisub-* $out/bin/aegisub"; 46 44
+4 -5
pkgs/applications/video/gnash/default.nix
··· 30 30 patch -p1 < ${patch_CVE} 31 31 32 32 # Add all libs to `macros/libslist', a list of library search paths. 33 - for lib in ${lib.concatStringsSep " " 34 - (map (lib: "\"${lib}\"/lib") 35 - (buildInputs ++ [stdenv.glibc]))} 36 - do 33 + libs=$(echo "$NIX_LDFLAGS" | tr ' ' '\n' | sed -n 's/.*-L\(.*\).*/\1/p') 34 + for lib in $libs; do 37 35 echo -n "$lib " >> macros/libslist 38 36 done 37 + echo -n "${stdenv.glibc}/lib" >> macros/libslist 39 38 40 39 # Make sure to honor $TMPDIR, for chroot builds. 41 40 for file in configure gui/Makefile.in Makefile.in ··· 54 53 buildInputs = [ 55 54 gettext x11 SDL SDL_mixer gstreamer gst_plugins_base gst_plugins_good 56 55 gst_ffmpeg speex libtool 57 - libogg libxml2 libjpeg mesa libpng libungif boost boost.lib freetype agg 56 + libogg libxml2 libjpeg mesa libpng libungif boost freetype agg 58 57 dbus curl pkgconfig glib gtk gtkglext pangox_compat 59 58 xulrunner 60 59 makeWrapper
-1
pkgs/applications/video/mkvtoolnix/default.nix
··· 28 28 expat wxGTK zlib ruby gettext pkgconfig curl 29 29 ]; 30 30 31 - configureFlags = "--with-boost-libdir=${boost}/lib"; 32 31 buildPhase = '' 33 32 ruby ./drake 34 33 '';
+1 -1
pkgs/development/compilers/hhvm/default.nix
··· 17 17 }; 18 18 19 19 buildInputs = 20 - [ cmake pkgconfig boost boost.lib libunwind mariadb libmemcached pcre 20 + [ cmake pkgconfig boost libunwind mariadb libmemcached pcre 21 21 libevent gd curl libxml2 icu flex bison openssl zlib php expat libcap 22 22 oniguruma libdwarf libmcrypt tbb gperftools bzip2 openldap readline 23 23 libelf uwimap binutils cyrus_sasl pam glog libpng libxslt ocaml
+1 -1
pkgs/development/libraries/CGAL/default.nix
··· 10 10 sha256 = "00shds5yph4s09lqdrb6n60wnw9kpiwa25ghg9mbsgq3fnr8p7kr"; 11 11 }; 12 12 13 - buildInputs = [ cmake boost boost.lib gmp mpfr ]; 13 + buildInputs = [ cmake boost gmp mpfr ]; 14 14 15 15 doCheck = false; 16 16
+1 -1
pkgs/development/libraries/audio/lvtk/default.nix
··· 12 12 buildInputs = [ boost gtkmm lv2 pkgconfig python ]; 13 13 14 14 configurePhase = '' 15 - python waf configure --prefix=$out --boost-includes=${boost}/include 15 + python waf configure --prefix=$out --boost-includes="${boost.dev}/include" 16 16 ''; 17 17 18 18 buildPhase = "python waf";
-93
pkgs/development/libraries/boost/1.44.nix
··· 1 - { stdenv, fetchurl, icu, expat, zlib, bzip2, python 2 - , enableRelease ? true 3 - , enableDebug ? false 4 - , enableSingleThreaded ? false 5 - , enableMultiThreaded ? true 6 - , enableShared ? true 7 - , enableStatic ? false 8 - , enablePIC ? false 9 - , taggedLayout ? false 10 - }: 11 - 12 - let 13 - 14 - variant = stdenv.lib.concatStringsSep "," 15 - (stdenv.lib.optional enableRelease "release" ++ 16 - stdenv.lib.optional enableDebug "debug"); 17 - 18 - threading = stdenv.lib.concatStringsSep "," 19 - (stdenv.lib.optional enableSingleThreaded "single" ++ 20 - stdenv.lib.optional enableMultiThreaded "multi"); 21 - 22 - link = stdenv.lib.concatStringsSep "," 23 - (stdenv.lib.optional enableShared "shared" ++ 24 - stdenv.lib.optional enableStatic "static"); 25 - 26 - # To avoid library name collisions 27 - finalLayout = if (taggedLayout || (enableRelease && enableDebug) || 28 - (enableSingleThreaded && enableMultiThreaded) || 29 - (enableShared && enableStatic)) then 30 - "tagged" else "system"; 31 - 32 - cflags = if enablePIC then "cflags=-fPIC cxxflags=-fPIC linkflags=-fPIC" else ""; 33 - 34 - in 35 - 36 - stdenv.mkDerivation { 37 - name = "boost-1.44.0"; 38 - 39 - meta = { 40 - homepage = "http://boost.org/"; 41 - description = "Collection of C++ libraries"; 42 - license = "boost-license"; 43 - 44 - maintainers = [ stdenv.lib.maintainers.simons ]; 45 - }; 46 - 47 - src = fetchurl { 48 - url = "mirror://sourceforge/boost/boost_1_44_0.tar.bz2"; 49 - sha256 = "1nvq36mvzr1fr85q0jh86rk3bk65s1y55jgqgzfg3lcpkl12ihs5"; 50 - }; 51 - 52 - enableParallelBuilding = true; 53 - 54 - buildInputs = [icu expat zlib bzip2 python]; 55 - 56 - configureScript = "./bootstrap.sh"; 57 - configureFlags = "--with-icu=${icu} --with-python=${python}/bin/python"; 58 - 59 - buildPhase = "./bjam -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${finalLayout} variant=${variant} threading=${threading} link=${link} ${cflags} install"; 60 - 61 - installPhase = ":"; 62 - 63 - patches = [ 64 - # Patch to get rid of following error, experienced by some packages like encfs, bitcoin: 65 - # terminate called after throwing an instance of 'std::runtime_error' 66 - # what(): locale::facet::_S_create_c_locale name not valid 67 - (fetchurl { 68 - url = https://svn.boost.org/trac/boost/raw-attachment/ticket/4688/boost_filesystem.patch ; 69 - sha256 = "15k91ihzs6190pnryh4cl0b3c2pjpl9d790mr14x16zq52y7px2d"; 70 - }) 71 - ./time_utc_144.patch 72 - ./boost-149-cstdint.patch 73 - ]; 74 - 75 - crossAttrs = rec { 76 - buildInputs = [ expat.crossDrv zlib.crossDrv bzip2.crossDrv ]; 77 - # all buildInputs set previously fell into propagatedBuildInputs, as usual, so we have to 78 - # override them. 79 - propagatedBuildInputs = buildInputs; 80 - # We want to substitute the contents of configureFlags, removing thus the 81 - # usual --build and --host added on cross building. 82 - preConfigure = '' 83 - export configureFlags="--prefix=$out --without-icu" 84 - ''; 85 - buildPhase = '' 86 - set -x 87 - cat << EOF > user-config.jam 88 - using gcc : cross : $crossConfig-g++ ; 89 - EOF 90 - ./bjam -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat.crossDrv}/include -sEXPAT_LIBPATH=${expat.crossDrv}/lib --layout=${finalLayout} --user-config=user-config.jam toolset=gcc-cross variant=${variant} threading=${threading} link=${link} ${cflags} --without-python install 91 - ''; 92 - }; 93 - }
-96
pkgs/development/libraries/boost/1.49.nix
··· 1 - { stdenv, fetchurl, icu, expat, zlib, bzip2, python 2 - , enableRelease ? true 3 - , enableDebug ? false 4 - , enableSingleThreaded ? false 5 - , enableMultiThreaded ? true 6 - , enableShared ? true 7 - , enableStatic ? false 8 - , enablePIC ? false 9 - , enableExceptions ? false 10 - }: 11 - 12 - let 13 - 14 - variant = stdenv.lib.concatStringsSep "," 15 - (stdenv.lib.optional enableRelease "release" ++ 16 - stdenv.lib.optional enableDebug "debug"); 17 - 18 - threading = stdenv.lib.concatStringsSep "," 19 - (stdenv.lib.optional enableSingleThreaded "single" ++ 20 - stdenv.lib.optional enableMultiThreaded "multi"); 21 - 22 - link = stdenv.lib.concatStringsSep "," 23 - (stdenv.lib.optional enableShared "shared" ++ 24 - stdenv.lib.optional enableStatic "static"); 25 - 26 - # To avoid library name collisions 27 - finalLayout = if ((enableRelease && enableDebug) || 28 - (enableSingleThreaded && enableMultiThreaded) || 29 - (enableShared && enableStatic)) then 30 - "tagged" else "system"; 31 - 32 - cflags = if enablePIC && enableExceptions then 33 - "cflags=-fPIC -fexceptions cxxflags=-fPIC linkflags=-fPIC" 34 - else if enablePIC then 35 - "cflags=-fPIC cxxflags=-fPIC linkflags=-fPIC" 36 - else if enableExceptions then 37 - "cflags=-fexceptions" 38 - else 39 - ""; 40 - in 41 - 42 - stdenv.mkDerivation { 43 - name = "boost-1.49.0"; 44 - 45 - meta = { 46 - homepage = "http://boost.org/"; 47 - description = "Collection of C++ libraries"; 48 - license = "boost-license"; 49 - 50 - platforms = stdenv.lib.platforms.unix; 51 - maintainers = [ stdenv.lib.maintainers.simons ]; 52 - }; 53 - 54 - src = fetchurl { 55 - url = "mirror://sourceforge/boost/boost_1_49_0.tar.bz2"; 56 - sha256 = "0g0d33942rm073jgqqvj3znm3rk45b2y2lplfjpyg9q7amzqlx6x"; 57 - }; 58 - 59 - # See <http://svn.boost.org/trac/boost/ticket/4688>. 60 - patches = [ 61 - ./CVE-2013-0252.patch # https://svn.boost.org/trac/boost/ticket/7743 62 - ./boost_filesystem_post_1_49_0.patch 63 - ./time_utc.patch 64 - ./boost-149-cstdint.patch 65 - ] ++ (stdenv.lib.optional stdenv.isDarwin ./boost-149-darwin.patch ); 66 - 67 - enableParallelBuilding = true; 68 - 69 - buildInputs = [icu expat zlib bzip2 python]; 70 - 71 - configureScript = "./bootstrap.sh"; 72 - configureFlags = "--with-icu=${icu} --with-python=${python}/bin/python"; 73 - 74 - buildPhase = "./b2 -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${finalLayout} variant=${variant} threading=${threading} link=${link} ${cflags} install"; 75 - 76 - installPhase = ":"; 77 - 78 - crossAttrs = rec { 79 - buildInputs = [ expat.crossDrv zlib.crossDrv bzip2.crossDrv ]; 80 - # all buildInputs set previously fell into propagatedBuildInputs, as usual, so we have to 81 - # override them. 82 - propagatedBuildInputs = buildInputs; 83 - # We want to substitute the contents of configureFlags, removing thus the 84 - # usual --build and --host added on cross building. 85 - preConfigure = '' 86 - export configureFlags="--prefix=$out --without-icu" 87 - ''; 88 - buildPhase = '' 89 - set -x 90 - cat << EOF > user-config.jam 91 - using gcc : cross : $crossConfig-g++ ; 92 - EOF 93 - ./b2 -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat.crossDrv}/include -sEXPAT_LIBPATH=${expat.crossDrv}/lib --layout=${finalLayout} --user-config=user-config.jam toolset=gcc-cross variant=${variant} threading=${threading} link=${link} ${cflags} --without-python install 94 - ''; 95 - }; 96 - }
+4 -93
pkgs/development/libraries/boost/1.55.nix
··· 1 - { stdenv, fetchurl, icu, expat, zlib, bzip2, python, fixDarwinDylibNames 2 - , toolset ? null 3 - , enableRelease ? true 4 - , enableDebug ? false 5 - , enableSingleThreaded ? false 6 - , enableMultiThreaded ? true 7 - , enableShared ? true 8 - , enableStatic ? false 9 - , enablePIC ? false 10 - , enableExceptions ? false 11 - , taggedLayout ? ((enableRelease && enableDebug) || (enableSingleThreaded && enableMultiThreaded) || (enableShared && enableStatic)) 12 - }: 1 + { callPackage, fetchurl, ... } @ args: 13 2 14 - let 15 - 16 - variant = stdenv.lib.concatStringsSep "," 17 - (stdenv.lib.optional enableRelease "release" ++ 18 - stdenv.lib.optional enableDebug "debug"); 19 - 20 - threading = stdenv.lib.concatStringsSep "," 21 - (stdenv.lib.optional enableSingleThreaded "single" ++ 22 - stdenv.lib.optional enableMultiThreaded "multi"); 23 - 24 - link = stdenv.lib.concatStringsSep "," 25 - (stdenv.lib.optional enableShared "shared" ++ 26 - stdenv.lib.optional enableStatic "static"); 27 - 28 - # To avoid library name collisions 29 - layout = if taggedLayout then "tagged" else "system"; 30 - 31 - cflags = if enablePIC && enableExceptions then 32 - "cflags=\"-fPIC -fexceptions\" cxxflags=-fPIC linkflags=-fPIC" 33 - else if enablePIC then 34 - "cflags=-fPIC cxxflags=-fPIC linkflags=-fPIC" 35 - else if enableExceptions then 36 - "cflags=-fexceptions" 37 - else 38 - ""; 39 - 40 - withToolset = stdenv.lib.optionalString (toolset != null) " --with-toolset=${toolset}"; 41 - in 42 - 43 - let res = stdenv.mkDerivation { 44 - name = "boost-1.55.0"; 45 - 46 - meta = { 47 - homepage = "http://boost.org/"; 48 - description = "Collection of C++ libraries"; 49 - license = "boost-license"; 50 - 51 - platforms = stdenv.lib.platforms.unix; 52 - maintainers = [ stdenv.lib.maintainers.simons ]; 53 - }; 3 + callPackage ./generic.nix (args // rec { 4 + version = "1.55.0"; 54 5 55 6 src = fetchurl { 56 7 url = "mirror://sourceforge/boost/boost_1_55_0.tar.bz2"; 57 8 sha256 = "0lkv5dzssbl5fmh2nkaszi8x9qbj80pr4acf9i26sj3rvlih1w7z"; 58 9 }; 59 - 60 - enableParallelBuilding = true; 61 - 62 - buildInputs = 63 - [ icu expat zlib bzip2 python ] 64 - ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames; 65 - 66 - configureScript = "./bootstrap.sh"; 67 - configureFlags = "--with-icu=${icu} --with-python=${python}/bin/python" + withToolset; 68 - 69 - buildPhase = "${stdenv.lib.optionalString (toolset == "clang") "unset NIX_ENFORCE_PURITY; "}./b2 -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${layout} variant=${variant} threading=${threading} link=${link} ${cflags} install${withToolset}"; 70 - 71 - # normal install does not install bjam, this is a separate step 72 - installPhase = '' 73 - cd tools/build/v2 74 - sh bootstrap.sh${withToolset} 75 - ./b2 -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${layout} variant=${variant} threading=${threading} link=${link} ${cflags} install${withToolset} 76 - rm $out/bin/bjam 77 - ln -s $out/bin/b2 $out/bin/bjam 78 - rm -rf $out/share/boost-build/example 79 - ''; 80 - 81 - crossAttrs = rec { 82 - buildInputs = [ expat.crossDrv zlib.crossDrv bzip2.crossDrv ]; 83 - # all buildInputs set previously fell into propagatedBuildInputs, as usual, so we have to 84 - # override them. 85 - propagatedBuildInputs = buildInputs; 86 - # We want to substitute the contents of configureFlags, removing thus the 87 - # usual --build and --host added on cross building. 88 - preConfigure = '' 89 - export configureFlags="--prefix=$out --without-icu" 90 - ''; 91 - buildPhase = '' 92 - set -x 93 - cat << EOF > user-config.jam 94 - using gcc : cross : $crossConfig-g++ ; 95 - EOF 96 - ./b2 -j$NIX_BUILD_CORES -sEXPAT_INCLUDE=${expat.crossDrv}/include -sEXPAT_LIBPATH=${expat.crossDrv}/lib --layout=${layout} --user-config=user-config.jam toolset=gcc-cross variant=${variant} threading=${threading} link=${link} ${cflags} --without-python install 97 - ''; 98 - }; 99 - }; in res // { lib = res; } 10 + })
+4 -140
pkgs/development/libraries/boost/1.56.nix
··· 1 - { stdenv, fetchurl, icu, expat, zlib, bzip2, python, fixDarwinDylibNames 2 - , toolset ? null 3 - , enableRelease ? true 4 - , enableDebug ? false 5 - , enableSingleThreaded ? false 6 - , enableMultiThreaded ? true 7 - , enableShared ? true 8 - , enableStatic ? false 9 - , enablePIC ? false 10 - , enableExceptions ? false 11 - , taggedLayout ? ((enableRelease && enableDebug) || (enableSingleThreaded && enableMultiThreaded) || (enableShared && enableStatic)) 12 - }: 13 - 14 - # We must build at least one type of libraries 15 - assert !enableShared -> enableStatic; 16 - 17 - with stdenv.lib; 18 - let 19 - 20 - variant = concatStringsSep "," 21 - (optional enableRelease "release" ++ 22 - optional enableDebug "debug"); 23 - 24 - threading = concatStringsSep "," 25 - (optional enableSingleThreaded "single" ++ 26 - optional enableMultiThreaded "multi"); 27 - 28 - link = concatStringsSep "," 29 - (optional enableShared "shared" ++ 30 - optional enableStatic "static"); 31 - 32 - runtime-link = if enableShared then "shared" else "static"; 33 - 34 - # To avoid library name collisions 35 - layout = if taggedLayout then "tagged" else "system"; 36 - 37 - cflags = if enablePIC && enableExceptions then 38 - "cflags=\"-fPIC -fexceptions\" cxxflags=-fPIC linkflags=-fPIC" 39 - else if enablePIC then 40 - "cflags=-fPIC cxxflags=-fPIC linkflags=-fPIC" 41 - else if enableExceptions then 42 - "cflags=-fexceptions" 43 - else 44 - ""; 45 - 46 - withToolset = stdenv.lib.optionalString (toolset != null) "--with-toolset=${toolset}"; 47 - 48 - genericB2Flags = [ 49 - "--prefix=$out" 50 - "--libdir=$lib/lib" 51 - "-j$NIX_BUILD_CORES" 52 - "--layout=${layout}" 53 - "variant=${variant}" 54 - "threading=${threading}" 55 - "runtime-link=${runtime-link}" 56 - "link=${link}" 57 - "${cflags}" 58 - ] ++ optional (variant == "release") "debug-symbols=off"; 59 - 60 - nativeB2Flags = [ 61 - "-sEXPAT_INCLUDE=${expat}/include" 62 - "-sEXPAT_LIBPATH=${expat}/lib" 63 - ] ++ optional (toolset != null) "toolset=${toolset}"; 64 - nativeB2Args = concatStringsSep " " (genericB2Flags ++ nativeB2Flags); 65 - 66 - crossB2Flags = [ 67 - "-sEXPAT_INCLUDE=${expat.crossDrv}/include" 68 - "-sEXPAT_LIBPATH=${expat.crossDrv}/lib" 69 - "--user-config=user-config.jam" 70 - "toolset=gcc-cross" 71 - "--without-python" 72 - ]; 73 - crossB2Args = concatMapStringsSep " " (genericB2Flags ++ crossB2Flags); 74 - 75 - builder = b2Args: '' 76 - ./b2 ${b2Args} 77 - ''; 78 - 79 - installer = b2Args: '' 80 - # boostbook is needed by some applications 81 - mkdir -p $out/share/boostbook 82 - cp -a tools/boostbook/{xsl,dtd} $out/share/boostbook/ 83 - 84 - # Let boost install everything else 85 - ./b2 ${b2Args} install 86 - ''; 87 - 88 - commonConfigureFlags = [ 89 - "--libdir=$(lib)/lib" 90 - ]; 91 - in 92 - 93 - stdenv.mkDerivation { 94 - name = "boost-1.56.0"; 95 - 96 - meta = { 97 - homepage = "http://boost.org/"; 98 - description = "Collection of C++ libraries"; 99 - license = "boost-license"; 1 + { callPackage, fetchurl, ... } @ args: 100 2 101 - platforms = platforms.unix; 102 - maintainers = with maintainers; [ simons wkennington ]; 103 - }; 3 + callPackage ./generic.nix (args // rec { 4 + version = "1.56.0"; 104 5 105 6 src = fetchurl { 106 7 url = "mirror://sourceforge/boost/boost_1_56_0.tar.bz2"; 107 8 sha256 = "07gz62nj767qzwqm3xjh11znpyph8gcii0cqhnx7wvismyn34iqk"; 108 9 }; 109 - 110 - enableParallelBuilding = true; 111 - 112 - buildInputs = [ icu expat zlib bzip2 python ] 113 - ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames; 114 - 115 - configureScript = "./bootstrap.sh"; 116 - configureFlags = commonConfigureFlags ++ [ 117 - "--with-icu=${icu}" 118 - "--with-python=${python}/bin/python" 119 - ] ++ optional (toolset != null) "--with-toolset=${toolset}"; 120 - 121 - buildPhase = '' 122 - ${stdenv.lib.optionalString (toolset == "clang") "unset NIX_ENFORCE_PURITY"} 123 - '' + builder nativeB2Args; 124 - 125 - installPhase = installer nativeB2Args; 126 - 127 - outputs = [ "out" "lib" ]; 128 - 129 - crossAttrs = rec { 130 - buildInputs = [ expat.crossDrv zlib.crossDrv bzip2.crossDrv ]; 131 - # all buildInputs set previously fell into propagatedBuildInputs, as usual, so we have to 132 - # override them. 133 - propagatedBuildInputs = buildInputs; 134 - # We want to substitute the contents of configureFlags, removing thus the 135 - # usual --build and --host added on cross building. 136 - preConfigure = '' 137 - export configureFlags="--prefix=$out --without-icu ${concatStringsSep " " commonConfigureFlags}" 138 - set -x 139 - cat << EOF > user-config.jam 140 - using gcc : cross : $crossConfig-g++ ; 141 - EOF 142 - ''; 143 - buildPhase = builder crossB2Args; 144 - installPhase = installer crossB2Args; 145 - }; 146 - } 10 + })
-48
pkgs/development/libraries/boost/CVE-2013-0252.patch
··· 1 - Index: /boost/locale/utf.hpp 2 - =================================================================== 3 - --- /boost/locale/utf.hpp (revision 78304) 4 - +++ /boost/locale/utf.hpp (revision 81590) 5 - @@ -220,4 +220,6 @@ 6 - return incomplete; 7 - tmp = *p++; 8 - + if (!is_trail(tmp)) 9 - + return illegal; 10 - c = (c << 6) | ( tmp & 0x3F); 11 - case 2: 12 - @@ -225,4 +227,6 @@ 13 - return incomplete; 14 - tmp = *p++; 15 - + if (!is_trail(tmp)) 16 - + return illegal; 17 - c = (c << 6) | ( tmp & 0x3F); 18 - case 1: 19 - @@ -230,4 +234,6 @@ 20 - return incomplete; 21 - tmp = *p++; 22 - + if (!is_trail(tmp)) 23 - + return illegal; 24 - c = (c << 6) | ( tmp & 0x3F); 25 - } 26 - Index: /libs/locale/test/test_codepage_converter.cpp 27 - =================================================================== 28 - --- /libs/locale/test/test_codepage_converter.cpp (revision 73786) 29 - +++ /libs/locale/test/test_codepage_converter.cpp (revision 81590) 30 - @@ -140,4 +140,18 @@ 31 - TEST_TO("\xf8\x90\x80\x80\x80",illegal); // 400 0000 32 - TEST_TO("\xfd\xbf\xbf\xbf\xbf\xbf",illegal); // 7fff ffff 33 - + 34 - + std::cout << "-- Invalid trail" << std::endl; 35 - + TEST_TO("\xC2\x7F",illegal); 36 - + TEST_TO("\xdf\x7F",illegal); 37 - + TEST_TO("\xe0\x7F\x80",illegal); 38 - + TEST_TO("\xef\xbf\x7F",illegal); 39 - + TEST_TO("\xe0\x7F\x80",illegal); 40 - + TEST_TO("\xef\xbf\x7F",illegal); 41 - + TEST_TO("\xf0\x7F\x80\x80",illegal); 42 - + TEST_TO("\xf4\x7f\xbf\xbf",illegal); 43 - + TEST_TO("\xf0\x90\x7F\x80",illegal); 44 - + TEST_TO("\xf4\x8f\x7F\xbf",illegal); 45 - + TEST_TO("\xf0\x90\x80\x7F",illegal); 46 - + TEST_TO("\xf4\x8f\xbf\x7F",illegal); 47 - 48 - std::cout << "-- Invalid length" << std::endl;
-15
pkgs/development/libraries/boost/boost-149-cstdint.patch
··· 1 - diff -ru -x '*~' boost_1_49_0-orig/boost/cstdint.hpp boost_1_49_0/boost/cstdint.hpp 2 - --- boost_1_49_0-orig/boost/cstdint.hpp 2012-01-29 22:58:13.000000000 +0100 3 - +++ boost_1_49_0/boost/cstdint.hpp 2013-12-10 11:48:19.304042208 +0100 4 - @@ -41,7 +41,10 @@ 5 - // so we disable use of stdint.h when GLIBC does not define __GLIBC_HAVE_LONG_LONG. 6 - // See https://svn.boost.org/trac/boost/ticket/3548 and http://sources.redhat.com/bugzilla/show_bug.cgi?id=10990 7 - // 8 - -#if defined(BOOST_HAS_STDINT_H) && (!defined(__GLIBC__) || defined(__GLIBC_HAVE_LONG_LONG)) 9 - +#if defined(BOOST_HAS_STDINT_H) \ 10 - + && (!defined(__GLIBC__) \ 11 - + || defined(__GLIBC_HAVE_LONG_LONG) \ 12 - + || (defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 17))))) 13 - 14 - // The following #include is an implementation artifact; not part of interface. 15 - # ifdef __hpux
-40
pkgs/development/libraries/boost/boost-149-darwin.patch
··· 1 - diff -rc boost_1_49_0/tools/build/v2/tools/darwin.jam boost_1_49_0-new/tools/build/v2/tools/darwin.jam 2 - *** boost_1_49_0/tools/build/v2/tools/darwin.jam Mon Jun 6 22:36:21 2011 3 - --- boost_1_49_0-new/tools/build/v2/tools/darwin.jam Thu May 23 22:07:45 2013 4 - *************** 5 - *** 498,504 **** 6 - flags darwin.compile OPTIONS <link>shared : -dynamic ; 7 - 8 - # Misc options. 9 - ! flags darwin.compile OPTIONS : -no-cpp-precomp -gdwarf-2 -fexceptions ; 10 - #~ flags darwin.link OPTIONS : -fexceptions ; 11 - 12 - # Add the framework names to use. 13 - --- 498,504 ---- 14 - flags darwin.compile OPTIONS <link>shared : -dynamic ; 15 - 16 - # Misc options. 17 - ! flags darwin.compile OPTIONS : -gdwarf-2 -fexceptions ; 18 - #~ flags darwin.link OPTIONS : -fexceptions ; 19 - 20 - # Add the framework names to use. 21 - diff -rc boost_1_49_0/tools/build/v2/tools/darwin.py boost_1_49_0-new/tools/build/v2/tools/darwin.py 22 - *** boost_1_49_0/tools/build/v2/tools/darwin.py Wed Oct 28 08:47:51 2009 23 - --- boost_1_49_0-new/tools/build/v2/tools/darwin.py Thu May 23 21:58:12 2013 24 - *************** 25 - *** 37,43 **** 26 - feature.feature ('framework', [], ['free']) 27 - 28 - toolset.flags ('darwin.compile', 'OPTIONS', '<link>shared', ['-dynamic']) 29 - ! toolset.flags ('darwin.compile', 'OPTIONS', None, ['-Wno-long-double', '-no-cpp-precomp']) 30 - toolset.flags ('darwin.compile.c++', 'OPTIONS', None, ['-fcoalesce-templates']) 31 - 32 - toolset.flags ('darwin.link', 'FRAMEWORK', '<framework>') 33 - --- 37,43 ---- 34 - feature.feature ('framework', [], ['free']) 35 - 36 - toolset.flags ('darwin.compile', 'OPTIONS', '<link>shared', ['-dynamic']) 37 - ! toolset.flags ('darwin.compile', 'OPTIONS', None, ['-Wno-long-double']) 38 - toolset.flags ('darwin.compile.c++', 'OPTIONS', None, ['-fcoalesce-templates']) 39 - 40 - toolset.flags ('darwin.link', 'FRAMEWORK', '<framework>')
-12
pkgs/development/libraries/boost/boost_filesystem_post_1_49_0.patch
··· 1 - diff -ubr boost_1_49_0/libs/filesystem/v2/src/v2_path.cpp boost_1_49_0-patched/libs/filesystem/v2/src/v2_path.cpp 2 - --- boost_1_49_0/libs/filesystem/v2/src/v2_path.cpp 2011-01-11 22:39:33.000000000 +0100 3 - +++ boost_1_49_0-patched/libs/filesystem/v2/src/v2_path.cpp 2012-02-25 20:00:33.628767485 +0100 4 - @@ -45,7 +45,7 @@ 5 - { 6 - #if !defined(macintosh) && !defined(__APPLE__) && !defined(__APPLE_CC__) 7 - // ISO C calls this "the locale-specific native environment": 8 - - static std::locale lc(""); 9 - + static std::locale lc; 10 - #else // Mac OS 11 - // "All BSD system functions expect their string parameters to be in UTF-8 encoding 12 - // and nothing else."
+159
pkgs/development/libraries/boost/generic.nix
··· 1 + { stdenv, icu, expat, zlib, bzip2, python, fixDarwinDylibNames, makeSetupHook 2 + , toolset ? null 3 + , enableRelease ? true 4 + , enableDebug ? false 5 + , enableSingleThreaded ? false 6 + , enableMultiThreaded ? true 7 + , enableShared ? true 8 + , enableStatic ? false 9 + , enablePIC ? false 10 + , enableExceptions ? false 11 + , taggedLayout ? ((enableRelease && enableDebug) || (enableSingleThreaded && enableMultiThreaded) || (enableShared && enableStatic)) 12 + 13 + # Attributes inherit from specific versions 14 + , version, src 15 + , ... 16 + }: 17 + 18 + # We must build at least one type of libraries 19 + assert !enableShared -> enableStatic; 20 + 21 + with stdenv.lib; 22 + let 23 + 24 + variant = concatStringsSep "," 25 + (optional enableRelease "release" ++ 26 + optional enableDebug "debug"); 27 + 28 + threading = concatStringsSep "," 29 + (optional enableSingleThreaded "single" ++ 30 + optional enableMultiThreaded "multi"); 31 + 32 + link = concatStringsSep "," 33 + (optional enableShared "shared" ++ 34 + optional enableStatic "static"); 35 + 36 + runtime-link = if enableShared then "shared" else "static"; 37 + 38 + # To avoid library name collisions 39 + layout = if taggedLayout then "tagged" else "system"; 40 + 41 + cflags = if enablePIC && enableExceptions then 42 + "cflags=\"-fPIC -fexceptions\" cxxflags=-fPIC linkflags=-fPIC" 43 + else if enablePIC then 44 + "cflags=-fPIC cxxflags=-fPIC linkflags=-fPIC" 45 + else if enableExceptions then 46 + "cflags=-fexceptions" 47 + else 48 + ""; 49 + 50 + withToolset = stdenv.lib.optionalString (toolset != null) "--with-toolset=${toolset}"; 51 + 52 + genericB2Flags = [ 53 + "--includedir=$dev/include" 54 + "--libdir=$lib/lib" 55 + "-j$NIX_BUILD_CORES" 56 + "--layout=${layout}" 57 + "variant=${variant}" 58 + "threading=${threading}" 59 + "runtime-link=${runtime-link}" 60 + "link=${link}" 61 + "${cflags}" 62 + ] ++ optional (variant == "release") "debug-symbols=off"; 63 + 64 + nativeB2Flags = [ 65 + "-sEXPAT_INCLUDE=${expat}/include" 66 + "-sEXPAT_LIBPATH=${expat}/lib" 67 + ] ++ optional (toolset != null) "toolset=${toolset}"; 68 + nativeB2Args = concatStringsSep " " (genericB2Flags ++ nativeB2Flags); 69 + 70 + crossB2Flags = [ 71 + "-sEXPAT_INCLUDE=${expat.crossDrv}/include" 72 + "-sEXPAT_LIBPATH=${expat.crossDrv}/lib" 73 + "--user-config=user-config.jam" 74 + "toolset=gcc-cross" 75 + "--without-python" 76 + ]; 77 + crossB2Args = concatMapStringsSep " " (genericB2Flags ++ crossB2Flags); 78 + 79 + builder = b2Args: '' 80 + ./b2 ${b2Args} 81 + ''; 82 + 83 + installer = b2Args: '' 84 + # boostbook is needed by some applications 85 + mkdir -p $dev/share/boostbook 86 + cp -a tools/boostbook/{xsl,dtd} $dev/share/boostbook/ 87 + 88 + # Let boost install everything else 89 + ./b2 ${b2Args} install 90 + 91 + # Create a derivation which encompasses everything, making buildInputs nicer 92 + mkdir -p $out/nix-support 93 + echo "${stripHeaderPathHook} $dev $lib" > $out/nix-support/propagated-native-build-inputs 94 + ''; 95 + 96 + commonConfigureFlags = [ 97 + "--includedir=$(dev)/include" 98 + "--libdir=$(lib)/lib" 99 + ]; 100 + 101 + stripHeaderPathHook = makeSetupHook { } ./strip-header-path.sh; 102 + 103 + in 104 + 105 + stdenv.mkDerivation { 106 + name = "boost-${version}"; 107 + 108 + inherit src; 109 + 110 + meta = { 111 + homepage = "http://boost.org/"; 112 + description = "Collection of C++ libraries"; 113 + license = "boost-license"; 114 + 115 + platforms = platforms.unix; 116 + maintainers = with maintainers; [ simons wkennington ]; 117 + }; 118 + 119 + preConfigure = '' 120 + NIX_LDFLAGS="$(echo $NIX_LDFLAGS | sed "s,$out,$lib,g")" 121 + ''; 122 + 123 + enableParallelBuilding = true; 124 + 125 + buildInputs = [ icu expat zlib bzip2 python ] 126 + ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames; 127 + 128 + configureScript = "./bootstrap.sh"; 129 + configureFlags = commonConfigureFlags ++ [ 130 + "--with-icu=${icu}" 131 + "--with-python=${python}/bin/python" 132 + ] ++ optional (toolset != null) "--with-toolset=${toolset}"; 133 + 134 + buildPhase = '' 135 + ${stdenv.lib.optionalString (toolset == "clang") "unset NIX_ENFORCE_PURITY"} 136 + '' + builder nativeB2Args; 137 + 138 + installPhase = installer nativeB2Args; 139 + 140 + outputs = [ "out" "dev" "lib" ]; 141 + 142 + crossAttrs = rec { 143 + buildInputs = [ expat.crossDrv zlib.crossDrv bzip2.crossDrv ]; 144 + # all buildInputs set previously fell into propagatedBuildInputs, as usual, so we have to 145 + # override them. 146 + propagatedBuildInputs = buildInputs; 147 + # We want to substitute the contents of configureFlags, removing thus the 148 + # usual --build and --host added on cross building. 149 + preConfigure = '' 150 + export configureFlags="--without-icu ${concatStringsSep " " commonConfigureFlags}" 151 + set -x 152 + cat << EOF > user-config.jam 153 + using gcc : cross : $crossConfig-g++ ; 154 + EOF 155 + ''; 156 + buildPhase = builder crossB2Args; 157 + installPhase = installer crossB2Args; 158 + }; 159 + }
+12
pkgs/development/libraries/boost/strip-header-path.sh
··· 1 + postPhases+=" boostHeaderStripPhase" 2 + 3 + boostHeaderStripPhase() { 4 + runHook preBoostHeaderStrip 5 + [ -z "$outputs" ] && outputs=out 6 + for output in $outputs; do 7 + eval "path=\$$outputs" 8 + [ -d "$path/bin" ] || continue 9 + find "$path/bin" -type f -exec sed -i "s,[^/]*\(-boost-[0-9.]*-dev\),xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\1,g" {} \; 10 + done 11 + runHook postBoostHeaderStrip 12 + }
-320
pkgs/development/libraries/boost/time_utc.patch
··· 1 - From: https://build.opensuse.org/package/view_file?file=boost-time_utc.patch&package=boost&project=Application%3AGeo 2 - 3 - From: https://svn.boost.org/trac/boost/changeset/78802 4 - 5 - Message: 6 - Thread: fix TIME_UTC, WINVER, constexpr for tags, and don't use local files 7 - 8 - Only the TIME_UTC_ change is taken 9 - 10 - Index: boost_1_49_0/boost/thread/xtime.hpp 11 - =================================================================== 12 - --- boost_1_49_0.orig/boost/thread/xtime.hpp 13 - +++ boost_1_49_0/boost/thread/xtime.hpp 14 - @@ -2,7 +2,7 @@ 15 - // William E. Kempf 16 - // Copyright (C) 2007-8 Anthony Williams 17 - // 18 - -// Distributed under the Boost Software License, Version 1.0. (See accompanying 19 - +// Distributed under the Boost Software License, Version 1.0. (See accompanying 20 - // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 21 - 22 - #ifndef BOOST_XTIME_WEK070601_HPP 23 - @@ -20,7 +20,7 @@ namespace boost { 24 - 25 - enum xtime_clock_types 26 - { 27 - - TIME_UTC=1 28 - + TIME_UTC_=1 29 - // TIME_TAI, 30 - // TIME_MONOTONIC, 31 - // TIME_PROCESS, 32 - @@ -53,14 +53,14 @@ struct xtime 33 - boost::posix_time::microseconds((nsec+500)/1000); 34 - #endif 35 - } 36 - - 37 - + 38 - }; 39 - 40 - inline xtime get_xtime(boost::system_time const& abs_time) 41 - { 42 - xtime res; 43 - boost::posix_time::time_duration const time_since_epoch=abs_time-boost::posix_time::from_time_t(0); 44 - - 45 - + 46 - res.sec=static_cast<xtime::xtime_sec_t>(time_since_epoch.total_seconds()); 47 - res.nsec=static_cast<xtime::xtime_nsec_t>(time_since_epoch.fractional_seconds()*(1000000000/time_since_epoch.ticks_per_second())); 48 - return res; 49 - @@ -68,7 +68,7 @@ inline xtime get_xtime(boost::system_tim 50 - 51 - inline int xtime_get(struct xtime* xtp, int clock_type) 52 - { 53 - - if (clock_type == TIME_UTC) 54 - + if (clock_type == TIME_UTC_) 55 - { 56 - *xtp=get_xtime(get_system_time()); 57 - return clock_type; 58 - @@ -81,7 +81,7 @@ inline int xtime_cmp(const xtime& xt1, c 59 - { 60 - if (xt1.sec == xt2.sec) 61 - return (int)(xt1.nsec - xt2.nsec); 62 - - else 63 - + else 64 - return (xt1.sec > xt2.sec) ? 1 : -1; 65 - } 66 - 67 - Index: boost_1_49_0/libs/thread/example/starvephil.cpp 68 - =================================================================== 69 - --- boost_1_49_0.orig/libs/thread/example/starvephil.cpp 70 - +++ boost_1_49_0/libs/thread/example/starvephil.cpp 71 - @@ -50,7 +50,7 @@ public: 72 - << "very hot ..." << std::endl; 73 - } 74 - boost::xtime xt; 75 - - boost::xtime_get(&xt, boost::TIME_UTC); 76 - + boost::xtime_get(&xt, boost::TIME_UTC_); 77 - xt.sec += 3; 78 - boost::thread::sleep(xt); 79 - m_chickens += value; 80 - @@ -85,7 +85,7 @@ void chef() 81 - std::cout << "(" << clock() << ") Chef: cooking ..." << std::endl; 82 - } 83 - boost::xtime xt; 84 - - boost::xtime_get(&xt, boost::TIME_UTC); 85 - + boost::xtime_get(&xt, boost::TIME_UTC_); 86 - xt.sec += 2; 87 - boost::thread::sleep(xt); 88 - { 89 - @@ -111,7 +111,7 @@ struct phil 90 - if (m_id > 0) 91 - { 92 - boost::xtime xt; 93 - - boost::xtime_get(&xt, boost::TIME_UTC); 94 - + boost::xtime_get(&xt, boost::TIME_UTC_); 95 - xt.sec += 3; 96 - boost::thread::sleep(xt); 97 - } 98 - Index: boost_1_49_0/libs/thread/example/tennis.cpp 99 - =================================================================== 100 - --- boost_1_49_0.orig/libs/thread/example/tennis.cpp 101 - +++ boost_1_49_0/libs/thread/example/tennis.cpp 102 - @@ -1,7 +1,7 @@ 103 - // Copyright (C) 2001-2003 104 - // William E. Kempf 105 - // 106 - -// Distributed under the Boost Software License, Version 1.0. (See accompanying 107 - +// Distributed under the Boost Software License, Version 1.0. (See accompanying 108 - // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 109 - 110 - #include <boost/thread/mutex.hpp> 111 - @@ -104,7 +104,7 @@ int main(int argc, char* argv[]) 112 - boost::thread thrdb(thread_adapter(&player, (void*)PLAYER_B)); 113 - 114 - boost::xtime xt; 115 - - boost::xtime_get(&xt, boost::TIME_UTC); 116 - + boost::xtime_get(&xt, boost::TIME_UTC_); 117 - xt.sec += 1; 118 - boost::thread::sleep(xt); 119 - { 120 - Index: boost_1_49_0/libs/thread/example/thread.cpp 121 - =================================================================== 122 - --- boost_1_49_0.orig/libs/thread/example/thread.cpp 123 - +++ boost_1_49_0/libs/thread/example/thread.cpp 124 - @@ -14,7 +14,7 @@ struct thread_alarm 125 - void operator()() 126 - { 127 - boost::xtime xt; 128 - - boost::xtime_get(&xt, boost::TIME_UTC); 129 - + boost::xtime_get(&xt, boost::TIME_UTC_); 130 - xt.sec += m_secs; 131 - 132 - boost::thread::sleep(xt); 133 - Index: boost_1_49_0/libs/thread/example/xtime.cpp 134 - =================================================================== 135 - --- boost_1_49_0.orig/libs/thread/example/xtime.cpp 136 - +++ boost_1_49_0/libs/thread/example/xtime.cpp 137 - @@ -10,7 +10,7 @@ 138 - int main(int argc, char* argv[]) 139 - { 140 - boost::xtime xt; 141 - - boost::xtime_get(&xt, boost::TIME_UTC); 142 - + boost::xtime_get(&xt, boost::TIME_UTC_); 143 - xt.sec += 1; 144 - boost::thread::sleep(xt); // Sleep for 1 second 145 - } 146 - Index: boost_1_49_0/libs/thread/src/pthread/thread.cpp 147 - =================================================================== 148 - --- boost_1_49_0.orig/libs/thread/src/pthread/thread.cpp 149 - +++ boost_1_49_0/libs/thread/src/pthread/thread.cpp 150 - @@ -23,7 +23,7 @@ 151 - #include <unistd.h> 152 - #endif 153 - 154 - -#include "timeconv.inl" 155 - +#include <libs/thread/src/pthread/timeconv.inl> 156 - 157 - namespace boost 158 - { 159 - @@ -354,7 +354,7 @@ namespace boost 160 - cond.timed_wait(lock, xt); 161 - # endif 162 - xtime cur; 163 - - xtime_get(&cur, TIME_UTC); 164 - + xtime_get(&cur, TIME_UTC_); 165 - if (xtime_cmp(xt, cur) <= 0) 166 - return; 167 - } 168 - @@ -369,7 +369,7 @@ namespace boost 169 - BOOST_VERIFY(!pthread_yield()); 170 - # else 171 - xtime xt; 172 - - xtime_get(&xt, TIME_UTC); 173 - + xtime_get(&xt, TIME_UTC_); 174 - sleep(xt); 175 - # endif 176 - } 177 - Index: boost_1_49_0/libs/thread/src/pthread/timeconv.inl 178 - =================================================================== 179 - --- boost_1_49_0.orig/libs/thread/src/pthread/timeconv.inl 180 - +++ boost_1_49_0/libs/thread/src/pthread/timeconv.inl 181 - @@ -20,8 +20,8 @@ const int NANOSECONDS_PER_MICROSECOND = 182 - inline void to_time(int milliseconds, boost::xtime& xt) 183 - { 184 - int res = 0; 185 - - res = boost::xtime_get(&xt, boost::TIME_UTC); 186 - - BOOST_ASSERT(res == boost::TIME_UTC); (void)res; 187 - + res = boost::xtime_get(&xt, boost::TIME_UTC_); 188 - + BOOST_ASSERT(res == boost::TIME_UTC_); (void)res; 189 - 190 - xt.sec += (milliseconds / MILLISECONDS_PER_SECOND); 191 - xt.nsec += ((milliseconds % MILLISECONDS_PER_SECOND) * 192 - @@ -56,8 +56,8 @@ inline void to_timespec_duration(const b 193 - { 194 - boost::xtime cur; 195 - int res = 0; 196 - - res = boost::xtime_get(&cur, boost::TIME_UTC); 197 - - BOOST_ASSERT(res == boost::TIME_UTC); (void)res; 198 - + res = boost::xtime_get(&cur, boost::TIME_UTC_); 199 - + BOOST_ASSERT(res == boost::TIME_UTC_); (void)res; 200 - 201 - if (boost::xtime_cmp(xt, cur) <= 0) 202 - { 203 - @@ -87,8 +87,8 @@ inline void to_duration(boost::xtime xt, 204 - { 205 - boost::xtime cur; 206 - int res = 0; 207 - - res = boost::xtime_get(&cur, boost::TIME_UTC); 208 - - BOOST_ASSERT(res == boost::TIME_UTC); (void)res; 209 - + res = boost::xtime_get(&cur, boost::TIME_UTC_); 210 - + BOOST_ASSERT(res == boost::TIME_UTC_); (void)res; 211 - 212 - if (boost::xtime_cmp(xt, cur) <= 0) 213 - milliseconds = 0; 214 - @@ -109,8 +109,8 @@ inline void to_microduration(boost::xtim 215 - { 216 - boost::xtime cur; 217 - int res = 0; 218 - - res = boost::xtime_get(&cur, boost::TIME_UTC); 219 - - BOOST_ASSERT(res == boost::TIME_UTC); (void)res; 220 - + res = boost::xtime_get(&cur, boost::TIME_UTC_); 221 - + BOOST_ASSERT(res == boost::TIME_UTC_); (void)res; 222 - 223 - if (boost::xtime_cmp(xt, cur) <= 0) 224 - microseconds = 0; 225 - Index: boost_1_49_0/libs/thread/src/win32/timeconv.inl 226 - =================================================================== 227 - --- boost_1_49_0.orig/libs/thread/src/win32/timeconv.inl 228 - +++ boost_1_49_0/libs/thread/src/win32/timeconv.inl 229 - @@ -17,8 +17,8 @@ const int NANOSECONDS_PER_MICROSECOND = 230 - inline void to_time(int milliseconds, boost::xtime& xt) 231 - { 232 - int res = 0; 233 - - res = boost::xtime_get(&xt, boost::TIME_UTC); 234 - - assert(res == boost::TIME_UTC); 235 - + res = boost::xtime_get(&xt, boost::TIME_UTC_); 236 - + assert(res == boost::TIME_UTC_); 237 - 238 - xt.sec += (milliseconds / MILLISECONDS_PER_SECOND); 239 - xt.nsec += ((milliseconds % MILLISECONDS_PER_SECOND) * 240 - @@ -54,8 +54,8 @@ inline void to_timespec_duration(const b 241 - { 242 - boost::xtime cur; 243 - int res = 0; 244 - - res = boost::xtime_get(&cur, boost::TIME_UTC); 245 - - assert(res == boost::TIME_UTC); 246 - + res = boost::xtime_get(&cur, boost::TIME_UTC_); 247 - + assert(res == boost::TIME_UTC_); 248 - 249 - if (boost::xtime_cmp(xt, cur) <= 0) 250 - { 251 - @@ -85,8 +85,8 @@ inline void to_duration(boost::xtime xt, 252 - { 253 - boost::xtime cur; 254 - int res = 0; 255 - - res = boost::xtime_get(&cur, boost::TIME_UTC); 256 - - assert(res == boost::TIME_UTC); 257 - + res = boost::xtime_get(&cur, boost::TIME_UTC_); 258 - + assert(res == boost::TIME_UTC_); 259 - 260 - if (boost::xtime_cmp(xt, cur) <= 0) 261 - milliseconds = 0; 262 - @@ -107,8 +107,8 @@ inline void to_microduration(boost::xtim 263 - { 264 - boost::xtime cur; 265 - int res = 0; 266 - - res = boost::xtime_get(&cur, boost::TIME_UTC); 267 - - assert(res == boost::TIME_UTC); 268 - + res = boost::xtime_get(&cur, boost::TIME_UTC_); 269 - + assert(res == boost::TIME_UTC_); 270 - 271 - if (boost::xtime_cmp(xt, cur) <= 0) 272 - microseconds = 0; 273 - Index: boost_1_49_0/libs/thread/test/test_xtime.cpp 274 - =================================================================== 275 - --- boost_1_49_0.orig/libs/thread/test/test_xtime.cpp 276 - +++ boost_1_49_0/libs/thread/test/test_xtime.cpp 277 - @@ -17,8 +17,8 @@ void test_xtime_cmp() 278 - { 279 - boost::xtime xt1, xt2, cur; 280 - BOOST_CHECK_EQUAL( 281 - - boost::xtime_get(&cur, boost::TIME_UTC), 282 - - static_cast<int>(boost::TIME_UTC)); 283 - + boost::xtime_get(&cur, boost::TIME_UTC_), 284 - + static_cast<int>(boost::TIME_UTC_)); 285 - 286 - xt1 = xt2 = cur; 287 - xt1.nsec -= 1; 288 - @@ -42,14 +42,14 @@ void test_xtime_get() 289 - boost::xtime orig, cur, old; 290 - BOOST_CHECK_EQUAL( 291 - boost::xtime_get(&orig, 292 - - boost::TIME_UTC), static_cast<int>(boost::TIME_UTC)); 293 - + boost::TIME_UTC_), static_cast<int>(boost::TIME_UTC_)); 294 - old = orig; 295 - 296 - for (int x=0; x < 100; ++x) 297 - { 298 - BOOST_CHECK_EQUAL( 299 - - boost::xtime_get(&cur, boost::TIME_UTC), 300 - - static_cast<int>(boost::TIME_UTC)); 301 - + boost::xtime_get(&cur, boost::TIME_UTC_), 302 - + static_cast<int>(boost::TIME_UTC_)); 303 - BOOST_CHECK(boost::xtime_cmp(cur, orig) >= 0); 304 - BOOST_CHECK(boost::xtime_cmp(cur, old) >= 0); 305 - old = cur; 306 - Index: boost_1_49_0/libs/thread/test/util.inl 307 - =================================================================== 308 - --- boost_1_49_0.orig/libs/thread/test/util.inl 309 - +++ boost_1_49_0/libs/thread/test/util.inl 310 - @@ -28,8 +28,8 @@ inline boost::xtime delay(int secs, int 311 - const int NANOSECONDS_PER_MILLISECOND = 1000000; 312 - 313 - boost::xtime xt; 314 - - if (boost::TIME_UTC != boost::xtime_get (&xt, boost::TIME_UTC)) 315 - - BOOST_ERROR ("boost::xtime_get != boost::TIME_UTC"); 316 - + if (boost::TIME_UTC_ != boost::xtime_get (&xt, boost::TIME_UTC_)) 317 - + BOOST_ERROR ("boost::xtime_get != boost::TIME_UTC_"); 318 - 319 - nsecs += xt.nsec; 320 - msecs += nsecs / NANOSECONDS_PER_MILLISECOND;
-520
pkgs/development/libraries/boost/time_utc_144.patch
··· 1 - diff -rc boost_1_44_0/boost/thread/xtime.hpp boost_1_44_0-new/boost/thread/xtime.hpp 2 - *** boost_1_44_0/boost/thread/xtime.hpp 2008-06-18 15:01:08.000000000 +0200 3 - --- boost_1_44_0-new/boost/thread/xtime.hpp 2013-04-12 14:00:27.125713549 +0200 4 - *************** 5 - *** 20,26 **** 6 - 7 - enum xtime_clock_types 8 - { 9 - ! TIME_UTC=1 10 - // TIME_TAI, 11 - // TIME_MONOTONIC, 12 - // TIME_PROCESS, 13 - --- 20,26 ---- 14 - 15 - enum xtime_clock_types 16 - { 17 - ! TIME_UTC_=1 18 - // TIME_TAI, 19 - // TIME_MONOTONIC, 20 - // TIME_PROCESS, 21 - *************** 22 - *** 68,74 **** 23 - 24 - inline int xtime_get(struct xtime* xtp, int clock_type) 25 - { 26 - ! if (clock_type == TIME_UTC) 27 - { 28 - *xtp=get_xtime(get_system_time()); 29 - return clock_type; 30 - --- 68,74 ---- 31 - 32 - inline int xtime_get(struct xtime* xtp, int clock_type) 33 - { 34 - ! if (clock_type == TIME_UTC_) 35 - { 36 - *xtp=get_xtime(get_system_time()); 37 - return clock_type; 38 - diff -rc boost_1_44_0/libs/interprocess/test/condition_test_template.hpp boost_1_44_0-new/libs/interprocess/test/condition_test_template.hpp 39 - *** boost_1_44_0/libs/interprocess/test/condition_test_template.hpp 2009-10-15 20:45:53.000000000 +0200 40 - --- boost_1_44_0-new/libs/interprocess/test/condition_test_template.hpp 2013-04-12 14:00:20.215658855 +0200 41 - *************** 42 - *** 49,56 **** 43 - const int NANOSECONDS_PER_MILLISECOND = 1000000; 44 - 45 - boost::xtime xt; 46 - ! int ret = boost::xtime_get(&xt, boost::TIME_UTC); 47 - ! assert(ret == static_cast<int>(boost::TIME_UTC));(void)ret; 48 - nsecs += xt.nsec; 49 - msecs += nsecs / NANOSECONDS_PER_MILLISECOND; 50 - secs += msecs / MILLISECONDS_PER_SECOND; 51 - --- 49,56 ---- 52 - const int NANOSECONDS_PER_MILLISECOND = 1000000; 53 - 54 - boost::xtime xt; 55 - ! int ret = boost::xtime_get(&xt, boost::TIME_UTC_); 56 - ! assert(ret == static_cast<int>(boost::TIME_UTC_));(void)ret; 57 - nsecs += xt.nsec; 58 - msecs += nsecs / NANOSECONDS_PER_MILLISECOND; 59 - secs += msecs / MILLISECONDS_PER_SECOND; 60 - diff -rc boost_1_44_0/libs/interprocess/test/util.hpp boost_1_44_0-new/libs/interprocess/test/util.hpp 61 - *** boost_1_44_0/libs/interprocess/test/util.hpp 2009-10-15 20:45:53.000000000 +0200 62 - --- boost_1_44_0-new/libs/interprocess/test/util.hpp 2013-04-12 14:00:20.219658887 +0200 63 - *************** 64 - *** 71,77 **** 65 - boost::xtime xsecs(int secs) 66 - { 67 - boost::xtime ret; 68 - ! boost::xtime_get(&ret, boost::TIME_UTC); 69 - ret.sec += secs; 70 - return ret; 71 - } 72 - --- 71,77 ---- 73 - boost::xtime xsecs(int secs) 74 - { 75 - boost::xtime ret; 76 - ! boost::xtime_get(&ret, boost::TIME_UTC_); 77 - ret.sec += secs; 78 - return ret; 79 - } 80 - diff -rc boost_1_44_0/libs/spirit/classic/test/grammar_mt_tests.cpp boost_1_44_0-new/libs/spirit/classic/test/grammar_mt_tests.cpp 81 - *** boost_1_44_0/libs/spirit/classic/test/grammar_mt_tests.cpp 2008-06-22 17:05:38.000000000 +0200 82 - --- boost_1_44_0-new/libs/spirit/classic/test/grammar_mt_tests.cpp 2013-04-12 14:00:18.836647940 +0200 83 - *************** 84 - *** 70,76 **** 85 - { 86 - static long const nanoseconds_per_second = 1000L*1000L*1000L; 87 - boost::xtime xt; 88 - ! boost::xtime_get(&xt, boost::TIME_UTC); 89 - xt.nsec+=1000*1000*milliseconds; 90 - while (xt.nsec > nanoseconds_per_second) 91 - { 92 - --- 70,76 ---- 93 - { 94 - static long const nanoseconds_per_second = 1000L*1000L*1000L; 95 - boost::xtime xt; 96 - ! boost::xtime_get(&xt, boost::TIME_UTC_); 97 - xt.nsec+=1000*1000*milliseconds; 98 - while (xt.nsec > nanoseconds_per_second) 99 - { 100 - diff -rc boost_1_44_0/libs/spirit/classic/test/owi_mt_tests.cpp boost_1_44_0-new/libs/spirit/classic/test/owi_mt_tests.cpp 101 - *** boost_1_44_0/libs/spirit/classic/test/owi_mt_tests.cpp 2008-06-22 17:05:38.000000000 +0200 102 - --- boost_1_44_0-new/libs/spirit/classic/test/owi_mt_tests.cpp 2013-04-12 14:00:18.836647940 +0200 103 - *************** 104 - *** 86,92 **** 105 - return test_size; 106 - 107 - boost::xtime now; 108 - ! boost::xtime_get(&now, boost::TIME_UTC); 109 - unsigned long seconds = now.sec - start_time.sec; 110 - if (seconds < 4) 111 - { 112 - --- 86,92 ---- 113 - return test_size; 114 - 115 - boost::xtime now; 116 - ! boost::xtime_get(&now, boost::TIME_UTC_); 117 - unsigned long seconds = now.sec - start_time.sec; 118 - if (seconds < 4) 119 - { 120 - *************** 121 - *** 187,193 **** 122 - void concurrent_creation_of_objects() 123 - { 124 - { 125 - ! boost::xtime_get(&start_time, boost::TIME_UTC); 126 - boost::thread thread1(callable_ref(test1)); 127 - boost::thread thread2(callable_ref(test2)); 128 - boost::thread thread3(callable_ref(test3)); 129 - --- 187,193 ---- 130 - void concurrent_creation_of_objects() 131 - { 132 - { 133 - ! boost::xtime_get(&start_time, boost::TIME_UTC_); 134 - boost::thread thread1(callable_ref(test1)); 135 - boost::thread thread2(callable_ref(test2)); 136 - boost::thread thread3(callable_ref(test3)); 137 - diff -rc boost_1_44_0/libs/thread/example/starvephil.cpp boost_1_44_0-new/libs/thread/example/starvephil.cpp 138 - *** boost_1_44_0/libs/thread/example/starvephil.cpp 2006-09-14 23:51:01.000000000 +0200 139 - --- boost_1_44_0-new/libs/thread/example/starvephil.cpp 2013-04-12 14:00:19.413652507 +0200 140 - *************** 141 - *** 50,56 **** 142 - << "very hot ..." << std::endl; 143 - } 144 - boost::xtime xt; 145 - ! boost::xtime_get(&xt, boost::TIME_UTC); 146 - xt.sec += 3; 147 - boost::thread::sleep(xt); 148 - m_chickens += value; 149 - --- 50,56 ---- 150 - << "very hot ..." << std::endl; 151 - } 152 - boost::xtime xt; 153 - ! boost::xtime_get(&xt, boost::TIME_UTC_); 154 - xt.sec += 3; 155 - boost::thread::sleep(xt); 156 - m_chickens += value; 157 - *************** 158 - *** 85,91 **** 159 - std::cout << "(" << clock() << ") Chef: cooking ..." << std::endl; 160 - } 161 - boost::xtime xt; 162 - ! boost::xtime_get(&xt, boost::TIME_UTC); 163 - xt.sec += 2; 164 - boost::thread::sleep(xt); 165 - { 166 - --- 85,91 ---- 167 - std::cout << "(" << clock() << ") Chef: cooking ..." << std::endl; 168 - } 169 - boost::xtime xt; 170 - ! boost::xtime_get(&xt, boost::TIME_UTC_); 171 - xt.sec += 2; 172 - boost::thread::sleep(xt); 173 - { 174 - *************** 175 - *** 111,117 **** 176 - if (m_id > 0) 177 - { 178 - boost::xtime xt; 179 - ! boost::xtime_get(&xt, boost::TIME_UTC); 180 - xt.sec += 3; 181 - boost::thread::sleep(xt); 182 - } 183 - --- 111,117 ---- 184 - if (m_id > 0) 185 - { 186 - boost::xtime xt; 187 - ! boost::xtime_get(&xt, boost::TIME_UTC_); 188 - xt.sec += 3; 189 - boost::thread::sleep(xt); 190 - } 191 - diff -rc boost_1_44_0/libs/thread/example/tennis.cpp boost_1_44_0-new/libs/thread/example/tennis.cpp 192 - *** boost_1_44_0/libs/thread/example/tennis.cpp 2009-10-19 11:18:13.000000000 +0200 193 - --- boost_1_44_0-new/libs/thread/example/tennis.cpp 2013-04-12 14:00:19.412652499 +0200 194 - *************** 195 - *** 104,110 **** 196 - boost::thread thrdb(thread_adapter(&player, (void*)PLAYER_B)); 197 - 198 - boost::xtime xt; 199 - ! boost::xtime_get(&xt, boost::TIME_UTC); 200 - xt.sec += 1; 201 - boost::thread::sleep(xt); 202 - { 203 - --- 104,110 ---- 204 - boost::thread thrdb(thread_adapter(&player, (void*)PLAYER_B)); 205 - 206 - boost::xtime xt; 207 - ! boost::xtime_get(&xt, boost::TIME_UTC_); 208 - xt.sec += 1; 209 - boost::thread::sleep(xt); 210 - { 211 - diff -rc boost_1_44_0/libs/thread/example/thread.cpp boost_1_44_0-new/libs/thread/example/thread.cpp 212 - *** boost_1_44_0/libs/thread/example/thread.cpp 2006-09-14 23:51:01.000000000 +0200 213 - --- boost_1_44_0-new/libs/thread/example/thread.cpp 2013-04-12 14:00:19.414652515 +0200 214 - *************** 215 - *** 14,20 **** 216 - void operator()() 217 - { 218 - boost::xtime xt; 219 - ! boost::xtime_get(&xt, boost::TIME_UTC); 220 - xt.sec += m_secs; 221 - 222 - boost::thread::sleep(xt); 223 - --- 14,20 ---- 224 - void operator()() 225 - { 226 - boost::xtime xt; 227 - ! boost::xtime_get(&xt, boost::TIME_UTC_); 228 - xt.sec += m_secs; 229 - 230 - boost::thread::sleep(xt); 231 - diff -rc boost_1_44_0/libs/thread/example/xtime.cpp boost_1_44_0-new/libs/thread/example/xtime.cpp 232 - *** boost_1_44_0/libs/thread/example/xtime.cpp 2006-09-14 23:51:01.000000000 +0200 233 - --- boost_1_44_0-new/libs/thread/example/xtime.cpp 2013-04-12 14:00:19.413652507 +0200 234 - *************** 235 - *** 10,16 **** 236 - int main(int argc, char* argv[]) 237 - { 238 - boost::xtime xt; 239 - ! boost::xtime_get(&xt, boost::TIME_UTC); 240 - xt.sec += 1; 241 - boost::thread::sleep(xt); // Sleep for 1 second 242 - } 243 - --- 10,16 ---- 244 - int main(int argc, char* argv[]) 245 - { 246 - boost::xtime xt; 247 - ! boost::xtime_get(&xt, boost::TIME_UTC_); 248 - xt.sec += 1; 249 - boost::thread::sleep(xt); // Sleep for 1 second 250 - } 251 - diff -rc boost_1_44_0/libs/thread/src/pthread/thread.cpp boost_1_44_0-new/libs/thread/src/pthread/thread.cpp 252 - *** boost_1_44_0/libs/thread/src/pthread/thread.cpp 2010-07-09 21:13:09.000000000 +0200 253 - --- boost_1_44_0-new/libs/thread/src/pthread/thread.cpp 2013-04-12 14:00:19.415652523 +0200 254 - *************** 255 - *** 350,356 **** 256 - cond.timed_wait(lock, xt); 257 - # endif 258 - xtime cur; 259 - ! xtime_get(&cur, TIME_UTC); 260 - if (xtime_cmp(xt, cur) <= 0) 261 - return; 262 - } 263 - --- 350,356 ---- 264 - cond.timed_wait(lock, xt); 265 - # endif 266 - xtime cur; 267 - ! xtime_get(&cur, TIME_UTC_); 268 - if (xtime_cmp(xt, cur) <= 0) 269 - return; 270 - } 271 - *************** 272 - *** 365,371 **** 273 - BOOST_VERIFY(!pthread_yield()); 274 - # else 275 - xtime xt; 276 - ! xtime_get(&xt, TIME_UTC); 277 - sleep(xt); 278 - # endif 279 - } 280 - --- 365,371 ---- 281 - BOOST_VERIFY(!pthread_yield()); 282 - # else 283 - xtime xt; 284 - ! xtime_get(&xt, TIME_UTC_); 285 - sleep(xt); 286 - # endif 287 - } 288 - diff -rc boost_1_44_0/libs/thread/src/pthread/timeconv.inl boost_1_44_0-new/libs/thread/src/pthread/timeconv.inl 289 - *** boost_1_44_0/libs/thread/src/pthread/timeconv.inl 2010-04-01 17:04:15.000000000 +0200 290 - --- boost_1_44_0-new/libs/thread/src/pthread/timeconv.inl 2013-04-12 14:00:19.414652515 +0200 291 - *************** 292 - *** 20,27 **** 293 - inline void to_time(int milliseconds, boost::xtime& xt) 294 - { 295 - int res = 0; 296 - ! res = boost::xtime_get(&xt, boost::TIME_UTC); 297 - ! BOOST_ASSERT(res == boost::TIME_UTC); 298 - 299 - xt.sec += (milliseconds / MILLISECONDS_PER_SECOND); 300 - xt.nsec += ((milliseconds % MILLISECONDS_PER_SECOND) * 301 - --- 20,27 ---- 302 - inline void to_time(int milliseconds, boost::xtime& xt) 303 - { 304 - int res = 0; 305 - ! res = boost::xtime_get(&xt, boost::TIME_UTC_); 306 - ! BOOST_ASSERT(res == boost::TIME_UTC_); 307 - 308 - xt.sec += (milliseconds / MILLISECONDS_PER_SECOND); 309 - xt.nsec += ((milliseconds % MILLISECONDS_PER_SECOND) * 310 - *************** 311 - *** 57,64 **** 312 - { 313 - boost::xtime cur; 314 - int res = 0; 315 - ! res = boost::xtime_get(&cur, boost::TIME_UTC); 316 - ! BOOST_ASSERT(res == boost::TIME_UTC); 317 - 318 - if (boost::xtime_cmp(xt, cur) <= 0) 319 - { 320 - --- 57,64 ---- 321 - { 322 - boost::xtime cur; 323 - int res = 0; 324 - ! res = boost::xtime_get(&cur, boost::TIME_UTC_); 325 - ! BOOST_ASSERT(res == boost::TIME_UTC_); 326 - 327 - if (boost::xtime_cmp(xt, cur) <= 0) 328 - { 329 - *************** 330 - *** 88,95 **** 331 - { 332 - boost::xtime cur; 333 - int res = 0; 334 - ! res = boost::xtime_get(&cur, boost::TIME_UTC); 335 - ! BOOST_ASSERT(res == boost::TIME_UTC); 336 - 337 - if (boost::xtime_cmp(xt, cur) <= 0) 338 - milliseconds = 0; 339 - --- 88,95 ---- 340 - { 341 - boost::xtime cur; 342 - int res = 0; 343 - ! res = boost::xtime_get(&cur, boost::TIME_UTC_); 344 - ! BOOST_ASSERT(res == boost::TIME_UTC_); 345 - 346 - if (boost::xtime_cmp(xt, cur) <= 0) 347 - milliseconds = 0; 348 - *************** 349 - *** 110,117 **** 350 - { 351 - boost::xtime cur; 352 - int res = 0; 353 - ! res = boost::xtime_get(&cur, boost::TIME_UTC); 354 - ! BOOST_ASSERT(res == boost::TIME_UTC); 355 - 356 - if (boost::xtime_cmp(xt, cur) <= 0) 357 - microseconds = 0; 358 - --- 110,117 ---- 359 - { 360 - boost::xtime cur; 361 - int res = 0; 362 - ! res = boost::xtime_get(&cur, boost::TIME_UTC_); 363 - ! BOOST_ASSERT(res == boost::TIME_UTC_); 364 - 365 - if (boost::xtime_cmp(xt, cur) <= 0) 366 - microseconds = 0; 367 - diff -rc boost_1_44_0/libs/thread/src/win32/timeconv.inl boost_1_44_0-new/libs/thread/src/win32/timeconv.inl 368 - *** boost_1_44_0/libs/thread/src/win32/timeconv.inl 2007-11-25 19:38:02.000000000 +0100 369 - --- boost_1_44_0-new/libs/thread/src/win32/timeconv.inl 2013-04-12 14:00:19.416652531 +0200 370 - *************** 371 - *** 17,24 **** 372 - inline void to_time(int milliseconds, boost::xtime& xt) 373 - { 374 - int res = 0; 375 - ! res = boost::xtime_get(&xt, boost::TIME_UTC); 376 - ! assert(res == boost::TIME_UTC); 377 - 378 - xt.sec += (milliseconds / MILLISECONDS_PER_SECOND); 379 - xt.nsec += ((milliseconds % MILLISECONDS_PER_SECOND) * 380 - --- 17,24 ---- 381 - inline void to_time(int milliseconds, boost::xtime& xt) 382 - { 383 - int res = 0; 384 - ! res = boost::xtime_get(&xt, boost::TIME_UTC_); 385 - ! assert(res == boost::TIME_UTC_); 386 - 387 - xt.sec += (milliseconds / MILLISECONDS_PER_SECOND); 388 - xt.nsec += ((milliseconds % MILLISECONDS_PER_SECOND) * 389 - *************** 390 - *** 54,61 **** 391 - { 392 - boost::xtime cur; 393 - int res = 0; 394 - ! res = boost::xtime_get(&cur, boost::TIME_UTC); 395 - ! assert(res == boost::TIME_UTC); 396 - 397 - if (boost::xtime_cmp(xt, cur) <= 0) 398 - { 399 - --- 54,61 ---- 400 - { 401 - boost::xtime cur; 402 - int res = 0; 403 - ! res = boost::xtime_get(&cur, boost::TIME_UTC_); 404 - ! assert(res == boost::TIME_UTC_); 405 - 406 - if (boost::xtime_cmp(xt, cur) <= 0) 407 - { 408 - *************** 409 - *** 85,92 **** 410 - { 411 - boost::xtime cur; 412 - int res = 0; 413 - ! res = boost::xtime_get(&cur, boost::TIME_UTC); 414 - ! assert(res == boost::TIME_UTC); 415 - 416 - if (boost::xtime_cmp(xt, cur) <= 0) 417 - milliseconds = 0; 418 - --- 85,92 ---- 419 - { 420 - boost::xtime cur; 421 - int res = 0; 422 - ! res = boost::xtime_get(&cur, boost::TIME_UTC_); 423 - ! assert(res == boost::TIME_UTC_); 424 - 425 - if (boost::xtime_cmp(xt, cur) <= 0) 426 - milliseconds = 0; 427 - *************** 428 - *** 107,114 **** 429 - { 430 - boost::xtime cur; 431 - int res = 0; 432 - ! res = boost::xtime_get(&cur, boost::TIME_UTC); 433 - ! assert(res == boost::TIME_UTC); 434 - 435 - if (boost::xtime_cmp(xt, cur) <= 0) 436 - microseconds = 0; 437 - --- 107,114 ---- 438 - { 439 - boost::xtime cur; 440 - int res = 0; 441 - ! res = boost::xtime_get(&cur, boost::TIME_UTC_); 442 - ! assert(res == boost::TIME_UTC_); 443 - 444 - if (boost::xtime_cmp(xt, cur) <= 0) 445 - microseconds = 0; 446 - diff -rc boost_1_44_0/libs/thread/test/test_xtime.cpp boost_1_44_0-new/libs/thread/test/test_xtime.cpp 447 - *** boost_1_44_0/libs/thread/test/test_xtime.cpp 2008-07-08 09:44:55.000000000 +0200 448 - --- boost_1_44_0-new/libs/thread/test/test_xtime.cpp 2013-04-12 14:00:19.432652657 +0200 449 - *************** 450 - *** 17,24 **** 451 - { 452 - boost::xtime xt1, xt2, cur; 453 - BOOST_CHECK_EQUAL( 454 - ! boost::xtime_get(&cur, boost::TIME_UTC), 455 - ! static_cast<int>(boost::TIME_UTC)); 456 - 457 - xt1 = xt2 = cur; 458 - xt1.nsec -= 1; 459 - --- 17,24 ---- 460 - { 461 - boost::xtime xt1, xt2, cur; 462 - BOOST_CHECK_EQUAL( 463 - ! boost::xtime_get(&cur, boost::TIME_UTC_), 464 - ! static_cast<int>(boost::TIME_UTC_)); 465 - 466 - xt1 = xt2 = cur; 467 - xt1.nsec -= 1; 468 - *************** 469 - *** 42,55 **** 470 - boost::xtime orig, cur, old; 471 - BOOST_CHECK_EQUAL( 472 - boost::xtime_get(&orig, 473 - ! boost::TIME_UTC), static_cast<int>(boost::TIME_UTC)); 474 - old = orig; 475 - 476 - for (int x=0; x < 100; ++x) 477 - { 478 - BOOST_CHECK_EQUAL( 479 - ! boost::xtime_get(&cur, boost::TIME_UTC), 480 - ! static_cast<int>(boost::TIME_UTC)); 481 - BOOST_CHECK(boost::xtime_cmp(cur, orig) >= 0); 482 - BOOST_CHECK(boost::xtime_cmp(cur, old) >= 0); 483 - old = cur; 484 - --- 42,55 ---- 485 - boost::xtime orig, cur, old; 486 - BOOST_CHECK_EQUAL( 487 - boost::xtime_get(&orig, 488 - ! boost::TIME_UTC_), static_cast<int>(boost::TIME_UTC)); 489 - old = orig; 490 - 491 - for (int x=0; x < 100; ++x) 492 - { 493 - BOOST_CHECK_EQUAL( 494 - ! boost::xtime_get(&cur, boost::TIME_UTC_), 495 - ! static_cast<int>(boost::TIME_UTC_)); 496 - BOOST_CHECK(boost::xtime_cmp(cur, orig) >= 0); 497 - BOOST_CHECK(boost::xtime_cmp(cur, old) >= 0); 498 - old = cur; 499 - diff -rc boost_1_44_0/libs/thread/test/util.inl boost_1_44_0-new/libs/thread/test/util.inl 500 - *** boost_1_44_0/libs/thread/test/util.inl 2008-11-03 23:29:39.000000000 +0100 501 - --- boost_1_44_0-new/libs/thread/test/util.inl 2013-04-12 14:00:19.433652665 +0200 502 - *************** 503 - *** 28,35 **** 504 - const int NANOSECONDS_PER_MILLISECOND = 1000000; 505 - 506 - boost::xtime xt; 507 - ! if (boost::TIME_UTC != boost::xtime_get (&xt, boost::TIME_UTC)) 508 - ! BOOST_ERROR ("boost::xtime_get != boost::TIME_UTC"); 509 - 510 - nsecs += xt.nsec; 511 - msecs += nsecs / NANOSECONDS_PER_MILLISECOND; 512 - --- 28,35 ---- 513 - const int NANOSECONDS_PER_MILLISECOND = 1000000; 514 - 515 - boost::xtime xt; 516 - ! if (boost::TIME_UTC_ != boost::xtime_get (&xt, boost::TIME_UTC)) 517 - ! BOOST_ERROR ("boost::xtime_get != boost::TIME_UTC_"); 518 - 519 - nsecs += xt.nsec; 520 - msecs += nsecs / NANOSECONDS_PER_MILLISECOND;
+6 -58
pkgs/development/libraries/botan/default.nix
··· 1 - x@{builderDefsPackage 2 - , python 3 - , bzip2, zlib, gmp, openssl 4 - , boost 5 - , ...}: 6 - builderDefsPackage 7 - (a : 8 - let 9 - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 10 - []; 11 - 12 - buildInputs = [ boost.lib ] 13 - ++ map (n: builtins.getAttr n x) 14 - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); 15 - sourceInfo = rec { 16 - baseName="botan"; 17 - tarBaseName="Botan"; 18 - baseVersion = "1.10"; 19 - revision = "8"; 20 - version="${baseVersion}.${revision}"; 21 - name="${baseName}-${version}"; 22 - url="http://files.randombit.net/${baseName}/v${baseVersion}/${tarBaseName}-${version}.tbz"; 23 - hash = "182f316rbdd6jrqn92vjms3jyb9syn4ic0nzi3b7rfjbj3zdabxw"; 24 - }; 25 - in 26 - rec { 27 - src = a.fetchurl { 28 - url = sourceInfo.url; 29 - sha256 = sourceInfo.hash; 30 - }; 31 - 32 - inherit (sourceInfo) name version; 33 - inherit buildInputs; 34 - 35 - /* doConfigure should be removed if not needed */ 36 - phaseNames = ["doConfigure" "doMakeInstall" "fixPkgConfig"]; 37 - configureCommand = "python configure.py --with-gnump --with-bzip2 --with-zlib --with-openssl --with-tr1-implementation=boost"; 1 + { callPackage, ... } @ args: 38 2 39 - fixPkgConfig = a.fullDepEntry '' 40 - cd "$out"/lib/pkgconfig 41 - ln -s botan-*.pc botan.pc || true 42 - '' ["minInit" "doMakeInstall"]; 43 - 44 - meta = { 45 - description = "Cryptographic algorithms library"; 46 - maintainers = with a.lib.maintainers; 47 - [ 48 - raskin 49 - ]; 50 - platforms = with a.lib.platforms; 51 - unix; 52 - inherit version; 53 - }; 54 - passthru = { 55 - updateInfo = { 56 - downloadPage = "http://files.randombit.net/botan/"; 57 - }; 58 - }; 59 - }) x 3 + callPackage ./generic.nix (args // { 4 + baseVersion = "1.10"; 5 + revision = "8"; 6 + sha256 = "182f316rbdd6jrqn92vjms3jyb9syn4ic0nzi3b7rfjbj3zdabxw"; 7 + })
+35
pkgs/development/libraries/botan/generic.nix
··· 1 + { stdenv, fetchurl, python, bzip2, zlib, gmp, openssl, boost 2 + # Passed by version specific builders 3 + , baseVersion, revision, sha256 4 + , ... 5 + }: 6 + 7 + stdenv.mkDerivation rec { 8 + name = "botan-${version}"; 9 + version = "${baseVersion}.${revision}"; 10 + 11 + src = fetchurl { 12 + name = "Botan-${version}.tar.bz2"; 13 + url = "http://files.randombit.net/botan/v${baseVersion}/Botan-${version}.tbz"; 14 + inherit sha256; 15 + }; 16 + 17 + buildInputs = [ python bzip2 zlib gmp openssl boost ]; 18 + 19 + configurePhase = '' 20 + python configure.py --prefix=$out --with-gnump --with-bzip2 --with-zlib --with-openssl 21 + ''; 22 + 23 + postInstall = '' 24 + cd "$out"/lib/pkgconfig 25 + ln -s botan-*.pc botan.pc || true 26 + ''; 27 + 28 + meta = with stdenv.lib; { 29 + description = "Cryptographic algorithms library"; 30 + maintainers = with maintainers; [ raskin ]; 31 + platforms = platforms.unix; 32 + license = licenses.bsd2; 33 + }; 34 + passthru.updateInfo.downloadPage = "http://files.randombit.net/botan/"; 35 + }
+6 -58
pkgs/development/libraries/botan/unstable.nix
··· 1 - x@{builderDefsPackage 2 - , python 3 - , bzip2, zlib, gmp, openssl 4 - , boost 5 - , ...}: 6 - builderDefsPackage 7 - (a : 8 - let 9 - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 10 - []; 11 - 12 - buildInputs = [ boost.lib ] 13 - ++ map (n: builtins.getAttr n x) 14 - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); 15 - sourceInfo = rec { 16 - baseName="botan"; 17 - tarBaseName="Botan"; 18 - baseVersion = "1.11"; 19 - revision = "9"; 20 - version="${baseVersion}.${revision}"; 21 - name="${baseName}-${version}"; 22 - url="http://files.randombit.net/${baseName}/v${baseVersion}/${tarBaseName}-${version}.tbz"; 23 - hash = "0jgx5va042gmr6nc91p5dd59wnfxlz19mz2nnyv74pvwwmizs09m"; 24 - }; 25 - in 26 - rec { 27 - src = a.fetchurl { 28 - url = sourceInfo.url; 29 - sha256 = sourceInfo.hash; 30 - }; 31 - 32 - inherit (sourceInfo) name version; 33 - inherit buildInputs; 34 - 35 - /* doConfigure should be removed if not needed */ 36 - phaseNames = ["doConfigure" "doMakeInstall" "fixPkgConfig"]; 37 - configureCommand = "python configure.py --with-gnump --with-bzip2 --with-zlib --with-openssl"; 38 - 39 - fixPkgConfig = a.fullDepEntry '' 40 - cd "$out"/lib/pkgconfig 41 - ln -s botan-*.pc botan.pc || true 42 - '' ["minInit" "doMakeInstall"]; 1 + { callPackage, ... } @ args: 43 2 44 - meta = { 45 - description = "Cryptographic algorithms library"; 46 - maintainers = with a.lib.maintainers; 47 - [ 48 - raskin 49 - ]; 50 - platforms = with a.lib.platforms; 51 - unix; 52 - inherit version; 53 - }; 54 - passthru = { 55 - updateInfo = { 56 - downloadPage = "http://files.randombit.net/botan/"; 57 - }; 58 - }; 59 - }) x 3 + callPackage ./generic.nix (args // { 4 + baseVersion = "1.11"; 5 + revision = "9"; 6 + sha256 = "0jgx5va042gmr6nc91p5dd59wnfxlz19mz2nnyv74pvwwmizs09m"; 7 + })
+1 -1
pkgs/development/libraries/cpp-netlib/default.nix
··· 12 12 md5 = "0765cf203f451394df98e6ddf7bf2541"; 13 13 }; 14 14 15 - buildInputs = [ cmake boost boost.lib openssl ]; 15 + buildInputs = [ cmake boost openssl ]; 16 16 17 17 cmakeFlags = [ "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON" "-DCMAKE_BUILD_TYPE=RELEASE" ]; 18 18
+2 -2
pkgs/development/libraries/exempi/default.nix
··· 8 8 sha256 = "01vcd1mfn2s0iiq2cjyzgvnxx6kcq9cwra1iipijhs0vwvjx0yhf"; 9 9 }; 10 10 11 - configureFlags = [ "--with-boost=${boost}" ]; 11 + configureFlags = [ "--with-boost=${boost.dev}" ]; 12 12 13 - buildInputs = [ expat zlib boost boost.lib ]; 13 + buildInputs = [ expat zlib boost ]; 14 14 15 15 meta = with stdenv.lib; { 16 16 homepage = http://libopenraw.freedesktop.org/wiki/Exempi/;
+6
pkgs/development/libraries/libtorrent-rasterbar/0.16.nix
··· 1 + { callPackage, ... } @ args: 2 + 3 + callPackage ./generic.nix (args // { 4 + version = "0.16.17"; 5 + sha256 = "1w5gcizd6jlvzwgy0307az856h0cly685yf275p1v6bdcafd58b7"; 6 + })
+5 -27
pkgs/development/libraries/libtorrent-rasterbar/default.nix
··· 1 - { stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconvOrNull, geoip }: 2 - 3 - stdenv.mkDerivation rec { 4 - name = "libtorrent-rasterbar-1.0.2"; 5 - 6 - src = fetchurl { 7 - url = "mirror://sourceforge/libtorrent/${name}.tar.gz"; 8 - sha256 = "1ph4cb6nrk2hiy89j3kz1wj16ph0b9yixrf4f4935rnzhha8x31w"; 9 - }; 10 - 11 - buildInputs = [ boost boost.lib pkgconfig openssl zlib python libiconvOrNull geoip ]; 1 + { callPackage, ... } @ args: 12 2 13 - configureFlags = [ 14 - "--with-boost=${boost}/include/boost" 15 - "--with-boost-libdir=${boost.lib}/lib" 16 - "--enable-python-binding" 17 - "--with-libgeoip=system" 18 - "--with-libiconv=yes" 19 - "--with-boost=${boost.lib}" 20 - ]; 21 - 22 - meta = with stdenv.lib; { 23 - homepage = http://www.rasterbar.com/products/libtorrent/; 24 - description = "A C++ BitTorrent implementation focusing on efficiency and scalability"; 25 - license = licenses.bsd3; 26 - maintainers = [ maintainers.phreedom ]; 27 - }; 28 - } 3 + callPackage ./generic.nix (args // { 4 + version = "1.0.2"; 5 + sha256 = "1ph4cb6nrk2hiy89j3kz1wj16ph0b9yixrf4f4935rnzhha8x31w"; 6 + })
+30
pkgs/development/libraries/libtorrent-rasterbar/generic.nix
··· 1 + { stdenv, fetchurl, boost, openssl, pkgconfig, zlib, python, libiconvOrNull, geoip 2 + # Version specific options 3 + , version, sha256 4 + , ... }: 5 + 6 + stdenv.mkDerivation rec { 7 + name = "libtorrent-rasterbar-${version}"; 8 + 9 + src = fetchurl { 10 + url = "mirror://sourceforge/libtorrent/${name}.tar.gz"; 11 + inherit sha256; 12 + }; 13 + 14 + buildInputs = [ boost pkgconfig openssl zlib python libiconvOrNull geoip ]; 15 + 16 + configureFlags = [ 17 + "--enable-python-binding" 18 + "--with-libgeoip=system" 19 + "--with-libiconv=yes" 20 + "--with-boost=${boost.dev}" 21 + "--with-boost-libdir=${boost.lib}/lib" 22 + ] ++ stdenv.lib.optional (libiconvOrNull != null) "--with-libiconv=yes"; 23 + 24 + meta = with stdenv.lib; { 25 + homepage = http://www.rasterbar.com/products/libtorrent/; 26 + description = "A C++ BitTorrent implementation focusing on efficiency and scalability"; 27 + license = licenses.bsd3; 28 + maintainers = [ maintainers.phreedom ]; 29 + }; 30 + }
+1 -1
pkgs/games/asc/default.nix
··· 15 15 NIX_CFLAGS_COMPILE = "-fpermissive"; # I'm too lazy to catch all gcc47-related problems 16 16 17 17 buildInputs = [ 18 - SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost boost.lib expat 18 + SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost expat 19 19 freetype libjpeg wxGTK lua perl pkgconfig zlib zip bzip2 libpng 20 20 ]; 21 21
+35 -65
pkgs/games/globulation/default.nix
··· 1 - x@{builderDefsPackage 2 - , mesa, SDL, scons, SDL_ttf, SDL_image, zlib, SDL_net, speex, libvorbis 3 - , libogg, boost, fribidi, bsdiff 4 - , ...}: 5 - builderDefsPackage 6 - (a : 7 - let 8 - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 9 - []; 10 - 11 - buildInputs = [ boost.lib ] 12 - ++ map (n: builtins.getAttr n x) 13 - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); 14 - sourceInfo = rec { 15 - baseName="glob2"; 16 - version="0.9.4"; 17 - patchlevel="4"; 18 - name="${baseName}-${version}.${patchlevel}"; 19 - url="mirror://savannah/glob2/${version}/${name}.tar.gz"; 20 - hash="1f0l2cqp2g3llhr9jl6jj15k0wb5q8n29vqj99xy4p5hqs78jk8g"; 21 - }; 22 - in 23 - rec { 24 - src = a.fetchurl { 25 - url = sourceInfo.url; 26 - sha256 = sourceInfo.hash; 27 - }; 28 - 29 - tutorial4patch = a.fetchurl { 1 + { stdenv, fetchurl, mesa, SDL, scons, SDL_ttf, SDL_image, zlib, SDL_net 2 + , speex, libvorbis, libogg, boost, fribidi, bsdiff 3 + }: 4 + let 5 + version = "0.9.4"; 6 + patchlevel = "4"; 7 + tutorial4patch = fetchurl { 30 8 url = "http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=34;filename=tutorial-part4.map.bspatch;att=1;bug=595448"; 31 9 name = "globulation2-tutorial4-map-patch-debian.bspatch"; 32 10 sha256 = "d3511ac0f822d512c42abd34b3122f2990862d3d0af6ce464ff372f5bd7f35e9"; 33 11 }; 34 - 35 - inherit (sourceInfo) name version; 36 - inherit buildInputs; 12 + in 13 + stdenv.mkDerivation rec { 14 + name = "glob2-${version}.${patchlevel}"; 37 15 38 - /* doConfigure should be removed if not needed */ 39 - phaseNames = ["doUnpack" "doPatch" "doBspatch" "workaroundScons" "doScons"]; 16 + src = fetchurl { 17 + url = "mirror://savannah/glob2/${version}/${name}.tar.gz"; 18 + sha256 = "1f0l2cqp2g3llhr9jl6jj15k0wb5q8n29vqj99xy4p5hqs78jk8g"; 19 + }; 40 20 41 - patches = [./header-order.patch]; 21 + patches = [ ./header-order.patch ]; 42 22 43 - doBspatch = a.fullDepEntry '' 23 + postPatch = '' 44 24 cp campaigns/tutorial-part4.map{,.orig} 45 25 bspatch campaigns/tutorial-part4.map{.orig,} ${tutorial4patch} 46 - '' ["minInit" "doUnpack" "addInputs"]; 26 + sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" SConstruct 27 + ''; 28 + 29 + buildInputs = [ mesa SDL scons SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ]; 47 30 48 - # FIXME 49 - # I officially fail to understand what goes on, but that seems to work 50 - # too well not to use. Yes, it is ugly, I know... 51 - workaroundScons = a.fullDepEntry '' 52 - echo '#! ${a.stdenv.shell}' >> o 53 - echo 'g++ -o "$@"' >> o 54 - chmod a+x o 55 - export PATH="$PATH:$PWD" 56 - '' ["minInit"]; 31 + buildPhase = '' 32 + scons 33 + ''; 57 34 58 - sconsFlags = [ 59 - "DATADIR=$out/share/globulation2/glob2" 60 - "BINDIR=$out/bin" 61 - "INSTALLDIR=$out/share/globulation2" 62 - ]; 35 + installPhase = '' 36 + scons install \ 37 + BINDIR=$out/bin \ 38 + INSTALLDIR=$out/share/globulation2 \ 39 + DATADIR=$out/share/globulation2/glob2 40 + ''; 63 41 64 - meta = { 42 + meta = with stdenv.lib; { 65 43 description = "RTS without micromanagement"; 66 - maintainers = with a.lib.maintainers; 67 - [ 68 - raskin 69 - ]; 70 - platforms = with a.lib.platforms; 71 - linux; 72 - license = a.lib.licenses.gpl3; 44 + maintainers = with maintainers; [ raskin ]; 45 + platforms = platforms.linux; 46 + license = licenses.gpl3; 73 47 }; 74 - passthru = { 75 - updateInfo = { 76 - downloadPage = "http://globulation2.org/wiki/Download_and_Install"; 77 - }; 78 - }; 79 - }) x 48 + passthru.updateInfo.downloadPage = "http://globulation2.org/wiki/Download_and_Install"; 49 + } 80 50
+1 -1
pkgs/games/pingus/default.nix
··· 1 1 {stdenv, fetchurl, scons, SDL, SDL_image, boost, libpng, SDL_mixer, pkgconfig 2 2 , mesa}: 3 3 let 4 - buildInputs = [scons SDL SDL_image boost boost.lib libpng SDL_mixer pkgconfig mesa]; 4 + buildInputs = [scons SDL SDL_image boost libpng SDL_mixer pkgconfig mesa]; 5 5 s = # Generated upstream information 6 6 rec { 7 7 baseName="pingus";
+1 -1
pkgs/games/spring/default.nix
··· 19 19 "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON" 20 20 "-DPREFER_STATIC_LIBS:BOOL=OFF"]; 21 21 22 - buildInputs = [ cmake lzma boost boost.lib libdevil zlib p7zip openal libvorbis freetype SDL 22 + buildInputs = [ cmake lzma boost libdevil zlib p7zip openal libvorbis freetype SDL 23 23 xlibs.libX11 xlibs.libXcursor mesa glew asciidoc libxslt docbook_xsl curl makeWrapper 24 24 docbook_xsl_ns systemd ] 25 25 ++ stdenv.lib.optional withAI jdk
+1 -1
pkgs/games/spring/springlobby.nix
··· 12 12 13 13 buildInputs = [ 14 14 cmake wxGTK openal pkgconfig curl gettext libtorrentRasterbar 15 - boost boost.lib libpng libX11 libnotify gtk doxygen makeWrapper 15 + boost libpng libX11 libnotify gtk doxygen makeWrapper 16 16 ]; 17 17 18 18 prePatch = ''
+1 -1
pkgs/games/wesnoth/default.nix
··· 14 14 }; 15 15 16 16 buildInputs = [ SDL SDL_image SDL_mixer SDL_net SDL_ttf pango gettext zlib 17 - boost boost.lib fribidi cmake freetype libpng pkgconfig lua 17 + boost fribidi cmake freetype libpng pkgconfig lua 18 18 dbus fontconfig libtool ]; 19 19 20 20 cmakeFlags = [ "-DENABLE_STRICT_COMPILATION=FALSE" ]; # newer gcc problems http://gna.org/bugs/?21030
+1 -1
pkgs/servers/amqp/qpid-cpp/default.nix
··· 11 11 sha256 = "1c03yi19d5h5h78h37add9csmy0mzvvmvn7zkcalwszabdhsb5yk"; 12 12 }; 13 13 14 - buildInputs = [ cmake python boost boost.lib libuuid ruby ]; 14 + buildInputs = [ cmake python boost libuuid ruby ]; 15 15 16 16 # the subdir managementgen wants to install python stuff in ${python} and 17 17 # the installation tries to create some folders in /var
+1 -1
pkgs/servers/nosql/mongodb/default.nix
··· 13 13 # "v8" 14 14 ] ++ optionals (!stdenv.isDarwin) [ "tcmalloc" ]; 15 15 buildInputs = [ 16 - sasl boost boost.lib gperftools pcre snappy 16 + sasl boost gperftools pcre snappy 17 17 libyamlcpp sasl openssl libpcap 18 18 ]; 19 19
+1 -1
pkgs/servers/nosql/rethinkdb/default.nix
··· 15 15 16 16 configureFlags = "--lib-path ${gperftools}/lib"; 17 17 18 - buildInputs = [ protobuf boost boost.lib zlib curl ]; 18 + buildInputs = [ protobuf boost zlib curl ]; 19 19 20 20 nativeBuildInputs = [ which m4 python ]; 21 21
+10 -8
pkgs/servers/rippled/default.nix
··· 1 - { stdenv, fetchurl, scons, pkgconfig, openssl, protobuf, boost, zlib}: 1 + { stdenv, fetchFromGitHub, scons, pkgconfig, openssl, protobuf, boost, zlib}: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "rippled-${version}"; 5 - version = "0.23.0"; 5 + version = "0.26.0"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/ripple/rippled/archive/${version}.tar.gz"; 9 - sha256 = "0js734sk11jn19fyp403mk6p62azlc6s9kyhr5jfg466fiak537p"; 7 + src = fetchFromGitHub { 8 + owner = "ripple"; 9 + repo = "rippled"; 10 + rev = "0.26.2"; 11 + sha256 = "06hcc3nnzp9f6j00890f41rrn4djwlcwkzmqnw4yra74sswgji5y"; 10 12 }; 11 13 12 - patches = [ ./scons-env.patch ]; 14 + postPatch = '' 15 + sed -i -e "s@ENV = dict.*@ENV = os.environ@g" SConstruct 16 + ''; 13 17 14 18 buildInputs = [ scons pkgconfig openssl protobuf boost zlib ]; 15 19 16 - RIPPLED_BOOST_HOME = boost.out; 17 - RIPPLED_ZLIB_HOME = zlib.out; 18 20 buildPhase = "scons build/rippled"; 19 21 20 22 installPhase = ''
-46
pkgs/servers/rippled/scons-env.patch
··· 1 - diff --git a/SConstruct b/SConstruct 2 - index 8ba8bbd..95eab3b 100644 3 - --- a/SConstruct 4 - +++ b/SConstruct 5 - @@ -24,6 +24,8 @@ USING_CLANG = OSX or os.environ.get('CC', None) == 'clang' 6 - # 7 - BOOST_HOME = os.environ.get("RIPPLED_BOOST_HOME", None) 8 - 9 - +ZLIB_HOME = os.environ.get("RIPPLED_ZLIB_HOME", None) 10 - + 11 - 12 - if OSX or Ubuntu or Debian or Archlinux: 13 - CTAGS = 'ctags' 14 - @@ -36,7 +38,7 @@ else: 15 - # scons tools 16 - # 17 - 18 - -HONOR_ENVS = ['CC', 'CXX', 'PATH'] 19 - +HONOR_ENVS = ['CC', 'CXX', 'PATH', 'PKG_CONFIG_PATH'] 20 - 21 - env = Environment( 22 - tools = ['default', 'protoc'], 23 - @@ -156,8 +158,8 @@ INCLUDE_PATHS = [ 24 - 'build/proto' 25 - ] 26 - 27 - -# if BOOST_HOME: 28 - -# INCLUDE_PATHS.append(BOOST_HOME) 29 - +if BOOST_HOME: 30 - + INCLUDE_PATHS.append("%s/include" % BOOST_HOME) 31 - 32 - #------------------------------------------------------------------------------- 33 - # 34 - @@ -261,7 +263,11 @@ env.Append( 35 - # such, as installed into `/usr/lib/` 36 - if BOOST_HOME is not None: 37 - env.Prepend( 38 - - LIBPATH = ["%s/stage/lib" % BOOST_HOME]) 39 - + LIBPATH = ["%s/lib" % BOOST_HOME]) 40 - + 41 - +if ZLIB_HOME is not None: 42 - + env.Prepend( 43 - + LIBPATH = ["%s/lib" % ZLIB_HOME]) 44 - 45 - if not OSX: 46 - env.Append(LINKFLAGS = [
+7 -4
pkgs/tools/filesystems/ceph/default.nix
··· 14 14 in 15 15 stdenv.mkDerivation rec { 16 16 name="ceph-${version}"; 17 - version="0.86"; 17 + version="0.87"; 18 18 19 19 src = fetchgit { 20 20 url = "git://github.com/ceph/ceph.git"; 21 21 rev = "refs/tags/v${version}"; 22 - sha256 = "19bl96z97kvsrliwid4g6dl7s3i0nw5z9nmg964i7jdwlsl98cfj"; 22 + sha256 = "0l3ig4kr50j78snjzj4h1lbmjz508yykvchqyfdcqv02dfklc8qd"; 23 23 }; 24 24 25 - patches = [ ./0001-Makefile-env-Don-t-force-sbin.patch ]; 25 + patches = [ 26 + ./0001-Cleanup-boost-optionals.patch # Remove in >0.87 patch is applied 27 + ./0001-Makefile-env-Don-t-force-sbin.patch 28 + ]; 26 29 27 30 nativeBuildInputs = [ autoconf automake makeWrapper pkgconfig libtool which ]; 28 31 buildInputs = [ 29 - boost boost.lib btrfsProgs cryptopp curl expat fcgi fuse gperftools keyutils 32 + boost btrfsProgs cryptopp curl expat fcgi fuse gperftools keyutils 30 33 libatomic_ops leveldb libaio libedit libuuid linuxHeaders openssl python 31 34 snappy udev xfsprogs.lib xz zfs 32 35 ];
+1 -1
pkgs/tools/filesystems/grive/default.nix
··· 10 10 sha256 = "f2b978cc93a2d16262c7b78c62019b2a58044eaef4ca95feaa74dfd4dfcbfa36"; 11 11 }; 12 12 13 - buildInputs = [cmake libgcrypt json_c curl expat stdenv binutils boost boost.lib]; 13 + buildInputs = [cmake libgcrypt json_c curl expat stdenv binutils boost]; 14 14 15 15 # work around new binutils headers, see 16 16 # http://stackoverflow.com/questions/11748035/binutils-bfd-h-wants-config-h-now
-23
pkgs/tools/filesystems/jfsrec/default.nix
··· 1 - { stdenv, fetchurl, boost }: 2 - 3 - stdenv.mkDerivation { 4 - name = "jfsrec-0-pre-svn-7"; 5 - 6 - src = fetchurl { 7 - url = mirror://sourceforge/jfsrec/jfsrec-svn-7.tar.gz; 8 - sha256 = "163z6ljr05vw2k5mj4fim2nlg4khjyibrii95370pvn474mg28vg"; 9 - }; 10 - 11 - patches = [ ./jfsrec-gcc-4.3.patch ]; 12 - buildInputs = [ boost ]; 13 - 14 - preConfigure = 15 - '' 16 - sed -e '/[#]include [<]config.h[>]/a\#include <string.h>' -i src/unicode_to_utf8.cpp 17 - ''; 18 - 19 - meta = { 20 - description = "JFS recovery tool"; 21 - homepage = http://jfsrec.sourceforge.net/; 22 - }; 23 - }
-24
pkgs/tools/filesystems/jfsrec/jfsrec-gcc-4.3.patch
··· 1 - Taken from Archlinux, although this solves the build in gcc 4.4, not 4.3. 2 - http://aur.archlinux.org/packages/jfsrec-svn/jfsrec-svn/jfsrec-gcc-4.3.patch 3 - diff -uBdr jfsrec/src/device.cpp jfsrec-build/src/device.cpp 4 - --- jfsrec/src/device.cpp 2009-12-01 18:34:03.860437077 +0100 5 - +++ jfsrec-build/src/device.cpp 2009-12-01 18:39:48.297067088 +0100 6 - @@ -20,6 +20,7 @@ 7 - //Parts of the code in this file was originally taken from JFS's xpeek (debugfs_jfs) 8 - 9 - #include "device.h" 10 - +#include <stdio.h> 11 - #ifdef __linux__ 12 - #include <linux/fs.h> 13 - #include <sys/ioctl.h> 14 - diff -uBdr jfsrec/src/unicode_to_utf8.cpp jfsrec-build/src/unicode_to_utf8.cpp 15 - --- jfsrec/src/unicode_to_utf8.cpp 2009-12-01 18:34:03.860437077 +0100 16 - +++ jfsrec-build/src/unicode_to_utf8.cpp 2009-12-01 18:39:43.501626737 +0100 17 - @@ -8,6 +8,7 @@ 18 - */ 19 - #include <config.h> 20 - #include "unicode_to_utf8.h" 21 - +#include <string.h> 22 - #define JFS_PATH_MAX 4096 23 - 24 - /*
+1 -1
pkgs/tools/graphics/enblend-enfuse/default.nix
··· 10 10 sha256 = "1b7r1nnwaind0344ckwggy0ghl0ipbk9jzylsxcjfl05rnasw00w"; 11 11 }; 12 12 13 - buildInputs = [ boost boost.lib freeglut glew gsl lcms2 libpng libtiff libxmi mesa vigra ]; 13 + buildInputs = [ boost freeglut glew gsl lcms2 libpng libtiff libxmi mesa vigra ]; 14 14 15 15 nativeBuildInputs = [ perl pkgconfig ]; 16 16
+2 -3
pkgs/tools/graphics/povray/default.nix
··· 1 - {stdenv, fetchgit, autoconf, automake, boost149, zlib, libpng, libjpeg, libtiff}: 1 + {stdenv, fetchgit, autoconf, automake, boost, zlib, libpng, libjpeg, libtiff}: 2 2 3 - let boost = boost149; in 4 3 stdenv.mkDerivation { 5 4 name = "povray-3.7"; 6 5 ··· 24 23 sed -i -e 's/^povgroup.*/povgroup=nogroup/' Makefile.{am,in} 25 24 ''; 26 25 27 - configureFlags = "COMPILED_BY='nix' --with-boost-libdir=${boost}/lib --with-boost-includedir=${boost}/include"; 26 + configureFlags = [ "COMPILED_BY='nix'" ]; 28 27 29 28 preInstall = '' 30 29 mkdir "$TMP/bin"
+1 -1
pkgs/tools/security/meo/default.nix
··· 11 11 12 12 buildFlags = "QMAKE=qmake"; 13 13 14 - buildInputs = [ openssl pcre qt4 boost boost.lib pkcs11helper ]; 14 + buildInputs = [ openssl pcre qt4 boost pkcs11helper ]; 15 15 16 16 preConfigure = '' 17 17 sed -i s,-mt$,, meo-gui/meo-gui.pro
+9 -9
pkgs/tools/system/syslog-ng-incubator/default.nix
··· 1 - { stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, glib, syslogng 2 - , eventlog, perl, python, yacc, riemann_c_client, libivykis, protobufc }: 1 + { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib, syslogng 2 + , eventlog, perl, python, yacc, riemann_c_client, libivykis, protobufc 3 + }: 3 4 4 5 stdenv.mkDerivation rec { 5 6 name = "syslog-ng-incubator-${version}"; 6 - 7 7 version = "0.3.3"; 8 8 9 - src = fetchurl { 10 - url = "https://github.com/balabit/syslog-ng-incubator/archive/${name}.tar.gz"; 11 - sha256 = "1yx2gdq1vhrcp113hxgl66z5df4ya9nznvq00nvy4v9yn8wf9fb8"; 9 + src = fetchFromGitHub { 10 + owner = "balabit"; 11 + repo = "syslog-ng-incubator"; 12 + rev = name; 13 + sha256 = "0pswajcw9f651c1jmprbf1mlr6qadiaplyygz5j16vj0d23x4mal"; 12 14 }; 13 15 14 16 buildInputs = [ 15 - autoconf automake libtool pkgconfig glib syslogng eventlog perl python 17 + autoreconfHook pkgconfig glib syslogng eventlog perl python 16 18 yacc riemann_c_client libivykis protobufc 17 19 ]; 18 - 19 - preConfigure = "autoreconf -i"; 20 20 21 21 configureFlags = [ 22 22 "--without-ivykis"
+4 -5
pkgs/tools/system/syslog-ng/default.nix
··· 1 - { stdenv, fetchurl, eventlog, pkgconfig, glib, python, systemd, perl 2 - , riemann_c_client, protobufc, yacc }: 1 + { stdenv, fetchurl, eventlog, pkgconfig, glib, python, systemd, perl }: 3 2 4 3 stdenv.mkDerivation rec { 5 4 name = "syslog-ng-${version}"; 6 5 7 - version = "3.6.1"; 6 + version = "3.5.6"; 8 7 9 8 src = fetchurl { 10 9 url = "http://www.balabit.com/downloads/files?path=/syslog-ng/sources/${version}/source/syslog-ng_${version}.tar.gz"; 11 - sha256 = "1s3lsxk2pky3jkfamkw5ivpxq2kazikcvdgpmxiyn5w10dwkd0m7"; 10 + sha256 = "19i1idklpgn6mz0mg7194by5fjgvvh5n4v2a0rr1z0778l2038kc"; 12 11 }; 13 12 14 - buildInputs = [ eventlog pkgconfig glib python systemd perl riemann_c_client protobufc yacc ]; 13 + buildInputs = [ eventlog pkgconfig glib python systemd perl ]; 15 14 16 15 configureFlags = [ 17 16 "--enable-dynamic-linking"
+2 -4
pkgs/tools/text/source-highlight/default.nix
··· 12 12 sha256 = "1s49ld8cnpzhhwq0r7s0sfm3cg3nhhm0wla27lwraifrrl3y1cp1"; 13 13 }; 14 14 15 - configureFlags = [ "--with-boost=${boost}" ]; 16 - 17 15 buildInputs = [ boost ]; 18 16 19 - enableParallelBuilding = false; 17 + configureFlags = [ "--with-boost=${boost.lib}" ]; 20 18 21 - doCheck = true; 19 + enableParallelBuilding = false; 22 20 23 21 meta = { 24 22 description = "Source code renderer with syntax highlighting";
+38 -27
pkgs/top-level/all-packages.nix
··· 1081 1081 1082 1082 evtest = callPackage ../applications/misc/evtest { }; 1083 1083 1084 - exempi = callPackage ../development/libraries/exempi { }; 1084 + exempi = callPackage ../development/libraries/exempi { boost = boost155; }; 1085 1085 1086 1086 execline = callPackage ../tools/misc/execline { }; 1087 1087 ··· 1280 1280 1281 1281 googleAuthenticator = callPackage ../os-specific/linux/google-authenticator { }; 1282 1282 1283 - gource = callPackage ../applications/version-management/gource {}; 1283 + gource = callPackage ../applications/version-management/gource { }; 1284 1284 1285 1285 gparted = callPackage ../tools/misc/gparted { }; 1286 1286 ··· 1479 1479 1480 1480 jdiskreport = callPackage ../tools/misc/jdiskreport { }; 1481 1481 1482 - jfsrec = callPackage ../tools/filesystems/jfsrec { 1483 - boost = boost144; 1484 - }; 1485 - 1486 1482 jfsutils = callPackage ../tools/filesystems/jfsutils { }; 1487 1483 1488 1484 jhead = callPackage ../tools/graphics/jhead { }; ··· 1643 1639 1644 1640 memtest86plus = callPackage ../tools/misc/memtest86+ { }; 1645 1641 1646 - meo = callPackage ../tools/security/meo { }; 1642 + meo = callPackage ../tools/security/meo { 1643 + boost = boost155; 1644 + }; 1647 1645 1648 1646 mc = callPackage ../tools/misc/mc { }; 1649 1647 ··· 2342 2340 2343 2341 socat2pre = lowPrio (callPackage ../tools/networking/socat/2.x.nix { }); 2344 2342 2345 - sourceHighlight = callPackage ../tools/text/source-highlight { 2346 - # Boost 1.54 causes the "test_regexranges" test to fail 2347 - boost = boost149; 2348 - }; 2343 + sourceHighlight = callPackage ../tools/text/source-highlight { }; 2349 2344 2350 2345 spaceFM = callPackage ../applications/misc/spacefm { }; 2351 2346 ··· 4830 4825 4831 4826 boolstuff = callPackage ../development/libraries/boolstuff { }; 4832 4827 4833 - boost144 = callPackage ../development/libraries/boost/1.44.nix { }; 4834 - boost149 = callPackage ../development/libraries/boost/1.49.nix { }; 4835 4828 boost155 = callPackage ../development/libraries/boost/1.55.nix { }; 4836 4829 boost156 = callPackage ../development/libraries/boost/1.56.nix { }; 4837 - boost = boost155; 4830 + boost = boost156; 4838 4831 4839 4832 botan = callPackage ../development/libraries/botan { }; 4840 4833 botanUnstable = callPackage ../development/libraries/botan/unstable.nix { }; ··· 6066 6059 else stdenv; 6067 6060 }; 6068 6061 6062 + libtorrentRasterbar_0_16 = callPackage ../development/libraries/libtorrent-rasterbar/0.16.nix { 6063 + # fix "unrecognized option -arch" error 6064 + stdenv = if stdenv.isDarwin 6065 + then clangStdenv 6066 + else stdenv; 6067 + }; 6068 + 6069 6069 libtoxcore = callPackage ../development/libraries/libtoxcore { }; 6070 6070 6071 6071 libtsm = callPackage ../development/libraries/libtsm { }; ··· 7413 7413 7414 7414 freeswitch = callPackage ../servers/sip/freeswitch { }; 7415 7415 7416 - ghostOne = callPackage ../servers/games/ghost-one { 7417 - boost = boost144.override { taggedLayout = true; }; 7418 - }; 7416 + ghostOne = callPackage ../servers/games/ghost-one { }; 7419 7417 7420 7418 ircdHybrid = callPackage ../servers/irc/ircd-hybrid { }; 7421 7419 ··· 7602 7600 7603 7601 restund = callPackage ../servers/restund {}; 7604 7602 7605 - rethinkdb = callPackage ../servers/nosql/rethinkdb { }; 7603 + rethinkdb = callPackage ../servers/nosql/rethinkdb { 7604 + boost = boost155; 7605 + }; 7606 7606 7607 - rippled = callPackage ../servers/rippled { }; 7607 + rippled = callPackage ../servers/rippled { 7608 + boost = boost155; 7609 + }; 7608 7610 7609 7611 s6 = callPackage ../servers/s6 { }; 7610 7612 ··· 9010 9012 9011 9013 compiz = callPackage ../applications/window-managers/compiz { 9012 9014 inherit (gnome) GConf ORBit2 metacity; 9013 - boost = boost149; # https://bugs.launchpad.net/compiz/+bug/1131864 9014 9015 }; 9015 9016 9016 9017 coriander = callPackage ../applications/video/coriander { ··· 9688 9689 fltk = fltk13; 9689 9690 }; 9690 9691 9691 - hugin = callPackage ../applications/graphics/hugin { }; 9692 + hugin = callPackage ../applications/graphics/hugin { 9693 + boost = boost155; 9694 + }; 9692 9695 9693 9696 hydrogen = callPackage ../applications/audio/hydrogen { }; 9694 9697 ··· 9789 9792 9790 9793 k3d = callPackage ../applications/graphics/k3d { 9791 9794 inherit (pkgs.gnome2) gtkglext; 9792 - boost = boost149; 9795 + boost = boost155; 9793 9796 }; 9794 9797 9795 9798 keepnote = callPackage ../applications/office/keepnote { ··· 9849 9852 inherit (gnome) GConf ORBit2 gnome_vfs; 9850 9853 zip = zip.override { enableNLS = false; }; 9851 9854 jdk = openjdk; 9855 + boost = boost155; 9852 9856 fontsConf = makeFontsConf { 9853 9857 fontDirectories = [ 9854 9858 freefont_ttf xorg.fontmiscmisc xorg.fontbhttf ··· 9978 9982 9979 9983 monotone = callPackage ../applications/version-management/monotone { 9980 9984 lua = lua5; 9981 - boost = boost149; 9982 9985 }; 9983 9986 9984 9987 monotoneViz = builderDefsPackage (import ../applications/version-management/monotone-viz/mtn-head.nix) { ··· 10303 10306 10304 10307 pythonmagick = callPackage ../applications/graphics/PythonMagick { }; 10305 10308 10306 - qbittorrent = callPackage ../applications/networking/p2p/qbittorrent { }; 10309 + qbittorrent = callPackage ../applications/networking/p2p/qbittorrent { 10310 + libtorrentRasterbar = libtorrentRasterbar_0_16; 10311 + }; 10307 10312 10308 10313 eiskaltdcpp = callPackage ../applications/networking/p2p/eiskaltdcpp { lua5 = lua5_1; }; 10309 10314 ··· 11239 11244 11240 11245 glestae = callPackage ../games/glestae {}; 11241 11246 11242 - globulation2 = callPackage ../games/globulation {}; 11247 + globulation2 = callPackage ../games/globulation { 11248 + boost = boost155; 11249 + }; 11243 11250 11244 11251 gltron = callPackage ../games/gltron { }; 11245 11252 ··· 11259 11266 11260 11267 icbm3d = callPackage ../games/icbm3d { }; 11261 11268 11262 - ingen = callPackage ../applications/audio/ingen { }; 11269 + ingen = callPackage ../applications/audio/ingen { 11270 + boost = boost155; 11271 + }; 11263 11272 11264 11273 instead = callPackage ../games/instead { 11265 11274 lua = lua5; ··· 11364 11373 # You still can override by passing more arguments. 11365 11374 spaceOrbit = callPackage ../games/orbit { }; 11366 11375 11367 - spring = callPackage ../games/spring { }; 11376 + spring = callPackage ../games/spring { 11377 + boost = boost155; 11378 + }; 11368 11379 11369 11380 springLobby = callPackage ../games/spring/springlobby.nix { }; 11370 11381
-1
pkgs/top-level/release.nix
··· 129 129 inkscape = linux; 130 130 irssi = linux; 131 131 jfsutils = linux; 132 - jfsrec = linux; 133 132 jnettop = linux; 134 133 jwhois = linux; 135 134 kbd = linux;