Pommed: find the 'eject' command in /var/setuid-wrappers:/home/shlevy/.nix-profile/bin:/home/shlevy/.nix-profile/sbin:/home/shlevy/.nix-profile/lib/kde4/libexec:/nix/var/nix/profiles/default/bin:/nix/var/nix/profiles/default/sbin:/nix/var/nix/profiles/default/lib/kde4/libexec:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin:/var/run/current-system/sw/lib/kde4/libexec

svn path=/nixpkgs/trunk/; revision=33302

Shea Levy bdc3de6a 8d1d247e

+13 -3
+1 -3
pkgs/os-specific/linux/pommed/default.nix
··· 6 6 , dbus, dbus_glib 7 7 , alsaLib 8 8 , audiofile 9 - , eject 10 9 , pkgconfig 11 10 , gtk 12 11 , gettext ··· 30 29 sha256 = "18lxywmikanjr5pk1jdqda88dxd2579fpyd332xn4njjhlgwy5fp"; 31 30 }; 32 31 33 - patches = [ build_flags_patch ]; 32 + patches = [ build_flags_patch ./find-eject-in-path.patch ]; 34 33 35 34 buildInputs = [ 36 35 pciutils ··· 38 37 dbus 39 38 alsaLib 40 39 audiofile 41 - eject 42 40 dbus_glib 43 41 pkgconfig 44 42 gtk
+12
pkgs/os-specific/linux/pommed/find-eject-in-path.patch
··· 1 + diff -Naur pommed-1.39-orig/pommed/cd_eject.c pommed-1.39/pommed/cd_eject.c 2 + --- pommed-1.39-orig/pommed/cd_eject.c 2011-06-02 05:24:05.000000000 -0400 3 + +++ pommed-1.39/pommed/cd_eject.c 2012-03-20 14:25:33.397712520 -0400 4 + @@ -100,7 +100,7 @@ 5 + for (fd = 3; fd < max_fd; fd++) 6 + close(fd); 7 + 8 + - execve("/usr/bin/eject", eject_argv, eject_envp); 9 + + execvpe("eject", eject_argv, eject_envp); 10 + 11 + logmsg(LOG_ERR, "Could not execute eject: %s", strerror(errno)); 12 + exit(1);