Path: csiph.com!goblin2!goblin.stu.neva.ru!aioe.org!bofh.it!news.nic.it!robomod From: Emmanuel Bourg Newsgroups: linux.debian.maint.java Subject: Re: libcommons-lang-java packaging? Date: Tue, 27 Oct 2015 14:10:02 +0100 Message-ID: References: X-Original-To: britter@apache.org, =?UTF-8?Q?Sergio_Fern=c3=a1ndez?= X-Mailbox-Line: From debian-java-request@lists.debian.org Tue Oct 27 13:09:09 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.577 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FOURLA=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:references:cc:to:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=TiIdoQQmxlxd67RV87DXo0AgY1DA5CKfoF+ahgYiTsY=; b=SxCZT8YQnSuFsV26PdP0a48+5BaGq116uQmdCzeIlQ53IVlV3PqIARO7IRqmrR4xCa 6Qz6akCER3NLqkjBSbyQbn5zP318Ntq9QzRkIC8BUqpQrrstXGfr+ECuD7Q/F7sTgZKT 0l00/swk1fo0ws5nH+C1PpcOGpedbYsGiYzpN2OT0x08UnLUUSfauzLyKsEg+2WkquuC hQtn5Mcl7vxJ4mi625WyywujuCY2Se3qYqmvGZik5eDV0XdJTCXmdugkGO0mAFp14ZG0 usLPZtIMcNnvpKMIrRTfA7sf2M8eZvGDH4A5IoNptEJolUEM/6D8Q5G70Ia45C3EnVgk yReA== X-Received: by 10.180.96.162 with SMTP id dt2mr28306255wib.60.1445951333689; Tue, 27 Oct 2015 06:08:53 -0700 (PDT) Sender: robomod@news.nic.it X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/18834 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/562F7764.4060203@apache.org Approved: robomod@news.nic.it Lines: 143 Organization: linux.* mail to news gateway X-Original-Cc: Commons Developers List , debian-java@lists.debian.org X-Original-Date: Tue, 27 Oct 2015 14:08:52 +0100 X-Original-Message-ID: <562F7764.4060203@apache.org> X-Original-References: <5624FCC9.6080104@apache.org> X-Original-Sender: Emmanuel Bourg Xref: csiph.com linux.debian.maint.java:8515 Le 19/10/2015 21:36, Benedikt Ritter a écrit : > One thing I'd like to work on, is taking care that all Commons Components > 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=johndoe@example.org export DEBFULLNAME="John Doe" 7. Create or import a SSH key 8. Create the file ~/.quiltrc and add: QUILT_PATCHES=debian/patches QUILT_NO_DIFF_INDEX=1 QUILT_NO_DIFF_TIMESTAMPS=1 QUILT_REFRESH_ARGS="-p ab" 9. Create the file ~/.lintianrc and add: color = always pedantic = yes display-experimental = yes display-info = yes 10. Create the file ~/.devscripts and add: DEBCHECKOUT_SOURCE=always 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=30085 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=pkg-java-maintainers%40lists.alioth.debian.org Guidelines for Packages Maintained on git.debian.org:/git/pkg-java http://wiki.debian.org/Java/JavaGit