# Asking for sudo password, from pkgconfig?

**URL:** <https://www.ruby-forum.com/t/asking-for-sudo-password-from-pkgconfig/239267>\
**Category:** Ruby-Gnome 2\
**Created:** [February 19, 2014, 6:44pm UTC](https://www.ruby-forum.com/t/asking-for-sudo-password-from-pkgconfig/239267 "2014-02-19T18:44:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [February 19, 2014, 6:44pm UTC](https://www.ruby-forum.com/t/asking-for-sudo-password-from-pkgconfig/239267/1 "2014-02-19T18:44:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![grantspeelman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/da6949/32.png) [@grantspeelman](https://www.ruby-forum.com/u/grantspeelman)\
**Post date:** [March 9, 2014, 5:17am UTC](https://www.ruby-forum.com/t/asking-for-sudo-password-from-pkgconfig/239267/2 "2014-03-09T05:17:12Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“[ruby-gnome2-devel-en] Asking for sudo password, from pkgconfig?” on  
Wed, 19 Feb 2014 18:44:21 +0100,  
Grant S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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 main · ruby-gnome/ruby-gnome · GitHub](https://github.com/ruby-gnome2/ruby-gnome2/blob/master/glib2/ext/glib2/extconf.rb#L19)  
[ruby-gnome/glib2/lib/mkmf-gnome2.rb at main · ruby-gnome/ruby-gnome · GitHub](https://github.com/ruby-gnome2/ruby-gnome2/blob/master/glib2/lib/mkmf-gnome2.rb#L531)  
[ruby-gnome/glib2/lib/mkmf-gnome2.rb at main · ruby-gnome/ruby-gnome · GitHub](https://github.com/ruby-gnome2/ruby-gnome2/blob/master/glib2/lib/mkmf-gnome2.rb#L454)

## Thanks,

kou

---

<div class="post-metadata">

**Author:** ![grantspeelman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/da6949/32.png) [@grantspeelman](https://www.ruby-forum.com/u/grantspeelman)\
**Post date:** [September 1, 2014, 8:53pm UTC](https://www.ruby-forum.com/t/asking-for-sudo-password-from-pkgconfig/239267/3 "2014-09-01T20:53:57Z")

</div>

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

Kouhei S. wrote in post #1139276:

> Hi,
> 
> In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> “[ruby-gnome2-devel-en] Asking for sudo password, from pkgconfig?” on  
> Wed, 19 Feb 2014 18:44:21 +0100,  
> Grant S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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:

> <https://github.com/ruby-gnome/ruby-gnome/blob/main/glib2/ext/glib2/extconf.rb#L19>

> 

> <https://github.com/ruby-gnome/ruby-gnome/blob/main/glib2/lib/mkmf-gnome2.rb#L531>

> 

> <https://github.com/ruby-gnome/ruby-gnome/blob/main/glib2/lib/mkmf-gnome2.rb#L454>

> ## Thanks,
> 
> kou
