From 5490b2192234be604117bde17f2d910083e822e5 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sun, 24 Nov 2019 04:22:01 +0100 Subject: [PATCH] xbps: workaround alternatives bug --- .../patches/99-cc-alternative-workaround.patch | 14 ++++++++++++++ srcpkgs/xbps/template | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xbps/patches/99-cc-alternative-workaround.patch diff --git a/srcpkgs/xbps/patches/99-cc-alternative-workaround.patch b/srcpkgs/xbps/patches/99-cc-alternative-workaround.patch new file mode 100644 index 00000000000..bfee308cb98 --- /dev/null +++ b/srcpkgs/xbps/patches/99-cc-alternative-workaround.patch @@ -0,0 +1,14 @@ +diff --git lib/package_alternatives.c lib/package_alternatives.c +index ecdc40ae..2dbb6546 100644 +--- lib/package_alternatives.c ++++ lib/package_alternatives.c +@@ -113,6 +113,9 @@ remove_symlinks(struct xbps_handle *xhp, xbps_array_t a, const char *grname) + unsigned int i, cnt; + struct stat st; + ++ if (strcmp(grname, "cc") == 0) ++ return 0; ++ + cnt = xbps_array_count(a); + for (i = 0; i < cnt; i++) { + xbps_string_t str; diff --git a/srcpkgs/xbps/template b/srcpkgs/xbps/template index c61c7ad1c89..b620ae8cbf8 100644 --- a/srcpkgs/xbps/template +++ b/srcpkgs/xbps/template @@ -1,7 +1,7 @@ # Template file for 'xbps' pkgname=xbps version=0.57.1 -revision=4 +revision=5 bootstrap=yes build_style=configure short_desc="XBPS package system utilities"