···585585586586 # Some programs need SUID wrappers, can be configured further or are
587587 # started in user sessions.
588588- # programs.bash.enableCompletion = true;
589588 # programs.mtr.enable = true;
590589 # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
591590
···11---- testssl/testssl.sh 2017-09-24 16:53:29.395263437 +0200
22-+++ testssl-new/testssl.sh 2017-09-24 16:53:41.221154492 +0200
33-@@ -165,6 +165,7 @@
44- # following variables make use of $ENV, e.g. OPENSSL=<myprivate_path_to_openssl> ./testssl.sh <host>
55- # 0 means (normally) true here. Some of the variables are also accessible with a command line switch, see --help
66- declare -x OPENSSL OPENSSL_TIMEOUT
77-+OPENSSL=${OPENSSL:-"@@openssl-path@@"}
88- FAST_SOCKET=${FAST_SOCKET:-false} # EXPERIMENTAL feature to accelerate sockets -- DO NOT USE it for production
99- COLOR=${COLOR:-2} # 2: Full color, 1: b/w+positioning, 0: no ESC at all
1010- COLORBLIND=${COLORBLIND:-false} # if true, swap blue and green in the output
+6-1
pkgs/applications/office/libreoffice/still.nix
···22, CompressZlib, zlib, libjpeg, expat, pkgconfigUpstream, freetype, libwpd
33, libxml2, db, sablotron, curl, fontconfig, libsndfile, neon
44, bison, flex, zip, unzip, gtk3, gtk2, libmspack, getopt, file, cairo, which
55-, icu, boost, jdk, ant, cups, xorg, libcmis
55+, icu, boost, jdk, ant, cups, xorg, libcmis, carlito
66, openssl, gperf, cppunit, GConf, ORBit2, poppler
77, librsvg, gnome_vfs, libGLU_combined, bsh, CoinMP, libwps, libabw
88, autoconf, automake, openldap, bash, hunspell, librdf_redland, nss, nspr
···106106107107 # BLFS patch for Glibc 2.23 renaming isnan
108108 sed -ire "s@isnan@std::&@g" xmloff/source/draw/ximp3dscene.cxx
109109+110110+ # This is required as some cppunittests require fontconfig configured
111111+ cp "${fontsConf}" fonts.conf
112112+ sed -e '/include/i<include>${carlito}/etc/fonts/conf.d</include>' -i fonts.conf
113113+ export FONTCONFIG_FILE="$PWD/fonts.conf"
109114 '';
110115111116 # fetch_Download_item tries to interpret the name as a variable name
+3-12
pkgs/applications/office/libreoffice/wrapper.sh
···33export SAL_USE_VCLPLUGIN="${SAL_USE_VCLPLUGIN:-gen}"
4455if uname | grep Linux > /dev/null &&
66- ! ( test -n "$DBUS_SESSION_BUS_ADDRESS" &&
77- test -n "$DBUS_SYSTEM_BUS_ADDRESS" ); then
66+ ! ( test -n "$DBUS_SESSION_BUS_ADDRESS" ); then
87 dbus_tmp_dir="/run/user/$(id -u)/libreoffice-dbus"
98 mkdir "$dbus_tmp_dir"
109 dbus_socket_dir="$(mktemp -d -p "$dbus_tmp_dir")"
1111- cat "@dbus@/share/dbus-1/system.conf" |
1212- grep -v '[<]user[>]messagebus' > "$dbus_socket_dir/system.conf"
1313- if test -z "$DBUS_SESSION_BUS_ADDRESS"; then
1414- "@dbus@"/bin/dbus-daemon --nopidfile --nofork --config-file "@dbus@"/share/dbus-1/session.conf --address "unix:path=$dbus_socket_dir/session" >&2 &
1515- export DBUS_SESSION_BUS_ADDRESS="unix:path=$dbus_socket_dir/session"
1616- fi
1717- if test -z "$DBUS_SYSTEM_BUS_ADDRESS"; then
1818- "@dbus@"/bin/dbus-daemon --nopidfile --nofork --config-file "$dbus_socket_dir/system.conf" --address "unix:path=$dbus_socket_dir/system" >&2 &
1919- export DBUS_SYSTEM_BUS_ADDRESS="unix:path=$dbus_socket_dir/system"
2020- fi
1010+ "@dbus@"/bin/dbus-daemon --nopidfile --nofork --config-file "@dbus@"/share/dbus-1/session.conf --address "unix:path=$dbus_socket_dir/session" >&2 &
1111+ export DBUS_SESSION_BUS_ADDRESS="unix:path=$dbus_socket_dir/session"
2112fi
22132314"@libreoffice@/bin/$(basename "$0")" "$@"
···2233set -eu -o pipefail
4455+# For cmd | while read; do ...; done
66+shopt -s lastpipe
77+58path_backup="$PATH"
69if [ -n "@coreutils_bin@" ]; then
710 PATH="@coreutils_bin@/bin"
811fi
9121010-declare -r recurThreshold=300
1313+declare -ri recurThreshold=200
1414+declare -i overflowCount=0
1515+1616+declare -ar origArgs=("$@")
1717+1818+# Throw away what we won't need
1919+declare -a parentArgs=()
11201212-declare overflowCount=0
1313-for ((n=0; n < $#; ++n)); do
1414- case "${!n}" in
1515- -l*) let overflowCount+=1 ;;
1616- -reexport-l*) let overflowCount+=1 ;;
1717- *) ;;
2121+while (( $# )); do
2222+ case "$1" in
2323+ -l)
2424+ echo "cctools LD does not support '-l foo'" >&2
2525+ exit 1
2626+ ;;
2727+ -lazy_library | -reexport_library | -upward_library | -weak_library)
2828+ overflowCount+=1
2929+ shift 2
3030+ ;;
3131+ -l* | *.so.* | *.dylib | -lazy-l* | -reexport-l* | -upward-l* | -weak-l*)
3232+ overflowCount+=1
3333+ shift 1
3434+ ;;
3535+ *.a | *.o)
3636+ shift 1
3737+ ;;
3838+ -L | -F)
3939+ # Evidentally ld doesn't like using the child's RPATH, so it still
4040+ # needs these.
4141+ parentArgs+=("$1" "$2")
4242+ shift 2
4343+ ;;
4444+ -L?* | -F?*)
4545+ parentArgs+=("$1")
4646+ shift 1
4747+ ;;
4848+ -o)
4949+ outputName="$2"
5050+ parentArgs+=("$1" "$2")
5151+ shift 2
5252+ ;;
5353+ -install_name | -dylib_install_name | -dynamic-linker | -plugin)
5454+ parentArgs+=("$1" "$2")
5555+ shift 2
5656+ ;;
5757+ -rpath)
5858+ # Only an rpath to the child is needed, which we will add
5959+ shift 2
6060+ ;;
6161+ *)
6262+ if [[ -f "$1" ]]; then
6363+ # Propabably a non-standard object file like Haskell's
6464+ # `.dyn_o`. Skip it like other inputs
6565+ :
6666+ else
6767+ parentArgs+=("$1")
6868+ fi
6969+ shift 1
7070+ ;;
1871 esac
1972done
20732121-declare -a allArgs=()
7474+22752376if (( "$overflowCount" <= "$recurThreshold" )); then
2424- allArgs=("$@")
2525-else
2626- declare -a childrenLookup=() childrenLink=()
7777+ if [ -n "${NIX_DEBUG:-}" ]; then
7878+ echo "ld-wrapper: Only ${overflowCount} inputs counted while ${recurThreshold} is the ceiling, linking normally. " >&2
7979+ fi
8080+ PATH="$path_backup"
8181+ exec @prog@ "${origArgs[@]}"
8282+fi
27832828- while (( $# )); do
2929- case "$1" in
3030- -L/*)
3131- childrenLookup+=("$1")
3232- allArgs+=("$1")
3333- ;;
3434- -L)
3535- echo "cctools LD does not support '-L foo' or '-l foo'" >&2
3636- exit 1
3737- ;;
3838- -l)
3939- echo "cctools LD does not support '-L foo' or '-l foo'" >&2
4040- exit 1
4141- ;;
4242- -lazy_library | -lazy_framework | -lto_library)
4343- # We aren't linking any "azy_library", "to_library", etc.
4444- allArgs+=("$1")
4545- ;;
4646- -lazy-l | -weak-l) allArgs+=("$1") ;;
4747- # We can't so easily prevent header issues from these.
4848- -lSystem) allArgs+=("$1") ;;
4949- # Special case as indirection seems like a bad idea for something
5050- # so fundamental. Can be removed for simplicity.
5151- -l?* | -reexport-l?*) childrenLink+=("$1") ;;
5252- *) allArgs+=("$1") ;;
5353- esac
8484+8585+8686+if [ -n "${NIX_DEBUG:-}" ]; then
8787+ echo "ld-wrapper: ${overflowCount} inputs counted when ${recurThreshold} is the ceiling, inspecting further. " >&2
8888+fi
54895555- shift
5656- done
9090+# Collect the normalized linker input
9191+declare -a norm=()
57925858- declare n=0
5959- while (( $n < "${#childrenLink[@]}" )); do
6060- if [[ "${childrenLink[n]}" = -l* ]]; then
6161- childrenLink[n]="-reexport${childrenLink[n]}"
6262- fi
6363- let ++n
9393+# Arguments are null-separated
9494+@prog@ --dump-normalized-lib-args "${origArgs[@]}" |
9595+ while IFS= read -r -d '' input; do
9696+ norm+=("$input")
6497 done
6565- unset n
66986767- declare -r outputNameLibless=$(basename $( \
6868- if [[ -z "${outputName:+isUndefined}" ]]; then
6969- echo unnamed
7070- elif [[ "${outputName:0:3}" = lib ]]; then
7171- echo "${outputName:3}"
7272- else
7373- echo "${outputName}"
7474- fi))
7575- declare -ra children=("$outputNameLibless-reexport-delegate-0" \
7676- "$outputNameLibless-reexport-delegate-1")
9999+declare -i leafCount=0
100100+declare lastLeaf=''
101101+declare -a childrenInputs=() trailingInputs=()
102102+while (( "${#norm[@]}" )); do
103103+ case "${norm[0]}" in
104104+ -lazy_library | -upward_library)
105105+ # TODO(@Ericson2314): Don't do that, but intersperse children
106106+ # between such args.
107107+ echo "ld-wrapper: Warning: Potentially changing link order" >&2
108108+ trailingInputs+=("${norm[0]}" "${norm[1]}")
109109+ norm=("${norm[@]:2}")
110110+ ;;
111111+ -reexport_library | -weak_library)
112112+ childrenInputs+=("${norm[0]}" "${norm[1]}")
113113+ if [[ "${norm[1]}" != "$lastLeaf" ]]; then
114114+ leafCount+=1
115115+ lastLeaf="${norm[1]}"
116116+ fi
117117+ norm=("${norm[@]:2}")
118118+ ;;
119119+ *.so | *.dylib)
120120+ childrenInputs+=(-reexport_library "${norm[0]}")
121121+ if [[ "${norm[0]}" != "$lastLeaf" ]]; then
122122+ leafCount+=1
123123+ lastLeaf="${norm[0]}"
124124+ fi
125125+ norm=("${norm[@]:1}")
126126+ ;;
127127+ *.o | *.a)
128128+ # Don't delegate object files or static libs
129129+ parentArgs+=("${norm[0]}")
130130+ norm=("${norm[@]:1}")
131131+ ;;
132132+ *)
133133+ if [[ -f "${norm[0]}" ]]; then
134134+ # Propabably a non-standard object file. We'll let it by.
135135+ parentArgs+=("${norm[0]}")
136136+ norm=("${norm[@]:1}")
137137+ else
138138+ echo "ld-wrapper: Internal Error: Invalid normalized argument" >&2
139139+ exit -1
140140+ fi
141141+ ;;
142142+ esac
143143+done
771447878- mkdir -p "$out/lib"
791458080- PATH="$PATH:@out@/bin"
811468282- symbolBloatObject=$outputNameLibless-symbol-hack.o
8383- if [[ ! -e $symbolBloatObject ]]; then
8484- # `-Q` means use GNU Assembler rather than Clang, avoiding an awkward
8585- # dependency cycle.
8686- printf '.private_extern _______child_hack_foo\nchild_hack_foo:\n' \
8787- | @targetPrefix@as -Q -- -o $symbolBloatObject
147147+if (( "$leafCount" <= "$recurThreshold" )); then
148148+ if [ -n "${NIX_DEBUG:-}" ]; then
149149+ echo "ld-wrapper: Only ${leafCount} *dynamic* inputs counted while ${recurThreshold} is the ceiling, linking normally. " >&2
150150+ fi
151151+ PATH="$path_backup"
152152+ exec @prog@ "${origArgs[@]}"
153153+fi
154154+155155+156156+157157+if [ -n "${NIX_DEBUG:-}" ]; then
158158+ echo "ld-wrapper: ${leafCount} *dynamic* inputs counted when ${recurThreshold} is the ceiling, delegating to children. " >&2
159159+fi
160160+161161+declare -r outputNameLibless=$( \
162162+ if [[ -z "${outputName:+isUndefined}" ]]; then
163163+ echo unnamed
164164+ return 0;
165165+ fi
166166+ baseName=$(basename ${outputName})
167167+ if [[ "$baseName" = lib* ]]; then
168168+ baseName="${baseName:3}"
88169 fi
170170+ echo "$baseName")
891719090- # first half of libs
9191- @targetPrefix@ld -macosx_version_min $MACOSX_DEPLOYMENT_TARGET -arch x86_64 -dylib \
9292- -o "$out/lib/lib${children[0]}.dylib" \
9393- -install_name "$out/lib/lib${children[0]}.dylib" \
9494- "${childrenLookup[@]}" "$symbolBloatObject" \
9595- "${childrenLink[@]:0:$((${#childrenLink[@]} / 2 ))}"
172172+declare -ra children=(
173173+ "$outputNameLibless-reexport-delegate-0"
174174+ "$outputNameLibless-reexport-delegate-1"
175175+)
176176+177177+mkdir -p "$out/lib"
178178+179179+symbolBloatObject=$outputNameLibless-symbol-hack.o
180180+if [[ ! -f $symbolBloatObject ]]; then
181181+ # `-Q` means use GNU Assembler rather than Clang, avoiding an awkward
182182+ # dependency cycle.
183183+ printf '.private_extern _______child_hack_foo\nchild_hack_foo:\n' |
184184+ PATH="$PATH:@out@/bin" @targetPrefix@as -Q -- -o $symbolBloatObject
185185+fi
186186+187187+# Split inputs between children
188188+declare -a child0Inputs=() child1Inputs=("${childrenInputs[@]}")
189189+let "countFirstChild = $leafCount / 2" || true
190190+lastLeaf=''
191191+while (( "$countFirstChild" )); do
192192+ case "${child1Inputs[0]}" in
193193+ -reexport_library | -weak_library)
194194+ child0Inputs+=("${child1Inputs[0]}" "${child1Inputs[1]}")
195195+ if [[ "${child1Inputs[1]}" != "$lastLeaf" ]]; then
196196+ let countFirstChild-=1 || true
197197+ lastLeaf="${child1Inputs[1]}"
198198+ fi
199199+ child1Inputs=("${child1Inputs[@]:2}")
200200+ ;;
201201+ *.so | *.dylib)
202202+ child0Inputs+=(-reexport_library "${child1Inputs[0]}")
203203+ if [[ "${child1Inputs[0]}" != "$lastLeaf" ]]; then
204204+ let countFirstChild-=1 || true
205205+ lastLeaf="${child1Inputs[1]}"
206206+ fi
207207+ child1Inputs=("${child1Inputs[@]:2}")
208208+ ;;
209209+ *)
210210+ echo "ld-wrapper: Internal Error: Invalid delegated input" >&2
211211+ exit -1
212212+ ;;
213213+ esac
214214+done
215215+216216+217217+# First half of libs
218218+@out@/bin/@targetPrefix@ld \
219219+ -macosx_version_min $MACOSX_DEPLOYMENT_TARGET -arch x86_64 -dylib \
220220+ -o "$out/lib/lib${children[0]}.dylib" \
221221+ -install_name "$out/lib/lib${children[0]}.dylib" \
222222+ "$symbolBloatObject" "${child0Inputs[@]}" "${trailingInputs[@]}"
962239797- # second half of libs
9898- @targetPrefix@ld -macosx_version_min $MACOSX_DEPLOYMENT_TARGET -arch x86_64 -dylib \
9999- -o "$out/lib/lib${children[1]}.dylib" \
100100- -install_name "$out/lib/lib${children[1]}.dylib" \
101101- "${childrenLookup[@]}" "$symbolBloatObject" \
102102- "${childrenLink[@]:$((${#childrenLink[@]} / 2 ))}"
224224+# Second half of libs
225225+@out@/bin/@targetPrefix@ld \
226226+ -macosx_version_min $MACOSX_DEPLOYMENT_TARGET -arch x86_64 -dylib \
227227+ -o "$out/lib/lib${children[1]}.dylib" \
228228+ -install_name "$out/lib/lib${children[1]}.dylib" \
229229+ "$symbolBloatObject" "${child1Inputs[@]}" "${trailingInputs[@]}"
103230104104- allArgs+=("-L$out/lib" "-l${children[0]}" "-l${children[1]}")
231231+parentArgs+=("-L$out/lib" -rpath "$out/lib")
232232+if [[ $outputName != *reexport-delegate* ]]; then
233233+ parentArgs+=("-l${children[0]}" "-l${children[1]}")
234234+else
235235+ parentArgs+=("-reexport-l${children[0]}" "-reexport-l${children[1]}")
236236+fi
237237+238238+parentArgs+=("${trailingInputs[@]}")
239239+240240+if [ -n "${NIX_DEBUG:-}" ]; then
241241+ echo "flags using delegated children to @prog@:" >&2
242242+ printf " %q\n" "${parentArgs[@]}" >&2
105243fi
106244107245PATH="$path_backup"
108108-exec @prog@ "${allArgs[@]}"
246246+exec @prog@ "${parentArgs[@]}"
+5-3
pkgs/build-support/build-setupcfg/default.nix
···55# * meta: Standard nixpkgs metadata.
66# * application: Whether this package is a python library or an
77# application which happens to be written in python.
88-pythonPackages: { src, info, meta ? {}, application ? false }: let
88+# * doCheck: Whether to run the test suites.
99+pythonPackages:
1010+{ src, info, meta ? {}, application ? false, doCheck ? true }: let
911 build = if application
1012 then pythonPackages.buildPythonApplication
1113 else pythonPackages.buildPythonPackage;
1214in build {
1315 inherit (info) pname version;
14161515- inherit src meta;
1717+ inherit src meta doCheck;
16181719 nativeBuildInputs = map (p: pythonPackages.${p}) (
1820 (info.setup_requires or []) ++
1919- (info.tests_require or []));
2121+ (if doCheck then (info.tests_require or []) else []));
20222123 propagatedBuildInputs = map (p: pythonPackages.${p})
2224 (info.install_requires or []);
+14
pkgs/build-support/kernel/modules-closure.sh
···11source $stdenv/setup
2233+# When no modules are built, the $out/lib/modules directory will not
44+# exist. Because the rest of the script assumes it does exist, we
55+# handle this special case first.
66+if ! test -d "$kernel/lib/modules"; then
77+ if test -z "$rootModules" || test -n "$allowMissing"; then
88+ mkdir -p "$out"
99+ exit 0
1010+ else
1111+ echo "Required modules: $rootModules"
1212+ echo "Can not derive a closure of kernel modules because no modules were provided."
1313+ exit 1
1414+ fi
1515+fi
1616+317version=$(cd $kernel/lib/modules && ls -d *)
418519echo "kernel version is $version"
···11-Description: Get rid of recursive deprecated warnings.
22- As is, gcc gives warnings when a function with the
33- deprecated attribute calls another function with
44- the deprecated attribute.
55- See http://stackoverflow.com/questions/13459602/how-can-i-get-rid-of-deprecated-warnings-in-deprecated-functions-in-gcc
66-77-Author: James Kuszmaul <jbkuszmaul@wpi.edu>
88-99---
1010-1111---- gcc-armel-4.9.1.orig/gcc/tree.c
1212-+++ gcc-armel-4.9.1/gcc/tree.c
1313-@@ -12063,6 +12063,9 @@ warn_deprecated_use (tree node, tree attr)
1414- if (node == 0 || !warn_deprecated_decl)
1515- return;
1616-1717-+ if (current_function_decl && TREE_DEPRECATED(current_function_decl))
1818-+ return;
1919-+
2020- if (!attr)
2121- {
2222- if (DECL_P (node))
···11+{ stdenv
22+, fetchFromGitHub
33+, autoreconfHook
44+}:
55+66+stdenv.mkDerivation rec {
77+ version = "1.21";
88+ name = "cliquer-${version}";
99+1010+ # autotoolized version of the original cliquer
1111+ src = fetchFromGitHub {
1212+ owner = "dimpase";
1313+ repo = "autocliquer";
1414+ rev = "v${version}";
1515+ sha256 = "180i4qj1a25qfp75ig2d3144xfpb1dgcgpha0iqqghd7di4awg7z";
1616+ };
1717+1818+ doCheck = true;
1919+2020+ buildInputs = [
2121+ autoreconfHook
2222+ ];
2323+2424+ meta = with stdenv.lib; {
2525+ homepage = https://users.aalto.fi/~pat/cliquer.html;
2626+ downloadPage = src.meta.homepage; # autocliquer
2727+ description = "Routines for clique searching";
2828+ longDescription = ''
2929+ Cliquer is a set of C routines for finding cliques in an arbitrary weighted graph.
3030+ It uses an exact branch-and-bound algorithm developed by Patric Östergård.
3131+ It is designed with the aim of being efficient while still being flexible and
3232+ easy to use.
3333+ '';
3434+ license = licenses.gpl2Plus;
3535+ maintainers = with maintainers; [ timokau ];
3636+ platforms = platforms.linux;
3737+ };
3838+}
···33with stdenv.lib;
4455let
66- version = "4.15.16";
66+ version = "4.15.17";
77 revision = "a";
88- sha256 = "0jxf01gf5rh6kwxcsv6mwlhq3wva2ps0ayrx40zwrdhkqy03w79x";
88+ sha256 = "0rm5dlfj3ryz879p04px1y3hvlfgh3ryk13ihldnl2j1dzl2046i";
991010 # modVersion needs to be x.y.z, will automatically add .0 if needed
1111 modVersion = concatStrings (intersperse "." (take 3 (splitString "." "${version}.0")));
+11
pkgs/os-specific/linux/kernel/patches.nix
···7373 };
7474 };
75757676+ # https://patchwork.kernel.org/patch/9626797/
7777+ # Should be included in 4.17, so this patch can be dropped when 4.16 becomes obsolete.
7878+ bcm2835_mmal_v4l2_camera_driver = rec {
7979+ name = "bcm2835_mmal_v4l2_camera_driver";
8080+ patch = fetchpatch {
8181+ name = name + ".patch";
8282+ url = https://patchwork.kernel.org/patch/9626797/raw/;
8383+ sha256 = "0iwb0yxsf95zv4qxkvlvhqfmzx0rk13g9clvxsharvwkb4w5lwa0";
8484+ };
8585+ };
8686+7687}
+6
pkgs/os-specific/linux/kmod/aggregator.nix
···99 ''
1010 source ${stdenv}/setup
11111212+ if ! test -d "$out/lib/modules"; then
1313+ echo "No modules found."
1414+ # To support a kernel without modules
1515+ exit 0
1616+ fi
1717+1218 kernelVersion=$(cd $out/lib/modules && ls -d *)
1319 if test "$(echo $kernelVersion | wc -w)" != 1; then
1420 echo "inconsistent kernel versions: $kernelVersion"