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
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 gareth.fra...@cliftonts.co.uk 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
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:47, Gareth France 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
The packaging tutorial ends with: Basic DOs and Dont's for packaging for Commercial Applications DOs Please use /opt/application_name/ 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 gareth.fra...@cliftonts.co.uk 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 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
On 3 May 2015 at 12:01, Alan Pope a...@popey.com wrote: On 3 May 2015 at 11:36, Gareth France gareth.fra...@cliftonts.co.uk 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/application_name/ 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
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 3 May 2015 at 10:55, Gareth France gareth.fra...@cliftonts.co.uk wrote: The packaging tutorial ends with: Basic DOs and Dont's for packaging for Commercial Applications DOs Please use /opt/application_name/ 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
On 3 May 2015 at 11:36, Gareth France gareth.fra...@cliftonts.co.uk 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/application_name/ 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
On 3 May 2015 at 12:44, Gareth France gareth.fra...@cliftonts.co.uk 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
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 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 dmitrij.led...@ubuntu.com --- 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
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/