: allow standard compilation of GIT development tree (was Re: [PATCH]: do not link static libraries from the system library directory)
Hello Colin.
Quoted 21 lines · Guido Trentalancia
Quoted 6 lines
Quoted 6 lines
I've never really seen something which can get it right 'all the time'. Fedora, and I assume other distros actually just use the git tree subdirectories. I feel like any such patch to handle this is going to have to be something set in the top level
Makefileand will have to cause no difficulties for other workflows....See http://people.gnome.org/~walters/docs/build-api.txt
This patch looks roughly right to me, though it'd make me happier if you also added a configure script. (Note: configure script does not have to be implemented with autoconf; see
http://git.gnome.org/browse/gtk-doc-stub/tree/configure for a minimal plain sh one).Quoted 5 lines
My problem with this patch is that now all of the CFLAGS stuff we have lower in the tree (namely -W* stuff) is not going to get picked up since
CFLAGS are already exported...
Quoted 5 lines
Quoted 1 line
So how do we solve that one too?
The automake way is to have
AM_CFLAGS,AM_CPPFLAGSwhich are build-internal (and always used). CFLAGS is then something that can be added by the builder.
The autotools option has been discussed already several times and it has always been rejected.
For example, some of the original authors just do not like autotools very much.
I am quite neutral about liking it or not, but to be honest, for this specific project and considered its size and nature, I really think at the moment autotools would only introduce unneeded complexity without any significant benefit.
Autotools are probably mandatory or strongly recommended only for GNU projects.
If and when, the project grows with a significant number of configurable build options (unlikely, as options are usually runtime ones), then it is probably possible to re-evaluate the situation, I suppose.
Or, at least, this is my personal opinion about it. Other people, in particular the maintainers, might have different opinions.
If you want to propose the minimal configure script that you wrote, my personal opinion is that it might tidy up the build logic a little bit so that it can be better managed over time and it might also turn out to be handy to someone someday...
But I think you should submit it as a patch for revision by the maintainers and other users with all the lower levels Makefiles modified to source the file produced by the script (i.e. as a working solution).
Regards,
Guido
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 1 line · Guido Trentalancia
The autotools option has been discussed already several times and it has always been rejected.
You must not have even bothered to read the link or understand what I was saying. I'm not saying "switch to autotools!". Rather, implementing a subset of the API surface they expose.
I've actually done this for various other components between GNOME and Linux.
Quoted 4 lines
If you want to propose the minimal configure script that you wrote, my personal opinion is that it might tidy up the build logic a little bit so that it can be better managed over time and it might also turn out to be handy to someone someday...
What I was actually saying is that your patch should explicitly separate BUILD_INTERNAL_CFLAGS from CFLAGS. Automake calls the former AM_CFLAGS, but you can call it whatever you want in your Makefile.
The point is to leave CFLAGS as a meta-build (rpm/dpkg/yocto) customization tool.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines · Colin Walters
What I was actually saying is that your patch should explicitly separate
BUILD_INTERNAL_CFLAGSfrom CFLAGS. Automake calls the formerAM_CFLAGS, but you can call it whatever you want in yourMakefile.
http://marc.info/?l=selinux&m=105830780118085&w=2
9 years later, discussing the CFLAGS handling again =)
Some things change (I now get binaries in .rpm form instead of .debs, libselinux has migrated from cvs to svn to git), some things stay the same...
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.