Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: =?UTF-8?Q?Sergio_Fern=C3=A1ndez?= Newsgroups: linux.debian.maint.java Subject: Re: libcommons-lang-java packaging? Date: Tue, 27 Oct 2015 16:50:02 +0100 Message-ID: References: X-Original-To: Emmanuel Bourg X-Mailbox-Line: From debian-java-request@lists.debian.org Tue Oct 27 15:42:44 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.91 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HTML_MESSAGE=2, LDO_WHITELIST=-5, 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=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -7 X-Gm-Message-State: ALoCoQmdIw/AN64ATFZTxJpXab2CWg0pfx+CiyyXB+1fHgX+UAAYsPh3E9Pu97NLJ7/x/ZcwvPn2 X-Received: by 10.25.146.12 with SMTP id u12mr13268948lfd.50.1445960536364; Tue, 27 Oct 2015 08:42:16 -0700 (PDT) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114023d6213545052317ec8a X-Mailing-List: archive/latest/18836 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAOfJQJ2iBEmZXzSn1ZogtQA6fq=CT4rmo7TM2jPtna16x3P20g@mail.gmail.com Approved: robomod@news.nic.it Lines: 378 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Benedikt Ritter , Commons Developers List , debian-java@lists.debian.org X-Original-Date: Tue, 27 Oct 2015 16:41:36 +0100 X-Original-Message-ID: X-Original-References: <5624FCC9.6080104@apache.org> <562F7764.4060203@apache.org> Xref: csiph.com linux.debian.maint.java:8517 --001a114023d6213545052317ec8a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Emmanuel for such detailed introduction. Although not with the official policies, I have quite some experience on Debian as user (~15 years) and packaging (~2 years). In my company all the internal deployment process is fully based on Debian processes, including tools such dch, dpkg-buildpackage, jdeb, reprepro, etc. I've just submitted my request to Alioth. Assuming that Benedikt would pick commons-math3 to start, what other package do you see as target for me to be sponsored? Thanks. On Tue, Oct 27, 2015 at 2:08 PM, Emmanuel Bourg wrote: > 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 Sergio Fern=C3=A1ndez Partner Technology Manager Redlink GmbH m: +43 6602747925 e: sergio.fernandez@redlink.co w: http://redlink.co --001a114023d6213545052317ec8a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Emmanuel for such detailed introduction. Although n= ot with the official policies, I have quite some experience on Debian as us= er (~15 years) and packaging (~2 years). In my company all the internal dep= loyment process is fully based on Debian processes, including tools such dc= h,=C2=A0dpkg-buildpackage, jdeb, reprepro, etc.

I've= just submitted my request to Alioth. Assuming that Benedikt would pick com= mons-math3 to start, what other package do you see as target for me to be s= ponsored?

Thanks.



On T= ue, Oct 27, 2015 at 2:08 PM, Emmanuel Bourg <ebourg@apache.org> wrote:
Le 19/10/20= 15 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





--
Sergio Fern=C3=A1ndez
Partner Technology Manager=
Redlink GmbH
m: +43 6602747925
e:=C2=A0sergio.fernandez@= redlink.co
w:=C2=A0http://redlink.co
--001a114023d6213545052317ec8a--