[MacPorts] #63164: cctools @949: lipo make FAT libraries on i386 Mac OS X Tiger with wrong offset: fail to load (was: cctools @949: lipo generates FAT libraries on i386 Mac OS X Tiger with wrong offset: fail to load)
MacPorts
noreply at macports.org
Sat Jul 10 22:04:06 UTC 2021
#63164: cctools @949: lipo make FAT libraries on i386 Mac OS X Tiger with wrong
offset: fail to load
------------------------------+--------------------
Reporter: bradleyCPA | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: cctools libgcc7 |
------------------------------+--------------------
Comment (by bradleyCPA):
Cool. I took the long way of patching lipo in cctools and installing ports
on another i386 Tiger system. (Sadly, compiling everything takes quite a
bit of time for me.) icu and libxml2 in python are fine in that
environment now using this.
{{{
--- misc/lipo.c.orig 2021-07-10 09:45:23.000000000 -0400
+++ misc/lipo.c 2021-07-10 09:43:39.000000000 -0400
@@ -1935,7 +1935,7 @@
struct arch_flag arch_flag;
if (get_arch_from_flag((char*)arch_name, &arch_flag)) {
uint32_t pagesize = get_segalign_from_flag(&arch_flag);
- return (uint32_t)(log2(pagesize));
+ return (uint32_t)(lround(log2(pagesize)));
}
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63164#comment:37>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list