sudo: fix musl build (mksig{list,name} must be compiled for the host).
This commit is contained in:
parent
dac2af9445
commit
558340a9b1
2 changed files with 18 additions and 1 deletions
17
srcpkgs/sudo/patches/mksigname-for-host.patch
Normal file
17
srcpkgs/sudo/patches/mksigname-for-host.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
mksig{list,name} must be built for the host not target.
|
||||
|
||||
--- lib/util/Makefile.in.orig 2015-03-19 17:17:25.578303273 +0100
|
||||
+++ lib/util/Makefile.in 2015-03-19 17:17:55.059482991 +0100
|
||||
@@ -146,10 +146,10 @@ signame.c: mksigname
|
||||
./mksigname > $@
|
||||
|
||||
mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/sudo_compat.h $(top_builddir)/config.h
|
||||
- $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
|
||||
+ $(BUILD_CC) $(CPPFLAGS) $(BUILD_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
|
||||
|
||||
mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/sudo_compat.h $(top_builddir)/config.h
|
||||
- $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@
|
||||
+ $(BUILD_CC) $(CPPFLAGS) $(BUILD_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@
|
||||
|
||||
$(srcdir)/mksiglist.h: $(srcdir)/siglist.in
|
||||
@if [ -n "$(DEVEL)" ]; then \
|
|
@ -1,7 +1,7 @@
|
|||
# Template build file for 'sudo'.
|
||||
pkgname=sudo
|
||||
version=1.8.12
|
||||
revision=4
|
||||
revision=5
|
||||
build_pie=yes
|
||||
lib32disabled=yes
|
||||
build_style=gnu-configure
|
||||
|
|
Loading…
Reference in a new issue