[issue3585] pkg-config support
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Martin v. Löwis mar...@v.loewis.de added the comment: Antoine: Don't use autoconf 2.63 to generate pyconfig.h.in and configure. Use 2.61 instead (until it is agreed to switch to a newer version). -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Antoine Pitrou pit...@free.fr added the comment: Antoine: Don't use autoconf 2.63 to generate pyconfig.h.in and configure. Use 2.61 instead (until it is agreed to switch to a newer version). Oops, sorry. Are there any known issues with 2.63? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Martin v. Löwis mar...@v.loewis.de added the comment: Oops, sorry. Are there any known issues with 2.63? Yes: it puts a carriage-return character into configure which completely confuses subversion. I'm puzzled how you were able to commit the generated files; subversion should have reported an error svn: File 'configure' has inconsistent newlines svn: Inconsistent line ending style See http://mail.python.org/pipermail/python-dev/2008-November/083781.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Antoine Pitrou pit...@free.fr added the comment: Yes: it puts a carriage-return character into configure which completely confuses subversion. I'm puzzled how you were able to commit the generated files; subversion should have reported an error svn: File 'configure' has inconsistent newlines svn: Inconsistent line ending style I did get that message (and got puzzled by it). I worked around it by reading the file in universal newlines mode and saving it again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Martin v. Löwis mar...@v.loewis.de added the comment: I did get that message (and got puzzled by it). I worked around it by reading the file in universal newlines mode and saving it again. I believe this has broken part of the configure script. There is an ac_cr variable that is supposed to hold a sole carriage-return character; it now holds a newline character instead. This will break the test whether the system autoconf deals with carriage-return characters correctly, which probably means that it may decide to use awk to do file substitution when it should have been using /bin/sh, or vice versa (I haven't fully understood the purpose of this test). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Antoine Pitrou pit...@free.fr added the comment: Ouch, unfortunately it seems my distribution doesn't package autoconf 2.61. Is there any risk in installing it from scratch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Martin v. Löwis mar...@v.loewis.de added the comment: Ouch, unfortunately it seems my distribution doesn't package autoconf 2.61. Is there any risk in installing it from scratch? I usually install it into a private location, such as ~/ac261. This is absolutely safe. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Antoine Pitrou pit...@free.fr added the comment: Is there any reason in versioning Misc/python.pc, instead of versioning it only on install? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Clinton Roy clinton@gmail.com added the comment: Not that I can see, or remember. Revised patch attached. Tyop fixed as well. Please note there seem to be some issues with svn head atm, pyconfig.h.in and configure would seem to be out of whack with configure.in, this patch does not include changes to those generated files. -- Added file: http://bugs.python.org/file14057/pkgconfig.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Antoine Pitrou pit...@free.fr added the comment: The patch is committed in trunk (r72898) and py3k (r72899). Thanks! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
sol simon.hen...@wiktory.org added the comment: I totally agree. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Antoine Pitrou pit...@free.fr added the comment: Patch looks good here. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
sol simon.hen...@wiktory.org added the comment: - Shouldn't this file be installed only if the pkg-config utility is present, or if the directory $(LIBDIR)/pkgconfig already exists? Technically I suppose so That would mean that, if you first install Python and afterwards pkg-config, pkg-config would not work for Python, right? I'm not sure if that would be desirable. -- nosy: +sol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Clinton Roy clinton@gmail.com added the comment: Hi Sol, It's just a data file I suppose, Python should not need a dependency on pkg-config, and neither should there be a python-pkgconfig package that just contains the python.pc file. I think the approach to just always install the python.pc file is the right one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Clinton Roy clinton@gmail.com added the comment: Oh, you meant for me to reply =) - Do all unix-like system support pkg-config? Yes. It even works on windows. - Is $(LIBDIR)/pkgconfig the only choice for installing this file? While pkg-config can be told to look in other directories for pc files (via modifying the PKGCONFIGPATH env variable) it looks in /usr/lib/pkgconfig by default, so that's where pc files should be put by default. - Shouldn't this file be installed only if the pkg-config utility is present, or if the directory $(LIBDIR)/pkgconfig already exists? Technically I suppose so, but I've not seen any package actually bother. The patches I have made available are very similar to pkg-config packages I've seen for many other packages. cheers, ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The patch looks fine to me. I have however some questions to ask to someone more used to pkgconfig: - Do all unix-like system support pkg-config? - Is $(LIBDIR)/pkgconfig the only choice for installing this file? - Shouldn't this file be installed only if the pkg-config utility is present, or if the directory $(LIBDIR)/pkgconfig already exists? -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Clinton Roy clinton@gmail.com added the comment: Is there anything I can do to move this forward at all? cheers, ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Clinton Roy [EMAIL PROTECTED] added the comment: This version sets Libs.private for static compiles. Any chance this will make it into the 2.6/3.0 release candidates ? cheers, Added file: http://bugs.python.org/file11368/pkgconfig.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
Clinton Roy [EMAIL PROTECTED] added the comment: Thanks for the comments Amaury, this patch uses ${VERSION} throughout so that it can be applied across branches. cheers, Added file: http://bugs.python.org/file11152/pkgconfig.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3585] pkg-config support
New submission from Clinton Roy [EMAIL PROTECTED]: This patch adds pkg-config support to the python build, a python.pc file is installed in the pkgconfig directory such that autoconf buildsystems can trivially link against the python library. Diff made against revision 65796 -- components: Build files: pkgconfig.diff keywords: patch messages: 71305 nosy: ClintonRoy severity: normal status: open title: pkg-config support type: feature request versions: Python 2.6 Added file: http://bugs.python.org/file11142/pkgconfig.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3585 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com