ubuntu-bug: python-ldb-dev source package(aka ldb) problem

Bug #1623754 reported by Byeong-ryeol Kim
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ldb (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I use Ubuntu 16.10 beta(daily updated to the latest state).

I heard the release news of samba-4.5 from Phoronix site.

I managed to make samba-4.5 source(gzipped tar) to Ubuntu binary package by using and changing Ubuntu samba-4.4.5 source package yesterday night. Maybe it took 6~7 hours.
Because this version conatains many changes and requires latest tdb, tevent, ldb(libldb-dev, python-ldb-dev), etc, I had perform many trivial and routine tasks.

1. To compile samba-4.5.0, minimum or adequate tdb, tevent, ldb version are as follows, but python-ldb(part of ldb) source package should be modified.(debian/python-ldb-dev.install file)

               libldb-dev (>= 2:1.1.27~),
               libtalloc-dev (>= 2.1.8~),
               libtdb-dev (>= 1.3.11~),
               libtevent-dev (>= 0.9.30~),
               python-ldb (>= 2:1.1.27~),
               python-ldb-dev (>= 2:1.1.27~),
               python-talloc-dev (>= 2.1.8~),
               python-tdb (>= 1.3.11~),

2. I found strange thing in ldb(python-ldb) package. The status of 'debian/python-ldb-dev.install' file of python-ldb-dev package(part of ldb) is as follows:

$ ls -l debian/*.install
-rw-r--r-- 1 brofkims brofkims 66 2월 28 2016 debian/ldb-tools.install
-rw-r--r-- 1 brofkims brofkims 106 2월 28 2016 debian/libldb-dev.install
-rw-r--r-- 1 brofkims brofkims 44 2월 28 2016 debian/libldb1.install
-rwxr-xr-x 1 brofkims brofkims 119 8월 5 03:24 debian/python-ldb-dev.install
-rw-r--r-- 1 brofkims brofkims 46 8월 5 03:24 debian/python-ldb.install

Here, the content of debian/python-ldb-dev.install is follows:

#! /usr/bin/dh-exec
usr/include/pyldb.h ${DEB_PY2_INCDIR}
usr/lib/*/libpyldb-util.so
usr/lib/*/pkgconfig/pyldb-util.pc

If I build python-ldb-dev package(here 1.1.27) according to this format, though I could make deb package and install it, I encountered error while samba-4.5.0 due to lack of pyldb.h include file.
The variable '${DEB_PY2_INCDIR}' is not interpreted regular directory on my system, and pyldb.h could not be searched by compiler while compiling samba-4.5.
I revmoved python-ldb-dev package and modifiled content and permission of debian/python-ldb-dev.install file as follows:

usr/include/pyldb.h
usr/lib/*/libpyldb-util.so
usr/lib/*/pkgconfig/pyldb-util.pc

chmod 0644 debian/python-ldb-dev.install

3. After modifying and rebuilding python-ldb-dev package the comppile process of samba-4.5.0 proceeded flawlessly(Though I encountered unexpected problems at the stage of building deb package. I had to repeatedly modify debian/control, debian/*.install, debian/rules for many hours. In this situation 'dpkg-buildpackage -rfakeroot -nc -us -uc' was my friend.)

description: updated
summary: - ubuntu-bug: python-ldb packaging problem
+ ubuntu-bug: python-ldb-dev source package(aka ldb) problem
Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

I don't understand the problem you're reporting. Please could you provide exact steps to reproduce this bug, explain exactly what behaviour you're expecting, and what is happening instead?

You may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html.

Once done, please change the bug status back to New.

Changed in ldb (Ubuntu):
status: New → Incomplete
Revision history for this message
Matthieu Pepin (matthieupepin) wrote :

I'm running into the same issue. Can you please attach your debian/control, debian/*.install, debian/rules files. Thanks :)

Revision history for this message
Matthieu Pepin (matthieupepin) wrote :

The problem is that the generated python-ldb-dev package has the following structure in data.tar.xz:

USR
  -- (files)
${DEB_PY2_INCDIR}
  -- pyldb.h

pyldb.h should be in usr/include/python-2.7

Revision history for this message
Robie Basak (racb) wrote : Re: [Bug 1623754] Re: ubuntu-bug: python-ldb-dev source package(aka ldb) problem

On Wed, Sep 21, 2016 at 02:31:12PM -0000, Matthieu Pepin wrote:
> USR
> -- (files)
> ${DEB_PY2_INCDIR}
> -- pyldb.h
>
> pyldb.h should be in usr/include/python-2.7

What does ${DEB_PY2_INCDIR} end up being expanded to? And to understand
the importance of the bug, what's the impact to users please, apart from
developers being unable to build against the library without tweaking?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-collect-config 5.0.0.0rc2

This issue was fixed in the openstack/os-collect-config 5.0.0.0rc2 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/os-collect-config 5.0.0

This issue was fixed in the openstack/os-collect-config 5.0.0 release.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for ldb (Ubuntu) because there has been no activity for 60 days.]

Changed in ldb (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Nish Aravamudan (nacc) wrote :

Hi,

So if you were using the source pkg from X or Y to build this, you must use the corresponding rules file, which defines DEB_PY2_INCDIR to build it, of course. Afaict, this is not a bug, as the package built fine in the archives for both releases. Additionally, we've synced in Debian and that variable is no longer present.

-Nish

Changed in ldb (Ubuntu):
status: Expired → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.