kasramp / UbuntuIndicatorWeather

Simple weather indicator for Ubuntu unity and Gnome 3
https://simpleweatherindicator.madadipouya.com/
GNU General Public License v3.0
89 stars 12 forks source link

Create a PPA for easy installation and update #9

Closed khurshid-alam closed 8 years ago

khurshid-alam commented 8 years ago

PPA for easy installation and update.

Thanks

Kycko commented 8 years ago

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

kasramp commented 8 years ago

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

Kycko commented 8 years ago

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

Sim4n6 commented 8 years ago

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

kasramp commented 8 years ago

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 8 years ago

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

kasramp commented 8 years ago

@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 8 years ago

@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.

khurshid-alam commented 8 years ago

@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.

khurshid-alam commented 8 years ago

Nah, it won't work as you already used gpg signature on commit messages (15293c9b0b924129bbdb42b50ce0a08c7e3803fb) . 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.

khurshid-alam commented 8 years ago

@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 8 years ago

@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

kasramp commented 8 years ago

@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 8 years ago

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

Kycko commented 8 years ago

Only one day after PPA creating

kasramp commented 8 years ago

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