xbps: workaround alternatives bug

This commit is contained in:
Duncaen 2019-11-24 04:22:01 +01:00
parent 311dc44c33
commit 5490b21922
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
2 changed files with 15 additions and 1 deletions

View File

@ -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;

View File

@ -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"