From a4f1ba4a1ad005b89b95d789964f734ab2240c37 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 30 Apr 2018 18:23:10 +0200 Subject: [PATCH] xbps: add uunshare patch --- srcpkgs/xbps/patches/0001-fix-uunshare-args.patch | 12 ++++++++++++ srcpkgs/xbps/template | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xbps/patches/0001-fix-uunshare-args.patch diff --git a/srcpkgs/xbps/patches/0001-fix-uunshare-args.patch b/srcpkgs/xbps/patches/0001-fix-uunshare-args.patch new file mode 100644 index 00000000000..3b12c1c8cfa --- /dev/null +++ b/srcpkgs/xbps/patches/0001-fix-uunshare-args.patch @@ -0,0 +1,12 @@ +diff --git a/bin/xbps-uunshare/main.c b/bin/xbps-uunshare/main.c +index e4f7b647..36e8d39e 100644 +--- ./bin/xbps-uunshare/main.c ++++ ./bin/xbps-uunshare/main.c +@@ -157,7 +157,7 @@ main(int argc, char **argv) + if (argc < 2) + usage(argv0); + +- chrootdir = argv[-1]; ++ chrootdir = argv[0]; + cmd = argv[1]; + cmdargs = argv + 1; diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index 1bbce07515e..3ad78ab5a11 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -1,7 +1,7 @@ # Template file for 'xbps' pkgname=xbps version=0.52 -revision=2 +revision=3 bootstrap=yes build_style=configure short_desc="The XBPS package system utilities"