diff options
-rw-r--r-- | main/sudo/APKBUILD | 6 | ||||
-rw-r--r-- | main/sudo/fix-cross-compile.patch | 15 |
2 files changed, 21 insertions, 0 deletions
diff --git a/main/sudo/APKBUILD b/main/sudo/APKBUILD index b1dda153a0..818ff14841 100644 --- a/main/sudo/APKBUILD +++ b/main/sudo/APKBUILD @@ -15,6 +15,7 @@ makedepends="zlib-dev" depends= subpackages="$pkgname-doc $pkgname-dev" source="ftp://ftp.sudo.ws/pub/sudo/$pkgname-$_realver.tar.gz + fix-cross-compile.patch libcrypt.patch" _builddir="$srcdir"/$pkgname-$_realver @@ -30,6 +31,8 @@ prepare() { build() { cd "$_builddir" ./configure --prefix=/usr \ + --build=${CBUILD} \ + --host=${CHOST} \ --with-env-editor \ --without-pam \ --without-skey \ @@ -47,8 +50,11 @@ package() { } md5sums="a02367090e1dac8d0c1747de1127b6bf sudo-1.8.7.tar.gz +44a4afb9ac22947ad6a05777ce66c5fc fix-cross-compile.patch 429d9613091f1f3f19ce8def5b3032b3 libcrypt.patch" sha256sums="39626cf3d48c4fd5a9139a2627d42bfefac7ce47f470bdba3aeb4e3d7c49566a sudo-1.8.7.tar.gz +d40eaf27f9bcc4d2151c3133fe12efcf29fe496a4d72dabe22661cf311943f59 fix-cross-compile.patch 80d16a0b4ee7b97eed6806c4cf2c1b04c9d2ae3ec550bc97ed44ff6db8c8d556 libcrypt.patch" sha512sums="c8058794d0f0e6390de69cb8e84dede0971ce9c05114e22bdbd79ebc1b47cd563b5081a275e4abf2a2cca8d8db5bfe2c47ad384734849c92e515eefff67c7ec8 sudo-1.8.7.tar.gz +f9257262b32365f1ee8914781f917fc425229f88d3d8df0f33ebb2cfbf0ad8d41a6ea83b15b2c74b1f5728b380bcd1e92ca58e138717e5104a35c2fc8a376ea1 fix-cross-compile.patch e4b236c2ee47e01222eed98c401861336d49a0c74a28219972c68763a4c9233a010b315850f9f2f4396205dc21c4ce4eeb5c95101464f4f3040b70d25bd2116c libcrypt.patch" diff --git a/main/sudo/fix-cross-compile.patch b/main/sudo/fix-cross-compile.patch new file mode 100644 index 0000000000..89fcd043f1 --- /dev/null +++ b/main/sudo/fix-cross-compile.patch @@ -0,0 +1,15 @@ +--- sudo-1.8.7/compat/Makefile.in.orig ++++ sudo-1.8.7/compat/Makefile.in +@@ -93,10 +93,10 @@ + ./mksigname > $@ + + mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/missing.h $(top_builddir)/config.h +- $(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@ ++ $${HOSTCC:-gcc} -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(DEFS) $(srcdir)/mksiglist.c -o $@ + + mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/missing.h $(top_builddir)/config.h +- $(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@ ++ $${HOSTCC:-gcc} -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(DEFS) $(srcdir)/mksigname.c -o $@ + + fnm_test: fnm_test.o libreplace.la + $(LIBTOOL) --mode=link $(CC) -o $@ fnm_test.o libreplace.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) |