First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 150709
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ravi Pinjala <ravi@p-static.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 150709 depends on: Show dependency tree
Bug 150709 blocks: 69343
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-10-09 23:07 0000
gnome-base/nautilus-2.14.1 fails with FEATURES="test".

make[3]: Entering directory
`/var/tmp/portage/nautilus-2.14.1/work/nautilus-2.14.1/src'
make  check-TESTS
make[4]: Entering directory
`/var/tmp/portage/nautilus-2.14.1/work/nautilus-2.14.1/src'

GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols
specified are supported and host-based authentication failed.
aborting...
./check-nautilus: line 2: 17848 Aborted                 ./nautilus --check
--g-fatal-warnings
FAIL: check-nautilus
=========================================================================
1 of 1 tests failed
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=nautilus
=========================================================================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory
`/var/tmp/portage/nautilus-2.14.1/work/nautilus-2.14.1/src'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory
`/var/tmp/portage/nautilus-2.14.1/work/nautilus-2.14.1/src'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/nautilus-2.14.1/work/nautilus-2.14.1/src'
make[1]: *** [check] Error 2
make[1]: Leaving directory
`/var/tmp/portage/nautilus-2.14.1/work/nautilus-2.14.1/src'
make: *** [check-recursive] Error 1

!!! ERROR: gnome-base/nautilus-2.14.1 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_test
  ebuild.sh, line 986:   Called src_test
  nautilus-2.14.1.ebuild, line 73:   Called die

!!! Test phase failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #1 From Hans de Graaff 2007-06-02 15:28:12 0000 -------
This also happens with nautilus-2.16.3. 

It looks like the test want to connect to the current gnome session, but with
the session running as a user and the emerge running as root this causes a
mismatch.

------- Comment #2 From Gilles Dartiguelongue 2007-06-17 11:33:16 0000 -------
I tried on a 2.16 box over ssh and it passes tests. Maybe try to unset DISPLAY
or X* env vars if you are compiling from a terminal in X.

------- Comment #3 From Hans de Graaff 2007-06-17 13:49:52 0000 -------
I am compiling from a terminal in an X session. If I shell into my own box and
compile, then the tests pass for me as well. Unsetting DISPLAY in my normal
environment does have the right effect, but unfortunately does not solve the
problem. When DISPLAY is unset, the ebuild (using the virtualx class) correctly
starts Xvfb to do its thing:

>>> Source compiled.
 * Scanning for an open DISPLAY to start Xvfb ...
 * Starting Xvfb on $DISPLAY=1 ...
Making check in libnautilus-extension

However, it still fails:

make[4]: Entering directory
`/var/tmp/portage/gnome-base/nautilus-2.18.1/work/nautilus-2.18.1/src'

GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols
specified are supported and host-based authentication failed.
aborting...
./check-nautilus: line 2: 11413 Aborted                 ./nautilus --check
--g-fatal-warnings
FAIL: check-nautilus
=========================================================================
1 of 1 tests failed
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=nautilus
=========================================================================

The additional culprit is the SESSIONMANAGER variable. After unsetting this as
well the tests run without issue.

So it seems there are two issues here:
1. virtualx.eclass should probably also unset SESSIONMANAGER (in addition
XAUTHORITY) to be on the safe side)
2. should the nautilus ebuild unset DISPLAY? It seems unlikely that this will
ever work in the current setup for any user compiling stuff in an X terminal.

------- Comment #4 From Rémi Cardona 2007-09-02 17:30:09 0000 -------
Hans,

do you still get that bug with nautilus 2.18 ? If so, please update the bug
summary so that it doesn't get lost :)

Thanks

------- Comment #5 From Hans de Graaff 2007-09-04 20:06:30 0000 -------
Yes, still same problem with 2.18.3:

make  check-TESTS
make[4]: Entering directory
`/var/tmp/portage/gnome-base/nautilus-2.18.3/work/nautilus-2.18.3/src'

GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols
specified are supported and host-based authentication failed.
aborting...
./check-nautilus: line 2:  7132 Aborted                 ./nautilus --check
--g-fatal-warnings
FAIL: check-nautilus
=========================================================================
1 of 1 tests failed
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=nautilus
=========================================================================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory
`/var/tmp/portage/gnome-base/nautilus-2.18.3/work/nautilus-2.18.3/src'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory
`/var/tmp/portage/gnome-base/nautilus-2.18.3/work/nautilus-2.18.3/src'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gnome-base/nautilus-2.18.3/work/nautilus-2.18.3/src'
make[1]: *** [check] Error 2
make[1]: Leaving directory
`/var/tmp/portage/gnome-base/nautilus-2.18.3/work/nautilus-2.18.3/src'
make: *** [check-recursive] Error 1

------- Comment #6 From Hans de Graaff 2007-10-20 06:27:04 0000 -------
Confirmed that this still happens with nautilus-2.20.0

------- Comment #7 From Gilles Dartiguelongue 2007-10-27 11:11:51 0000 -------
ok, so there is something wrong here. I'm pretty sure you are using su to get
root and install stuff. Please do the following test :

Get root with :
sudo -s (provided you have it installed)
su
su -

and look at your env. Only when using su alone you'll get SESSION_MANAGER still
set, hence the breakage. Afaik the ebuild should still compile so I think
fixing the ebuild in src_test is the right thing to do. Is there any other
ebuild failing in a similar way for you ?

------- Comment #8 From Hans de Graaff 2007-10-30 20:05:29 0000 -------
(In reply to comment #7)

> sudo -s (provided you have it installed)
> su
> su -
> 
> and look at your env. Only when using su alone you'll get SESSION_MANAGER still
> set, hence the breakage. 

Confirmed. I am using 'su', and both 'sudo -s' and 'su -' wipe out the
SESSION_MANAGER environment variable. 

I can't recall other ebuilds failing in the same way, but I'm not sure I'm
using any other ebuilds that test with the virtual X stuff.

Afaik the ebuild should still compile so I think
> fixing the ebuild in src_test is the right thing to do. Is there any other
> ebuild failing in a similar way for you ?
> 

------- Comment #9 From Gilles Dartiguelongue 2008-02-18 23:54:46 0000 -------
I commited a change to unset the SESSION_MANAGER in src_test, not sure this is
the best solution but somebody will cry if it's not anyway. If it doesn't fix
your bug, please reopen.

------- Comment #10 From Hans de Graaff 2008-02-21 06:31:40 0000 -------
Works fine for me with nautilus-2.20.0-r1. Thanks!

First Last Prev Next    No search results available      Search page      Enter new bug