diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-10-25 23:16:40 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-10-25 23:16:40 +0200 |
commit | b6d14cb5db40c2c8f80450b9ac2288d71b49ad68 (patch) | |
tree | b181bb0859681f93ec19f3d568e2c0dd23d18211 /sys-apps/mkinitrd/files | |
parent | dd2aea324c07fe1bd13143bb37eff11117b6130a (diff) | |
download | darklin4-b6d14cb5db40c2c8f80450b9ac2288d71b49ad68.tar.gz darklin4-b6d14cb5db40c2c8f80450b9ac2288d71b49ad68.tar.bz2 darklin4-b6d14cb5db40c2c8f80450b9ac2288d71b49ad68.tar.xz darklin4-b6d14cb5db40c2c8f80450b9ac2288d71b49ad68.zip |
Fix some old packages
Diffstat (limited to 'sys-apps/mkinitrd/files')
-rw-r--r-- | sys-apps/mkinitrd/files/mkinitrd-6.0.93-ds2.diff | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/sys-apps/mkinitrd/files/mkinitrd-6.0.93-ds2.diff b/sys-apps/mkinitrd/files/mkinitrd-6.0.93-ds2.diff new file mode 100644 index 0000000..fa41433 --- /dev/null +++ b/sys-apps/mkinitrd/files/mkinitrd-6.0.93-ds2.diff @@ -0,0 +1,113 @@ +diff -dPNur mkinitrd-6.0.93-orig/bdevid/python/Makefile mkinitrd-6.0.93/bdevid/python/Makefile +--- mkinitrd-6.0.93-orig/bdevid/python/Makefile 2019-10-25 20:25:33.733753651 +0200 ++++ mkinitrd-6.0.93/bdevid/python/Makefile 2019-10-25 20:39:23.029000459 +0200 +@@ -25,7 +25,7 @@ + include $(TOPDIR)/Makefile.inc + + SITELIB := $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)[1:]") +-PYVER := $(shell python -c "import sys; print sys.version[0:3]") ++PYVER := $(shell python2 -c "import sys; print (sys.version[0:3])") + CFLAGS += -I/usr/include/python$(PYVER) + CFLAGS += -I$(TOPDIR)/nash/include -I$(TOPDIR)/bdevid/include + LDFLAGS = -shared -L$(TOPDIR)/nash -L$(TOPDIR)/bdevid +diff -dPNur mkinitrd-6.0.93-orig/bdevid/sysfs.c mkinitrd-6.0.93/bdevid/sysfs.c +--- mkinitrd-6.0.93-orig/bdevid/sysfs.c 2009-09-02 10:41:45.000000000 +0200 ++++ mkinitrd-6.0.93/bdevid/sysfs.c 2019-10-25 20:36:16.444012869 +0200 +@@ -30,6 +30,8 @@ + #include <errno.h> + #include <unistd.h> + ++#include <sys/sysmacros.h> ++ + #include <nash.h> + + #include "bdevid.h" +diff -dPNur mkinitrd-6.0.93-orig/nash/block.c mkinitrd-6.0.93/nash/block.c +--- mkinitrd-6.0.93-orig/nash/block.c 2019-10-25 20:25:31.293714823 +0200 ++++ mkinitrd-6.0.93/nash/block.c 2019-10-25 20:34:13.839051611 +0200 +@@ -36,8 +36,8 @@ + #include <envz.h> + + #include <blkid/blkid.h> +- + #include <linux/blkpg.h> ++#include <sys/sysmacros.h> + + #include <nash.h> + #include "lib.h" +diff -dPNur mkinitrd-6.0.93-orig/nash/devtree.c mkinitrd-6.0.93/nash/devtree.c +--- mkinitrd-6.0.93-orig/nash/devtree.c 2019-10-25 20:25:32.020726392 +0200 ++++ mkinitrd-6.0.93/nash/devtree.c 2019-10-25 20:34:54.382699987 +0200 +@@ -26,6 +26,7 @@ + #include <string.h> + #include <errno.h> + #include <ctype.h> ++#include <sys/sysmacros.h> + + #include <nash.h> + #include "list.h" +diff -dPNur mkinitrd-6.0.93-orig/nash/dm.c mkinitrd-6.0.93/nash/dm.c +--- mkinitrd-6.0.93-orig/nash/dm.c 2019-10-25 20:25:31.514718340 +0200 ++++ mkinitrd-6.0.93/nash/dm.c 2019-10-25 20:33:20.023191276 +0200 +@@ -30,6 +30,7 @@ + + #include <libdevmapper.h> + #include <parted/parted.h> ++#include <sys/sysmacros.h> + + #include <nash.h> + +diff -dPNur mkinitrd-6.0.93-orig/nash/Makefile mkinitrd-6.0.93/nash/Makefile +--- mkinitrd-6.0.93-orig/nash/Makefile 2019-10-25 20:25:33.724753507 +0200 ++++ mkinitrd-6.0.93/nash/Makefile 2019-10-25 20:29:45.448764596 +0200 +@@ -31,7 +31,7 @@ + + include ../Makefile.inc + +-CFLAGS += -I$(TOPDIR)/nash/include -I$(TOPDIR)/bdevid/include ++CFLAGS += -I$(TOPDIR)/nash/include -I$(TOPDIR)/bdevid/include -I/usr/include/tirpc + + LDFLAGS += -Wl,-rpath-link,$(TOPDIR)/bdevid:$(TOPDIR)/nash + +@@ -39,6 +39,7 @@ + nash_LIBS += -ldevmapper -lparted -lblkid + nash_LIBS += -luuid -lpopt -lresolv -ldl -lelf + nash_LIBS += -lm ++nash_LIBS += -ltirpc + # We need to link against libgcc_s directly, or it'll /dlopen() it during + # backtrace()! This is not teh way!!!1!!!one!!!. + nash_LIBS += -lgcc_s +diff -dPNur mkinitrd-6.0.93-orig/nash/nash.c mkinitrd-6.0.93/nash/nash.c +--- mkinitrd-6.0.93-orig/nash/nash.c 2019-10-25 20:25:32.636736194 +0200 ++++ mkinitrd-6.0.93/nash/nash.c 2019-10-25 20:28:32.810606074 +0200 +@@ -60,6 +60,7 @@ + #include <argz.h> + #include <asm/unistd.h> + #include <linux/fs.h> ++#include <sys/sysmacros.h> + + #include <libdevmapper.h> + +diff -dPNur mkinitrd-6.0.93-orig/nash/procdev.c mkinitrd-6.0.93/nash/procdev.c +--- mkinitrd-6.0.93-orig/nash/procdev.c 2009-09-02 10:41:45.000000000 +0200 ++++ mkinitrd-6.0.93/nash/procdev.c 2019-10-25 20:32:15.464159654 +0200 +@@ -20,6 +20,8 @@ + */ + + #define _GNU_SOURCE 1 ++#include <sys/sysmacros.h> ++ + #include "lib.h" + + static struct proc_dev_info proc_dev_info[] = { +diff -dPNur mkinitrd-6.0.93-orig/nash/waitdev.c mkinitrd-6.0.93/nash/waitdev.c +--- mkinitrd-6.0.93-orig/nash/waitdev.c 2019-10-25 20:25:32.637736210 +0200 ++++ mkinitrd-6.0.93/nash/waitdev.c 2019-10-25 20:32:07.404030893 +0200 +@@ -27,6 +27,7 @@ + #include <string.h> + #include <unistd.h> + #include <bdevid.h> ++#include <sys/sysmacros.h> + + #include <nash.h> + #include "block.h" |