Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #11438 (closed enhancement: fixed)

Opened 22 months ago

Last modified 16 months ago

REVISION: zlib universal

Reported by: ryandesign@… Owned by: ryandesign@…
Priority: Low Milestone: Port Enhancements
Component: ports Version:
Keywords: Cc: ryandesign@…
Port:

Description

Since we seem to be on a push to make universal ports optionally available, and I've had some experience building zlib universal, I wanted to provide a patch to add a +universal variant to the zlib 1.2.3 portfile.

Attachments

zlib-1.2.3-universal.diff (1.1 KB) - added by ryandesign@… 22 months ago.
add a +universal variant
zlib-universal-eridius.diff (2.8 KB) - added by eridius@… 22 months ago.
zlib-universal-third.diff (2.7 KB) - added by pipping@… 22 months ago.

Change History

Changed 22 months ago by ryandesign@…

add a +universal variant

Changed 22 months ago by eridius@…

I took a look at that patch, and it's pretty ugly.

Here's one that cleans it up, outputs messages to the user to tell them that it's building libz.a after destroot, and indents everything better.

Changed 22 months ago by eridius@…

Changed 22 months ago by eridius@…

Incidentally, the original patch didn't even work (the reinplace was broken).

Changed 22 months ago by ryandesign@…

  • cc ryandesign@…, landonf@… added

Eridius: Thank you for cleaning it up. You obviously know a lot more tcl than I do. I was hoping there would be a more elegant way than what I did.

I would however prefer to keep patches to a single purpose. That is: I'd prefer we not make whitespace changes and also functional changes at the same time. It makes it very difficult to later figure out what the substantive changes were, if svn diff shows the entire file to have changed due to differing whitespace.

FYI: My original reinplace did work, but required GNU sed, which I already had installed; I didn't realize BSD sed which Mac OS X provides doesn't support the \0 notation. To support BSD sed, I had also reached the same solution as you, grouping the entire search pattern and using \1 in the replacement.

Pipping: It looks like you only removed "-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" from LDFLAGS? An older version of the Apple tech note recommended using that, and I seem to still have a habit of using it, though the current documentation no longer lists it, and it seems to work just fine without it in this case.

In summary: I would be happy if zlib-universal-third.diff were applied. (Well, I'd be happier if functional changes and whitespace changes were made in two separate commits.) Now we just need approval from the maintainer. Landon, what do you think?

Changed 22 months ago by pipping@…

Changed 21 months ago by ryandesign@…

  • cc landonf@… removed
  • owner changed from macports-dev@… to ryandesign@…

Looks like Landon has abandoned the zlib port. I'll took it over in r22499.

Changed 21 months ago by eridius@…

  • status changed from new to closed
  • resolution set to fixed

Until somebody tests it on PPC, I would not recommend removing the -Wl,-syslibroot because the SDK is irrelevant on i386, and so I'm not willing to risk breaking cross-compilation from PPC.

That said, as you made zlib openmaintainer, I'm going ahead and committing my version. I know, it would be nice to separate whitespace changes from functional, but it's hard to do that at this point, and there's also far more functional changes than whitespace changes.

Committed in r22776.

Changed 21 months ago by ryandesign@…

  • component changed from base to ports
  • milestone set to Available Ports

I am on PPC and I did test it there.

Changed 21 months ago by jmpp@…

  • milestone changed from Available Ports to Port Enhancements

Changed 16 months ago by nox@…

  • priority changed from Nice to have to Low
  • summary changed from PATCH: zlib universal to REVISION: zlib universal
Note: See TracTickets for help on using tickets.