[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems to package a Java-based application and uploading the resulting deb package to mentors

Hi Emmanuel again.

Thanks to your suggestions, I could upload the package to mentors successfully.

- I created the watch file and now, using uscan as you suggested me, orig.tar.gz file is built without any problem.

- I changed png icon to svg as you suggested too.

- I used only debuild for building the package and all the files needed where generated without any problem.

- Now, using dput there wasn't any problem and it uploaded the package to mentors successfully.

I have changed the flag "Needs a sponsor" to Yes in order to request a sponsor for my package.

Thank you again for your help :)

Best regards,


2017-06-29 9:23 GMT+02:00 Emmanuel Bourg <ebourg@apache.org>:
Hi Eloy,

Le 28/06/2017 à 21:34, Eloy García (PC Actual) a écrit :

> Those are the steps I have followed so far:
> 01.- I installed Debian and switched to Sid
> 02.- I cloned the master branch from the upstream repo in Bitbucket: git
> clone https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader.git
> <https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader.git>

Don't forget to also checkout the latest release tag.

> 03.- I installed manually all the dependencies needed from Debian
> repository (sudo apt install liblog4j1.2-java libslf4j-java
> libcommons-io-java libjsoup-java libjna-java)


> 04.- I installed all the tools needed for building the package (sudo apt
> install git build-essential devscripts debhelper javahelper
> maven-debian-helper apt-file)


> 05.- I executed mh_make (I have used maven debian helper for creating
> the initial structure instead of dh_make)


> 06.- I modified rules and control files. You can see the definitive
> files if you go to the code repository and navigate to debian folder
> (https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader/src
> <https://bitbucket.org/eloy_garcia_pca/wallpaperdownloader/src>)

Looks good. You could add the debian/watch file to track the new
releases, something like this:

  opts="mode=git,repack,compression=xz" \

> 07.- I created some new files for the packaging process:
> wallpaperdownloader.install, wallpaperdownloader.manifest,
> wallpaperdownloader.manpages

Ok. You may want to add a SVG icon if you have one.

> 08.- I created the Debian package using dpkg-buildpackage -b -rfakeroot
> -us -uc from the root directory of the wallpaperdownloader application.
> WARNING: ONLY three files were generated in this process:
> wallpaperdownloader_2.7-1_all.deb,
> wallpaperdownloader_2.7-1_amd64.buildinfo,
> wallpaperdownloader_2.7-1_amd64.changes. No orig.tar.gz, no .dsc files
> were automatically generated.

Assuming you have the watch file above, you can generate the upstream
tarball with:

  uscan --download-version 2.7 --rename

And for building the package simply use:


> 09.- I checked the package with lintian. No warnings, no errors (I
> removed all of them one by one before).


> 10.- I installed the generated package and it installs properly.


> 11.- I opened a bug (ITP) against WNPP:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863572
> <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863572>


> 12.- I opened a bug (RFS) against sponsorship-requests
> <https://bugs.debian.org/cgi-bin/pkgreport.cgi?package=sponsorship-requests>:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864174
> <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864174>> 13.- Then, I realized that I needed to upload the package to
> https://mentors.debian.net/ in order to look for a person to sponsor my
> package so this is what I did:

Going through a RFS and mentors.debian.net isn't strictly required, you
can just ask on this list and we'll upload it for you.

Emmanuel Bourg

Eloy García Almadén

Reply to: