pkgsrc/devel/libffi/patches
dsainty 59afafc1a4 Revert portions of PR/48587 - applied in 2014 to resolve some issue
with building on Irix.  The changes applied to 'configure' introduce
some quite ugly quote nesting that not all shells (E.g. ksh) can
comprehend.

After discussion, prefer to roll back what looks like undesirable and
unnecessary changes, and drop the 'bash' dependency.  My suspicion is
that the old 'configure' patch is unhelpful even for Irix.

The reason for the PR/48587 changes are not clear, given that part of
that patch also selected 'bash' as the shell to use - which should
have made editing the script unnecessary in the first place.

Demonstrating the problem bringing all this to attention, this is what
happens if you are using ksh as the Pkgsrc shell on MacOS X:

===> Building for libffi-3.3nb2
/bin/ksh: : cannot execute [Is a directory]
<hangs>

The cause is this ugly looking quote nesting that was introduced by
patch-configure in PR/48587...

$ BUILD="` grep "^#### $HOST " Makefile | sed -e 's/.*|//' `"
ksh: : cannot execute [Is a directory]
^C
% bash
bash-5.0$ BUILD="` grep "^#### $$HOST " Makefile | sed -e 's/.*|//' `"
bash-5.0$ exit
% sh
sh-3.2$ BUILD="` grep "^#### $$HOST " Makefile | sed -e 's/.*|//' `"
sh-3.2$ exit

Removing patch-configure results in this much simpler, portable looking
script:

$ BUILD=` grep "^#### $$HOST " Makefile | sed -e 's/.*|//' `

No PKGREVISION bump, this change is not anticipated to affect the
package contents, only the success or failure of the build.
2020-04-24 10:19:32 +00:00
..
patch-configure Revert portions of PR/48587 - applied in 2014 to resolve some issue 2020-04-24 10:19:32 +00:00
patch-configure_host Readd support for NetBSD/mips. 2020-03-16 09:35:47 +00:00
patch-src_aarch64_ffi.c libffi: kludge for aarch64. Bump rev. 2020-02-28 22:37:24 +00:00
patch-src_arm_sysv.S libffi: fix ARM build 2020-04-08 13:40:10 +00:00
patch-src_closures.c libffi: provide a stub function as temporary band aid for aarch64 2020-02-28 18:14:28 +00:00
patch-src_m68k_ffi.c
patch-src_m88k_elfbsd.S
patch-src_mips_ffi.c
patch-src_mips_ffitarget.h
patch-src_powerpc_ffi.c Fix build for ILP32 powerpc, which doesn't have 128-bit-length data types. 2020-03-21 16:08:34 +00:00
patch-src_powerpc_ffi__powerpc.h Fix build for ILP32 powerpc, which doesn't have 128-bit-length data types. 2020-03-21 16:08:34 +00:00
patch-testsuite_libffi.call_float2.c