[Bugs] [Bug 1389740] build: python on Debian-based dists use .../lib/python2.7/ dist-packages instead of .../site-packages

bugzilla at redhat.com bugzilla at redhat.com
Mon Dec 12 07:55:03 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1389740



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: http://review.gluster.org/15752 committed in release-3.9 by Niels de
Vos (ndevos at redhat.com) 
------
commit bde04eacc42524793c025a227043d9075d18973d
Author: Kaleb S. KEITHLEY <kkeithle at redhat.com>
Date:   Fri Oct 28 08:18:27 2016 -0400

    build: python site-packages vs. dist-packages

    Unlike Fedora and RHEL/CentOS, where python has
    /usr/{lib,lib64}/python2.7/site-packages/..., Debian-based
    distributions have /usr/lib/python2.7/dist-packages/...

    On Debian our python scriptlet to determine this is broken and
    incorrectly returns .../site-packages, not .../dist-packages.
    Furthermore, the automake/autoconf/pkgconfig bits ahead of our
    own scriptlet have already determined the correct location -- all
    we need to do is use it.

    This change also slightly reworks the BUILD_PYTHON_INC scriptlet
    to bring it in line with the style/pattern of the other python
    scriptlets provided by autoconf/pkgconfig.

    (I do wonder though, why we have two sets of {C,CPP}FLAGS and
    LD_FLAGS - PYTHONDEV_CPPFLAGS and BUILD_PYTHON_INC, and
    PYTHONDEV_LDFLAGS and BUILD_PYTHON_LIB.

    They both have very similar values, but, e.g. BUILD_PYTHON_INC
    misses /usr/lib/x86_64-linux-gnu/python2.7 on Debian; even if
    that ommission doesn't seem to be hurting us.)

    Change-Id: I309a5c781a1d9aee4d7be2867223781bd2ae18fa
    BUG: 1389740
    Signed-off-by: Kaleb S. KEITHLEY <kkeithle at redhat.com>
    Reviewed-on: http://review.gluster.org/15752
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Milind Changire <mchangir at redhat.com>
    Reviewed-by: Niels de Vos <ndevos at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=FWK4DRccgA&a=cc_unsubscribe


More information about the Bugs mailing list