Bug#705068: Please provide dh-make library for non-perl packaging helpers

2022-06-12 Thread Damyan Ivanov
Control: tag -1 help

Almost 10 years later, I think it is obvious the dh-make-perl authors 
(me included) aren't very keen on separating the parts that are 
specific to the Debian Perl Group and providing a more universal 
library that can be used by others.

-=| Thomas Koch, 08.05.2013 19:49:19 +0200 |=-
> Some clarifications:
> 
> There is for example a lot of logic in the package 
> DhMakePerl::Command::Packaging that I'd like to reuse for java packaging. For 
> that I'd need a reliable API and some logic would need to extracted from 
> larger functions into separate functions:
> 
> * get_developer(), get_wnpp() are fine for reuse
> * fill_maintainer() has hardcoded reference to perl team
> * set_package_name() contains logic to fall back to create a perl library 
> package name
> * extract_desc() contains useful logic to format the long package description
> * ...
> 
> I think it's fine to keep all this logic in the dh-make-perl package. It 
> would 
> just be helpful to have a clear distinction between reusable code 
> that could be used for languages other than perl and code specific 
> for packaging perl.

Right. These are all good ideas. They "just" need someone to implement 
them. We won't, it seems, so I am tagging the bugreport with 'help'.

If I was going to do it, I'd try to split all DPG-specific parts into 
a ::Packaging::DPG or a similar package, sublcassing ::Packaging, and 
change dh-make-perl to use that.

Then another tool, say dh-make-java, would need to provide 
::Packaging::Java, subclassing ::Packaging with Java-specific 
functions.

Perhaps there are some perl-specific things outside ::Packaging too.

The whole thing involves identifying domain specific parts, some 
shuffling around and a lot of testing. I hope people who need this 
functionality would be able to spend the time to try it.


-- Damyan



Bug#705068: Please provide dh-make library for non-perl packaging helpers

2013-05-08 Thread Thomas Koch
Some clarifications:

There is for example a lot of logic in the package 
DhMakePerl::Command::Packaging that I'd like to reuse for java packaging. For 
that I'd need a reliable API and some logic would need to extracted from 
larger functions into separate functions:

* get_developer(), get_wnpp() are fine for reuse
* fill_maintainer() has hardcoded reference to perl team
* set_package_name() contains logic to fall back to create a perl library 
package name
* extract_desc() contains useful logic to format the long package description
* ...

I think it's fine to keep all this logic in the dh-make-perl package. It would 
just be helpful to have a clear distinction between reusable code that could 
be used for languages other than perl and code specific for packaging perl.

I'm just starting to learn perl, so it'll take some time until I can help with 
this.

Regards,

Thomas Koch, http://www.koch.ro


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#705068: Please provide dh-make library for non-perl packaging helpers

2013-04-12 Thread Dominique Dumont
On Tuesday 09 April 2013 19:01:20 Thomas Koch wrote:
 I'm working on a packaging helper tool in the Debian-Java team. I'm looking
 to reuse some modules from dh-make-perl. It's possible to depend on the
 dh-make-perl package. But it might encourage more adoption by other teams
 if the perl independent logic would be separated in a library of its own.
 
 Currently I'm aware of the following packaging helpers:
 
 jh_makepkg, maven-debian-helper, dh-make, dh-make-perl, dh-make-php,
 dh-make-drupal, gem2deb, python-stdeb, haskell-devscripts, dh-lua

Depending on what you're looking for, you may also be interested in libconfig-
model-dpkg-perl. (used by 'cme check dpkg'). You will get a dpkg lib which is 
independant of perl. This lib can read, check, modify and write most files in 
debian/ . 

You could use this in a program that would:
- parse info from java stuff 
- adapt it and load it in libconfig-model-dpkg-perl lib.

Then checking the info and writing package files would be handled libconfig-
model-dpkg-perl. 

Hope this helps

-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#705068: Please provide dh-make library for non-perl packaging helpers

2013-04-11 Thread David Bremner
Thomas Koch tho...@koch.ro writes:


 Hi,

 I'm working on a packaging helper tool in the Debian-Java team. I'm looking to
 reuse some modules from dh-make-perl. It's possible to depend on the
 dh-make-perl package. But it might encourage more adoption by other teams if
 the perl independent logic would be separated in a library of its own.


Hi Thomas;

I'm not sure what precisely you're proposing (I'm also not one of the
team members working on dh-make-perl, so don't get too excited ;) ).

Are you suggesting splitting dh-make-perl into two packages? It seems
like one of them would be just a script, and a bit silly.  Or is your
request more about documenting and/or fixing library interfaces?

d


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#705068: Please provide dh-make library for non-perl packaging helpers

2013-04-09 Thread Thomas Koch
Package: dh-make-perl
Version: 0.76-1
Severity: wishlist

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi,

I'm working on a packaging helper tool in the Debian-Java team. I'm looking to
reuse some modules from dh-make-perl. It's possible to depend on the
dh-make-perl package. But it might encourage more adoption by other teams if
the perl independent logic would be separated in a library of its own.

Currently I'm aware of the following packaging helpers:

jh_makepkg, maven-debian-helper, dh-make, dh-make-perl, dh-make-php,
dh-make-drupal, gem2deb, python-stdeb, haskell-devscripts, dh-lua

Regards, Thomas Koch

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJRZElZAAoJEAf8SJEEK6Za+F8P/iccfcpgCuO8TtNBLvuKAFpZ
2vIKNNE0dPeJLMp9j9jF+8x4n97jvk9hP/fwbdfI0Jj5qSTDzOCawOKchGCUBG0k
lCZvkXVsDa/e/xYz3gPfBCSQ3op2wokWTuhjxtBrFG9U6DV/FMaSaiF7j3y15LMT
nbu2OFQs8RP0Su50Rqj6cqcTJMb0aT5bXyDN1xciJk4yaYAp6ViVN5F5pEJSXCjN
E3siKcgmCDJphlA61J+YjjlEazwtLiDQQpBrmorgpKSFy2zKBD4TgOKwmaV+G5l5
JXrR57HsNnTyvzgewc0uuTcCJdZvlUcTyLUM1UtDXvVZuKvqN6GTPS9j63SkiTgP
nvwAa0JwvJDR5ctzIuRS0qF/plF4Eg5Cc88HuAdIBId5Q27tcurLSQ6PakGfsLvA
GXcucEsr60HzGGeaJeZuSmKkv51FtmMbewj+eKQlLI1F48yj4b1MUaZ8vNuS8zB7
qhOo36CUCx8l60mPH9a91bdmvPpWt+67lRmQOxzeMZzRblDjtz1A1DJ+L3+vlmHv
ku+tt5nIRYAqrdkMS9ItGX7TbMrYPBEk9SJBNR8VrV12cyy72xv4WvYgakpFF/8k
pgL3RbX6j48Lq6D2Fo4q0UdjxCF3pxzTY2ThIjyA+ucaSv3M3a87Ds7t5oaUnh+s
o66aXroJmSuRNg9xDLIo
=bou6
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org