Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For upstream #121

Closed
wants to merge 4 commits into from
Closed

For upstream #121

wants to merge 4 commits into from

Conversation

marlam
Copy link
Contributor

@marlam marlam commented Jan 26, 2013

These patches fix package ilmbase, on which openexr is based, and add a link test to openexr. Based on these changes, a fixed imagemagick package now also has a link test.

The current version includes updated autotools/libtool files, which now are
confused by the extra $(SHELL) stuff that was in the build rules.
@ghost ghost assigned tonytheodore Jan 26, 2013
Runtime tests have revealed that libMagick++ crashes in pthread-related code.
Therefore, this patch disables threading in the package. Unfortunately the
configure switch is not enough; the resulting config header needs to be tweaked.
@marlam
Copy link
Contributor Author

marlam commented Jan 30, 2013

Here is one additional patch for imagemagick.

This fixes runtime crashes in my application.

Please consider.

@tonytheodore
Copy link
Member

The shell specifications in ilmbase were there to overcome some bashisms - hopefully they have been removed, but I don't have a machine to test with at the moment.

Does the native build of ilmbase in openexr also need to be changed? Alternately, are the changes really necessary in the cross-build of ilmbase - why would one work and not the other?

@marlam
Copy link
Contributor Author

marlam commented Feb 6, 2013

Good point. I rechecked, and there is another way to fix the problem.

First, with the original ilmbase.mk, I get a libIlmThread.a that contains only a few bytes, and linking against this fails (see the openexr linking test in the merge request).

The difference between the ilmbase builds in ilmbase.mk and openexr.mk is that ilmbase.mk has CONFIG_SHELL=$(SHELL) at the end of configure, whereas openexr.mk has additionally SHELL=$(SHELL).

Putting this SHELL=$(SHELL) also in ilmbase.mk is an alternative way to fix the problem, and probably also avoids the bashisms.

So instead of 3ce209e, which removes all $(SHELL) instances from ilmbase.mk, we can also just add SHELL=$(SHELL) to it, as is done in openexr.mk.

The other patches on top of that still work.

@tonytheodore
Copy link
Member

Great! I've cherry-picked the three other commits and added the extra SHELL variable 44441d4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants