Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0d4431cfe90b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d88c0cf8678c
Choose a head ref

Commits on Jun 16, 2017

  1. Copy the full SHA
    0d92084 View commit details
  2. Copy the full SHA
    3d5409a View commit details
  3. Copy the full SHA
    714cd37 View commit details
  4. logkeys: Don't chmod u+s

    dtzWill committed Jun 16, 2017
    Copy the full SHA
    4d57153 View commit details
  5. Copy the full SHA
    98b2e48 View commit details
  6. Copy the full SHA
    b6caf10 View commit details
  7. Copy the full SHA
    5d0a879 View commit details
  8. Copy the full SHA
    8098e40 View commit details
  9. Copy the full SHA
    479d9f9 View commit details
  10. Copy the full SHA
    7270b9b View commit details
  11. Copy the full SHA
    b20b2af View commit details
  12. Copy the full SHA
    bb1e0b5 View commit details
  13. rssh: don't set special bits

    dtzWill committed Jun 16, 2017
    Copy the full SHA
    7eaa7ad View commit details
  14. Copy the full SHA
    5e9edcf View commit details
  15. Copy the full SHA
    794a4a5 View commit details
  16. Copy the full SHA
    5ff8387 View commit details

Commits on Jun 17, 2017

  1. cron: document patch

    Mic92 authored Jun 17, 2017
    Copy the full SHA
    67655ca View commit details
  2. logcheck: add remark to patch

    Mic92 committed Jun 17, 2017
    Copy the full SHA
    ae147e3 View commit details
  3. sudo: add remark to patch

    Mic92 authored Jun 17, 2017
    Copy the full SHA
    9e2f08c View commit details
  4. super: add remark to patch

    Mic92 authored Jun 17, 2017
    Copy the full SHA
    cca6eb6 View commit details
  5. uucp: add remark to patch

    Mic92 authored Jun 17, 2017
    Copy the full SHA
    ca6bb90 View commit details
  6. rewritefs: add remark to patch

    Mic92 authored Jun 17, 2017
    Copy the full SHA
    878381f View commit details
  7. xconq: add remark to patch

    Mic92 authored Jun 17, 2017
    Copy the full SHA
    aa49177 View commit details
  8. udevil: add remark to patch

    Mic92 authored Jun 17, 2017
    Copy the full SHA
    230c0d4 View commit details
  9. Copy the full SHA
    d88c0cf View commit details
7 changes: 2 additions & 5 deletions pkgs/applications/misc/udevil/default.nix
Original file line number Diff line number Diff line change
@@ -7,8 +7,9 @@ stdenv.mkDerivation {
};
buildInputs = [ intltool glib pkgconfig udev ];
configurePhase = ''
substituteInPlace src/Makefile.am --replace "-o root -g root" ""
substituteInPlace src/Makefile.in --replace "-o root -g root" ""
# do not set setuid bit in nix store
substituteInPlace src/Makefile.in --replace 4755 0755
./configure \
--prefix=$out \
--with-mount-prog=${utillinux}/bin/mount \
@@ -17,10 +18,6 @@ stdenv.mkDerivation {
--with-setfacl-prog=${acl.bin}/bin/setfacl \
--sysconfdir=$prefix/etc
'';
preConfigure = ''
cat src/Makefile.am
exit 2
'';
patches = [ ./device-info-sys-stat.patch ];
meta = {
description = "A command line Linux program which mounts and unmounts removable devices without a password, shows device info, and monitors device changes";
2 changes: 2 additions & 0 deletions pkgs/games/unnethack/default.nix
Original file line number Diff line number Diff line change
@@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
"--with-gamesdir=/tmp/unnethack"
];

makeFlags = [ "GAMEPERM=744" ];

postInstall = ''
cp -r /tmp/unnethack $out/share/unnethack/profile
mv $out/bin/unnethack $out/bin/.wrapped_unnethack
2 changes: 2 additions & 0 deletions pkgs/games/xconq/default.nix
Original file line number Diff line number Diff line change
@@ -26,6 +26,8 @@ stdenv.mkDerivation rec {
# Fix Makefiles
find . -name 'Makefile.in' -exec sed -re 's@^ ( *)(cd|[&][&])@ \1\2@' -i '{}' ';'
find . -name 'Makefile.in' -exec sed -e '/chown/d; /chgrp/d' -i '{}' ';'
# do not set sticky bit in nix store
find . -name 'Makefile.in' -exec sed -e 's/04755/755/g' -i '{}' ';'
sed -e '/^ * *[$][(]tcltkdir[)]\/[*][.][*]/d' -i tcltk/Makefile.in
# Fix C files
6 changes: 5 additions & 1 deletion pkgs/games/xsokoban/default.nix
Original file line number Diff line number Diff line change
@@ -15,14 +15,18 @@ stdenv.mkDerivation rec {

hardeningDisable = [ "format" ];

prePatch = ''
substituteInPlace Makefile.in --replace 4755 0755
'';

preConfigure = ''
sed -e 's/getline/my_getline/' -i score.c
chmod a+rw config.h
cat >>config.h <<EOF
#define HERE "@nixos-packaged"
#define WWW 0
#define OWNER "'$(whoami)'"
#define OWNER "$(whoami)"
#define ROOTDIR "$out/lib/xsokoban"
#define ANYLEVEL 1
#define SCOREFILE ".xsokoban-score"
5 changes: 5 additions & 0 deletions pkgs/os-specific/linux/rewritefs/default.nix
Original file line number Diff line number Diff line change
@@ -13,6 +13,11 @@ stdenv.mkDerivation rec {

buildInputs = [ pkgconfig fuse pcre ];

prePatch = ''
# do not set sticky bit in nix store
substituteInPlace Makefile --replace 6755 0755
'';

preConfigure = "substituteInPlace Makefile --replace /usr/local $out";

meta = with stdenv.lib; {
3 changes: 2 additions & 1 deletion pkgs/servers/computing/torque/default.nix
Original file line number Diff line number Diff line change
@@ -29,8 +29,9 @@ stdenv.mkDerivation rec {
for f in $(find ./ -name Makefile.in); do
echo patching $f...
sed -i $f -e '/PBS_MKDIRS/d'
sed -i $f -e '/PBS_MKDIRS/d' -e '/chmod u+s/d'
done
'';

postInstall = ''
4 changes: 4 additions & 0 deletions pkgs/servers/http/hiawatha/default.nix
Original file line number Diff line number Diff line change
@@ -21,6 +21,10 @@ stdenv.mkDerivation rec {

buildInputs = [ cmake libxslt zlib libxml2 ] ++ stdenv.lib.optional enableSSL openssl ;

prePatch = ''
substituteInPlace CMakeLists.txt --replace SETUID ""
'';

cmakeFlags = [
( if enableSSL then "-DENABLE_TLS=on" else "-DENABLE_TLS=off" )
( if enableMonitor then "-DENABLE_MONITOR=on" else "-DENABLE_MONITOR=off" )
6 changes: 6 additions & 0 deletions pkgs/shells/rssh/default.nix
Original file line number Diff line number Diff line change
@@ -59,6 +59,12 @@ stdenv.mkDerivation rec {
})
];

# Run this after to avoid conflict with patches above
postPatch = ''
sed -i '/chmod u+s/d' Makefile.in
'';


buildInputs = [ openssh rsync cvs ];

configureFlags = [
7 changes: 7 additions & 0 deletions pkgs/tools/misc/uucp/default.nix
Original file line number Diff line number Diff line change
@@ -10,6 +10,13 @@ stdenv.mkDerivation rec {

hardeningDisable = [ "format" ];

prePatch = ''
# do not set sticky bit in nix store
substituteInPlace Makefile.in \
--replace 4555 0555
sed -i '/chown $(OWNER)/d' Makefile.in
'';

meta = {
description = "Unix-unix cp over serial line, also includes cu program";

1 change: 1 addition & 0 deletions pkgs/tools/security/logkeys/default.nix
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace src/Makefile.in --replace 'root' '$(id -u)'
substituteInPlace configure --replace '/dev/input' '/tmp'
sed -i '/chmod u+s/d' src/Makefile.in
'';

meta = with stdenv.lib; {
5 changes: 5 additions & 0 deletions pkgs/tools/security/sudo/default.nix
Original file line number Diff line number Diff line change
@@ -14,6 +14,11 @@ stdenv.mkDerivation rec {
sha256 = "07fvh8qy0l1h93lccc625f48d8yp0pkp5rjjykq13pb07ar0x64y";
};

prePatch = ''
# do not set sticky bit in nix store
substituteInPlace src/Makefile.in --replace 04755 0755
'';

configureFlags = [
"--with-env-editor"
"--with-editor=/run/current-system/sw/bin/nano"
7 changes: 7 additions & 0 deletions pkgs/tools/security/super/default.nix
Original file line number Diff line number Diff line change
@@ -9,6 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "0k476f83w7f45y9jpyxwr00ikv1vhjiq0c26fgjch9hnv18icvwy";
};

prePatch = ''
# do not set sticky bit in nix store
substituteInPlace Makefile.in \
--replace "-o root" "" \
--replace 04755 755
'';

patches = [
(fetchpatch { url = http://anonscm.debian.org/cgit/users/robert/super.git/plain/debian/patches/14-Fix-unchecked-setuid-call.patch;
sha256 = "08m9hw4kyfjv0kqns1cqha4v5hkgp4s4z0q1rgif1fnk14xh7wqh";
2 changes: 1 addition & 1 deletion pkgs/tools/system/at/install.patch
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@
+ $(INSTALL) -m 755 -d $(IROOT)$(sbindir)
+ $(INSTALL) -m 755 -d $(IROOT)$(docdir)
+ $(INSTALL) -m 755 -d $(IROOT)$(atdocdir)
+ $(INSTALL) -m 6755 -s at $(IROOT)$(bindir)
+ $(INSTALL) -m 0755 -s at $(IROOT)$(bindir)
$(LN_S) -f at $(IROOT)$(bindir)/atq
$(LN_S) -f at $(IROOT)$(bindir)/atrm
- $(INSTALL) -g root -o root -m 755 batch $(IROOT)$(bindir)
3 changes: 2 additions & 1 deletion pkgs/tools/system/cron/default.nix
Original file line number Diff line number Diff line change
@@ -12,7 +12,8 @@ stdenv.mkDerivation {
hardeningEnable = [ "pie" ];

preBuild = ''
substituteInPlace Makefile --replace ' -o root' ' ' --replace 111 755
# do not set sticky bit in /nix/store
substituteInPlace Makefile --replace ' -o root' ' ' --replace 111 755 --replace 4755 0755
makeFlags="DESTROOT=$out CC=cc"
# We want to ignore the $glibc/include/paths.h definition of
5 changes: 5 additions & 0 deletions pkgs/tools/system/logcheck/default.nix
Original file line number Diff line number Diff line change
@@ -10,6 +10,11 @@ stdenv.mkDerivation rec {
sha256 = "1x4skb5nmv2xj8cygj8pq1rd1ws4m2fsibw54yslgdyjri4r2yq7";
};

prePatch = ''
# do not set sticky bit in nix store.
substituteInPlace Makefile --replace 2750 0750
'';

preConfigure = ''
substituteInPlace src/logtail --replace "/usr/bin/perl" "${perl}/bin/perl"
substituteInPlace src/logtail2 --replace "/usr/bin/perl" "${perl}/bin/perl"