Opened 16 years ago

Last modified 15 years ago

#17042 closed defect

glib2: incorrect glibconfig.h with +universal (i386 x86_64) — at Version 3

Reported by: pguyot (Paul Guyot) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: glib2, glib2-devel

Description (last modified by ryandesign (Ryan Carsten Schmidt))

glib2 port installs an incorrect glibconfig.h file with +universal {i386 x86_64}. The file is created with 64 bits defines, while it should probably feature a #if __LP64__ #else #endif logic.

For example, it has:

typedef signed long gint64;

while this is only true on x86_64.

Change History (5)

comment:1 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Is that because of the patches I'm applying in the port to make the universal build work in the first place, or is this an upstream problem?

comment:2 Changed 15 years ago by jmroot (Joshua Root)

It seems that the configure patch is no longer necessary, as it's now generated with autoconf 2.63 which handles universal endianness correctly. But the 32/64-bit problems seem to be an upstream bug.

The easiest fix at this point is probably an ed script applied to config.h/glibconfig.h in post-configure, like toby has been using in e.g. r42691.

comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: glib2-devel added

Changed 15 years ago by jmroot (Joshua Root)

Attachment: patch-config.h.diff added

Changed 15 years ago by jmroot (Joshua Root)

Attachment: patch-glibconfig.h.diff added
Note: See TracTickets for help on using tickets.