Re: [ubuntu-uk] Issues packaging software
Panic over. Today I took a random meander around some of the snippets of code I have collected over the last few years and actually managed to assemble a GUI. I now have a simple window with two pull down menus and three buttons. Not exactly high tech but it will do the job perfectly for now. All I have to do now is get through the approval. Thanks for all your help guys. On 03/05/15 17:50, Alan Pope wrote: Well, typically applications that are submitted via that means are shipped with a graphical user interface, an icon and a .desktop file which allows the program to be launched from the menu / launcher. It's not common for there to be a command-line only application to get submitted. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
Correct, my software is ready to roll, it is simply a case of knowing where to install it to make it accessible. Should no better suggestions be put forward I shall attempt to submit your solution and see if it gets accepted. On 03/05/15 21:50, Colin Law wrote: I thought you had got over the problem that Barry is addressing. That was the debian/source/format:3.0 (quilt) was it not? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 3 May 2015 at 20:55, Gareth France wrote: > My brain still hurts from figuring out everything I have done so far. I'd > rather not have to start again if I can at all help it. As you say there > will be a correct way to do this and I would hope that being pointed to that > correct way I would be able to do so with the tools I am already using. I > shall keep this message highlighted but I'd like to hold off looking at this > sword thing for as long as possible, it sounds like it might just be the > straw that broke the camel's back! I thought you had got over the problem that Barry is addressing. That was the debian/source/format:3.0 (quilt) was it not? No-one has replied to my suggestion that the answer to the path problem is to install the s/w in /opt and put a link to the program in /usr/bin/. That is the way that teamviewer does it, for example $ ls /opt/teamviewer9/ config doc logfiles tv_bin $ ls -l /usr/bin/teamviewer lrwxrwxrwx 1 root root 41 Sep 4 2014 /usr/bin/teamviewer -> /opt/teamviewer9/tv_bin/script/teamviewer The question is whether that satisfies the rules or not. Colin > > > On 03/05/15 20:52, Barry Drake wrote: >> >> On 03/05/15 20:04, Gareth France wrote: >>> >>> As most people are now well aware I'm desperate to be able to work out >>> GUI programming, but it does not seem to be my fate. There must be a >>> correct way to submit a commercial command line only program. It is >>> virtually useless if each user must be taught to use the full path each >>> time. >> >> >> Gareth - I'm away from my main computer at the moment and don't have all >> the stuff with me. This is the critical patch from the Sword library >> package. I is a copy of Dmitri's original from an earlier Sword Debian >> package. I do remember not being able to get it to work properly until >> I was told to use the chroot version of Debian. I spent many frustrated >> hours trying. There is no gui in the Sword engine - it's pure library >> binary stuff with the odd commanline program - and it was just fine. >> Your program does not need to be gui - it just needs to put stuff where >> Debian/Ubuntu allows it. pbuilder under debootstrap is very strict, and >> gives a lot more error messages. >> >> >> > > -- > 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] Issues packaging software
My brain still hurts from figuring out everything I have done so far. I'd rather not have to start again if I can at all help it. As you say there will be a correct way to do this and I would hope that being pointed to that correct way I would be able to do so with the tools I am already using. I shall keep this message highlighted but I'd like to hold off looking at this sword thing for as long as possible, it sounds like it might just be the straw that broke the camel's back! On 03/05/15 20:52, Barry Drake wrote: On 03/05/15 20:04, Gareth France wrote: As most people are now well aware I'm desperate to be able to work out GUI programming, but it does not seem to be my fate. There must be a correct way to submit a commercial command line only program. It is virtually useless if each user must be taught to use the full path each time. Gareth - I'm away from my main computer at the moment and don't have all the stuff with me. This is the critical patch from the Sword library package. I is a copy of Dmitri's original from an earlier Sword Debian package. I do remember not being able to get it to work properly until I was told to use the chroot version of Debian. I spent many frustrated hours trying. There is no gui in the Sword engine - it's pure library binary stuff with the odd commanline program - and it was just fine. Your program does not need to be gui - it just needs to put stuff where Debian/Ubuntu allows it. pbuilder under debootstrap is very strict, and gives a lot more error messages. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 03/05/15 20:04, Gareth France wrote: As most people are now well aware I'm desperate to be able to work out GUI programming, but it does not seem to be my fate. There must be a correct way to submit a commercial command line only program. It is virtually useless if each user must be taught to use the full path each time. Gareth - I'm away from my main computer at the moment and don't have all the stuff with me. This is the critical patch from the Sword library package. I is a copy of Dmitri's original from an earlier Sword Debian package. I do remember not being able to get it to work properly until I was told to use the chroot version of Debian. I spent many frustrated hours trying. There is no gui in the Sword engine - it's pure library binary stuff with the odd commanline program - and it was just fine. Your program does not need to be gui - it just needs to put stuff where Debian/Ubuntu allows it. pbuilder under debootstrap is very strict, and gives a lot more error messages. -- http://barrydrake.co.nr/ Description: add multiarch location Author: Dmitrijs Ledkovs --- sword-1.6.2+dfsg.orig/cmake/FindCLucene.cmake +++ sword-1.6.2+dfsg/cmake/FindCLucene.cmake @@ -46,6 +46,7 @@ SET(TRIAL_LIBRARY_PATHS /opt/local/lib${LIB_SUFFIX} /usr/lib${LIB_SUFFIX} /usr/lib64 + /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE} /sw/lib${LIB_SUFFIX} /usr/pkg/lib${LIB_SUFFIX} ${WIN_CLUCENE_SEARCH_PATH} -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
As most people are now well aware I'm desperate to be able to work out GUI programming, but it does not seem to be my fate. There must be a correct way to submit a commercial command line only program. It is virtually useless if each user must be taught to use the full path each time. On 03/05/15 17:50, Alan Pope wrote: Well, typically applications that are submitted via that means are shipped with a graphical user interface, an icon and a .desktop file which allows the program to be launched from the menu / launcher. It's not common for there to be a command-line only application to get submitted. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 3 May 2015 at 12:44, Gareth France wrote: > So how do you set a program up to accessed from anywhere as you would expect > to be able to use it? > Well, typically applications that are submitted via that means are shipped with a graphical user interface, an icon and a .desktop file which allows the program to be launched from the menu / launcher. It's not common for there to be a command-line only application to get submitted. Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 3 May 2015 at 12:01, Alan Pope wrote: > On 3 May 2015 at 11:36, Gareth France wrote: >> There is no point in botching it to make it work as that's not really an >> instruction I can expect anyone downloading it to have to follow. >> >> Will the packaging moderators be happy with me installing to /usr/local? >> > > It will be rejected if you do. > > https://developer.ubuntu.com/en/publish/other-forms-of-submitting-apps/packaging-commercial-apps-part-2-packaging-software-additional-notes/ > > "Submitting for inclusion > > Basic DOs and Dont's for packaging for Commercial Applications > > DOs > > Please use /opt// as your application root directory" I see some apps install a link to the application binary from /usr/bin. Is that the recommended approach? 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] Issues packaging software
So how do you set a program up to accessed from anywhere as you would expect to be able to use it? On 03/05/15 12:01, Alan Pope wrote: It will be rejected if you do. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 3 May 2015 at 11:36, Gareth France wrote: > There is no point in botching it to make it work as that's not really an > instruction I can expect anyone downloading it to have to follow. > > Will the packaging moderators be happy with me installing to /usr/local? > It will be rejected if you do. https://developer.ubuntu.com/en/publish/other-forms-of-submitting-apps/packaging-commercial-apps-part-2-packaging-software-additional-notes/ "Submitting for inclusion Basic DOs and Dont's for packaging for Commercial Applications DOs Please use /opt// as your application root directory" -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
There is no point in botching it to make it work as that's not really an instruction I can expect anyone downloading it to have to follow. Will the packaging moderators be happy with me installing to /usr/local? On 03/05/15 11:33, Simon Greenwood wrote: Your immediate fix is to run 'export $PATH=$PATH:/opt' from a terminal but I would change the install path to /usr/local. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 3 May 2015 at 10:55, Gareth France wrote: > The packaging tutorial ends with: > > Basic DOs and Dont's for packaging for Commercial Applications > > DOs > > Please use /opt// as your application root directory > > > I have no idea if it is in $PATH but this is a stock install and I need > this to just work on a stock install. > > You can type 'echo $PATH' from a command line to find that out, but I would think not. My desktop $PATH is this: echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games The convention is for commercial software to install in /opt but that would appear to assume that you are building a fully fledged GUI-based application that would be called from a desktop menu, not a command line. Your immediate fix is to run 'export $PATH=$PATH:/opt' from a terminal but I would change the install path to /usr/local. s/ > -- > 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] Issues packaging software
The packaging tutorial ends with: Basic DOs and Dont's for packaging for Commercial Applications DOs Please use /opt// as your application root directory I have no idea if it is in $PATH but this is a stock install and I need this to just work on a stock install. On 03/05/15 10:52, Simon Greenwood wrote: On 3 May 2015 at 10:47, Gareth France mailto:gareth.fra...@cliftonts.co.uk>> wrote: With a little help from Paul Sladen I got it sorted thanks. My only issue now is that the installed package only runs if you call it using the full path /opt/cliftontestsuite/primetest. Just typing primetest an any random location does not work. Is this by design or have I screwed up? Obvious perhaps but do you have /opt in your $PATH? A packaged binary should really be installed in /usr/bin or /usr/local/bin to avoid that issue. s/ -- 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] Issues packaging software
On 3 May 2015 at 10:47, Gareth France wrote: > With a little help from Paul Sladen I got it sorted thanks. My only issue > now is that the installed package only runs if you call it using the full > path /opt/cliftontestsuite/primetest. Just typing primetest an any random > location does not work. Is this by design or have I screwed up? > > Obvious perhaps but do you have /opt in your $PATH? A packaged binary should really be installed in /usr/bin or /usr/local/bin to avoid that issue. s/ -- 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] Issues packaging software
With a little help from Paul Sladen I got it sorted thanks. My only issue now is that the installed package only runs if you call it using the full path /opt/cliftontestsuite/primetest. Just typing primetest an any random location does not work. Is this by design or have I screwed up? On 03/05/15 10:44, Barry Drake wrote: Gareth Just over a year ago, I had a go at making a Debian Sword set of packages. The errors you are getting seem remarkably similar. After a lot of discussion on a Deban packaging list, I discovered that the Sword stuff simply would not build properly under Ubuntu. Solution: use debootstrap. This creates a Debian minimal installation in a chroot environment ... the instructions for debootstrap are very complex - but it does do the lintian checks properly and I got working packages that I was able to test out properly. I handed it over to someone (I can't remember who) and after a couple of tweaks, it passed Debian. Same thing ought to be OK for Ubuntu packages. Get back to me if you want more info. I have a few notes, but memory is less certain after over a year. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 02/05/15 22:30, Gareth France wrote: Ok, I am really, really needing some help here. I have resolved all the issues one by one, except for an issue with the format. It is set to 3.0 (quilt) but I keep getting this error: Gareth Just over a year ago, I had a go at making a Debian Sword set of packages. The errors you are getting seem remarkably similar. After a lot of discussion on a Deban packaging list, I discovered that the Sword stuff simply would not build properly under Ubuntu. Solution: use debootstrap. This creates a Debian minimal installation in a chroot environment ... the instructions for debootstrap are very complex - but it does do the lintian checks properly and I got working packages that I was able to test out properly. I handed it over to someone (I can't remember who) and after a couple of tweaks, it passed Debian. Same thing ought to be OK for Ubuntu packages. Get back to me if you want more info. I have a few notes, but memory is less certain after over a year. Regards,Barry -- http://barrydrake.co.nr/ -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, 2 May 2015, Gareth France wrote: > debian/source/format:3.0 (quilt) I've run a few experiments trying variations like weird DOS line endings, extra lines/newlines and so forth but I can't reproduce the error message that you are seeing. > debian/cliftontestsuite.install:primetest /opt/cliftontestsuite/ Can you just mail me the tarball of the whole lot; this is likely to be quicker all-round. -Paul -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFVRT/Ec444tukM+iQRAgghAJ4r4gwd6GbbnglZuJer0dlvtRFSXACguM3r CuBTvYf8n7x+6+r4H/nNGE0= =w6Jc -END PGP SIGNATURE- -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
debian/source/format:3.0 (quilt) debian/cliftontestsuite.install:primetest /opt/cliftontestsuite/ On 02/05/15 21:43, Paul Sladen wrote: Please post the output of: $ grep . debian/{source/format,*.install} -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On Sat, 2 May 2015, Gareth France wrote: > debian/source/format > debian/cliftontestsuite.install Please post the output of: $ grep . debian/{source/format,*.install} -Paul -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
Ok, I am really, really needing some help here. I have resolved all the issues one by one, except for an issue with the format. It is set to 3.0 (quilt) but I keep getting this error: dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1) The format is correctly specified there. The deb file correctly creates but it doesn't contain my binary file. I have tried making a package.install file but it doesn't seem to do anything. I'm tearing my hair out here and I can't find anything even remotely helpful when searching online. Could someone please give me a little inspiration? On 28/04/15 09:32, Alan Pope wrote: Honestly, read the documentation. You have multiple issues here, but they can be taken one at a time. Some are warnings so*may* be ignored. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
All the reading in the world isn't going to change the issues which to the best of my ability appear to be correct. The format file in debian/source contains: 3.0 (quilt) Which as far as I can see is correct. On 28/04/15 09:32, Alan Pope wrote: Honestly, read the documentation. You have multiple issues here, but they can be taken one at a time. Some are warnings so*may* be ignored. I assume that outsourcing the packaging costs. I'm not in the position to pay and where I to do so I wouldn't learn anything. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 28 April 2015 at 09:17, Gareth France wrote: > I must apologise that I have limited time to look at this, usually at the > end of the day when I'm not at my best anyway. I've just performed debbuild > on it and taken some time to scrutinise the output. It does seem to be > experiencing some issues, though I'm a bit stumped as to what to do next: > Honestly, read the documentation. You have multiple issues here, but they can be taken one at a time. Some are warnings so *may* be ignored. > dpkg-source: warning: no source format specified in debian/source/format, > see dpkg-source(1) the "see dpkg-source(1)" bit means "read the manual". man dpkg-source You'll find a section about the debian/source/format file:- FILE FORMATS debian/source/format This file contains on a single line the format that should be used to build the source package (possible formats are described above). No leading or trailing spaces are allowed. So the question is, in your debian/source directory, do you have a file called "format"? If so, what does it contain? > dpkg-source: warning: Version number suggests Ubuntu changes, but > Maintainer: does not have Ubuntu address > dpkg-source: warning: Version number suggests Ubuntu changes, but there is > no XSBC-Original-Maintainer field This might be handy for this:- http://www.justgohome.co.uk/blog/2015/01/ubuntu-package-versions.html (which is one of the first hits when you search for "Version number suggests Ubuntu changes" .. and so on. It may however be worth going through the packaging guide which I believe comprehensively covers all of this. http://packaging.ubuntu.com/html/ It will take some time though. So it might be more time efficient to outsource the packaging to some other expert, so you can concentrate your limited time on developing your application. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
I must apologise that I have limited time to look at this, usually at the end of the day when I'm not at my best anyway. I've just performed debbuild on it and taken some time to scrutinise the output. It does seem to be experiencing some issues, though I'm a bit stumped as to what to do next: dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1) dpkg-source: warning: Version number suggests Ubuntu changes, but Maintainer: does not have Ubuntu address dpkg-source: warning: Version number suggests Ubuntu changes, but there is no XSBC-Original-Maintainer field dpkg-source: warning: the diff modifies the following upstream files: COPYING control dpkg-gencontrol: warning: Depends field of package cliftontestsuite: unknown substitution variable ${shlibs:Depends} E: cliftontestsuite source: invalid-standards-version 3.9.5, libtext-csv-perl, libdevice-serialport-perl, perl E: cliftontestsuite: section-is-dh_make-template W: cliftontestsuite: empty-binary-package On 28/04/15 08:43, Alan Pope wrote: It's incredibly unprofessional to upload software to any store on any platform with zero testing. For the ubuntu store this is one of the reasons it takes so long to get into the store. So many developers submitting code and packaging that hasn't even been tested results in wasted time for our people who review submissions and delays for everyone else. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 28 Apr 2015 08:22, "Gareth France" wrote: > > If it were clear how to do this then I would most certainly have done so. In practice I may have or I may have not. I have followed as much of the process as makes sense. > It's incredibly unprofessional to upload software to any store on any platform with zero testing. For the ubuntu store this is one of the reasons it takes so long to get into the store. So many developers submitting code and packaging that hasn't even been tested results in wasted time for our people who review submissions and delays for everyone else. There are plenty of guides to creating a VM or chroot in which to test, and further guides detailing how to build and install Debian packages. Many developers use pbuilder to have a clean environment to build in and others build directly using debuild. Personally I have used both, for example building packages like this... cd ./sourcedir debuild -us -uc Which generates a deb if everything is sane. Cheers, Al -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
I'm saying that the guide steps you through packaging one example where the work has already been done. Applying that to a fresh project is impossible as it skips important steps that you need to know. It is not possible for someone who has not done this before to follow the guide! No I have no idea how to do that. On 28/04/15 08:35, Colin Law wrote: On 28 April 2015 at 08:22, Gareth France wrote: If it were clear how to do this then I would most certainly have done so. In practice I may have or I may have not. I have followed as much of the process as makes sense. Please don't top post, thanks. Are you saying you do not know how to test that the package installs and runs on a clean install? Colin On 28/04/15 08:19, Alan Pope wrote: The idea is that you test the package yourself before submission rather than use the publishing process for support and QA. Have you successfully built a Debian package from your config and installed it on a clean machine or VM. You should do that and confirm that the files deployed go in the right place and the package follows the packaging guidelines before uploading it. -- 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] Issues packaging software
On 28 April 2015 at 08:22, Gareth France wrote: > If it were clear how to do this then I would most certainly have done so. In > practice I may have or I may have not. I have followed as much of the > process as makes sense. Please don't top post, thanks. Are you saying you do not know how to test that the package installs and runs on a clean install? Colin > > On 28/04/15 08:19, Alan Pope wrote: >> >> The idea is that you test the package yourself before submission rather >> than use the publishing process for support and QA. >> >> Have you successfully built a Debian package from your config and >> installed it on a clean machine or VM. You should do that and confirm >> that the files deployed go in the right place and the package follows >> the packaging guidelines before uploading it. >> > > -- > 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] Issues packaging software
If it were clear how to do this then I would most certainly have done so. In practice I may have or I may have not. I have followed as much of the process as makes sense. On 28/04/15 08:19, Alan Pope wrote: The idea is that you test the package yourself before submission rather than use the publishing process for support and QA. Have you successfully built a Debian package from your config and installed it on a clean machine or VM. You should do that and confirm that the files deployed go in the right place and the package follows the packaging guidelines before uploading it. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 27 Apr 2015 20:35, "Gareth France" wrote: > > I have just submitted my program. What has been so frustrating for me is that I know it is a simple process once you have done it. I'm certain I've got it wrong but I should be able to deal with that thanks to feedback from the submission process. > The idea is that you test the package yourself before submission rather than use the publishing process for support and QA. Have you successfully built a Debian package from your config and installed it on a clean machine or VM. You should do that and confirm that the files deployed go in the right place and the package follows the packaging guidelines before uploading it. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
I have just submitted my program. What has been so frustrating for me is that I know it is a simple process once you have done it. I'm certain I've got it wrong but I should be able to deal with that thanks to feedback from the submission process. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
When following the guides for submitting it talks you through setting up your system, then the content of the various files. Then it steps you through downloading, compiling and submitting the hello program. However it states that hello uses the autoconf build system, but doesn't tell you how to do this without that, or how to go about obtaining and setting autoconf up for yourself. Any suggestions? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
Yes I do mean proprietary. I'm building this software as a product for my business, I have chosen to go down the proprietary route and charge for the program as if course it does need to make a profit. I am open to any suggestions as to how I could monetise my product better in line with the ubuntu ethos, something I could work towards and convert to later down the line. I have made a local copy of the packaging guide. I am now going to step through it once more and add highlighted comments for every step I take and its outcome. Hopefully this will shine a light on where the problems are and someone can look at the notes and steer me back on track. Thanks for the license, I didn't think of looking at Skype. Under my nose and so obvious I overlooked it. On 27/04/15 18:09, Alan Pope wrote: By "commercial" I wonder if you mean "proprietary"? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 27 April 2015 at 17:17, Gareth France wrote: > Could anyone suggest what I am supposed to put for copyright and licensing > if I'm doing a commercial project? > By "commercial" I wonder if you mean "proprietary"? Either way, take a look at the copyright file you get with skype, as an example of a package containing a mix of proprietary (most of it) and free software (the debian directory) parts. Pastebinned here in case you don't have it installed http://paste.ubuntu.com/10913721/ I took this from /usr/share/doc/skype/copyright - you can look at other copyright files in /usr/share/doc/*/copyright and examine them too to learn from them.. I have quite a few on my system. I imagine many of them are similar. alan@deep-thought:~⟫ ls -l /usr/share/doc/*/copyright | wc -l 3725 Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 27/04/15 13:50, Dave Morley wrote: You need to read up on creating a debian package. https://developer.ubuntu.com/en/publish/other-forms-of-submitting-apps/packaging-commercial-apps-part-1-get-set-up-overview-of-debian-packaging/ https://developer.ubuntu.com/en/publish/other-forms-of-submitting-apps/packaging-commercial-apps-part-2-packaging-software-additional-notes/ Having taken a look at those links I can now confirm they are the ones causing all my problems. I just don't get along with them. Could anyone suggest what I am supposed to put for copyright and licensing if I'm doing a commercial project? -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 27/04/15 14:36, Andy Partington wrote: Documenting is the way forward! I do it to everything I do now, my memory sucks!!! I just bullet point each procedure I do and expand as and where necessary after I've worked it out. I agree with you and have already tried that. I think sometimes the problem is that you don't even know what the problem is, so it's hard to document. Thinking about it last time I started out by simply uploading my script (one perl file on it's own) and got direct feedback from the submission. This seemed to be much more targeted and relevant to what I was doing, perhaps that's how I was able to get there. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 27 April 2015 at 14:25, Gareth France wrote: > >> This is a good place to start. I've been through this tutorial, >> written by someone else, and it worked. It really clearly steps >> through every bit of the process. It's good for QML applications which >> are mobile focussed, less good for "legacy" type desktop applications >> though. > > > My program needs to be desktop, it needs to interface with external kit via > usb. > >> Also worth looking at simple tools like tkinter or wxPython or to make >> graphical Python apps. Building up to other toolkits afterwards. > > > My program is built in perl at present. Ideally I'd rather not have to start > from scratch again if I can help it. >> >> >> Debian packaging is not straightforward. This is one reason why we >> developed click and then snappy packaging, which will debut in the >> 15.10/16.04 timeframe. That makes it very much easier to package up >> applications. > > > The click packages interest me. Once fully implemented will it be possible > to publish command line apps this way? > >> Well, there's going to have to be some research and learning on your >> part too. Just throwing your hands in the air and saying "this is >> broken" is somewhat defeatist. > > > I wouldn't say I'm doing that but there is an issue with being experienced > and talking to someone who hasn't even started. It is difficult to know > which of the things you know like the back of your hand are just alien to > others. For instance the packaging guide mentions licenses and uses GPL as > an example but doesn't tell you what the other options are or where you can > go to explore them. It mentions files, tells you what to put in them but > leaves you unsure of the file name or location. > > The file structure required for packaging is not mentioned at all and I > didn't see it talking about compressing the files either, but I know that's > a must. After reading through these mails, I get the feeling you're not confident of what you are doing and getting stressed out when it doesn't work how it appears it should, I've gone through the same. The best thing I can offer to you is follow the links that Dave/Alan have posted, but DOCUMENT your process, open up a Google Doc publicly or something pad.ubuntu-uk.org if it's still there and share when you are at a point that you are stuck. Go through each process, write down what errors you're receiving or where you are stuck. When you've finished and got it working, propose to add the documentation, basically you need to show what you have done so far, where you are getting stuck each time so those areas can be improved? I've just started writing an app recently with the SDK and found the documentation OK so far, so you need to be more in detail of where you are having issues, do some work, ask for help when you are stuck. Documenting is the way forward! I do it to everything I do now, my memory sucks!!! I just bullet point each procedure I do and expand as and where necessary after I've worked it out. Andy -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
This is a good place to start. I've been through this tutorial, written by someone else, and it worked. It really clearly steps through every bit of the process. It's good for QML applications which are mobile focussed, less good for "legacy" type desktop applications though. My program needs to be desktop, it needs to interface with external kit via usb. Also worth looking at simple tools like tkinter or wxPython or to make graphical Python apps. Building up to other toolkits afterwards. My program is built in perl at present. Ideally I'd rather not have to start from scratch again if I can help it. Debian packaging is not straightforward. This is one reason why we developed click and then snappy packaging, which will debut in the 15.10/16.04 timeframe. That makes it very much easier to package up applications. The click packages interest me. Once fully implemented will it be possible to publish command line apps this way? Well, there's going to have to be some research and learning on your part too. Just throwing your hands in the air and saying "this is broken" is somewhat defeatist. I wouldn't say I'm doing that but there is an issue with being experienced and talking to someone who hasn't even started. It is difficult to know which of the things you know like the back of your hand are just alien to others. For instance the packaging guide mentions licenses and uses GPL as an example but doesn't tell you what the other options are or where you can go to explore them. It mentions files, tells you what to put in them but leaves you unsure of the file name or location. The file structure required for packaging is not mentioned at all and I didn't see it talking about compressing the files either, but I know that's a must. When the help files do not help, turning to others and saying it seems to be impossible is not just throwing your hands up and being defeatist. I know this is possible and I want to do it, my program is about as simple as they come so I don't think it's too much to ask that I put it to good use. I have seen campaigns encouraging those with no programming experience to code for Ubuntu, so the process needs to be straightforward enough, and documented well enough, for such people to do so. At present it's not, or I would have managed it with far less effort and aggro than this. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 27/04/15 13:50, Dave Morley wrote: If it is a cli tool you can create an application launcher that calls terminal and then opens the cli app but that is not recommended, however it is not impossible and takes longer to review. As for the gui guide follow the many examples on developer.ubuntu.com there is more than just the hello world example, that should help you get used to programing 1)in the sdk and 2) in a gui format. There is no way that someone that wrote a guide can sit down and hand hold someone through the process, however at the bottom of each page there should be a link to file a bug if you are confused by a step. Put the details into the bug. Why would it require a launcher at all if it is cli? My concern with this whole do a thing, wait for help, do a thing, wait for help method is my memory. When I managed to package and submit once before I gave up because it took so long that by the time I finished I had no idea how I got that far. If I have to send out a bug and wait each time the help will probably be meaningless to me by the time it arrives. One of the down sides of having to juggle family, work, programming etc is that my train of thought is being constantly torn away. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 27 April 2015 at 13:37, Gareth France wrote: > Ok, load the SDK, open a new project. Now I'm stuck. I just don't get any > aspect of the concept of graphical programming. > I really do think the only way I'm going to get it is to have some time face > to face with someone who knows what they are > doing, tutorials are great until you make a wrong move and get an error > message, then because you can't ask a tutorial > page questions you just get stuck. > This is a good place to start. I've been through this tutorial, written by someone else, and it worked. It really clearly steps through every bit of the process. It's good for QML applications which are mobile focussed, less good for "legacy" type desktop applications though. http://people.canonical.com/~dholbach/tmp/apps-presentations/AppDevSchoolWorkshopWriteyourfirstapp.pdf Also worth looking at simple tools like tkinter or wxPython or to make graphical Python apps. Building up to other toolkits afterwards. > In an earlier reply someone said the software centre isn't geared up to > accept non-graphical commercial applications. Right. Open up software centre and browse around. You'll see games and graphical applications mostly. It _is_ possible to put command line applications in there, but it's not the best way to deliver them probably. > Sounded a bit weird to me. I > have managed to package an earlier version of my program before but it was > slow, painful and I don't seem to be able to replicate it. The guidance > given by Canonical is missing huge chunks of important information. > Debian packaging is not straightforward. This is one reason why we developed click and then snappy packaging, which will debut in the 15.10/16.04 timeframe. That makes it very much easier to package up applications. > I really do think it would be of benefit for whoever maintains that guide to > step me through this and note where I am having problems because it should > be so straightforward for a simple program like this. > Well, there's going to have to be some research and learning on your part too. Just throwing your hands in the air and saying "this is broken" is somewhat defeatist. I'm no packaging expert, far from it. I learned what I know from looking at how other, simpler packages are setup and replicate that. e.g. cowsay or indeed get_iplayer are simple apps which one can learn a lot from, in terms of packaging. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On Mon, 27 Apr 2015 13:37:31 +0100 Gareth France wrote: > > Probably worth starting from the beginning and stopping when it gets > > difficult and ask for help at that point. > > Ok, load the SDK, open a new project. Now I'm stuck. I just don't get > any aspect of the concept of graphical programming. > I really do think the only way I'm going to get it is to have some > time face to face with someone who knows what they are > doing, tutorials are great until you make a wrong move and get an > error message, then because you can't ask a tutorial > page questions you just get stuck. > > > I am not following your logic. You can submit free apps to the > > archive or a PPA. You can push paid apps to the store. > > In an earlier reply someone said the software centre isn't geared up > to accept non-graphical commercial applications. Sounded a bit weird > to me. I have managed to package an earlier version of my program > before but it was slow, painful and I don't seem to be able to > replicate it. The guidance given by Canonical is missing huge chunks > of important information. > > I really do think it would be of benefit for whoever maintains that > guide to step me through this and note where I am having problems > because it should be so straightforward for a simple program like > this. > You need to read up on creating a debian package. https://developer.ubuntu.com/en/publish/other-forms-of-submitting-apps/packaging-commercial-apps-part-1-get-set-up-overview-of-debian-packaging/ https://developer.ubuntu.com/en/publish/other-forms-of-submitting-apps/packaging-commercial-apps-part-2-packaging-software-additional-notes/ If it is a cli tool you can create an application launcher that calls terminal and then opens the cli app but that is not recommended, however it is not impossible and takes longer to review. As for the gui guide follow the many examples on developer.ubuntu.com there is more than just the hello world example, that should help you get used to programing 1)in the sdk and 2) in a gui format. There is no way that someone that wrote a guide can sit down and hand hold someone through the process, however at the bottom of each page there should be a link to file a bug if you are confused by a step. Put the details into the bug. -- You Make It, I'll Break It! I Love My Job :) http://www.canonical.com http://www.ubuntu.com pgpIc0kM75AQv.pgp Description: OpenPGP digital signature -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
Probably worth starting from the beginning and stopping when it gets difficult and ask for help at that point. Ok, load the SDK, open a new project. Now I'm stuck. I just don't get any aspect of the concept of graphical programming. I really do think the only way I'm going to get it is to have some time face to face with someone who knows what they are doing, tutorials are great until you make a wrong move and get an error message, then because you can't ask a tutorial page questions you just get stuck. I am not following your logic. You can submit free apps to the archive or a PPA. You can push paid apps to the store. In an earlier reply someone said the software centre isn't geared up to accept non-graphical commercial applications. Sounded a bit weird to me. I have managed to package an earlier version of my program before but it was slow, painful and I don't seem to be able to replicate it. The guidance given by Canonical is missing huge chunks of important information. I really do think it would be of benefit for whoever maintains that guide to step me through this and note where I am having problems because it should be so straightforward for a simple program like this. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 27 April 2015 at 12:57, Gareth France wrote: > Alan, I have tried to work out the process of creating a GUI and it's so > alien from what I know to be programming. The SDK will generate an empty > package for me but then what??? I've followed the tutorials and ended up > with something that's almost working and absolutely no understanding of how > I got there. The task is just too big for me to visualise right now so I > don't have a clue where to start. > Probably worth starting from the beginning and stopping when it gets difficult and ask for help at that point. > It seems rather unfair that I have a program which adds value to the > software centre by offering something nobody else does and I can either give > it away or just not offer it at all. I've put a lot of work into making it > go specifically so I can publish it in this manner. > I am not following your logic. You can submit free apps to the archive or a PPA. You can push paid apps to the store. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
Alan, I have tried to work out the process of creating a GUI and it's so alien from what I know to be programming. The SDK will generate an empty package for me but then what??? I've followed the tutorials and ended up with something that's almost working and absolutely no understanding of how I got there. The task is just too big for me to visualise right now so I don't have a clue where to start. It seems rather unfair that I have a program which adds value to the software centre by offering something nobody else does and I can either give it away or just not offer it at all. I've put a lot of work into making it go specifically so I can publish it in this manner. On 27/04/15 12:52, Alan Pope wrote: That's not a commercial app in the store, it's a free software application packaged up in the standard ubuntu repository. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On 27 April 2015 at 11:47, Gareth France wrote: > So how do you explain the likes of get-iplayer? > That's not a commercial app in the store, it's a free software application packaged up in the standard ubuntu repository. > I would love to develop a gui app but it is physically impossible and nobody > seems willing to help me with that. > Not impossible, just a bit more work. Cheers, Al. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
So how do you explain the likes of get-iplayer? I would love to develop a gui app but it is physically impossible and nobody seems willing to help me with that. On 27/04/15 11:29, Dave Morley wrote: On Mon, 27 Apr 2015 11:18:36 +0100 Gareth France wrote: I didn't think you could package commercial pay for software that way. On 27/04/15 09:21, Dave Morley wrote: If it's just command line I would suggest just using a ppa on launchpad Ah not commercial paid, but the store only supports gui apps technically and then only for 14.04 now. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On Mon, 27 Apr 2015 11:18:36 +0100 Gareth France wrote: > I didn't think you could package commercial pay for software that way. > > On 27/04/15 09:21, Dave Morley wrote: > > If it's just command line I would suggest just using a ppa on > > launchpad > Ah not commercial paid, but the store only supports gui apps technically and then only for 14.04 now. -- You Make It, I'll Break It! I Love My Job :) http://www.canonical.com http://www.ubuntu.com pgpnqv3S59Kv7.pgp Description: OpenPGP digital signature -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
I didn't think you could package commercial pay for software that way. On 27/04/15 09:21, Dave Morley wrote: If it's just command line I would suggest just using a ppa on launchpad -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
Re: [ubuntu-uk] Issues packaging software
On Sat, 25 Apr 2015 23:46:18 +0100 Gareth France wrote: > I have written some software I would like to publish in Ubuntu. > Following the official guides I can create their demo program which > simply prints 'hello world' on the screen. Unsurprisingly I'm looking > to do much more than that! However the guides miss out a lot of > important information and just cause more confusion than they solve. > > I have done this once before but it was so long winded and required > so much back tracking and re-submitting over and over that by the > time it got approved I had forgotten how I'd got there, so gave up. > > Is there anyone who could help me get a very simple command line only > utility submitted to the software centre? > > Thanks in advance. > If it's just command line I would suggest just using a ppa on launchpad -- You Make It, I'll Break It! I Love My Job :) http://www.canonical.com http://www.ubuntu.com pgpGQPVckLVjF.pgp Description: OpenPGP digital signature -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/
[ubuntu-uk] Issues packaging software
I have written some software I would like to publish in Ubuntu. Following the official guides I can create their demo program which simply prints 'hello world' on the screen. Unsurprisingly I'm looking to do much more than that! However the guides miss out a lot of important information and just cause more confusion than they solve. I have done this once before but it was so long winded and required so much back tracking and re-submitting over and over that by the time it got approved I had forgotten how I'd got there, so gave up. Is there anyone who could help me get a very simple command line only utility submitted to the software centre? Thanks in advance. -- ubuntu-uk@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk https://wiki.ubuntu.com/UKTeam/