kasramp/UbuntuIndicatorWeather

Create a PPA for easy installation and update

khurshid-alam opened this issue · 16 comments

PPA for easy installation and update.

Thanks

Kycko commented

kasramp, I can upload a package into my PPA if you want, or give you some links about creating your own PPA ^_^

@Kycko I would be awesome if you can provide some links on creating PPA. Thanks :-)

Kycko commented

The main document is a launcpad help pages. You will need to follow many links to finally get things done :)
I haven't find another good english guides, only ru one.

And if you want to know how correctly build .deb package with following to all Debian standarts, there is a great Debian New Maintainers' Guide

I can take care of the deb package. I launched an issue for that please assign it to me

Thanks a lot @Kycko.
In regards of deb package @OSryx, at the moment we have it (in releases) but not sure how standard it's. Need to go through the guideline and apply any adjustment if necessary.

Kycko commented

I'll make some commits in debian/ folder, especially changelog must be splitted into two parts: program changelog must be placed in /, and package changelog must be in debian/, but it must contain only changes for package, not for program

@Kycko when I try to build the package in Launchpad I get this error:
dpkg-buildpackage: source package indicator-weather dpkg-buildpackage: source version 0.7ubuntu dpkg-buildpackage: source distribution trusty dpkg-source --before-build indicator-weather-0.7ubuntu dpkg-buildpackage: host architecture i386 fakeroot debian/rules clean dh clean --with python2 dh: unable to load addon python2: Can't locate Debian/Debhelper/Sequence/python2.pm in @INC (you may need to install the Debian::Debhelper::Sequence::python2 module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at (eval 3) line 2. BEGIN failed--compilation aborted at (eval 3) line 2. make: *** [clean] Error 2 dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
Do you have any idea how to fix it? I'm literally clueless :-(

Kycko commented

@kasramp, what do you mean in build the package in Launchpad?
You must build it on your local machine, and then just send source.changes to Launchpad. Note that you must have a GPG-signature associated with your Launcpad-account, and you must build a package with debuild command, without -us -uc options. These options are creating a package without your signature, so don't use them.

@kasramp @Kycko Actually launchpad can compile source on the fly through launchpad recipes. Of course it is recommended to compile locally first so that it won't abuse launchpad build system. The initial setup is lengthy, but once done, it will compile whenever it detects any changes. The workflow is something like this:

  1. Create a project under launchpad (Ubuntu-Indicator-Weather) if it hasn't been done already.
  2. Create a team : Ubuntu-Indicator-Weather-Maintainer
  3. Use launcpad importer to import source from github on behalf of above team. Don't use special character or gpg signature on commit message. It will create a branch; ie lp:ubuntu-indicator-weather
  4. Create a PPA.
  5. Create a recipe for the source code of lp:ubuntu-indicator-weather & choose above PPA to upload
  6. That's all.

I am trying to do the same in my own ppa, just to check whether it compiles or not. I wiil reply once done.

Nah, it won't work as you already used gpg signature on commit messages (15293c9) . Launchpad import doesn't allow that. If you remove that from commit and then re-apply (basically rewriting git history), then only it can work.

As of now, manually uploading source.changes is the only way as @Kycko mentioned.

@Kycko Can you remove your two commits with Verified signature and re-apply on top of master but this time without the signature? Thanks.

Kycko commented

@khurshid-alam only Kasramp can write to this repo, so please try to use my one. It doesn't contain latest commits, but I've re-committed debian directory without signature

@Kycko @khurshid-alam thanks for all your help, the problem was due to the missing dependencies in control file. Signature and everything else has setup and finally managed to create PPA and build successfully. I've updated Readme file and put the PPA link with description.

Kycko commented

@kasramp excellent! Now we must not remember to manually update this app every time it is updated ^_^

Thank you so much for all your efforts @Kycko, without your help creating PPA wouldn't be possible.