<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>150709</bug_id>
          
          <creation_ts>2006-10-09 23:07 0000</creation_ts>
          <short_desc>[FEATURES=test failure] gnome-base/nautilus-2.18.3</short_desc>
          <delta_ts>2008-02-21 06:31:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>GNOME</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>69343</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>ravi@p-static.net</reporter>
          <assigned_to>gnome@gentoo.org</assigned_to>
          <cc>graaff@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>ravi@p-static.net</who>
            <bug_when>2006-10-09 23:07:27 0000</bug_when>
            <thetext>gnome-base/nautilus-2.14.1 fails with FEATURES=&quot;test&quot;.

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

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&apos;
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/var/tmp/portage/nautilus-2.14.1/work/nautilus-2.14.1/src&apos;
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/nautilus-2.14.1/work/nautilus-2.14.1/src&apos;
make[1]: *** [check] Error 2
make[1]: Leaving directory `/var/tmp/portage/nautilus-2.14.1/work/nautilus-2.14.1/src&apos;
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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-06-02 15:28:12 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2007-06-17 11:33:16 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-06-17 13:49:52 0000</bug_when>
            <thetext>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:

&gt;&gt;&gt; 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&apos;

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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>remi@gentoo.org</who>
            <bug_when>2007-09-02 17:30:09 0000</bug_when>
            <thetext>Hans,

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

Thanks</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-09-04 20:06:30 0000</bug_when>
            <thetext>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&apos;

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&apos;
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&apos;
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&apos;
make[1]: *** [check] Error 2
make[1]: Leaving directory `/var/tmp/portage/gnome-base/nautilus-2.18.3/work/nautilus-2.18.3/src&apos;
make: *** [check-recursive] Error 1
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-10-20 06:27:04 0000</bug_when>
            <thetext>Confirmed that this still happens with nautilus-2.20.0</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2007-10-27 11:11:51 0000</bug_when>
            <thetext>ok, so there is something wrong here. I&apos;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&apos;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 ?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2007-10-30 20:05:29 0000</bug_when>
            <thetext>(In reply to comment #7)

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

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

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

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

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eva@gentoo.org</who>
            <bug_when>2008-02-18 23:54:46 0000</bug_when>
            <thetext>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&apos;s not anyway. If it doesn&apos;t fix your bug, please reopen.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>graaff@gentoo.org</who>
            <bug_when>2008-02-21 06:31:40 0000</bug_when>
            <thetext>Works fine for me with nautilus-2.20.0-r1. Thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>