uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
17
pkgs/servers/monitoring/lcdproc/hardcode_mtab.patch
Normal file
17
pkgs/servers/monitoring/lcdproc/hardcode_mtab.patch
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
diff --git a/clients/lcdproc/machine_Linux.c b/clients/lcdproc/machine_Linux.c
|
||||
index 7bb7266..a629674 100644
|
||||
--- a/clients/lcdproc/machine_Linux.c
|
||||
+++ b/clients/lcdproc/machine_Linux.c
|
||||
@@ -259,11 +259,7 @@ machine_get_fs(mounts_type fs[], int *cnt)
|
||||
char line[256];
|
||||
int x = 0, err;
|
||||
|
||||
-#ifdef MTAB_FILE
|
||||
- mtab_fd = fopen(MTAB_FILE, "r");
|
||||
-#else
|
||||
-#error "Can't find your mounted filesystem table file."
|
||||
-#endif
|
||||
+ mtab_fd = fopen("/etc/mtab", "r");
|
||||
|
||||
/* Get rid of old, unmounted filesystems... */
|
||||
memset(fs, 0, sizeof(mounts_type) * 256);
|
||||
Loading…
Add table
Add a link
Reference in a new issue