Debian Bug report logs - #534966
debhelper: please include new dh_devlibs script

Package: debhelper; Maintainer for debhelper is Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>; Source for debhelper is src:debhelper.

Reported by: Josselin Mouette <joss@debian.org>

Date: Sun, 28 Jun 2009 15:45:02 UTC

Severity: wishlist

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#534966; Package debhelper. (Sun, 28 Jun 2009 15:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Josselin Mouette <joss@debian.org>:
New Bug report received and forwarded. Copy sent to Joey Hess <joeyh@debian.org>. (Sun, 28 Jun 2009 15:45:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Josselin Mouette <joss@debian.org>
To: submit@bugs.debian.org
Subject: debhelper: please include new dh_devlibs script
Date: Sun, 28 Jun 2009 17:31:25 +0200
[Message part 1 (text/plain, inline)]
Package: debhelper
Severity: wishlist

Hi,

I’m attaching a new debhelper script named dh_devlibs. As the name says,
it is meant for development libraries.

Currently it does two things:
      * Cleanup of the dependency_libs field in .la files, to avoid
        having libtool explicitly link to all indirect dependencies.
        This will allow to remove the existing hacks to that effect.
      * Generation of a dev:Depends dependency field, based on the
        contents of pkg-config files. This will remove the need to check
        which build-dependencies also need to be -dev dependencies, and
        to keep the versions in sync.

It would be nice to include it in debhelper.

Thanks,
-- 
 .''`.      Josselin Mouette
: :' :
`. `'   “I recommend you to learn English in hope that you in
  `-     future understand things”  -- Jörg Schilling
[dh_devlibs (application/x-perl, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#534966; Package debhelper. (Wed, 01 Jul 2009 11:39:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Josselin Mouette <joss@debian.org>:
Extra info received and forwarded to list. Copy sent to Joey Hess <joeyh@debian.org>. (Wed, 01 Jul 2009 11:39:03 GMT) Full text and rfc822 format available.

Message #10 received at 534966@bugs.debian.org (full text, mbox):

From: Josselin Mouette <joss@debian.org>
To: 534966@bugs.debian.org
Subject: Re: Bug#534966: Acknowledgement (debhelper: please include new dh_devlibs script)
Date: Wed, 01 Jul 2009 13:34:59 +0200
[Message part 1 (text/plain, inline)]
As Guillem Jover noticed, I was confused about the meaning of
DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE.

Here is a new version that fixes this.

Cheers,
-- 
 .''`.      Josselin Mouette
: :' :
`. `'   “I recommend you to learn English in hope that you in
  `-     future understand things”  -- Jörg Schilling
[dh_devlibs (application/x-perl, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#534966; Package debhelper. (Sun, 05 Jul 2009 00:24:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Loïc Minier <lool@dooz.org>:
Extra info received and forwarded to list. Copy sent to Joey Hess <joeyh@debian.org>. (Sun, 05 Jul 2009 00:24:03 GMT) Full text and rfc822 format available.

Message #15 received at 534966@bugs.debian.org (full text, mbox):

From: Loïc Minier <lool@dooz.org>
To: Josselin Mouette <joss@debian.org>, 534966@bugs.debian.org
Subject: Re: Bug#534966: debhelper: please include new dh_devlibs script
Date: Sun, 5 Jul 2009 01:15:20 +0100
        Hey

On Sun, Jun 28, 2009, Josselin Mouette wrote:
> I’m attaching a new debhelper script named dh_devlibs. As the name says,
> it is meant for development libraries.

 Thanks on working on this new tool!

> Currently it does two things:

 I wonder whether it's a good idea to mix handling of *.la and *.pc;
 perhaps you should split that in two helpers or allow disabling either
 support via command-line flags so that package maintainers can opt to
 use this or that feature on this or that package.

>       * Generation of a dev:Depends dependency field, based on the
>         contents of pkg-config files. This will remove the need to check
>         which build-dependencies also need to be -dev dependencies, and
>         to keep the versions in sync.

 I read quickly through the script and wondered aboud a couple of
 things.

 * I wondered whether parsing of Build-Depends could be done in a
   common Debhelper control file parsing function, or even in dpkg-dev
 * the behavior to use either Build-Depends (Debian specified) or .pc
   versions (upstream specified) is not controllable; I wonder whether
   only one behavior should be implemented.

 My personal wish would be to use a similar system for .pc than shlibs:
 packages shipping .pc files would provide a minimum version to depend
 on and that's what we would use.  Perhaps taking the highest of this
 version and the bdep could be offered as a flag?

   Thanks!
-- 
Loïc Minier




Information forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#534966; Package debhelper. (Sun, 05 Jul 2009 08:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Josselin Mouette <joss@debian.org>:
Extra info received and forwarded to list. Copy sent to Joey Hess <joeyh@debian.org>. (Sun, 05 Jul 2009 08:00:02 GMT) Full text and rfc822 format available.

Message #20 received at 534966@bugs.debian.org (full text, mbox):

From: Josselin Mouette <joss@debian.org>
To: Loïc Minier <lool@dooz.org>
Cc: 534966@bugs.debian.org
Subject: Re: Bug#534966: debhelper: please include new dh_devlibs script
Date: Sun, 05 Jul 2009 09:57:17 +0200
[Message part 1 (text/plain, inline)]
Le dimanche 05 juillet 2009 à 01:15 +0100, Loïc Minier a écrit :
>  I wonder whether it's a good idea to mix handling of *.la and *.pc;
>  perhaps you should split that in two helpers or allow disabling either
>  support via command-line flags so that package maintainers can opt to
>  use this or that feature on this or that package.

I wondered that at the time of writing, but it’s not exceptional for a
debhelper to do several things that are only loosely related.

Since the script supports -X, you can easily ignore either of libtool
stuff or pkg-config stuff using it.

>  I read quickly through the script and wondered aboud a couple of
>  things.
> 
>  * I wondered whether parsing of Build-Depends could be done in a
>    common Debhelper control file parsing function, or even in dpkg-dev

Certainly, if it can be useful for something else. I’m not sure what the
debhelper policy is in this case.

>  * the behavior to use either Build-Depends (Debian specified) or .pc
>    versions (upstream specified) is not controllable; I wonder whether
>    only one behavior should be implemented.

It relies on the fact that versioned dependencies, when specified in
the .pc file, are correct. If they are not, why leave them at all?
The .pc should be fixed in this case.

>  My personal wish would be to use a similar system for .pc than shlibs:
>  packages shipping .pc files would provide a minimum version to depend
>  on and that's what we would use.  Perhaps taking the highest of this
>  version and the bdep could be offered as a flag?

I’m afraid we would lose some of the flexibility that build-depends
currently allow. We would end up always depending on the latest version.

Cheers,
-- 
 .''`.      Josselin Mouette
: :' :
`. `'   “I recommend you to learn English in hope that you in
  `-     future understand things”  -- Jörg Schilling
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#534966; Package debhelper. (Thu, 01 Jul 2010 07:09:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fabian Greffrath <fabian@greffrath.com>:
Extra info received and forwarded to list. Copy sent to Joey Hess <joeyh@debian.org>. (Thu, 01 Jul 2010 07:09:03 GMT) Full text and rfc822 format available.

Message #25 received at 534966@bugs.debian.org (full text, mbox):

From: Fabian Greffrath <fabian@greffrath.com>
To: 534966@bugs.debian.org
Cc: Josselin Mouette <joss@debian.org>
Subject: Re: Bug#534966: debhelper: please include new dh_devlibs script
Date: Thu, 01 Jul 2010 09:07:55 +0200
This looks *very* promising!

Is there any chance this makes it into debhelper 8?

 - Fabian




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 05:45:25 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.