Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 624028 - dev-perl/File-BaseDir-0.70.0 : fails with FEATURES=test ( t/03_userdirs.t (Wstat: 2048 Tests: 8 Failed: 8) )
Summary: dev-perl/File-BaseDir-0.70.0 : fails with FEATURES=test ( t/03_userdirs.t (Ws...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL: https://rt.cpan.org/Ticket/Display.ht...
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-07-06 16:35 UTC by Toralf Förster
Modified: 2020-08-21 15:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.64 KB, text/plain)
2017-07-06 16:35 UTC, Toralf Förster
Details
dev-perl:File-BaseDir-0.70.0:20170705-212500.log (dev-perl:File-BaseDir-0.70.0:20170705-212500.log,4.42 KB, text/plain)
2017-07-06 16:35 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,434.36 KB, text/plain)
2017-07-06 16:35 UTC, Toralf Förster
Details
environment (environment,38.01 KB, text/plain)
2017-07-06 16:35 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,29.55 KB, application/x-bzip)
2017-07-06 16:35 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,12.67 KB, application/x-bzip)
2017-07-06 16:35 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-07-06 16:35:28 UTC
  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma_20170623-211337

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.4.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-07-06 16:35:31 UTC
Created attachment 481420 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-06 16:35:34 UTC
Created attachment 481422 [details]
dev-perl:File-BaseDir-0.70.0:20170705-212500.log
Comment 3 Toralf Förster gentoo-dev 2017-07-06 16:35:37 UTC
Created attachment 481424 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2017-07-06 16:35:41 UTC
Created attachment 481426 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2017-07-06 16:35:44 UTC
Created attachment 481428 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-06 16:35:47 UTC
Created attachment 481430 [details]
temp.tbz2
Comment 7 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-10-21 05:37:03 UTC
Do you happen to know how these ENV vars are set?

declare -x XDG_CACHE_HOME="/root/cache"
declare -x XDG_CONFIG_DIRS="/etc/xdg"
declare -x XDG_CONFIG_HOME="/root/config"
declare -x XDG_DATA_DIRS="/usr/local/share:/usr/share"
declare -x XDG_DATA_HOME="/root/share"
declare -x XDG_DESKTOP_DIR="/root/Desktop"
declare -x XDG_DOCUMENTS_DIR="/root/Documents"
declare -x XDG_DOWNLOAD_DIR="/root/Downloads"
declare -x XDG_MUSIC_DIR="/root/Music"
declare -x XDG_PICTURES_DIR="/root/Pictures"
declare -x XDG_PUBLICSHARE_DIR="/root/Public"
declare -x XDG_RUNTIME_DIR="/root/run"
declare -x XDG_TEMPLATES_DIR="/root/Templates"
declare -x XDG_VIDEOS_DIR="/root/Videos"

My configuration only exposes:

XDG_CONFIG_DIRS=/etc/xdg
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/mesa/xdg


And it looks like these paths are taking precedence in the test.
Comment 8 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-10-21 05:47:39 UTC
Looks like XDG_CONFIG_HOME is the trip-wire for this.
Comment 9 Larry the Git Cow gentoo-dev 2017-10-21 05:52:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1476c135ae813f7269a536504f3c40d8a6a794ad

commit 1476c135ae813f7269a536504f3c40d8a6a794ad
Author:     Kent Fredric <kentnl@gentoo.org>
AuthorDate: 2017-10-21 05:52:25 +0000
Commit:     Kent Fredric <kentnl@gentoo.org>
CommitDate: 2017-10-21 05:52:44 +0000

    dev-perl/File-BaseDir: Prevent XDG_CONFIG_HOME breaking tests bug #624028
    
    Closes: https://bugs.gentoo.org/624028
    Package-Manager: Portage-2.3.8, Repoman-2.3.3

 dev-perl/File-BaseDir/File-BaseDir-0.70.0.ebuild | 2 ++
 1 file changed, 2 insertions(+)
Comment 10 Toralf Förster gentoo-dev 2017-10-21 08:39:14 UTC
(In reply to Kent Fredric (IRC: kent\n) from comment #7)
I forced this in the tinderbox as a requirement of a Gentoo dev :
https://github.com/toralf/tinderbox/blob/master/bin/job.sh#L1187
see bug #567192
Comment 11 Larry the Git Cow gentoo-dev 2020-08-21 15:53:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83fc69b13e3dde230f78203a9e8c862abdf07292

commit 83fc69b13e3dde230f78203a9e8c862abdf07292
Author:     Kent Fredric <kentnl@gentoo.org>
AuthorDate: 2020-08-21 15:51:28 +0000
Commit:     Kent Fredric <kentnl@gentoo.org>
CommitDate: 2020-08-21 15:52:26 +0000

    dev-perl/File-BaseDir: Bump to version 0.80.0
    
    - EAPI7
    - Unconditionally strip bad tests
    - Remove bug #624028 workaround due to upstream mimicing it
    
    Upstream:
    - Fix failing test 03_userdirs.t
    
    Bug: https://bugs.gentoo.org/624028
    Package-Manager: Portage-2.3.103, Repoman-2.3.22
    Signed-off-by: Kent Fredric <kentnl@gentoo.org>

 dev-perl/File-BaseDir/File-BaseDir-0.80.0.ebuild | 36 ++++++++++++++++++++++++
 dev-perl/File-BaseDir/Manifest                   |  1 +
 2 files changed, 37 insertions(+)