X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/40dcead07c97bb470b24a4d37a990167d68baa92..d628b9b0a5c82db3d36fde49fb45cd8efe45fb05:/disabled-packages/alpine/imap-src-osdep-unix-Makefile.patch?ds=sidebyside diff --git a/disabled-packages/alpine/imap-src-osdep-unix-Makefile.patch b/disabled-packages/alpine/imap-src-osdep-unix-Makefile.patch index 245ec8a5..7ede158e 100644 --- a/disabled-packages/alpine/imap-src-osdep-unix-Makefile.patch +++ b/disabled-packages/alpine/imap-src-osdep-unix-Makefile.patch @@ -1,14 +1,45 @@ -diff -u -r ../alpine-2.20/imap/src/osdep/unix/Makefile ./imap/src/osdep/unix/Makefile ---- ../alpine-2.20/imap/src/osdep/unix/Makefile 2015-01-12 00:12:25.505178442 -0500 -+++ ./imap/src/osdep/unix/Makefile 2016-04-14 17:06:00.090973009 -0400 -@@ -132,10 +132,7 @@ +--- ../cache/alpine-2.20/imap/src/osdep/unix/Makefile 2015-01-12 05:12:25.505178442 +0000 ++++ ./imap/src/osdep/unix/Makefile 2016-12-11 07:08:54.821695452 +0000 +@@ -131,13 +131,8 @@ - # Commands possibly overriden by the individual port + # Commands possibly overriden by the individual port +- -ARRC=ar rc -CC=cc LN=ln -s -RANLIB=ranlib +- +- ++AARC="ar rc" + # Standard distribution build parameters + DEFAULTAUTHENTICATORS=ext md5 pla log +@@ -513,8 +508,10 @@ + SPOOLDIR=/var/spool \ + ACTIVEFILE=/var/lib/news/active \ + RSHPATH=/usr/bin/rsh \ +- BASECFLAGS="$(GCCCFLAGS)" +- ++ CC=${TERMUX_HOST_PLATFORM}-gcc \ ++ BASECFLAGS="$(GCCCFLAGS)" \ ++ RANLIB="${TERMUX_HOST_PLATFORM}-ranlib" ++ + lyn: # LynxOS + $(BUILD) `$(CAT) SPECIALS` OS=$@ \ + CRXTYPE=nfs \ +@@ -869,8 +866,13 @@ + all: $(ARCHIVE) - # Standard distribution build parameters + $(ARCHIVE): $(BINARIES) +- sh -c '$(RM) $(ARCHIVE) || true' ++ rm -rf client-a ++ { echo -n 'ar rc '; cat ARCHIVE; } >ARCHIVE.new ++ rm ARCHIVE ++ mv ARCHIVE.new ARCHIVE ++ chmod +x ARCHIVE + @$(CAT) ./ARCHIVE ++ + @$(SH) ./ARCHIVE + + .c.o: