Changeset a32efb0e4f28 breaks build on OSX 10.4

Bug #822427 reported by Greg Novack
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dulwich
Fix Released
Medium
Jelmer Vernooij

Bug Description

The change in a32efb0e4f28, which requires the file Availability.h, causes the build to fail on OSX 10.4.11. There is no such file as Availability.h in the highest version of XCode that's compatible with Tiger.

Here is the actual error message:
dulwich/_objects.c:25:26: error: Availability.h: No such file or directory
dulwich/_objects.c:25:26: error: Availability.h: No such file or directory
lipo: can't figure out the architecture type of: /var/tmp//ccyJjiKb.out
error: command 'gcc-4.0' failed with exit status 1

I know Tiger is old, but consider: those of us stuck with Tiger need dulwich so that we can have hg-git, and hg-git is the only way (that I know of) that we can clone and pull git repositories. (Git can't be built on Tiger, except for extremely old versions of it).

I'm not a programmer, so I cannot offer a patch. I hope someone here can fix it!

Cheers,

Greg

Tags: macosx
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

You should still be able to use setup.py --pure, which won't do any compilation.

Changed in dulwich:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Greg Novack (gmnovack-deactivatedaccount) wrote : Re: [Bug 822427] Re: Changeset a32efb0e4f28 breaks build on OSX 10.4

Wrote Jelmer Vernooij [08/07/11 @21:31:39 -0000]:
> You should still be able to use setup.py --pure, which won't do any
> compilation.

Dear Jelmer,

Thanks very much for this info. Sorry to clutter up the bug reporter.

Cheers,
Greg

Revision history for this message
Fabian Groffen (grobian) wrote :

This problem also is visible on 10.5 (Leopard a.k.a. the last release that runs on PPC).

Since strnlen is only used once, isn't the much simpler fix to s/strnlen/mystrnlen/ throughout _objects.c and drop the conditionals? Or just inline the code where it is used?

Revision history for this message
Fabian Groffen (grobian) wrote :
Jelmer Vernooij (jelmer)
Changed in dulwich:
milestone: none → 0.8.1
assignee: nobody → Jelmer Vernooij (jelmer)
status: Triaged → Fix Released
Jelmer Vernooij (jelmer)
tags: added: macosx
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.