Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#18927 closed defect (fixed)

neon: universal issues

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: jmroot (Joshua Root)
Port: neon

Description

neon's pkg-config file and its neon-config script include universal flags, if neon is built universal. This causes problems for ports that depend on neon that don't want to build universal. For example, I built neon as a 4-way universal, but was unable to build apr 4-way universal because of #17090. So I built apr, apr-util and serf non-universal instead. But now subversion's build is failing because it's trying to build universal because it's picking up the universal flags from neon.

The universal flags should not be in neon's installed files.

This is the same problem that affected curl; see #14077 (for curl.pc) and #15116 (for curl-config).

I'll attach a patch to fix this.

Attachments (3)

neon.diff (895 bytes) - added by ryandesign (Ryan Carsten Schmidt) 16 years ago.
neon-config.diff (1.1 KB) - added by jmroot (Joshua Root) 16 years ago.
neon-trailingws.diff (1.2 KB) - added by jmroot (Joshua Root) 16 years ago.

Download all attachments as: .zip

Change History (8)

Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: neon.diff added

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Cc: jmr@… added
Summary: neon: neon.pc and neon-config include universal flagsneon: universal issues

Additionally, the generated config.h is incorrect when both 32- and 64-bit universal_archs are used. Attached patch fixes this. Changing SIZEOF_XML_SIZE like this feels wrong, since it comes from expat, but I don't see a better way.

Changed 16 years ago by jmroot (Joshua Root)

Attachment: neon-config.diff added

comment:2 Changed 16 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: newclosed

It would be really nice if instead of having to use variant_isset, we could have changes like this live in a unversal variant that called up to the default one (or if pre/post phases existed for +universal).

In any event, thanks for the patches, these have been committed in r48572.

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: closedreopened

Some trailing whitespace got in there and is breaking the reinplace. Attaching a fix.

Changed 16 years ago by jmroot (Joshua Root)

Attachment: neon-trailingws.diff added

comment:4 Changed 16 years ago by danielluke (Daniel J. Luke)

Resolution: fixed
Status: reopenedclosed

good catch, fixed in r48581 and r48580

comment:5 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.