Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Benedikt Ritter Newsgroups: linux.debian.maint.java Subject: Re: libcommons-lang-java packaging? Date: Tue, 27 Oct 2015 15:00:02 +0100 Message-ID: References: X-Original-To: Emmanuel Bourg X-Mailbox-Line: From debian-java-request@lists.debian.org Tue Oct 27 13:51:11 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-4.91 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HTML_MESSAGE=2, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 MIME-Version: 1.0 X-Received: by 10.50.111.79 with SMTP id ig15mr11679875igb.41.1445952886951; Tue, 27 Oct 2015 06:34:46 -0700 (PDT) Content-Type: multipart/alternative; boundary=089e01294c8c3058db052316240f X-Mailing-List: archive/latest/18835 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAB917RJ3e+_ZqrDm2pqMJvgap221f2TZUMF_S-NzGdbS+6_-nA@mail.gmail.com Approved: robomod@news.nic.it Lines: 357 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Commons Developers List , debian-java@lists.debian.org X-Original-Date: Tue, 27 Oct 2015 14:34:46 +0100 X-Original-Message-ID: X-Original-References: <5624FCC9.6080104@apache.org> <562F7764.4060203@apache.org> Xref: csiph.com linux.debian.maint.java:8516 --089e01294c8c3058db052316240f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Emmanuel, thank you for the comprehensive how-to on how to get involved. I'll have a look as soon as possible. Benedikt 2015-10-27 14:08 GMT+01:00 Emmanuel Bourg : > Le 19/10/2015 21:36, Benedikt Ritter a =C3=A9crit : > > > One thing I'd like to work on, is taking care that all Commons Componen= ts > > can be build with Maven at the Debian project. So some pointers on how > that > > works would be really appreciated. > > Benedikt, Sergio, > > Thank you very much for offering your help. I've compiled a quick start > guide to work on the Debian packages. Let me know if you have any > question. You can also get some help on IRC (#debian-java on OFTC). > > For switching to Maven I recommend using the commons-math3 package as a > reference (you can find more examples with "build-rdeps > maven-debian-helper"). > > Emmanuel Bourg > > -------- > > Part I - Install your development environment > > 1. Download the minimal ISO (netinst) for installing Debian: > > http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/ > > 2. Install it (on a spare box, or in a virtual machine) > > 3. Upgrade to the testing distribution > > Edit /etc/apt/sources.list and replace stable with testing > Run: > apt-get update > apt-get dist-upgrade > > 4. Upgrade to the unstable distribution (same procedure) > > 5. Install the development tools: > > apt-get install build-essential svn-buildpackage git-buildpackage > quilt default-jdk gnupg-agent topgit > > 6. Edit ~/.profile and add your name and your email: > > export MAIL=3Djohndoe@example.org > export DEBFULLNAME=3D"John Doe" > > 7. Create or import a SSH key > > 8. Create the file ~/.quiltrc and add: > > QUILT_PATCHES=3Ddebian/patches > QUILT_NO_DIFF_INDEX=3D1 > QUILT_NO_DIFF_TIMESTAMPS=3D1 > QUILT_REFRESH_ARGS=3D"-p ab" > > 9. Create the file ~/.lintianrc and add: > > color =3D always > pedantic =3D yes > display-experimental =3D yes > display-info =3D yes > > 10. Create the file ~/.devscripts and add: > > DEBCHECKOUT_SOURCE=3Dalways > > 11. Create an account on http://alioth.debian.org, and upload your SSH > public key there. > > 12. Join the Java Team on alioth: > https://alioth.debian.org/project/request.php?group_id=3D30085 > > > > Part II - Update a package > > 1. Checkout the package: > > debcheckout --auth > > 2. Install the build dependencies > > sudo apt-get build-deps > > 3. Modify the package > > 4. Update the debian/changelog file with: > > dch --team > > 5. Rebuild the package: > > debuild > > 6. Commit your changes (with svn commit or git commit, git push), one > commit per modification preferably, instead of a one big commit. > > 7. When the package is ready, notify the debian-java list about the > changes you made. A Debian Developer will review them and upload the > package. > > 8. Celebrate your first package update! :) > > > > Tips and tricks > > - Finding a package containing a specific file: > > apt-file find > > - Finding a package containing a Maven artifact: > > apt-file find | grep pom > > - Inspecting the content of a .deb file: > > dpkg -c foo.deb > > - Inspecting the metadata of a .deb file: > > dpkg -I foo.deb > > - Displaying the reverse dependencies of a package: > > build-rdeps > apt-cache showpkg > > > Ressources > > Quilt for Debian Maintainers > http://pkg-perl.alioth.debian.org/howto/quilt.html > > Using Quilt > http://wiki.debian.org/UsingQuilt > > Maintainer Dashboard (pkg-java) > > http://udd.debian.org/dmd.cgi?email1=3Dpkg-java-maintainers%40lists.aliot= h.debian.org > > Guidelines for Packages Maintained on git.debian.org:/git/pkg-java > http://wiki.debian.org/Java/JavaGit > > > --=20 http://people.apache.org/~britter/ http://www.systemoutprintln.de/ http://twitter.com/BenediktRitter http://github.com/britter --089e01294c8c3058db052316240f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello Emmanuel,

thank you for the compr= ehensive how-to on how to get involved. I'll have a look as soon as pos= sible.

Benedikt

2015-10-27 14:08 GMT+01:00 Emmanuel Bour= g <ebourg@apache.org>:
Le 19/10/2015 21:36, Benedikt Ritter a =C3=A9crit :

> One thing I'd like to work on, is taking care that all Commons Com= ponents
> can be build with Maven at the Debian project. So some pointers on how= that
> works would be really appreciated.

Benedikt, Sergio,

Thank you very much for offering your help. I've compiled a quick start=
guide to work on the Debian packages. Let me know if you have any
question. You can also get some help on IRC (#debian-java on OFTC).

For switching to Maven I recommend using the commons-math3 package as a
reference (you can find more examples with "build-rdeps
maven-debian-helper").

Emmanuel Bourg

--------

Part I - Install your development environment

1. Download the minimal ISO (netinst) for installing Debian:

=C2=A0 =C2=A0 http://cdimage.debian.org/deb= ian-cd/current/amd64/iso-cd/

2. Install it (on a spare box, or in a virtual machine)

3. Upgrade to the testing distribution

=C2=A0 =C2=A0Edit /etc/apt/sources.list and replace stable with testing
=C2=A0 =C2=A0Run:
=C2=A0 =C2=A0 =C2=A0 =C2=A0apt-get update
=C2=A0 =C2=A0 =C2=A0 =C2=A0apt-get dist-upgrade

4. Upgrade to the unstable distribution (same procedure)

5. Install the development tools:

=C2=A0 =C2=A0 apt-get install build-essential svn-buildpackage git-buildpac= kage
quilt default-jdk gnupg-agent topgit

6. Edit ~/.profile and add your name and your email:

=C2=A0 =C2=A0 export MAIL=3Djohndoe@= example.org
=C2=A0 =C2=A0 export DEBFULLNAME=3D"John Doe"

7. Create or import a SSH key

8. Create the file ~/.quiltrc and add:

=C2=A0 =C2=A0 QUILT_PATCHES=3Ddebian/patches
=C2=A0 =C2=A0 QUILT_NO_DIFF_INDEX=3D1
=C2=A0 =C2=A0 QUILT_NO_DIFF_TIMESTAMPS=3D1
=C2=A0 =C2=A0 QUILT_REFRESH_ARGS=3D"-p ab"

9. Create the file ~/.lintianrc and add:

=C2=A0 =C2=A0 color =3D always
=C2=A0 =C2=A0 pedantic =3D yes
=C2=A0 =C2=A0 display-experimental =3D yes
=C2=A0 =C2=A0 display-info =3D yes

10. Create the file ~/.devscripts and add:

=C2=A0 =C2=A0 DEBCHECKOUT_SOURCE=3Dalways

11. Create an account on http://alioth.debian.org, and upload your SSH public key there.

12. Join the Java Team on alioth:
https://alioth.debian.org/project/requ= est.php?group_id=3D30085



Part II - Update a package

1. Checkout the package:

=C2=A0 =C2=A0debcheckout --auth <packagename>

2. Install the build dependencies

=C2=A0 =C2=A0sudo apt-get build-deps <packagename>

3. Modify the package

4. Update the debian/changelog file with:

=C2=A0 =C2=A0 dch --team

5. Rebuild the package:

=C2=A0 =C2=A0 debuild

6. Commit your changes (with svn commit or git commit, git push), one
commit per modification preferably, instead of a one big commit.

7. When the package is ready, notify the debian-java list about the
changes you made. A Debian Developer will review them and upload the
package.

8. Celebrate your first package update! :)



Tips and tricks

- Finding a package containing a specific file:

=C2=A0 =C2=A0 apt-file find <filename>

- Finding a package containing a Maven artifact:

=C2=A0 =C2=A0 apt-file find <artifactId> | grep pom

- Inspecting the content of a .deb file:

=C2=A0 =C2=A0 dpkg -c foo.deb

- Inspecting the metadata of a .deb file:

=C2=A0 =C2=A0 dpkg -I foo.deb

- Displaying the reverse dependencies of a package:

=C2=A0 =C2=A0build-rdeps <package>
=C2=A0 =C2=A0apt-cache showpkg <package>


Ressources

=C2=A0Quilt for Debian Maintainers
=C2=A0http://pkg-perl.alioth.debian.org/howto/quil= t.html

=C2=A0Using Quilt
=C2=A0http://wiki.debian.org/UsingQuilt

=C2=A0Maintainer Dashboard (pkg-java)
=C2=A0http://ud= d.debian.org/dmd.cgi?email1=3Dpkg-java-maintainers%40lists.alioth.debian.or= g

=C2=A0Guidelines for Packages Maintained on git.debian.org:/git/pkg-java =C2=A0http://wiki.debian.org/Java/JavaGit





--
--089e01294c8c3058db052316240f--