Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sudo won't emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Thu Dec 04, 2014 5:46 pm    Post subject: sudo won't emerge Reply with quote

I am new to gentoo. I had a powerbook G4 sitting around and decided to try to bring it to life. I have gotten it to boot, and I am slowly learning and coming to appreciate the beauty of gentoo. But I have not been able to get sudo to emerge. When I try
Quote:


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild N ] dev-libs/cyrus-sasl-2.1.26-r3:2 USE="berkdb gdbm pam ssl -authdaemond -java -kerberos -ldapdb -mysql -openldap -postgres -sample -sqlite -srp -static-libs -urandom" 0 kB
[ebuild N ] mail-mta/nullmailer-1.13-r4 USE="ssl" 0 kB
[ebuild N ] virtual/mta-1 0 kB
[ebuild N ] app-admin/sudo-1.8.11_p1 USE="ldap nls pam sendmail -offensive (-selinux) -skey" 0 kB

Total: 4 packages (4 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]

I get a warning:
Quote:


* Running aclocal -I ../cmulocal -I ../config ... [ ok ]
* This package has a configure.in file which has long been deprecated. Please
* update it to use configure.ac instead as newer versions of autotools will die
* when it finds this file. See https://bugs.gentoo.org/426262 for details.

And this indeed seems to be what happens:
Quote:


aclocal-1.12: warning: autoconf input should be named 'configure.ac', not 'configure.in'
aclocal-1.12: error: couldn't open directory './cmulocal': No such file or directory
Makefile:345: recipe for target 'aclocal.m4' failed
make[2]: *** [aclocal.m4] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r3/work/cyrus-sasl-2.1.26/saslauthd'
Makefile:515: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-libs/cyrus-sasl-2.1.26-r3/work/cyrus-sasl-2.1.26'
Makefile:423: recipe for target 'all' failed
make: *** [all] Error 2
* ERROR: dev-libs/cyrus-sasl-2.1.26-r3::gentoo failed (compile phase):
* emake failed

How can I fix this? I need sudo. Thanks for the help.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Dec 04, 2014 6:27 pm    Post subject: Re: sudo won't emerge Reply with quote

tblackson wrote:
How can I fix this? I need sudo. Thanks for the help.

tblackson ... firstly, welcome to gentoo. This looks as though you have ~ppc in ACCEPT_KEYWORDS, or have keyworded that package, and so are getting the ~arch version of automake ... 1.14.1 ... which is where this conflict arises (basically between the eclass and what automake-1.14 expects). This is why the advice for new users is to stick to stable (ie, ACCEPT_KEYWORDS="ppc") as ~arch takes some experience to deal with as you can expect breakage.

As to the problem, cyrus-sasl looks to only have a (~)ppc keyword for 2.1.26-r3, current stable on most arches is 2.1.26-r9, you might try keywording that (as this problem may be resolved in that particular ebuild). Also, do you actually need mail support for sudo? If you don't need a local MTA, or ssl support for same/nullmailer, you should be able to work around the issue by removing the ssl useflag from nullmailer, or the sendmail useflag from sudo.

HTH & best ... khay
Back to top
View user's profile Send private message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Thu Dec 04, 2014 6:53 pm    Post subject: Reply with quote

Thank you for the welcome and the suggestions. How do I tell if I have ~ppc in ACCEPT_KEYWORDS? It is not in make.conf:
Quote:

INPUT_DEVICES="evdev synaptics"
VIDEO_CARDS="nouveau"

USE="bindist X corefonts altivec emacs alsa"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

Nor in package.keywords:
Quote:

tom:tux [/etc/portage]
3% cat package.keywords
x11-misc/menumaker ~ppc
app-editors/leafpad ~ppc
=sci-calculators/galculator-2.1.3 ~ppc

Nor in package.use:
Quote:

tom:tux [/etc/portage]
3% cat package.use
x11-base/xorg-server udev
=dev-lang/python-2.7.7 sqlite
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Dec 04, 2014 8:05 pm    Post subject: Reply with quote

tblackson wrote:
Thank you for the welcome and the suggestions. How do I tell if I have ~ppc in ACCEPT_KEYWORDS? It is not in make.conf:

tblackson ... you're welcome. You can aquire the currently set vars via 'emerge --info'. I was probably wrong in the above, from closer inspection it looks like aclocal-1.12 is from automake-1.12.6 and not 1.14.1 ... the bug linked to suggested this was an 1.14.x issue. Anyhow, it may just be a case that automake can be updated to 1.13.4 but that its not pulled into the dependency tree as its a build dep, please try the following ...

/etc/portage/make.conf
Code:
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --with-bdeps=y"

... or simply add '--with-bdeps=y' as a switch to emerge ... hopefully that will update automake to 1.13.4 and so resolve the issue (btw, these are the versions I have installed, and I have no issue building cyrus-sasl ... though I'm on stable x86).

Actually, I'd probably do the following:

Code:
# emerge --oneshot --ask automake && emerge --depclean --ask && emerge --with-bdeps=y --ask sudo

HTH & best ... khay
Back to top
View user's profile Send private message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Thu Dec 04, 2014 8:22 pm    Post subject: Reply with quote

I tried the first option--it didn't work. I got the same error. As for the second option, since I don't know what I am doing, I am worried about deep cleaning. I don't want to break anything. Should I be worried?
Back to top
View user's profile Send private message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Thu Dec 04, 2014 8:30 pm    Post subject: Reply with quote

I tried the second option without the deep cleaning flag:
Quote:

tux ~ # emerge --oneshot --ask automake && emerge --with-bdeps=y --ask sudo
* IMPORTANT: 8 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-devel/automake-1.13.4

Would you like to merge these packages? [Yes/No]

That looks like a step in the right direction. Is it reasonable to emerge it?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Dec 04, 2014 8:34 pm    Post subject: Reply with quote

tblackson wrote:
I tried the first option--it didn't work. I got the same error. As for the second option, since I don't know what I am doing, I am worried about deep cleaning. I don't want to break anything. Should I be worried?

tblackson ... well, '--depclean' does come with a warning as it can potencially cause breakage ... which is why I provided the '--ask'. It's generally ok to say [Y]es but as I'm not sure what the current state of your system is I can't say any more than that. What's in the list for depcleaning? Also, was automake updated to 1.13.4? In fact, when you installed did you go through a @world update?

best ... khay
Back to top
View user's profile Send private message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Thu Dec 04, 2014 8:37 pm    Post subject: Reply with quote

I didn't try to install it yet. I wanted to wait on your advice. I don't know what an "@world update" is.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Dec 04, 2014 8:38 pm    Post subject: Reply with quote

tblackson wrote:
That looks like a step in the right direction. Is it reasonable to emerge it?

tblackson ... the "[R]" is replace ... so the package is currently installed. However, you probably have some automake versions that need depcleaning ... and again, I'm not sure what the current state of your install is so there may be other packages that are being tagged for removal.

best ... khay
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Dec 04, 2014 8:41 pm    Post subject: Reply with quote

tblackson wrote:
I didn't try to install it yet. I wanted to wait on your advice. I don't know what an "@world update" is.

blackson ... @world is the set of installed packages ... so an 'emerge --deep --update --changed-use --with-bdeps=y @world' is generally a good idea after an install, package.use [...] make.conf changes, and --sync.

best ... khay
Back to top
View user's profile Send private message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Thu Dec 04, 2014 8:53 pm    Post subject: Reply with quote

From the deep clean, I got this:
Quote:

tux ~ # emerge --depclean --ask

* Always study the list of packages to be cleaned for any obvious
* mistakes. Packages that are part of the world set will always
* be kept. They can be manually added to this set with
* `emerge --noreplace <atom>`. Packages that are listed in
* package.provided (see portage(5)) will be removed by
* depclean, even if they are part of the world set.
*
* As a safety measure, depclean will not remove any packages
* unless *all* required dependencies have been resolved. As a
* consequence, it is often necessary to run `emerge --update
* --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
* Dependencies could not be completely resolved due to
* the following required packages not being installed:
*
* >=virtual/perl-Data-Dumper-2.154.0 pulled in by:
* dev-lang/perl-5.18.2-r2
*
* Have you forgotten to do a complete update prior to depclean? The
* most comprehensive command for this purpose is as follows:
*
* emerge --update --newuse --deep --with-bdeps=y @world
*
* Note that the --with-bdeps=y option is not required in many
* situations. Refer to the emerge manual page (run `man emerge`)
* for more information about --with-bdeps.
*
* Also, note that it may be necessary to manually uninstall
* packages that no longer exist in the portage tree, since it may
* not be possible to satisfy their dependencies.

The update produced the following:
Quote:

ux ~ # emerge --update --ask @world

* IMPORTANT: 8 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U ] net-misc/iputils-20121221-r1 [20121221] USE="filecaps%*"

Would you like to merge these packages? [Yes/No]

I am in over my head here...
Back to top
View user's profile Send private message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Thu Dec 04, 2014 9:03 pm    Post subject: Reply with quote

Here is the output from the second suggestion:
Quote:

tux ~ # emerge --oneshot --ask automake && emerge --depclean --ask && emerge --with-bdeps=y --ask sudo

* IMPORTANT: 8 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] sys-devel/automake-1.13.4

Would you like to merge these packages? [Yes/No]
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Thu Dec 04, 2014 9:05 pm    Post subject: Reply with quote

tblackson wrote:
Code:
tux ~ # emerge --update --ask @world

tblackson ... note the output of --depclean suggests 'emerge --update --newuse --deep --with-bdeps=y @world' as "the most comprehensive command for this purpose" ... the reasoning might not be obvious to you right now but you'll probably notice more packages are pulled into the update.

tblackson wrote:
I am in over my head here...

All we are trying to do is make sure that all packages are currently up-to-date before running --depclean, also as the build error suggests this is an automake issue, we're trying to make sure only those versions of automake that are currently up-to-date, and stable, are installed (and so any 'old' versions depcleaned). So, all that may read as confusing ... but its pretty much the ABC's of managing a gentoo system.

Also ... to confuse things further ... automake is a "slotted" package, so more than one version can be installed at the same time (hence the rational for depcleaning the specific package that might be at issue here).

best ... khay
Back to top
View user's profile Send private message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Fri Dec 05, 2014 1:52 pm    Post subject: Reply with quote

I ran
Quote:

emerge --update --newuse --ask --deep --with-bdeps=y @world

That took some time to finish--the powerbook g4 is slow. Next I ran
Quote:

emerge --oneshot --ask automake && emerge --depclean --ask && emerge --with-bdeps=y --ask sudo

>>> These are the packages that would be unmerged:

sys-apps/powerpc-utils
selected: 1.1.3.18-r2
protected: none
omitted: none

sys-devel/automake
selected: 1.12.6
protected: none
omitted: 1.13.4

media-sound/twolame
selected: 0.3.13-r1
protected: none
omitted: none


!!! 'app-editors/nano' (virtual/editor) is part of your system profile.
!!! Unmerging it may be damaging to your system.


app-editors/nano
selected: 2.3.2
protected: none
omitted: none

media-libs/libass
selected: 0.11.2
protected: none
omitted: none

net-mail/mailbase
selected: 1.1
protected: none
omitted: none

media-libs/libdv
selected: 1.0.0-r3
protected: none
omitted: none

media-libs/speex
selected: 1.2_rc1-r2
protected: none
omitted: none

media-plugins/live
selected: 2012.01.07
protected: none
omitted: none

media-libs/libtheora
selected: 1.1.1-r1
protected: none
omitted: none

x11-libs/libXScrnSaver
selected: 1.2.2-r1
protected: none
omitted: none

virtual/logger
selected: 0
protected: none
omitted: none

app-admin/metalog
selected: 3-r1
protected: none
omitted: none

sys-fs/mac-fdisk
selected: 0.1-r7
protected: none
omitted: none

media-libs/libsndfile
selected: 1.0.25-r1
protected: none
omitted: none

app-i18n/enca
selected: 1.14-r1
protected: none
omitted: none

dev-libs/fribidi
selected: 0.19.6
protected: none
omitted: none

app-text/recode
selected: 3.6_p17-r2
protected: none
omitted: none

sys-devel/automake
selected: 1.11.6-r1
protected: none
omitted: 1.13.4

All selected packages: media-libs/libsndfile-1.0.25-r1 media-plugins/live-2012.01.07 net-mail/mailbase-1.1 sys-devel/automake-1.11.6-r1 dev-libs/fribidi-0.19.6 media-libs/speex-1.2_rc1-r2 x11-libs/libXScrnSaver-1.2.2-r1 app-text/recode-3.6_p17-r2 sys-fs/mac-fdisk-0.1-r7 media-libs/libtheora-1.1.1-r1 media-sound/twolame-0.3.13-r1 app-admin/metalog-3-r1 app-i18n/enca-1.14-r1 media-libs/libass-0.11.2 sys-devel/automake-1.12.6 virtual/logger-0 sys-apps/powerpc-utils-1.1.3.18-r2 media-libs/libdv-1.0.0-r3 app-editors/nano-2.3.2

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Would you like to unmerge these packages? [Yes/No] n
Quote:

It looks like it will remove the old versions of automake, which is what is desired. But I am concerned about some of the other packages. The two that most concern me are powerpc-utils and nano. Do I need them? Are there others on the list that I should worry about? Is it possible to remove packages selectively, now that I know which need to be removed?

Thanks for your help in all this. It is a steep learning curve for someone who never heard the word 'gentoo' two weeks ago.
Back to top
View user's profile Send private message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Fri Dec 05, 2014 4:44 pm    Post subject: Reply with quote

I got rid of the old automake packages. Now when I run
Quote:

tux ~ # emerge --with-bdeps=y --ask sudo

* IMPORTANT: 8 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild NS ] sys-devel/automake-1.12.6 [1.13.4]
[ebuild N ] dev-libs/cyrus-sasl-2.1.26-r3 USE="berkdb gdbm pam ssl -authdaemond -java -kerberos -ldapdb -mysql -openldap -postgres -sample -sqlite -srp -static-libs -urandom"
[ebuild N ] mail-mta/nullmailer-1.13-r4 USE="ssl"
[ebuild N ] virtual/mta-1
[ebuild N ] app-admin/sudo-1.8.11_p1 USE="ldap nls pam sendmail -offensive (-selinux) -skey"

Would you like to merge these packages? [Yes/No] n

I am not quite sure what this is saying. Is it saying that sudo requires automake-1.12.6?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Dec 05, 2014 7:34 pm    Post subject: Reply with quote

tblackson wrote:
I am not quite sure what this is saying. Is it saying that sudo requires automake-1.12.6?

tblackson ... yes, for dev-libs/cyrus-sasl-2.1.26-r3 this seems to be the case ...

Code:
# equery -C depgraph -l =dev-libs/cyrus-sasl-2.1.26-r3
 * Searching for cyrus-sasl2.1.26-r3 in dev-libs ...
 * dependency graph for dev-libs/cyrus-sasl-2.1.26-r3
dev-libs/cyrus-sasl-2.1.26-r3:
 [  0]  dev-libs/cyrus-sasl-2.1.26-r3   
 [  1]  net-mail/mailbase-1.1   
 [  1]  net-mail/courier-imap-4.15-r1   
 [  1]  mail-mta/courier-0.71   
 [  1]  sys-libs/db-4.8.30-r1   
 [  1]  sys-libs/gdbm-1.11   
 [  1]  virtual/krb5-0-r1   
 [  1]  net-nds/openldap-2.4.38-r2   
 [  1]  virtual/mysql-5.5   
 [  1]  virtual/pam-0-r1   
 [  1]  virtual/postgresql-9.3   
 [  1]  dev-db/sqlite-3.8.6   
 [  1]  dev-libs/openssl-1.0.1j   
 [  1]  virtual/jdk-1.6.0-r2   
 [  1]  sys-devel/automake-1.12.6   
 [  1]  sys-devel/autoconf-2.69   
 [  1]  sys-devel/libtool-2.4.2-r1   
 [  1]  virtual/pkgconfig-0-r1

However 2.1.26-r9 depends on automake-1.13.4 so its probably better to keyword this ...

/etc/portage/package.keywords
Code:
=dev-libs/cyrus-sasl-2.1.26-r9

As for the packages (like metalog ... which I assume you installed following the Handbook) being depcleaned this must mean they not in /var/lib/portage/world (the "world" file) for some reason ... perhaps you used '-1, --oneshot' when installing? Most of these seem to packages you would have emerged as a dependency of another package (ie, media-sound/twolame) and so I assume that you've since unmerged the package that pulled these in. To explain: any package *not* a dependency, or not explicity in the world file, will be tagged for depcleaning. So, if you want metalog as virtual/logger then it should be in the world file ...

Code:
# emerge --noreplace metalog

HTH & best ... khay
Back to top
View user's profile Send private message
tblackson
n00b
n00b


Joined: 03 Dec 2014
Posts: 10

PostPosted: Fri Dec 05, 2014 8:31 pm    Post subject: Reply with quote

It emerged! I am, however, concerned about some warnings:
Quote:

libtool: warning: remember to run 'libtool --finish /usr/libexec/sudo'libtool: warning: remember to run 'libtool --finish /usr/libexec/sudo'
libtool: warning: remember to run 'libtool --finish /usr/lib/sudo'
libtool: warning: remember to run 'libtool --finish /usr/lib/sudo'
libtool: warning: '../../lib/util/libsudo_util.la' has not been installed in '/usr/libexec/sudo'
libtool: warning: '../../lib/util/libsudo_util.la' has not been installed in '/usr/libexec/sudo'
libtool: warning: remember to run 'libtool --finish /usr/lib/sudo'

I will have to track down what to do here.

But thanks so much for your help. I learned in the process and see that I need to learn more. For example, the equery tool is something I need to get. I don't remember loading the metalog and pretty sure I didn't use oneshot, which is something I don't yet understand.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Dec 05, 2014 9:57 pm    Post subject: Reply with quote

tblackson wrote:
It emerged! I am, however, concerned about some warnings:

tblackson ... ok, good. I wouldn't worry about the warnings, they may be pre-emptive messages that are taken care of at the src_install() stage.

tblackson wrote:
But thanks so much for your help. I learned in the process and see that I need to learn more. For example, the equery tool is something I need to get. I don't remember loading the metalog and pretty sure I didn't use oneshot, which is something I don't yet understand.

Again, you're welcome. 'equery' is part of app-portage/gentoolkit, and along with app-portage/portage-utils and app-portage/eix are oft used tools to provide information like the above (dependency graphs, useflag status, file listings, file => package correlations, etc, etc).

As for metalog (which is a provider of virtual/logger) this is generally installed as one of the steps in the (install) Handbook, you may have omitted to do this and it was pulled in as a dependency of some other package ... though that wouldn't explain why it was being depcleaned. Anyhow, you should have it (or some other logger) in the world file ... so '--noreplace'.

The '-1, --oneshot' switch simply tells emerge not to add the package to the world file, this can be useful when re-merging a package which is a dependency ... and so doesn't belong in the world file. It'll all start to make sense once you understand how dependencies are tracked, and the relationship between a package and all the packages pulled in as a dependency of that package. You'll start to get more familiar with things as you start to get to grips with the flexibility, power, etc, of package management and building the install that suites your needs.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum