-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
WIP: DO NOT MERGE: demonstration of $CONFIG_SITE #87
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
@gillins I am OK with this and, if it works, I am fine merging it. But isn't it virtually the same thing as passing those variables (or some of those) in the PS: I am thinking about ditching the |
Yes indeed it is. Just means it is done automatically without the recipe writer having to do anything... If people are ok with idea, we should update |
Thanks for trying this out, @gillins. This approach sounds very intriguing to me. If it works, I would be more than happy to see it included into the
So, I have a question on this point though. Is this needed for IIRC we tried using the current |
Just FYI, @ocefpaf, part of the reason I helped created the While I understand you are frustrated that it is not working smoothly (I am too and imagine others are as well), going away from standard build practices is unmaintainable IMHO and will get us into the same mess we are in now. If the standard build practices are not working, we should try to figure out how to fix the standard. I'm more than willing to be involved in the process of fixing the standard. cc @pelson |
Agreed that Solution is maybe for recipes using |
I have found that building with this recipe seems to fix the python-bindings-linked-to-build-location-of-gdal problem (conda-forge/fiona-feedstock#17 (comment)). Very strange, but maybe setting the Unfortunately I'm going to be away for most of the coming week so won't be able to do much testing on OSX... |
No problem. I will perform some tests. Also, I don't want to merge this until |
@pelson I re-started the CIs here to force it to get |
I'd prefer to be doing this as a file, rather than as a patch, but this to me looks like a really healthy approach. The question then is, do we duplicate this file in all feedstocks that need it (redundancy, risk of being inconsistent, but fully encapsulates the build context), or do we ship it with |
Looks like something is linked to The idea of this PR was to demonstrate That is if it is decided to continue with the |
I am trying to figure out what changed and I will report here any findinds.
I am 👎 to the toolchain. I'd rather have any necessary flags hardcoded in the |
Absolutely - thanks for all your hard work on this @ocefpaf and @kmuehlbauer ! |
And you! It took 3 heads to crack this one 😉 |
Do not merge.
This is a demonstration of using the site defaults feature of
configure
to get the right flags to the compiler without breakinglibtool
.Xref: conda-forge/conda-forge.github.io#183, #85.
Background:
toolchain
sets CC, CFLAGS etc environment variables to control the flags passed to the compiler. This seems to breaklibtool
. One option is to pass the variables on the command line like #85 but this is error prone. Another possibility is to have our ownlibtool
, but this seems likely to be a lot of work.autoconf
has a “Site Defaults” feature (https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/Site-Defaults.html) and this PR demonstrates having a file with the flags and setting the$CONFIG_SITE
environment variable to it. Ideally, this would be done bytoolchain
. None of the CC, CFLAGS environment variables need to be set.One drawback of this approach is that
cmake
and other build systems won't have access to the environment variables – maybe they will need tosource $CONFIG_SITE
or something similar.Apologies if this isn't clear. And sorry, some of my other changes seem to have ended up here too...
cc @kmuehlbauer @ocefpaf @jakirkham