Debian Bug report logs -
#592714
creoleparser: FTBFS without Python 2.5: lib directory in python and in debian/rules does not match
Reported by: Alfonso Cepeda Caballos <cepeda@gmail.com>
Date: Thu, 12 Aug 2010 09:03:02 UTC
Severity: important
Tags: patch
Found in version 0.7.2-3
Fixed in version 0.7.3-1
Done: Jakub Wilk <jwilk@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#592714; Package creoleparser.
(Thu, 12 Aug 2010 09:03:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Alfonso Cepeda Caballos <cepeda@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>.
(Thu, 12 Aug 2010 09:03:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: creoleparser
Version: 0.7.2-3
Severity: important
Tags: patch
Justification: fails to build from source
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu maverick ubuntu-patch
In debian/rules line:
PYTHONPATH=$(CURDIR)/build/lib $$py $(CURDIR)/build/lib/creoleparser/__init__.py;
assumes that the build is in build/lib directory, but
distutils.core.setup builds in build/lib-$PLAT directory that prevents
the build.
*** /tmp/tmpgBVHk7
In Ubuntu, we've applied the attached patch to achieve the following:
* [FTBFS] debian/rules: changed build dir from lib-$PLAT to lib
(LP: #616540)
We thought you might be interested in doing the same.
[tmpryJU7t (text/x-diff, attachment)]
Changed Bug title to 'creoleparser: FTBFS without Python 2.5: lib directory in python and in debian/rules does not match' from '[FTBFS]: lib directory in python and in debian/rules does not match'
Request was from Jakub Wilk <jwilk@debian.org>
to control@bugs.debian.org.
(Thu, 12 Aug 2010 10:00:07 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#592714; Package creoleparser.
(Mon, 16 Aug 2010 14:24:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Piotr Ożarowski <piotr@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>.
(Mon, 16 Aug 2010 14:24:03 GMT) (full text, mbox, link).
Message #12 received at 592714@bugs.debian.org (full text, mbox, reply):
[Alfonso Cepeda Caballos, 2010-08-12]
> for py in $(PYVERS); do \
> - $$py setup.py build; \
> + $$py setup.py build --build-lib=build/lib; \
> done
I don't think it's the right fix. You will overwrite previously
generated files this way (it's arch:all package so if .py files are
equal, it will not break the module).
--
Piotr Ożarowski Debian GNU/Linux Developer
www.ozarowski.pl www.griffith.cc www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#592714; Package creoleparser.
(Mon, 16 Aug 2010 15:45:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Alfonso Cepeda Caballos <cepeda@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>.
(Mon, 16 Aug 2010 15:45:05 GMT) (full text, mbox, link).
Message #17 received at 592714@bugs.debian.org (full text, mbox, reply):
First of all, can you check that the package does not build in debian?
In Ubuntu it doesn't:
http://launchpadlibrarian.net/50119957/buildlog_ubuntu-maverick-i386.creoleparser_0.7.2-3_FAILEDTOBUILD.txt.gz
and I think that provided that testing uses the same python package,
it won't build, but I can be wrong, and right now I cannot download a
debian pbuilder image to test. I mean, maybe this is just an ubuntu
issue, but I think it isn't.
About the patch, I think there is no previously generated files, and
as far as it is arch:all, the lib should be build/lib and not
build/lib-$ARCH.
Anyway the current build outputs:
creating build
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/creoleparser
copying creoleparser/core.py -> build/lib.linux-i686-2.6/creoleparser
copying creoleparser/dialects.py -> build/lib.linux-i686-2.6/creoleparser
copying creoleparser/__init__.py -> build/lib.linux-i686-2.6/creoleparser
copying creoleparser/elements.py -> build/lib.linux-i686-2.6/creoleparser
as you can see, python setup function does not create build/lib, so
there should not be any overwriting.
If you think it is better to maintain the build/lib.$ARCH structure,
then, in debian/rules:
PYTHONPATH=$(CURDIR)/build/lib $$py
$(CURDIR)/build/lib/creoleparser/__init__.py; \
should be changed to $(CURDIR)/build/lib.$PLAT where $PLAT is the
output of distutils.util.get_platform(), but I'd rather the
--build-lib=build/lib solution.
I have tested that package build with the patch is equal to
python-creoleparser_0.7.2-3_all.deb
Anyway I do not use python very much, so I can be wrong.
On 16 August 2010 16:21, Piotr Ożarowski <piotr@debian.org> wrote:
> I don't think it's the right fix. You will overwrite previously
> generated files this way (it's arch:all package so if .py files are
> equal, it will not break the module).
--
Proudly working on an Ubuntu lucid 10.04
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>:
Bug#592714; Package creoleparser.
(Sat, 18 Sep 2010 09:12:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Fabrice Coutadeur <fabricesp@ubuntu.com>:
Extra info received and forwarded to list. Copy sent to Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>.
(Sat, 18 Sep 2010 09:12:05 GMT) (full text, mbox, link).
Message #22 received at 592714@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: creoleparser
Version: 0.7.2-3
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu maverick ubuntu-patch
Hi,
I thinks this patch is cleaner, as it just move the test after the installation, to have a predictable fix path. Is it ok?
Thanks,
Fabrice
*** /tmp/tmpyIeasc
-- System Information:
Debian Release: squeeze/sid
APT prefers lucid-updates
APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid-proposed'), (500, 'lucid')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-25-generic (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
[tmpy_KByH (text/x-diff, attachment)]
Reply sent
to Jakub Wilk <jwilk@debian.org>:
You have taken responsibility.
(Fri, 01 Apr 2011 11:42:32 GMT) (full text, mbox, link).
Notification sent
to Alfonso Cepeda Caballos <cepeda@gmail.com>:
Bug acknowledged by developer.
(Fri, 01 Apr 2011 11:42:38 GMT) (full text, mbox, link).
Message #27 received at 592714-done@bugs.debian.org (full text, mbox, reply):
Version: 0.7.3-1
* Fabrice Coutadeur <fabricesp@ubuntu.com>, 2010-09-18, 10:38:
>I thinks this patch is cleaner, as it just move the test after the
>installation, to have a predictable fix path. Is it ok?
Fabrice's patch was applied in 0.7.3-1, closing the bug.
--
Jakub Wilk
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 30 Apr 2011 07:45:15 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jan 7 02:13:53 2018;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.