Re: [Gambas-user] Complex Extra Dependency

2013-02-16 Thread RICHARD WALKER
On 14/02/2013, Benoît Minisini gam...@users.sourceforge.net wrote:
 Le 14/02/2013 19:00, John Rose a écrit :
 Tobi,

 I wanted to see if anyone had run into this issue before. That was why I
 was vague.

 If I create the installation package without specifying gnome-panel as
 an Extra Dependency but run 'sudo apt-get install
 --no-install-recommends gnome-panel' before installing the app (from the
 created installation package), everything is fine.

 As you say, it would be useful to know if the--no-install-recommends
 option could be implemented in the Extra Dependencies step so that a
 user could install the app without running the above sudo apt-get
 commend. Any comments about this facility being made available in Gambas?

 Regards,
 John


 The installer tries to be distribution-agnostic. What does
 --no-install-recommends do ? Normally, when a package is installed,
 only the needed dependencies are installed, not the recommended
 packages. Or am I wrong?

 --
 Benoît Minisini

I cannot speak with any authority on this matter, but Mandriva and
Mageia use a similar mechanism which can be turned off using the
urpmi option --no-suggests. This could well be handled differently
by other distros' package managers for rpms.

The problem I see with this is that suggested packages are
_completely_ at the whim of the packager for any given distribution
and there is less than no guarantee that any two or more distributions
will package the same app with the same suggested additions.

Furthermore, at least as far as rpmdrake (the gui tool using urpmi) is
concerned, it is not obvious to the user which, if any, additional
packages are required and which are suggested.

If we implement a suggested package handler in some
package-independent way for Gambas application packages then we might
also need some conditional logic to handle the different requirements
of different distributions.

This means, at the very least, that if a Gambas application developer
determines that on distribution X, used for development, a required
package can be used sans-suggests, then a good deal of research into
other possible target distributions' versions of the same required
package would be needed to determine if the same requirement option
(no suggests) is relevant and/or possible.

Ooops, got a bit carried away there. Hope the logic is clear:-)

Richard

--
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Complex Extra Dependency

2013-02-14 Thread John Rose
I thought that I'd just ask this question again.

I have written an app in Gambas 3.3.4  want to make an installation 
package for Ubuntu. The app has a dependency of gnome-panel which must 
be installed by:
sudo apt-get install --no-install-recommends gnome-panel
according to
UnityLaunchersAndDesktopFiles - Community Ubuntu Documentation 
https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
which states that:
It is important to install gnome-panel using the following command 'sudo 
apt-get install --no-install-recommends gnome-panel', so as not to 
install the recommended not-needed packets along with it.

If I put gnome-panel in the Extra Dependencies step, it would presumably 
effectively be sudo apt-get install gnome-panel?

What should I do?

-- 
Regards,
John

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Complex Extra Dependency

2013-02-14 Thread Tobias Boege
On Thu, 14 Feb 2013, John Rose wrote:
 I thought that I'd just ask this question again.
 
 I have written an app in Gambas 3.3.4  want to make an installation 
 package for Ubuntu. The app has a dependency of gnome-panel which must 
 be installed by:
 sudo apt-get install --no-install-recommends gnome-panel
 according to
 UnityLaunchersAndDesktopFiles - Community Ubuntu Documentation 
 https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
 which states that:
 It is important to install gnome-panel using the following command 'sudo 
 apt-get install --no-install-recommends gnome-panel', so as not to 
 install the recommended not-needed packets along with it.
 
 If I put gnome-panel in the Extra Dependencies step, it would presumably 
 effectively be sudo apt-get install gnome-panel?
 
 What should I do?
 

Are sure that you can actually accomplish what you want, namely that the
dependency _can_ be installed with the --no-install-recommends argument? I
don't know the format of .deb packages. If you know better, please say it so
that one can estimate the effort to implement it.

Regards,
Tobi

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Complex Extra Dependency

2013-02-14 Thread John Rose
Tobi,

I wanted to see if anyone had run into this issue before. That was why I 
was vague.

If I create the installation package without specifying gnome-panel as 
an Extra Dependency but run 'sudo apt-get install 
--no-install-recommends gnome-panel' before installing the app (from the 
created installation package), everything is fine.

As you say, it would be useful to know if the--no-install-recommends 
option could be implemented in the Extra Dependencies step so that a 
user could install the app without running the above sudo apt-get 
commend. Any comments about this facility being made available in Gambas?

Regards,
John

On 14/02/13 17:47, Tobias Boege wrote:
 On Thu, 14 Feb 2013, John Rose wrote:
 I thought that I'd just ask this question again.

 I have written an app in Gambas 3.3.4  want to make an installation
 package for Ubuntu. The app has a dependency of gnome-panel which must
 be installed by:
 sudo apt-get install --no-install-recommends gnome-panel
 according to
 UnityLaunchersAndDesktopFiles - Community Ubuntu Documentation
 https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
 which states that:
 It is important to install gnome-panel using the following command 'sudo
 apt-get install --no-install-recommends gnome-panel', so as not to
 install the recommended not-needed packets along with it.

 If I put gnome-panel in the Extra Dependencies step, it would presumably
 effectively be sudo apt-get install gnome-panel?

 What should I do?

 Are sure that you can actually accomplish what you want, namely that the
 dependency _can_ be installed with the --no-install-recommends argument? I
 don't know the format of .deb packages. If you know better, please say it so
 that one can estimate the effort to implement it.

 Regards,
 Tobi

 --
 Free Next-Gen Firewall Hardware Offer
 Buy your Sophos next-gen firewall before the end March 2013
 and get the hardware for free! Learn more.
 http://p.sf.net/sfu/sophos-d2d-feb
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Complex Extra Dependency

2013-02-14 Thread Gianni Piccini
On 14/02/2013 19:07, Benoît Minisini wrote:

 Normally, when a package is installed,
 only the needed dependencies are installed, not the recommended
 packages. Or am I wrong?

Not sure of how it works in details, but I think it's wrong, at least in 
most cases, with apt-get. I remember discussions when the new work mode 
became standard also in Debian.
In apt.conf file, for example, to reduce installed packages, you can 
also put a setting:

APT::Install-Recommends false;

--
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user