Opened 14 years ago

Closed 14 years ago

#26571 closed defect (duplicate)

py27-sip does not build universal

Reported by: guidolorenz@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: py-sip py25-sip py26-sip py31-sip Cc:
Port: py27-sip

Description

I get the following error when configuring the universal variant:

--->  Configuring py27-sip
Usage: python configure.py [opts] [macro=value] [macro+=value]

configure.py: error: no such option: --disable-dependency-tracking
This is SIP 4.11.1 for Python 2.7 on darwin.

SIP uses a custom configure.py script. It does not have a --disable-dependency-tracking option. For a universal build, --arch options have to be used.

I'll a patch to solve the problem. It might be applicable to the sip port for other python versions, too. I wasn't sure if the port revision should be updated, since it only affects new installations (current ones are not universal).

Attachments (1)

Portfile.diff (388 bytes) - added by guidolorenz@… 14 years ago.

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by guidolorenz@…

Attachment: Portfile.diff added

comment:1 Changed 14 years ago by michaelld (Michael Dickens)

Some other py2X ports to do the following to get +universal working:

variant universal {
	configure.universal_args
	configure.post_args	LFLAGS="-F${frameworks_dir} -L${prefix}/lib \
								${configure.universal_ldflags}"
	configure.post_args-append	CFLAGS="${configure.universal_cflags}"
	configure.post_args-append	CXXFLAGS="${configure.universal_cxxflags}"
}

Can you try this out & see if it works? It's probably more than necessary, but it certainly is complete :) I'm updating py26-sip with this change, and can easily do the same for py27-sip if it works (I don't have Python27 installed). Thanks!

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

Resolution: duplicate
Status: newclosed

Duplicate of #21590.

Note: See TracTickets for help on using tickets.