Asking for sudo password, from pkgconfig?

When building ruby-gnome2, some of the packages ask/attempt to install
an RPM if it finds something missing. It will prompt for password for
sudo to do this.

On the system I am using, I do not want it to do this, as I don’t have
the libraries and don’t need these.

I know I could just delete those packages before I do the build, but is
there any flag or setting I could use to disable this behavior?

If not, I think it would be helpful, possibly a flag that disables the
automatic installation of RPM, and just spit out as an error what RPMs
in thinks should be installed.

I started looking at how this was working, is this being done in the
pkgconfig gem?

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Asking for sudo password, from pkgconfig?” on
Wed, 19 Feb 2014 18:44:21 +0100,
Grant S. [email protected] wrote:

When building ruby-gnome2, some of the packages ask/attempt to install
an RPM if it finds something missing. It will prompt for password for
sudo to do this.

I know I could just delete those packages before I do the build, but is
there any flag or setting I could use to disable this behavior?

No. There is no flag to disable this behavior.

If not, I think it would be helpful, possibly a flag that disables the
automatic installation of RPM, and just spit out as an error what RPMs
in thinks should be installed.

How way do you like? Is using environment variable good?

I started looking at how this was working, is this being done in the
pkgconfig gem?

No. It is implemented in Ruby-GNOME2. See the following codes:

ruby-gnome/glib2/ext/glib2/extconf.rb at master · ruby-gnome/ruby-gnome · GitHub
ruby-gnome/glib2/lib/mkmf-gnome2.rb at master · ruby-gnome/ruby-gnome · GitHub
ruby-gnome/glib2/lib/mkmf-gnome2.rb at master · ruby-gnome/ruby-gnome · GitHub

Thanks,

kou

Sorry for the long delay, got side tracked with work… :>

Kouhei S. wrote in post #1139276:

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Asking for sudo password, from pkgconfig?” on
Wed, 19 Feb 2014 18:44:21 +0100,
Grant S. [email protected] wrote:

When building ruby-gnome2, some of the packages ask/attempt to install
an RPM if it finds something missing. It will prompt for password for
sudo to do this.

I know I could just delete those packages before I do the build, but is
there any flag or setting I could use to disable this behavior?

No. There is no flag to disable this behavior.

If not, I think it would be helpful, possibly a flag that disables the
automatic installation of RPM, and just spit out as an error what RPMs
in thinks should be installed.

How way do you like? Is using environment variable good?

An environment variable would be great.

I started looking at how this was working, is this being done in the
pkgconfig gem?

No. It is implemented in Ruby-GNOME2. See the following codes:

Thanks,

kou