Re: [ubuntu-uk] Publishing to the software centre
My second attempt to submit to the Software Centre has resulted in this extremely unhelpful feedback: This package will not build till the following sections are corrected: Now running lintian... W: cliftontestsuite source: no-section-field-for-source E: cliftontestsuite source: debian-files-list-in-source W: cliftontestsuite source: debhelper-but-no-misc-depends cliftontestsuite W: cliftontestsuite source: debhelper-compat-file-is-missing W: cliftontestsuite source: package-uses-deprecated-debhelper-compat-version 1 E: cliftontestsuite source: package-uses-debhelper-but-lacks-build-depends E: cliftontestsuite source: temporary-debhelper-file debhelper.log W: cliftontestsuite source: no-debian-copyright E: cliftontestsuite source: no-standards-version-field Finished running lintian. Seriously, do they not want people to bother doing this? Can anyone help with any of this? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On Thu, 2014-05-01 at 16:31 +0100, Gareth France wrote: My second attempt to submit to the Software Centre has resulted in this extremely unhelpful feedback: This package will not build till the following sections are corrected: Now running lintian... W: cliftontestsuite source: no-section-field-for-source E: cliftontestsuite source: debian-files-list-in-source W: cliftontestsuite source: debhelper-but-no-misc-depends cliftontestsuite W: cliftontestsuite source: debhelper-compat-file-is-missing W: cliftontestsuite source: package-uses-deprecated-debhelper-compat-version 1 E: cliftontestsuite source: package-uses-debhelper-but-lacks-build-depends E: cliftontestsuite source: temporary-debhelper-file debhelper.log W: cliftontestsuite source: no-debian-copyright E: cliftontestsuite source: no-standards-version-field Finished running lintian. Seriously, do they not want people to bother doing this? Can anyone help with any of this? They are just missing fields from the control file but all the ones marked E will prevent the package building I'd already corrected 3 errors when lintian gave me the feedback. -- You Make It, I'll Break It! I Love My Job :) http://www.canonical.com http://www.ubuntu.com signature.asc Description: This is a digitally signed message part -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 1 May 2014 16:31, Gareth France gareth.fra...@gmail.com wrote: My second attempt to submit to the Software Centre has resulted in this extremely unhelpful feedback: This package will not build till the following sections are corrected: Now running lintian... lintian is a tool to check packages for various problems. 'W' indicates a warning, and 'E' an error (bad!). I've provided links to explanations of all the errors below, though the warnings should be looked at too when those are solved. W: cliftontestsuite source: no-section-field-for-source E: cliftontestsuite source: debian-files-list-in-source http://lintian.debian.org/tags/debian-files-list-in-source.html W: cliftontestsuite source: debhelper-but-no-misc-depends cliftontestsuite W: cliftontestsuite source: debhelper-compat-file-is-missing W: cliftontestsuite source: package-uses-deprecated-debhelper-compat-version 1 E: cliftontestsuite source: package-uses-debhelper-but-lacks-build-depends http://lintian.debian.org/tags/package-uses-debhelper-but-lacks-build-depends.html E: cliftontestsuite source: temporary-debhelper-file debhelper.log http://lintian.debian.org/tags/temporary-debhelper-file.html W: cliftontestsuite source: no-debian-copyright E: cliftontestsuite source: no-standards-version-field http://lintian.debian.org/tags/no-standards-version-field.html Seriously, do they not want people to bother doing this? Can anyone help with any of this? Have you tried using dh_make? It would have taken care of almost all of this automatically. You could also upload your package somewhere, I'm sure some kind soul with the knowledge would help fix it and show you where you went wrong. Regards, Matthew -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 01/05/14 17:09, Dave Morley wrote: On Thu, 2014-05-01 at 16:31 +0100, Gareth France wrote: My second attempt to submit to the Software Centre has resulted in this extremely unhelpful feedback: This package will not build till the following sections are corrected: Now running lintian... W: cliftontestsuite source: no-section-field-for-source E: cliftontestsuite source: debian-files-list-in-source W: cliftontestsuite source: debhelper-but-no-misc-depends cliftontestsuite W: cliftontestsuite source: debhelper-compat-file-is-missing W: cliftontestsuite source: package-uses-deprecated-debhelper-compat-version 1 E: cliftontestsuite source: package-uses-debhelper-but-lacks-build-depends E: cliftontestsuite source: temporary-debhelper-file debhelper.log W: cliftontestsuite source: no-debian-copyright E: cliftontestsuite source: no-standards-version-field Finished running lintian. Seriously, do they not want people to bother doing this? Can anyone help with any of this? They are just missing fields from the control file but all the ones marked E will prevent the package building I'd already corrected 3 errors when lintian gave me the feedback. I'm working my way through the list now but this really is far more complicated than it should need to be to get a simple perl script published. The first E entry - debian-files-list-in-source is not something I create but something that is auto created during the packaging process, is that right? That's what my research seems to suggest. The worst thing about this is that I muddle my way through an incomprehensible process and submit, then have to wait for days before finding out what I did wrong. Then resubmit and wait for days again. It could literally take months to get this published at this rate! -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 01/05/14 17:12, Matthew Wild wrote: On 1 May 2014 16:31, Gareth France gareth.fra...@gmail.com wrote: My second attempt to submit to the Software Centre has resulted in this extremely unhelpful feedback: This package will not build till the following sections are corrected: Now running lintian... lintian is a tool to check packages for various problems. 'W' indicates a warning, and 'E' an error (bad!). I've provided links to explanations of all the errors below, though the warnings should be looked at too when those are solved. W: cliftontestsuite source: no-section-field-for-source E: cliftontestsuite source: debian-files-list-in-source http://lintian.debian.org/tags/debian-files-list-in-source.html W: cliftontestsuite source: debhelper-but-no-misc-depends cliftontestsuite W: cliftontestsuite source: debhelper-compat-file-is-missing W: cliftontestsuite source: package-uses-deprecated-debhelper-compat-version 1 E: cliftontestsuite source: package-uses-debhelper-but-lacks-build-depends http://lintian.debian.org/tags/package-uses-debhelper-but-lacks-build-depends.html E: cliftontestsuite source: temporary-debhelper-file debhelper.log http://lintian.debian.org/tags/temporary-debhelper-file.html W: cliftontestsuite source: no-debian-copyright E: cliftontestsuite source: no-standards-version-field http://lintian.debian.org/tags/no-standards-version-field.html Seriously, do they not want people to bother doing this? Can anyone help with any of this? Have you tried using dh_make? It would have taken care of almost all of this automatically. You could also upload your package somewhere, I'm sure some kind soul with the knowledge would help fix it and show you where you went wrong. Regards, Matthew How do I know what standards version to put? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 1 May 2014 17:21, Gareth France gareth.fra...@gmail.com wrote: How do I know what standards version to put? The latest is 3.9.5, see the bottom of https://www.debian.org/doc/debian-policy/ It is used to track which version of Debian's packaging policy was used when a package was created/modified. Regards, Matthew -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Right, my first attempt to package produced a diff.gz containing cliftontestsuite_0.1-1.diff. So I uploaded that and got this back: Hi We need the debian source package directory tar.gz’d and sent in as the package in the correct archive format as recommended in the following documents. Many thanks. So why exactly did I go through that packaging nightmare? Do I just compress the entire directory structure and send that? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 20:24, Matthew Wild wrote: On 23 April 2014 16:56, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 08:26, Alan Pope wrote: Hi Gareth, On 23 April 2014 08:14, Gareth France gareth.fra...@gmail.com wrote: I have a perl script I wish to publish but doing so seems rather akin to pulling teeth! I'm trying to package it as an executable but this doesn't seem to work. Can anyone advise me what format it needs to be in to submit it, and how I may achieve this. What's the goal? Make the perl script widely available for people (you don't know) to discover and install on their systems easily? Or is this a script something only a few techy people may be interested in? If the latter, then maybe just put the script on a pastebin, github, launchpad or other host and point people to it with simple instructions for downloading and running it. If the former then you will need to do a little work to learn how to package it. The documentation is uh.. comprehensive, but there's some simpler guides like this one:- http://www.electricmonk.nl/log/2011/09/06/creating-simple-debian-packages/ Cheers, Al. I have followed the instructions in the guide you gave me, however the guidelines for being accepted into the software centre say ' You need to provide us with the Debian source package – A Debian source package (.dsc, diff.gz, orig.tar.gzfiles), bundled in an archive file (.tar.gz, .zip, etc).' Does this mean just zip up the directories I used to create the deb file? You can build a source package with 'debuild -S -sa' inside the package directory. When built, the source package actually consists of multiple files: the .dsc, .diff.gz or .debian.tar.gz and the .orig.tar.gz. The instructions are asking you to put those files together into an archive (tar or zip), just to make it easier to handle. If in doubt, you can look at the .dsc file (it's just text) to see the file listing for the source package. Regards, Matthew .Can nobody help me with this debuild command? It just seems to throw up endless error messages. This package has a Debian revision number but there does not seem to be an appropriate original tar file or .orig directory in the parent directory; (expected one of cliftontestsuite_0.1.orig.tar.gz, cliftontestsuite_0.1.orig.tar.bz2, cliftontestsuite_0.1.orig.tar.lzma, cliftontestsuite_0.1.orig.tar.xz or Clifton Test Suite v0.1.orig) continue anyway? (y/n) y dpkg-buildpackage -rfakeroot -d -us -uc -S -sa dpkg-buildpackage: source package cliftontestsuite dpkg-buildpackage: source version 0.1-1 dpkg-buildpackage: source distribution UNRELEASED dpkg-buildpackage: source changed by Gareth gareth.fra...@cliftonts.co.uk dpkg-source --before-build Clifton Test Suite v0.1 dpkg-source: error: syntax error in Clifton Test Suite v0.1/debian/control at line 9: first block lacks a source field dpkg-buildpackage: error: dpkg-source --before-build Clifton Test Suite v0.1 gave error exit status 255 debuild: fatal error at line 1364: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Hi Gareth, On 24 April 2014 10:47, Gareth France gareth.fra...@gmail.com wrote: .Can nobody help me with this debuild command? It just seems to throw up endless error messages. Not endless, only a few. This package has a Debian revision number but there does not seem to be an appropriate original tar file or .orig directory in the parent directory; (expected one of cliftontestsuite_0.1.orig.tar.gz, cliftontestsuite_0.1.orig.tar.bz2, cliftontestsuite_0.1.orig.tar.lzma, cliftontestsuite_0.1.orig.tar.xz or Clifton Test Suite v0.1.orig) continue anyway? (y/n) y So you need an original source package and it even suggests various names for that source tarball. So you should have an for example cliftontestsuite_0.1.orig.tar.gz which contains the original upstream source. dpkg-buildpackage -rfakeroot -d -us -uc -S -sa dpkg-buildpackage: source package cliftontestsuite dpkg-buildpackage: source version 0.1-1 dpkg-buildpackage: source distribution UNRELEASED dpkg-buildpackage: source changed by Gareth gareth.fra...@cliftonts.co.uk dpkg-source --before-build Clifton Test Suite v0.1 dpkg-source: error: syntax error in Clifton Test Suite v0.1/debian/control at line 9: first block lacks a source field So here it says your debian/control file is missing a Source field. So in your case it might just be Source: cliftontestsuite. dpkg-buildpackage: error: dpkg-source --before-build Clifton Test Suite v0.1 gave error exit status 255 debuild: fatal error at line 1364: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed So it looks like just two errors here. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24 April 2014 11:22, Gareth France gareth.fra...@gmail.com wrote: I have already dealt with many, many errors. Trust me it feels endless right now! So I need to compress my source? There's the compressed tarball containing your pristine source. Then there's the directory you're working in, building your app in. You need both. As far as I can tell it expects to see the uncompressed version as well, the debian and usr directories. This all seems very bizarre. The last time I had to compile a program I wrote it was type 2 commands, never any errors and it's done. Long live quick basic! Debian packaging is (generally) not something people pick up overnight, yes. Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24 April 2014 11:24, Gareth France gareth.fra...@gmail.com wrote: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa dpkg-buildpackage: source package cliftontestsuite dpkg-buildpackage: source version 0.1-1 dpkg-buildpackage: source distribution UNRELEASED dpkg-buildpackage: source changed by Gareth gareth.fra...@cliftonts.co.uk dpkg-source --before-build Clifton Test Suite v0.1 dpkg-source: warning: unknown information field 'Package' in input data in general section of control info file dpkg-source: warning: unknown information field 'Version' in input data in general section of control info file dpkg-source: warning: unknown information field 'Architecture' in input data in general section of control info file dpkg-source: warning: unknown information field 'Essential' in input data in general section of control info file dpkg-source: warning: unknown information field 'Depends' in input data in general section of control info file dpkg-source: warning: unknown information field 'Description' in input data in general section of control info file dpkg-source: error: Clifton Test Suite v0.1/debian/control doesn't list any binary package dpkg-buildpackage: error: dpkg-source --before-build Clifton Test Suite v0.1 gave error exit status 255 debuild: fatal error at line 1364: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Also Gareth, Debian packaging is a pain until you get used to it. But on the plus side its a good skill to have if you want to help out the Ubuntu community as you can become a package maintainer once you get proficient and have the time for it. On 24 Apr 2014, at 11:28, Alan Pope a...@popey.com wrote: On 24 April 2014 11:24, Gareth France gareth.fra...@gmail.com wrote: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa dpkg-buildpackage: source package cliftontestsuite dpkg-buildpackage: source version 0.1-1 dpkg-buildpackage: source distribution UNRELEASED dpkg-buildpackage: source changed by Gareth gareth.fra...@cliftonts.co.uk dpkg-source --before-build Clifton Test Suite v0.1 dpkg-source: warning: unknown information field 'Package' in input data in general section of control info file dpkg-source: warning: unknown information field 'Version' in input data in general section of control info file dpkg-source: warning: unknown information field 'Architecture' in input data in general section of control info file dpkg-source: warning: unknown information field 'Essential' in input data in general section of control info file dpkg-source: warning: unknown information field 'Depends' in input data in general section of control info file dpkg-source: warning: unknown information field 'Description' in input data in general section of control info file dpkg-source: error: Clifton Test Suite v0.1/debian/control doesn't list any binary package dpkg-buildpackage: error: dpkg-source --before-build Clifton Test Suite v0.1 gave error exit status 255 debuild: fatal error at line 1364: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24/04/14 11:28, Alan Pope wrote: On 24 April 2014 11:24, Gareth France gareth.fra...@gmail.com wrote: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa dpkg-buildpackage: source package cliftontestsuite dpkg-buildpackage: source version 0.1-1 dpkg-buildpackage: source distribution UNRELEASED dpkg-buildpackage: source changed by Gareth gareth.fra...@cliftonts.co.uk dpkg-source --before-build Clifton Test Suite v0.1 dpkg-source: warning: unknown information field 'Package' in input data in general section of control info file dpkg-source: warning: unknown information field 'Version' in input data in general section of control info file dpkg-source: warning: unknown information field 'Architecture' in input data in general section of control info file dpkg-source: warning: unknown information field 'Essential' in input data in general section of control info file dpkg-source: warning: unknown information field 'Depends' in input data in general section of control info file dpkg-source: warning: unknown information field 'Description' in input data in general section of control info file dpkg-source: error: Clifton Test Suite v0.1/debian/control doesn't list any binary package dpkg-buildpackage: error: dpkg-source --before-build Clifton Test Suite v0.1 gave error exit status 255 debuild: fatal error at line 1364: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. I have seen the link you sent before and it my control file seems to be in order. Here it is: Package: CliftonTestSuite Version: 0.1 Section: utils Priority: optional Architecture: all Essential: no Depends: perl Maintainer: Gareth France Source: cliftontestsuite Description: A selection of tools for downloading from PAT testers. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Agreed, Give us the contents of the files in debian/ so we can try figure out what its choking on. (I am not an expert on debian packaging but I will do my best to help you). On 24 Apr 2014, at 11:31, Gareth France gareth.fra...@gmail.com wrote: On 24/04/14 11:28, Alan Pope wrote: On 24 April 2014 11:24, Gareth France gareth.fra...@gmail.com wrote: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa dpkg-buildpackage: source package cliftontestsuite dpkg-buildpackage: source version 0.1-1 dpkg-buildpackage: source distribution UNRELEASED dpkg-buildpackage: source changed by Gareth gareth.fra...@cliftonts.co.uk dpkg-source --before-build Clifton Test Suite v0.1 dpkg-source: warning: unknown information field 'Package' in input data in general section of control info file dpkg-source: warning: unknown information field 'Version' in input data in general section of control info file dpkg-source: warning: unknown information field 'Architecture' in input data in general section of control info file dpkg-source: warning: unknown information field 'Essential' in input data in general section of control info file dpkg-source: warning: unknown information field 'Depends' in input data in general section of control info file dpkg-source: warning: unknown information field 'Description' in input data in general section of control info file dpkg-source: error: Clifton Test Suite v0.1/debian/control doesn't list any binary package dpkg-buildpackage: error: dpkg-source --before-build Clifton Test Suite v0.1 gave error exit status 255 debuild: fatal error at line 1364: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. I have to be honest I have no idea what is supposed to go in a debian control file. This one was nicked and modified off the internet and I can't find any real explaination of what is supposed to go in there. It's very surprising things are still like this. You're supposed to just know and get it right. The software gives you no leway. I'm sure once I've done it once it will all become very easy but this is a bit of a nightmare. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24/04/14 11:31, Alan James Jenkins wrote: Also Gareth, Debian packaging is a pain until you get used to it. But on the plus side its a good skill to have if you want to help out the Ubuntu community as you can become a package maintainer once you get proficient and have the time for it. I know, I have struggled to get to grips with programming post quick basic and it is actually very depressing. I have found places you can go to ask for help and get treated like a moron because you don't already know. I have looked and gui's and I swear I will never understand! I am however loving python and perl, they make sense to me. My biggest problem is my methods and my way of looking at programming challenges is horrendously out of date. I'm hoping people will correct me as time goes on and maybe, just maybe you guys can drag me into this century. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24/04/14 11:33, Alan James Jenkins wrote: Agreed, Give us the contents of the files in debian/ so we can try figure out what its choking on. (I am not an expert on debian packaging but I will do my best to help you). On 24 Apr 2014, at 11:31, Gareth France gareth.fra...@gmail.com wrote: Control: Package: CliftonTestSuite Version: 0.1 Section: utils Priority: optional Architecture: all Essential: no Depends: perl Maintainer: Gareth France Source: cliftontestsuite Description: A selection of tools for downloading from PAT testers. Changelog: cliftontestsuite (0.1-1) UNRELEASED; urgency=medium * Initial release. (Closes: #XX) -- Gareth gareth.fra...@cliftonts.co.uk Wed, 23 Apr 2014 21:25:25 +0100 Rules: (I have no idea what this means but found it in a forum post.) #!/usr/bin/make -f %: dh $@ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Yeah no worries mate and yes I hate the aggressive stance people sometimes take too. I tend to avoid posting on forums as I hate responses like that. Python in particular is a fantastic language to learn and it forces you to use good best practices if you aim to follow pep-8. Looking at the Control file you have sent I cannot see what is wrong. Hopefully someone more experienced with packaging will be able to see the problem. I will have another look later if I get chance but I currently have some pressing deadlines. Sorry I cannot be of more help, Alan Jenkins On 24 Apr 2014, at 11:35, Gareth France gareth.fra...@gmail.com wrote: On 24/04/14 11:31, Alan James Jenkins wrote: Also Gareth, Debian packaging is a pain until you get used to it. But on the plus side its a good skill to have if you want to help out the Ubuntu community as you can become a package maintainer once you get proficient and have the time for it. I know, I have struggled to get to grips with programming post quick basic and it is actually very depressing. I have found places you can go to ask for help and get treated like a moron because you don't already know. I have looked and gui's and I swear I will never understand! I am however loving python and perl, they make sense to me. My biggest problem is my methods and my way of looking at programming challenges is horrendously out of date. I'm hoping people will correct me as time goes on and maybe, just maybe you guys can drag me into this century. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Thanks for taking the time. I get the feeling I'm right there at the finish line and just need one more push. On 24/04/14 11:41, Alan James Jenkins wrote: Yeah no worries mate and yes I hate the aggressive stance people sometimes take too. I tend to avoid posting on forums as I hate responses like that. Python in particular is a fantastic language to learn and it forces you to use good best practices if you aim to follow pep-8. Looking at the Control file you have sent I cannot see what is wrong. Hopefully someone more experienced with packaging will be able to see the problem. I will have another look later if I get chance but I currently have some pressing deadlines. Sorry I cannot be of more help, Alan Jenkins On 24 Apr 2014, at 11:35, Gareth France gareth.fra...@gmail.com wrote: On 24/04/14 11:31, Alan James Jenkins wrote: Also Gareth, Debian packaging is a pain until you get used to it. But on the plus side its a good skill to have if you want to help out the Ubuntu community as you can become a package maintainer once you get proficient and have the time for it. I know, I have struggled to get to grips with programming post quick basic and it is actually very depressing. I have found places you can go to ask for help and get treated like a moron because you don't already know. I have looked and gui's and I swear I will never understand! I am however loving python and perl, they make sense to me. My biggest problem is my methods and my way of looking at programming challenges is horrendously out of date. I'm hoping people will correct me as time goes on and maybe, just maybe you guys can drag me into this century. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Gareth - I used to work for the MEB (well - one of their subsidiaries) writing PAT testing software for their tools asset register. This sounds interesting, and I'll have to check it out :) it was years ago - interfacing with a SmartPat 5000 (?) Date: Thu, 24 Apr 2014 11:36:50 +0100 From: gareth.fra...@gmail.com To: ubuntu-uk@lists.ubuntu.com Subject: Re: [ubuntu-uk] Publishing to the software centre On 24/04/14 11:33, Alan James Jenkins wrote: Agreed, Give us the contents of the files in debian/ so we can try figure out what its choking on. (I am not an expert on debian packaging but I will do my best to help you). On 24 Apr 2014, at 11:31, Gareth France gareth.fra...@gmail.com wrote: Control: Package: CliftonTestSuite Version: 0.1 Section: utils Priority: optional Architecture: all Essential: no Depends: perl Maintainer: Gareth France Source: cliftontestsuite Description: A selection of tools for downloading from PAT testers. Changelog: cliftontestsuite (0.1-1) UNRELEASED; urgency=medium * Initial release. (Closes: #XX) -- Gareth gareth.fra...@cliftonts.co.uk Wed, 23 Apr 2014 21:25:25 +0100 Rules: (I have no idea what this means but found it in a forum post.) #!/usr/bin/make -f %: dh $@ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
If it ever gets packaged! lol. It is purely conversion software for the downloaded data at this stage but will include downloading and more over time. On 24/04/14 13:10, Mike Hingley wrote: Gareth - I used to work for the MEB (well - one of their subsidiaries) writing PAT testing software for their tools asset register. This sounds interesting, and I'll have to check it out :) it was years ago - interfacing with a SmartPat 5000 (?) Date: Thu, 24 Apr 2014 11:36:50 +0100 From: gareth.fra...@gmail.com To: ubuntu-uk@lists.ubuntu.com Subject: Re: [ubuntu-uk] Publishing to the software centre On 24/04/14 11:33, Alan James Jenkins wrote: Agreed, Give us the contents of the files in debian/ so we can try figure out what its choking on. (I am not an expert on debian packaging but I will do my best to help you). On 24 Apr 2014, at 11:31, Gareth France gareth.fra...@gmail.com wrote: Control: Package: CliftonTestSuite Version: 0.1 Section: utils Priority: optional Architecture: all Essential: no Depends: perl Maintainer: Gareth France Source: cliftontestsuite Description: A selection of tools for downloading from PAT testers. Changelog: cliftontestsuite (0.1-1) UNRELEASED; urgency=medium * Initial release. (Closes: #XX) -- Gareth gareth.fra...@cliftonts.co.uk Wed, 23 Apr 2014 21:25:25 +0100 Rules: (I have no idea what this means but found it in a forum post.) #!/usr/bin/make -f %: dh $@ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. Hooray! I've figured it out! I just had to juggle the order of the entries in control and separate the two paragraphs. However now I'm getting a gpg signing error. How can I do this without needing that? Now signing changes and any dsc files... signfile cliftontestsuite_0.1-1.dsc Gareth gareth.fra...@cliftonts.co.uk gpg: directory `/home/gareth/.gnupg' created gpg: new configuration file `/home/gareth/.gnupg/gpg.conf' created gpg: WARNING: options in `/home/gareth/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/home/gareth/.gnupg/secring.gpg' created gpg: keyring `/home/gareth/.gnupg/pubring.gpg' created gpg: skipped Gareth gareth.fra...@cliftonts.co.uk: secret key not available gpg: /tmp/debsign.inJng4qL/cliftontestsuite_0.1-1.dsc: clearsign failed: secret key not available debsign: gpg error occurred! Aborting debuild: fatal error at line 1283: running debsign failed -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Hey Gareth, Just looked up how to build a package without signing and supposedly this builds an unsigned source package: debuild -i -us -uc -S and this builds the binary: debuild -i -us -uc -b Give that a try =) On 24 Apr 2014, at 14:22, Gareth France gareth.fra...@gmail.com wrote: Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. Hooray! I've figured it out! I just had to juggle the order of the entries in control and separate the two paragraphs. However now I'm getting a gpg signing error. How can I do this without needing that? Now signing changes and any dsc files... signfile cliftontestsuite_0.1-1.dsc Gareth gareth.fra...@cliftonts.co.uk gpg: directory `/home/gareth/.gnupg' created gpg: new configuration file `/home/gareth/.gnupg/gpg.conf' created gpg: WARNING: options in `/home/gareth/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/home/gareth/.gnupg/secring.gpg' created gpg: keyring `/home/gareth/.gnupg/pubring.gpg' created gpg: skipped Gareth gareth.fra...@cliftonts.co.uk: secret key not available gpg: /tmp/debsign.inJng4qL/cliftontestsuite_0.1-1.dsc: clearsign failed: secret key not available debsign: gpg error occurred! Aborting debuild: fatal error at line 1283: running debsign failed -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24/04/14 14:38, Alan James Jenkins wrote: Hey Gareth, Just looked up how to build a package without signing and supposedly this builds an unsigned source package: debuild -i -us -uc -S and this builds the binary: debuild -i -us -uc -b Give that a try =) On 24 Apr 2014, at 14:22, Gareth France gareth.fra...@gmail.com wrote: Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. Hooray! I've figured it out! I just had to juggle the order of the entries in control and separate the two paragraphs. However now I'm getting a gpg signing error. How can I do this without needing that? Now signing changes and any dsc files... signfile cliftontestsuite_0.1-1.dsc Gareth gareth.fra...@cliftonts.co.uk gpg: directory `/home/gareth/.gnupg' created gpg: new configuration file `/home/gareth/.gnupg/gpg.conf' created gpg: WARNING: options in `/home/gareth/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/home/gareth/.gnupg/secring.gpg' created gpg: keyring `/home/gareth/.gnupg/pubring.gpg' created gpg: skipped Gareth gareth.fra...@cliftonts.co.uk: secret key not available gpg: /tmp/debsign.inJng4qL/cliftontestsuite_0.1-1.dsc: clearsign failed: secret key not available debsign: gpg error occurred! Aborting debuild: fatal error at line 1283: running debsign failed -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ Now running lintian... W: cliftontestsuite source: no-section-field-for-source W: cliftontestsuite source: debhelper-compat-file-is-missing W: cliftontestsuite source: package-uses-deprecated-debhelper-compat-version 1 E: cliftontestsuite source: package-uses-debhelper-but-lacks-build-depends E: cliftontestsuite source: maintainer-address-missing Gareth France W: cliftontestsuite source: no-debian-copyright Finished running lintian. gareth@gareth-OptiPlex-GX280:~/test/Clifton Test Suite v0.1$ Hallelujah! Thanks -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
The -uc is what tells it to not sign the changes and -us tells it not to sign the sources FYI (found in the man page of dpkg-buildpackage). On 24 Apr 2014, at 14:38, Alan James Jenkins alan.james.jenk...@gmail.com wrote: Hey Gareth, Just looked up how to build a package without signing and supposedly this builds an unsigned source package: debuild -i -us -uc -S and this builds the binary: debuild -i -us -uc -b Give that a try =) On 24 Apr 2014, at 14:22, Gareth France gareth.fra...@gmail.com wrote: Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. Hooray! I've figured it out! I just had to juggle the order of the entries in control and separate the two paragraphs. However now I'm getting a gpg signing error. How can I do this without needing that? Now signing changes and any dsc files... signfile cliftontestsuite_0.1-1.dsc Gareth gareth.fra...@cliftonts.co.uk gpg: directory `/home/gareth/.gnupg' created gpg: new configuration file `/home/gareth/.gnupg/gpg.conf' created gpg: WARNING: options in `/home/gareth/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/home/gareth/.gnupg/secring.gpg' created gpg: keyring `/home/gareth/.gnupg/pubring.gpg' created gpg: skipped Gareth gareth.fra...@cliftonts.co.uk: secret key not available gpg: /tmp/debsign.inJng4qL/cliftontestsuite_0.1-1.dsc: clearsign failed: secret key not available debsign: gpg error occurred! Aborting debuild: fatal error at line 1283: running debsign failed -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24/04/14 14:41, Alan James Jenkins wrote: The -uc is what tells it to not sign the changes and -us tells it not to sign the sources FYI (found in the man page of dpkg-buildpackage). On 24 Apr 2014, at 14:38, Alan James Jenkins alan.james.jenk...@gmail.com wrote: My problem was that I really wasn't sure where to turn to look for this sort of stuff. I've poked around so many forums and man pages these last few days my head is spinning! -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
No problem mate =) glad its sorted. On 24 Apr 2014, at 14:41, Gareth France gareth.fra...@gmail.com wrote: On 24/04/14 14:38, Alan James Jenkins wrote: Hey Gareth, Just looked up how to build a package without signing and supposedly this builds an unsigned source package: debuild -i -us -uc -S and this builds the binary: debuild -i -us -uc -b Give that a try =) On 24 Apr 2014, at 14:22, Gareth France gareth.fra...@gmail.com wrote: Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. Hooray! I've figured it out! I just had to juggle the order of the entries in control and separate the two paragraphs. However now I'm getting a gpg signing error. How can I do this without needing that? Now signing changes and any dsc files... signfile cliftontestsuite_0.1-1.dsc Gareth gareth.fra...@cliftonts.co.uk gpg: directory `/home/gareth/.gnupg' created gpg: new configuration file `/home/gareth/.gnupg/gpg.conf' created gpg: WARNING: options in `/home/gareth/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/home/gareth/.gnupg/secring.gpg' created gpg: keyring `/home/gareth/.gnupg/pubring.gpg' created gpg: skipped Gareth gareth.fra...@cliftonts.co.uk: secret key not available gpg: /tmp/debsign.inJng4qL/cliftontestsuite_0.1-1.dsc: clearsign failed: secret key not available debsign: gpg error occurred! Aborting debuild: fatal error at line 1283: running debsign failed -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ Now running lintian... W: cliftontestsuite source: no-section-field-for-source W: cliftontestsuite source: debhelper-compat-file-is-missing W: cliftontestsuite source: package-uses-deprecated-debhelper-compat-version 1 E: cliftontestsuite source: package-uses-debhelper-but-lacks-build-depends E: cliftontestsuite source: maintainer-address-missing Gareth France W: cliftontestsuite source: no-debian-copyright Finished running lintian. gareth@gareth-OptiPlex-GX280:~/test/Clifton Test Suite v0.1$ Hallelujah! Thanks -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
However the build binary command doesn't. Ah well, i don't need that right now so that's my rainy day project. On 24/04/14 14:42, Alan James Jenkins wrote: No problem mate =) glad its sorted. On 24 Apr 2014, at 14:41, Gareth France gareth.fra...@gmail.com wrote: On 24/04/14 14:38, Alan James Jenkins wrote: Hey Gareth, Just looked up how to build a package without signing and supposedly this builds an unsigned source package: debuild -i -us -uc -S and this builds the binary: debuild -i -us -uc -b Give that a try =) On 24 Apr 2014, at 14:22, Gareth France gareth.fra...@gmail.com wrote: Looks like some other errors in your debian/control file layout. https://www.debian.org/doc/debian-policy/ch-controlfields.html is the canonical (heu) documentation for what should be in there. Al. Hooray! I've figured it out! I just had to juggle the order of the entries in control and separate the two paragraphs. However now I'm getting a gpg signing error. How can I do this without needing that? Now signing changes and any dsc files... signfile cliftontestsuite_0.1-1.dsc Gareth gareth.fra...@cliftonts.co.uk gpg: directory `/home/gareth/.gnupg' created gpg: new configuration file `/home/gareth/.gnupg/gpg.conf' created gpg: WARNING: options in `/home/gareth/.gnupg/gpg.conf' are not yet active during this run gpg: keyring `/home/gareth/.gnupg/secring.gpg' created gpg: keyring `/home/gareth/.gnupg/pubring.gpg' created gpg: skipped Gareth gareth.fra...@cliftonts.co.uk: secret key not available gpg: /tmp/debsign.inJng4qL/cliftontestsuite_0.1-1.dsc: clearsign failed: secret key not available debsign: gpg error occurred! Aborting debuild: fatal error at line 1283: running debsign failed -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ Now running lintian... W: cliftontestsuite source: no-section-field-for-source W: cliftontestsuite source: debhelper-compat-file-is-missing W: cliftontestsuite source: package-uses-deprecated-debhelper-compat-version 1 E: cliftontestsuite source: package-uses-debhelper-but-lacks-build-depends E: cliftontestsuite source: maintainer-address-missing Gareth France W: cliftontestsuite source: no-debian-copyright Finished running lintian. gareth@gareth-OptiPlex-GX280:~/test/Clifton Test Suite v0.1$ Hallelujah! Thanks -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Yeah no worries mate it happens to all of us =). On 24 Apr 2014, at 14:43, Gareth France gareth.fra...@gmail.com wrote: On 24/04/14 14:41, Alan James Jenkins wrote: The -uc is what tells it to not sign the changes and -us tells it not to sign the sources FYI (found in the man page of dpkg-buildpackage). On 24 Apr 2014, at 14:38, Alan James Jenkins alan.james.jenk...@gmail.com wrote: My problem was that I really wasn't sure where to turn to look for this sort of stuff. I've poked around so many forums and man pages these last few days my head is spinning! -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24/04/14 14:43, Gareth France wrote: On 24/04/14 14:41, Alan James Jenkins wrote: The -uc is what tells it to not sign the changes and -us tells it not to sign the sources FYI (found in the man page of dpkg-buildpackage). On 24 Apr 2014, at 14:38, Alan James Jenkins alan.james.jenk...@gmail.com wrote: My problem was that I really wasn't sure where to turn to look for this sort of stuff. I've poked around so many forums and man pages these last few days my head is spinning! Hi, As a complete novice following this thread wit interest, I am put off compiling my small (but hopefully) useful prog to a .deb and will continue to call it from a script ;( This is a shame as I was hoping to expand my programme and and add a GUI, more as a project for me than anything, and maybe if all went well add it to the repo's but the world will just have to wait!! Congratulations on your eventual success Pete S -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Hey Pete, From experience I know that the worst part of getting a piece of software packaged is the initial setup. Once that is done and the infrastructure is in place it is easy to keep updating the package. However as you have seen it can be a real pain in the bum to get setup if you have not done it before. There are several suites of tools to help you build packages though but as I have previously stated I have not got a lot of experience building debian packages (I have a lot more experience building rpm’s for work). Don’t let this put you off though and give it a try at some point plus now you can also learn from this thread and of course if you hit your own problems just mail us all and we will do our best to help you. Thanks, Alan Jenkins On 24 Apr 2014, at 14:50, Peter Smout smoutp...@gmail.com wrote: On 24/04/14 14:43, Gareth France wrote: On 24/04/14 14:41, Alan James Jenkins wrote: The -uc is what tells it to not sign the changes and -us tells it not to sign the sources FYI (found in the man page of dpkg-buildpackage). On 24 Apr 2014, at 14:38, Alan James Jenkins alan.james.jenk...@gmail.com wrote: My problem was that I really wasn't sure where to turn to look for this sort of stuff. I've poked around so many forums and man pages these last few days my head is spinning! Hi, As a complete novice following this thread wit interest, I am put off compiling my small (but hopefully) useful prog to a .deb and will continue to call it from a script ;( This is a shame as I was hoping to expand my programme and and add a GUI, more as a project for me than anything, and maybe if all went well add it to the repo's but the world will just have to wait!! Congratulations on your eventual success Pete S -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24/04/14 14:50, Peter Smout wrote: On 24/04/14 14:43, Gareth France wrote: On 24/04/14 14:41, Alan James Jenkins wrote: The -uc is what tells it to not sign the changes and -us tells it not to sign the sources FYI (found in the man page of dpkg-buildpackage). On 24 Apr 2014, at 14:38, Alan James Jenkins alan.james.jenk...@gmail.com wrote: My problem was that I really wasn't sure where to turn to look for this sort of stuff. I've poked around so many forums and man pages these last few days my head is spinning! Hi, As a complete novice following this thread wit interest, I am put off compiling my small (but hopefully) useful prog to a .deb and will continue to call it from a script ;( This is a shame as I was hoping to expand my programme and and add a GUI, more as a project for me than anything, and maybe if all went well add it to the repo's but the world will just have to wait!! Congratulations on your eventual success Pete S Packaging to a deb was easy, just follow this step by step: http://www.electricmonk.nl/log/2011/09/06/creating-simple-debian-packages/ If you want to publish to the software centre I can help you with where I went wrong. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24/04/14 14:59, Alan James Jenkins wrote: Hey Pete, From experience I know that the worst part of getting a piece of software packaged is the initial setup. Once that is done and the infrastructure is in place it is easy to keep updating the package. However as you have seen it can be a real pain in the bum to get setup if you have not done it before. There are several suites of tools to help you build packages though but as I have previously stated I have not got a lot of experience building debian packages (I have a lot more experience building rpm’s for work). Don’t let this put you off though and give it a try at some point plus now you can also learn from this thread and of course if you hit your own problems just mail us all and we will do our best to help you. Thanks, Alan Jenkins My small prog is a long way from being ready, it works for me, but for everyone is a big jump alot more testing to be done ;) Then I shall start on the GUI (again so as I can say I did that) Then maybe once all of that is done I will feel confident enough to say 'lets give it a go' ;) But I am a long way from that yet, and as a rainy day project the problem it's designed to overcome might well have been solved by then!! Pete S On 24 Apr 2014, at 14:50, Peter Smout smoutp...@gmail.com mailto:smoutp...@gmail.com wrote: On 24/04/14 14:43, Gareth France wrote: On 24/04/14 14:41, Alan James Jenkins wrote: The -uc is what tells it to not sign the changes and -us tells it not to sign the sources FYI (found in the man page of dpkg-buildpackage). On 24 Apr 2014, at 14:38, Alan James Jenkins alan.james.jenk...@gmail.com mailto:alan.james.jenk...@gmail.com wrote: My problem was that I really wasn't sure where to turn to look for this sort of stuff. I've poked around so many forums and man pages these last few days my head is spinning! Hi, As a complete novice following this thread wit interest, I am put off compiling my small (but hopefully) useful prog to a .deb and will continue to call it from a script ;( This is a shame as I was hoping to expand my programme and and add a GUI, more as a project for me than anything, and maybe if all went well add it to the repo's but the world will just have to wait!! Congratulations on your eventual success Pete S -- ubuntu-uk@lists.ubuntu.com mailto:ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24/04/14 15:07, Peter Smout wrote: My small prog is a long way from being ready, it works for me, but for everyone is a big jump alot more testing to be done ;) Then I shall start on the GUI (again so as I can say I did that) Then maybe once all of that is done I will feel confident enough to say 'lets give it a go' ;) But I am a long way from that yet, and as a rainy day project the problem it's designed to overcome might well have been solved by then!! Pete S I just can't wrap my head round gui programming. Mine would hugely benefit from one but I may never get there. By all means package into a deb for your own use using that link I posted. That was dead easy, preparing for the software centre was totally different to that. Don't let my struggles put you off. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 24 April 2014 14:50, Peter Smout smoutp...@gmail.com wrote: Hi, As a complete novice following this thread wit interest, I am put off compiling my small (but hopefully) useful prog to a .deb and will continue to call it from a script ;( This is a shame as I was hoping to expand my programme and and add a GUI, more as a project for me than anything, and maybe if all went well add it to the repo's but the world will just have to wait!! It's certainly a learning curve. I have nothing but respect and admiration for the people who diligently maintain packages in Debian and Ubuntu on a day-to-day basis. When you stop to think about what these massive projects accomplish - reliable repeatable builds for tens of thousands of pieces of software across numerous architectures, automatically resolving dependencies, conflicts, and managing versions and safely rolling out security updates... it's quite amazing (at least to me). Every part of a Debian package is there for a reason, to help with this making this process, this machine, run as smoothly as possible. It can be overwhelming at first, when all you want to do is deploy a simple script or two, but it's a very useful skill to have under your belt if you're doing development. If your software is of general interest and you think it ought to be in the Debian/Ubuntu archives, you may find someone already skilled with packaging is willing to do this for you. Most software in Debian/Ubuntu is not packaged by its authors, but by a dedicated Debian/Ubuntu developer (the package 'maintainer') who already has the necessary skills. You can read more about getting your software into Debian and Ubuntu here: https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages If you do want to learn to package yourself (which gives you a lot more flexibility, as you are not relying on other peoples' free time), there are guides such as: - https://www.debian.org/doc/manuals/maint-guide/ - http://packaging.ubuntu.com/html/ And if you haven't tried it already, dh_make is a great tool to use when you're starting out, as it will do 90% of the package creation work for you. Regards, Matthew -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Hi Gareth, On 23 April 2014 08:14, Gareth France gareth.fra...@gmail.com wrote: I have a perl script I wish to publish but doing so seems rather akin to pulling teeth! I'm trying to package it as an executable but this doesn't seem to work. Can anyone advise me what format it needs to be in to submit it, and how I may achieve this. What's the goal? Make the perl script widely available for people (you don't know) to discover and install on their systems easily? Or is this a script something only a few techy people may be interested in? If the latter, then maybe just put the script on a pastebin, github, launchpad or other host and point people to it with simple instructions for downloading and running it. If the former then you will need to do a little work to learn how to package it. The documentation is uh.. comprehensive, but there's some simpler guides like this one:- http://www.electricmonk.nl/log/2011/09/06/creating-simple-debian-packages/ Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
The goal is to create a program which can be installed from the software centre like any other. I don't want the code to be accessable by anybody. I have used pp to package it but the resulting file does nothing. Double clicking doesn't work and running it from a terminal results in a command not found error. On 23/04/14 08:26, Alan Pope wrote: Hi Gareth, On 23 April 2014 08:14, Gareth France gareth.fra...@gmail.com wrote: I have a perl script I wish to publish but doing so seems rather akin to pulling teeth! I'm trying to package it as an executable but this doesn't seem to work. Can anyone advise me what format it needs to be in to submit it, and how I may achieve this. What's the goal? Make the perl script widely available for people (you don't know) to discover and install on their systems easily? Or is this a script something only a few techy people may be interested in? If the latter, then maybe just put the script on a pastebin, github, launchpad or other host and point people to it with simple instructions for downloading and running it. If the former then you will need to do a little work to learn how to package it. The documentation is uh.. comprehensive, but there's some simpler guides like this one:- http://www.electricmonk.nl/log/2011/09/06/creating-simple-debian-packages/ Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Hi Gareth, These two statements are somewhat in conflict.. On 23 April 2014 08:31, Gareth France gareth.fra...@gmail.com wrote: The goal is to create a program which can be installed from the software centre like any other. I don't want the code to be accessable by anybody. Not sure what you mean by that. But basically you need to package it up and submit it to the store, or package it up and submit it to (for example) Debian (so everyone gets it) or Ubuntu 14.10, if it's non-commercial. If it's a commercial app then you can submit it to the Software Centre, and there's some docs here about that http://developer.ubuntu.com/publish/apps/other-forms-of-submitting-apps/packaging-commercial-apps-part-1-get-set-up-overview-of-debian-packaging/ Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Take get-iplayer for instance. I install that on my system and (to my knowledge) I am not able to browse through the source. It is buried away in the system and just works. That is what I am wanting. You install it , you use it, no faffing about. On 23/04/14 08:39, Alan Pope wrote: Hi Gareth, These two statements are somewhat in conflict.. On 23 April 2014 08:31, Gareth France gareth.fra...@gmail.com wrote: The goal is to create a program which can be installed from the software centre like any other. I don't want the code to be accessable by anybody. Not sure what you mean by that. But basically you need to package it up and submit it to the store, or package it up and submit it to (for example) Debian (so everyone gets it) or Ubuntu 14.10, if it's non-commercial. If it's a commercial app then you can submit it to the Software Centre, and there's some docs here about that http://developer.ubuntu.com/publish/apps/other-forms-of-submitting-apps/packaging-commercial-apps-part-1-get-set-up-overview-of-debian-packaging/ Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23 April 2014 08:41, Gareth France gareth.fra...@gmail.com wrote: Take get-iplayer for instance. I install that on my system and (to my knowledge) I am not able to browse through the source. It is buried away in the system and just works. That is what I am wanting. You install it , you use it, no faffing about. Ah, I understand now. Ta -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 08:56, Colin Law wrote: On 23 April 2014 08:41, Gareth France gareth.fra...@gmail.com wrote: Take get-iplayer for instance. I install that on my system and (to my knowledge) I am not able to browse through the source. It is buried away in the system and just works. That is what I am wanting. You install it , you use it, no faffing about. $ which get-iplayer /usr/bin/get-iplayer $ cat /usr/bin/get-iplayer Colin Thank you Colin, however I don't need to type perl get-iplayer to use it. I would also have never considered trying to view the code. Offering a script to people is a very different experience to having something properly installed. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23 April 2014 08:56, Colin Law clan...@gmail.com wrote: On 23 April 2014 08:41, Gareth France gareth.fra...@gmail.com wrote: Take get-iplayer for instance. I install that on my system and (to my knowledge) I am not able to browse through the source. It is buried away in the system and just works. That is what I am wanting. You install it , you use it, no faffing about. $ which get-iplayer /usr/bin/get-iplayer $ cat /usr/bin/get-iplayer I think you missed the point Colin. He's basically saying he wants something easy to install, no pastebins, no faffing about. Not that you *can't* get to the source code, but that viewing the sourcecode shouldn't be a pre-req to install. He wants something easy to install. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 08:56, Colin Law wrote: On 23 April 2014 08:41, Gareth France gareth.fra...@gmail.com wrote: Take get-iplayer for instance. I install that on my system and (to my knowledge) I am not able to browse through the source. It is buried away in the system and just works. That is what I am wanting. You install it , you use it, no faffing about. $ which get-iplayer /usr/bin/get-iplayer $ cat /usr/bin/get-iplayer Colin Thank you Colin, however I don't need to type perl get-iplayer to use it. I would also have never considered trying to view the code. Offering a script to people is a very different experience to having something properly installed. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 08:56, Colin Law wrote: On 23 April 2014 08:41, Gareth France gareth.fra...@gmail.com wrote: Take get-iplayer for instance. I install that on my system and (to my knowledge) I am not able to browse through the source. It is buried away in the system and just works. That is what I am wanting. You install it , you use it, no faffing about. $ which get-iplayer /usr/bin/get-iplayer $ cat /usr/bin/get-iplayer Colin Thank you Colin, however I don't need to type perl get-iplayer to use it. I would also have never considered trying to view the code. Offering a script to people is a very different experience to having something properly installed. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23 April 2014 08:58, Alan Pope a...@popey.com wrote: On 23 April 2014 08:56, Colin Law clan...@gmail.com wrote: On 23 April 2014 08:41, Gareth France gareth.fra...@gmail.com wrote: Take get-iplayer for instance. I install that on my system and (to my knowledge) I am not able to browse through the source. It is buried away in the system and just works. That is what I am wanting. You install it , you use it, no faffing about. $ which get-iplayer /usr/bin/get-iplayer $ cat /usr/bin/get-iplayer I think you missed the point Colin. He's basically saying he wants something easy to install, no pastebins, no faffing about. Not that you *can't* get to the source code, but that viewing the sourcecode shouldn't be a pre-req to install. He wants something easy to install. Thanks Alan. I was pointing out a misunderstanding on his part that might have been important to him. In an earlier post he said I don't want the code to be accessable by anybody. whereas if he publishes the script the way he is suggesting then it *will* be accessable by everybody, and he said that to his knowledge he was not able to browse the get-iplayer source, whereas he is able to browse it. It turns out that he is not worried about others seeing the source, but it seemed possible from his previous posts that in he wanted to keep it hidden. Cheers Colin Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Thanks Alan. I was pointing out a misunderstanding on his part that might have been important to him. In an earlier post he said I don't want the code to be accessable by anybody. whereas if he publishes the script the way he is suggesting then it *will* be accessable by everybody, and he said that to his knowledge he was not able to browse the get-iplayer source, whereas he is able to browse it. It turns out that he is not worried about others seeing the source, but it seemed possible from his previous posts that in he wanted to keep it hidden. Cheers Colin Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ Sorry Colin, I worded my request badly. Having to juggle a screaming baby while having email conversations is very difficult and offputting! -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23 April 2014 09:37, Gareth France gareth.fra...@gmail.com wrote: Thanks Alan. I was pointing out a misunderstanding on his part that might have been important to him. In an earlier post he said I don't want the code to be accessable by anybody. whereas if he publishes the script the way he is suggesting then it *will* be accessable by everybody, and he said that to his knowledge he was not able to browse the get-iplayer source, whereas he is able to browse it. It turns out that he is not worried about others seeing the source, but it seemed possible from his previous posts that in he wanted to keep it hidden. Cheers Colin Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ Sorry Colin, I worded my request badly. Having to juggle a screaming baby while having email conversations is very difficult and offputting! OK, no problem. Been there as the saying goes. On second thoughts I haven't, there wasn't email then. :) Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
OK, no problem. Been there as the saying goes. On second thoughts I haven't, there wasn't email then. :) Colin So does anyone have any ideas about packaging up this script? I now have information about how to package it for submission but I still need a way to run the program from the command line without calling perl. Whether you can access the code if you go looking for it or not doesn't matter. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
So does anyone have any ideas about packaging up this script? I now have information about how to package it for submission but I still need a way to run the program from the command line without calling perl. If your script is executable and has the right shebang at the start you will not need to call perl. Al -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 10:27, Alan Lord wrote: So does anyone have any ideas about packaging up this script? I now have information about how to package it for submission but I still need a way to run the program from the command line without calling perl. If your script is executable and has the right shebang at the start you will not need to call perl. Al The script is called seaward.pl, I want it to be run by simply typing seaward. How do I achieve this? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23 April 2014 10:31, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 10:27, Alan Lord wrote: So does anyone have any ideas about packaging up this script? I now have information about how to package it for submission but I still need a way to run the program from the command line without calling perl. If your script is executable and has the right shebang at the start you will not need to call perl. Al The script is called seaward.pl, I want it to be run by simply typing seaward. How do I achieve this? Make sure it's got the executable bit set, rename it seaward and make sure the first line is:- #!/usr/bin/env perl Put the file in your path and you're done. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 10:36, Alan Pope wrote: On 23 April 2014 10:31, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 10:27, Alan Lord wrote: So does anyone have any ideas about packaging up this script? I now have information about how to package it for submission but I still need a way to run the program from the command line without calling perl. If your script is executable and has the right shebang at the start you will not need to call perl. Al The script is called seaward.pl, I want it to be run by simply typing seaward. How do I achieve this? Make sure it's got the executable bit set, rename it seaward and make sure the first line is:- #!/usr/bin/env perl Put the file in your path and you're done. Cheers, Al. I have tried renaming the file but still get a 'Command not found' error. Any ideas -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23 April 2014 15:07, Gareth France gareth.fra...@gmail.com wrote: I have tried renaming the file but still get a 'Command not found' error. Any ideas My guess it that it will be permissions. what do you see with a ls -l /usr/bin/seaward -- Stuart Ward M +44 7782325143 -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
If you're just running in a local directory and it's chmodded 755, you have to execute it with slashdot: ./seaward s/ On 23 April 2014 15:07, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 10:36, Alan Pope wrote: On 23 April 2014 10:31, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 10:27, Alan Lord wrote: So does anyone have any ideas about packaging up this script? I now have information about how to package it for submission but I still need a way to run the program from the command line without calling perl. If your script is executable and has the right shebang at the start you will not need to call perl. Al The script is called seaward.pl, I want it to be run by simply typing seaward. How do I achieve this? Make sure it's got the executable bit set, rename it seaward and make sure the first line is:- #!/usr/bin/env perl Put the file in your path and you're done. Cheers, Al. I have tried renaming the file but still get a 'Command not found' error. Any ideas -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- Twitter: @sfgreenwood TBA are particularly glib -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 15:15, Stuart Ward wrote: On 23 April 2014 15:07, Gareth France gareth.fra...@gmail.com mailto:gareth.fra...@gmail.com wrote: I have tried renaming the file but still get a 'Command not found' error. Any ideas My guess it that it will be permissions. what do you see with a ls -l /usr/bin/seaward -- Stuart Ward M +44 7782325143 -rwxr-xr-x 1 root root 6844 Apr 23 15:09 seaward -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Could you please give us the output of these commands: echo $PATH ls -la /usr/bin/seaward head -n1 /usr/bin/seaward Thanks, Alan On 23 Apr 2014, at 15:17, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:15, Stuart Ward wrote: On 23 April 2014 15:07, Gareth France gareth.fra...@gmail.com wrote: I have tried renaming the file but still get a 'Command not found' error. Any ideas My guess it that it will be permissions. what do you see with a ls -l /usr/bin/seaward -- Stuart Ward M +44 7782325143 -rwxr-xr-x 1 root root 6844 Apr 23 15:09 seaward -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Going on what those commands reported you should be good to run seaward as the script is in your path, is executable to everyone and has the correct interpreter set in the shebang. Is it not working? On 23 Apr 2014, at 15:22, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:18, Alan James Jenkins wrote: Could you please give us the output of these commands: echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games ls -la /usr/bin/seaward -rwxr-xr-x 1 root root 6844 Apr 23 15:09 /usr/bin/CTS/seaward head -n1 /usr/bin/seaward #!/usr/bin/perl -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 15:24, Alan James Jenkins wrote: Going on what those commands reported you should be good to run seaward as the script is in your path, is executable to everyone and has the correct interpreter set in the shebang. Is it not working? On 23 Apr 2014, at 15:22, Gareth France gareth.fra...@gmail.com wrote: gareth@gareth-OptiPlex-GX280:/home$ seaward seaward: command not found -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23 April 2014 15:22, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:18, Alan James Jenkins wrote: Could you please give us the output of these commands: echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games ls -la /usr/bin/seaward -rwxr-xr-x 1 root root 6844 Apr 23 15:09 /usr/bin/CTS/seaward What is that CTS doing there? Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Also try: which seaward If that shows /usr/bin/seaward your terminal is finding the command in your path. Reason for the `file /usr/bin/seaward` was to determine whether or not it was a valid symbolic link but tbh the ls -la /usr/bin/seaward showed that it was a symlink to /usr/bin/CTS/seaward already so dunno why I asked you to do that. If you call the script with its absolute path e.g: /usr/bin/seaward Does it work? On 23 Apr 2014, at 15:33, Colin Law clan...@gmail.com wrote: On 23 April 2014 15:22, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:18, Alan James Jenkins wrote: Could you please give us the output of these commands: echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games ls -la /usr/bin/seaward -rwxr-xr-x 1 root root 6844 Apr 23 15:09 /usr/bin/CTS/seaward What is that CTS doing there? Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 15:37, Alan James Jenkins wrote: Also try: which seaward If that shows /usr/bin/seaward your terminal is finding the command in your path. Reason for the `file /usr/bin/seaward` was to determine whether or not it was a valid symbolic link but tbh the ls -la /usr/bin/seaward showed that it was a symlink to /usr/bin/CTS/seaward already so dunno why I asked you to do that. If you call the script with its absolute path e.g: /usr/bin/seaward Does it work? On 23 Apr 2014, at 15:33, Colin Law clan...@gmail.com wrote: On 23 April 2014 15:22, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:18, Alan James Jenkins wrote: Could you please give us the output of these commands: echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games ls -la /usr/bin/seaward -rwxr-xr-x 1 root root 6844 Apr 23 15:09 /usr/bin/CTS/seaward What is that CTS doing there? Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ I've got it now thanks guys. It was an ownership issue. It's now packaged in a deb file and installing correctly. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
Good stuff glad you got it working =). On 23 Apr 2014, at 15:39, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:37, Alan James Jenkins wrote: Also try: which seaward If that shows /usr/bin/seaward your terminal is finding the command in your path. Reason for the `file /usr/bin/seaward` was to determine whether or not it was a valid symbolic link but tbh the ls -la /usr/bin/seaward showed that it was a symlink to /usr/bin/CTS/seaward already so dunno why I asked you to do that. If you call the script with its absolute path e.g: /usr/bin/seaward Does it work? On 23 Apr 2014, at 15:33, Colin Law clan...@gmail.com wrote: On 23 April 2014 15:22, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:18, Alan James Jenkins wrote: Could you please give us the output of these commands: echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games ls -la /usr/bin/seaward -rwxr-xr-x 1 root root 6844 Apr 23 15:09 /usr/bin/CTS/seaward What is that CTS doing there? Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ I've got it now thanks guys. It was an ownership issue. It's now packaged in a deb file and installing correctly. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23 April 2014 15:39, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:37, Alan James Jenkins wrote: Also try: which seaward If that shows /usr/bin/seaward your terminal is finding the command in your path. Reason for the `file /usr/bin/seaward` was to determine whether or not it was a valid symbolic link but tbh the ls -la /usr/bin/seaward showed that it was a symlink to /usr/bin/CTS/seaward already so dunno why I asked you to do that. If you call the script with its absolute path e.g: /usr/bin/seaward Does it work? On 23 Apr 2014, at 15:33, Colin Law clan...@gmail.com wrote: On 23 April 2014 15:22, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:18, Alan James Jenkins wrote: Could you please give us the output of these commands: echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games ls -la /usr/bin/seaward -rwxr-xr-x 1 root root 6844 Apr 23 15:09 /usr/bin/CTS/seaward What is that CTS doing there? Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ I've got it now thanks guys. It was an ownership issue. It's now packaged in a deb file and installing correctly. Just so we can all learn from the problem, can you tell us why it would not run? (I realised what the CTS was after I posted that question). Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 15:40, Alan James Jenkins wrote: Good stuff glad you got it working =). On 23 Apr 2014, at 15:39, Gareth France gareth.fra...@gmail.com wrote: Not yet I haven't. If you run it without specifying the correct inputs it just crashes with a file not found error. It works but is very clunky. Maybe I could publish it through the software centre but it will need a fair amount of polishing asap. My new rainy day project! -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 15:42, Colin Law wrote: On 23 April 2014 15:39, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:37, Alan James Jenkins wrote: Also try: which seaward If that shows /usr/bin/seaward your terminal is finding the command in your path. Reason for the `file /usr/bin/seaward` was to determine whether or not it was a valid symbolic link but tbh the ls -la /usr/bin/seaward showed that it was a symlink to /usr/bin/CTS/seaward already so dunno why I asked you to do that. If you call the script with its absolute path e.g: /usr/bin/seaward Does it work? On 23 Apr 2014, at 15:33, Colin Law clan...@gmail.com wrote: On 23 April 2014 15:22, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 15:18, Alan James Jenkins wrote: Could you please give us the output of these commands: echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games ls -la /usr/bin/seaward -rwxr-xr-x 1 root root 6844 Apr 23 15:09 /usr/bin/CTS/seaward What is that CTS doing there? Colin -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/ I've got it now thanks guys. It was an ownership issue. It's now packaged in a deb file and installing correctly. Just so we can all learn from the problem, can you tell us why it would not run? (I realised what the CTS was after I posted that question). Colin I copied the file manually into usr/bin so it was still owned by me. I realised the problem when I saw the guide provided by one of the Alans earlier said: fakeroot dpkg-deb --build myscript fakerootis a special tool that runs another program (in this casedpkg-deb) and fakes all filesystem ownerships as being'root:root'. This is needed because the files in this Debian package need to be owned by root. Thedpkg-deb --buildcommand takes care of creating the package. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23 April 2014 16:56, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 08:26, Alan Pope wrote: Hi Gareth, On 23 April 2014 08:14, Gareth France gareth.fra...@gmail.com wrote: I have a perl script I wish to publish but doing so seems rather akin to pulling teeth! I'm trying to package it as an executable but this doesn't seem to work. Can anyone advise me what format it needs to be in to submit it, and how I may achieve this. What's the goal? Make the perl script widely available for people (you don't know) to discover and install on their systems easily? Or is this a script something only a few techy people may be interested in? If the latter, then maybe just put the script on a pastebin, github, launchpad or other host and point people to it with simple instructions for downloading and running it. If the former then you will need to do a little work to learn how to package it. The documentation is uh.. comprehensive, but there's some simpler guides like this one:- http://www.electricmonk.nl/log/2011/09/06/creating-simple-debian-packages/ Cheers, Al. I have followed the instructions in the guide you gave me, however the guidelines for being accepted into the software centre say ' You need to provide us with the Debian source package – A Debian source package (.dsc, diff.gz, orig.tar.gzfiles), bundled in an archive file (.tar.gz, .zip, etc).' Does this mean just zip up the directories I used to create the deb file? You can build a source package with 'debuild -S -sa' inside the package directory. When built, the source package actually consists of multiple files: the .dsc, .diff.gz or .debian.tar.gz and the .orig.tar.gz. The instructions are asking you to put those files together into an archive (tar or zip), just to make it easier to handle. If in doubt, you can look at the .dsc file (it's just text) to see the file listing for the source package. Regards, Matthew -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
On 23/04/14 20:24, Matthew Wild wrote: On 23 April 2014 16:56, Gareth France gareth.fra...@gmail.com wrote: On 23/04/14 08:26, Alan Pope wrote: Hi Gareth, On 23 April 2014 08:14, Gareth France gareth.fra...@gmail.com wrote: I have a perl script I wish to publish but doing so seems rather akin to pulling teeth! I'm trying to package it as an executable but this doesn't seem to work. Can anyone advise me what format it needs to be in to submit it, and how I may achieve this. What's the goal? Make the perl script widely available for people (you don't know) to discover and install on their systems easily? Or is this a script something only a few techy people may be interested in? If the latter, then maybe just put the script on a pastebin, github, launchpad or other host and point people to it with simple instructions for downloading and running it. If the former then you will need to do a little work to learn how to package it. The documentation is uh.. comprehensive, but there's some simpler guides like this one:- http://www.electricmonk.nl/log/2011/09/06/creating-simple-debian-packages/ Cheers, Al. I have followed the instructions in the guide you gave me, however the guidelines for being accepted into the software centre say ' You need to provide us with the Debian source package – A Debian source package (.dsc, diff.gz, orig.tar.gzfiles), bundled in an archive file (.tar.gz, .zip, etc).' Does this mean just zip up the directories I used to create the deb file? You can build a source package with 'debuild -S -sa' inside the package directory. When built, the source package actually consists of multiple files: the .dsc, .diff.gz or .debian.tar.gz and the .orig.tar.gz. The instructions are asking you to put those files together into an archive (tar or zip), just to make it easier to handle. If in doubt, you can look at the .dsc file (it's just text) to see the file listing for the source package. Regards, Matthew Now I get: debuild: fatal error at line 632: cannot find readable debian/changelog anywhere! Are you in the source code tree? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Publishing to the software centre
I have muddled my way through the packaging process so far and I have to say it feels like pulling teeth! I know Canonical had that big drive a while back to get more people publishing, I can see why they don't! Why isn't there an easy way to publish your code yet? I'm 99% of the way there and totally stuck. I am using the command debuild -S -sa to attempt to package up my program for submitting to the software centre. First it complained like mad about not having a changelog, then it was complaining about debian/rules and now debian/control. The error I'm getting is: This package has a Debian revision number but there does not seem to be an appropriate original tar file or .orig directory in the parent directory; (expected one of cliftontestsuite_0.1.orig.tar.gz, cliftontestsuite_0.1.orig.tar.bz2, cliftontestsuite_0.1.orig.tar.lzma, cliftontestsuite_0.1.orig.tar.xz or Clifton Test Suite v0.1.orig) continue anyway? (y/n) y dpkg-buildpackage -rfakeroot -d -us -uc -S -sa dpkg-buildpackage: source package cliftontestsuite dpkg-buildpackage: source version 0.1-1 dpkg-buildpackage: source distribution UNRELEASED dpkg-buildpackage: source changed by Gareth gareth.fra...@cliftonts.co.uk dpkg-source --before-build Clifton Test Suite v0.1 dpkg-source: error: syntax error in Clifton Test Suite v0.1/debian/control at line 9: first block lacks a source field dpkg-buildpackage: error: dpkg-source --before-build Clifton Test Suite v0.1 gave error exit status 255 debuild: fatal error at line 1364: dpkg-buildpackage -rfakeroot -d -us -uc -S -sa failed Can anyone please shed some light on how exactly you do this? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/