[opensuse-packaging] Need help with python module

Tuesday 15 February 2011 Hello. I have problem building python-ICU. It built successfully in openSUSE 11.3 and failed in Factory. https://build.opensuse.org/package/show?package=python-ICU&project=home%3ALa... I see a lot of errors from /usr/include/unicode/calendar.h. Isn't there anything wrong in libicu-devel-4.4.2? Or I missing something? Thanks. -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

On Tue, 15 Feb 2011 14:40:10 +0300 Kyrill Detinov <lazy.kent@opensuse.org> wrote:
Tuesday 15 February 2011
Hello.
I have problem building python-ICU. It built successfully in openSUSE 11.3 and failed in Factory. https://build.opensuse.org/package/show?package=python-ICU&project=home%3ALa...
I see a lot of errors from /usr/include/unicode/calendar.h. Isn't there anything wrong in libicu-devel-4.4.2? Or I missing something?
Thanks.
Hi But there are errors in the build logs for 11.x, I'm guessing Factory is more strict ;) Plus it's 2.7 on Factory... I only see support for Python 2.5 here http://svn.osafoundation.org/pyicu/trunk/CHANGES Have you tried version 1.1? -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.27-0.2-default up 4 days 10:26, 2 users, load average: 0.03, 0.10, 0.08 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.36 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Tuesday 15 February 2011 On Tue, 15 Feb 2011 08:44:35 -0600 Malcolm wrote:
But there are errors in the build logs for 11.x, I'm guessing Factory is more strict ;)
Errors are different. In 11.x no errors or warnings regarding /usr/include/unicode/calendar.h.
Plus it's 2.7 on Factory...
I only see support for Python 2.5 here http://svn.osafoundation.org/pyicu/trunk/CHANGES
We have 2.6 in 11.3. No problem with it.
Have you tried version 1.1?
Thanks for info. Tried now. The same error. And I tried version 0.9 that was successfully built before. http://download.opensuse.org/repositories/home:/Lazy_Kent/openSUSE_Factory/x... Now it fails too. Something goes wrong after September 2010. -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

On Tue, 15 Feb 2011 18:42:58 +0300 Kyrill Detinov <lazy.kent@opensuse.org> wrote:
Tuesday 15 February 2011
On Tue, 15 Feb 2011 08:44:35 -0600 Malcolm wrote:
But there are errors in the build logs for 11.x, I'm guessing Factory is more strict ;)
Errors are different. In 11.x no errors or warnings regarding /usr/include/unicode/calendar.h.
Plus it's 2.7 on Factory...
I only see support for Python 2.5 here http://svn.osafoundation.org/pyicu/trunk/CHANGES
We have 2.6 in 11.3. No problem with it.
Have you tried version 1.1?
Thanks for info. Tried now. The same error. And I tried version 0.9 that was successfully built before. http://download.opensuse.org/repositories/home:/Lazy_Kent/openSUSE_Factory/x... Now it fails too. Something goes wrong after September 2010.
Hi IMHO warnings are non-fatal errors that need to be looked at.... ;) I think there are some issues with python somewhere as I get problems (and others) with some applications. See the devel mailing list; http://lists.opensuse.org/opensuse-factory/2011-02/msg00513.html -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.27-0.2-default up 4 days 11:37, 2 users, load average: 0.00, 0.03, 0.06 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.36 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Thursday 17 February 2011 On Tue, 15 Feb 2011 14:40:10 +0300 Kyrill Detinov wrote:
I see a lot of errors from /usr/include/unicode/calendar.h. Isn't there anything wrong in libicu-devel-4.4.2?
This isn't libicu error. Tested build against libicu-4.2 with the same result. -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

* Kyrill Detinov (lazy.kent@opensuse.org) [20110215 12:48]:
I see a lot of errors from /usr/include/unicode/calendar.h. Isn't there anything wrong in libicu-devel-4.4.2? Or I missing something?
Something is wrong indeed, the question is where. If you add -save-temps to the compiler flags you will see: enum EDateFields { ERA, YEAR, MONTH, WEEK_OF_YEAR, WEEK_OF_MONTH, "Sep 03 2010", /* Should be DATE */ So what was supposed to be the name of an enum value gets expanded to a date string and it's pyconfig.h from python2.7 that defines DATE as a string. Undefining DATE in common.h before the inclusion of calendar.h fixes this. There was also another bug in _icu.cpp that I fixed also. With these two patches python-ICU builds for factory. I'v created a SR for this. HTH Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

On Thu, 17 Feb 2011, Philipp Thomas wrote:
* Kyrill Detinov (lazy.kent@opensuse.org) [20110215 12:48]:
I see a lot of errors from /usr/include/unicode/calendar.h. Isn't there anything wrong in libicu-devel-4.4.2? Or I missing something?
Something is wrong indeed, the question is where. If you add -save-temps to the compiler flags you will see:
enum EDateFields {
ERA, YEAR, MONTH, WEEK_OF_YEAR, WEEK_OF_MONTH, "Sep 03 2010", /* Should be DATE */
So what was supposed to be the name of an enum value gets expanded to a date string and it's pyconfig.h from python2.7 that defines DATE as a string. Undefining DATE in common.h before the inclusion of calendar.h fixes this.
There was also another bug in _icu.cpp that I fixed also. With these two patches python-ICU builds for factory. I'v created a SR for this.
Hopefully a SR to fix pyconfig.h to not define DATE (WTF!? Packages are still shipping their config.h as generated from autoconf!?) Richard. -- Richard Guenther <rguenther@suse.de> Novell / SUSE Labs SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

* Richard Guenther (rguenther@suse.de) [20110217 13:47]:
On Thu, 17 Feb 2011, Philipp Thomas wrote:
Hopefully a SR to fix pyconfig.h to not define DATE (WTF!? Packages are still shipping their config.h as generated from autoconf!?)
My SR is for python-ICU to make it build again. I'll leave fixing pyconfig.h to Jan, our Python maintainer. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

* Richard Guenther (rguenther@suse.de) [20110217 13:48]:
(WTF!? Packages are still shipping their config.h as generated from autoconf!?)
Yep, python does so. So every code that includews Python.h will get things like _POSIX_C_SOURCE, _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED defined. But it's our spec file that adds defines for COMPILER, DATE and TIME to pyconfig.h :-( SR that fixes this for python-base is on it's way. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Thursday 17 February 2011 On Thu, 17 Feb 2011 13:24:03 +0100 Philipp Thomas wrote:
There was also another bug in _icu.cpp that I fixed also. With these two patches python-ICU builds for factory. I'v created a SR for this.
Thank you. I will forward patches to upstream. -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

* Kyrill Detinov (lazy.kent@opensuse.org) [20110217 16:47]:
Thank you. I will forward patches to upstream.
Maybe the patch that fixes the quoting in _icu.cpp, but the DATE issue has to be fixed in python and I've submitted a SR for that. If that is accepted, you can remove the patch from python-ICU. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

Thursday 17 February 2011 On Thu, 17 Feb 2011 17:42:35 +0100 Philipp Thomas wrote:
Thank you. I will forward patches to upstream.
Maybe the patch that fixes the quoting in _icu.cpp, but the DATE issue has to be fixed in python and I've submitted a SR for that. If that is accepted, you can remove the patch from python-ICU.
OK. I'm waiting for result. -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org

* Kyrill Detinov (lazy.kent@opensuse.org) [20110215 12:48]:
I see a lot of errors from /usr/include/unicode/calendar.h. Isn't there anything wrong in libicu-devel-4.4.2? Or I missing something?
Only the first error is real. All the other error messages are the result of the compiler getting confused because of the first error. And the error is not in libicu-devel. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Kyrill Detinov
-
Malcolm
-
Philipp Thomas
-
Richard Guenther