Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105170 - ebuild error: libxml2-2.6.20-r2, libxml2-2.6.22 try to fetch files during tests
Summary: ebuild error: libxml2-2.6.20-r2, libxml2-2.6.22 try to fetch files during tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-07 11:23 UTC by Ciaran McCreesh
Modified: 2006-01-31 11:08 UTC (History)
3 users (show)

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


Attachments
Add test tarballs to SRC_URI when building tests (libxml2-2.6.20-r2.ebuild.patch,1.24 KB, patch)
2005-10-28 10:16 UTC, Kevin F. Quinn (RETIRED)
Details | Diff
ebuild patch to add test tarballs to SRC_URI when building tests (libxml2-2.6.22.ebuild-fetch.diff,1.28 KB, patch)
2005-11-07 23:33 UTC, Kevin F. Quinn (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ciaran McCreesh 2005-09-07 11:23:39 UTC
libxml2-2.6.20-r2 will try to fetch xsts-2002-01-16.tar.gz during the test
phase. This should be moved to be a SRC_URI component.
Comment 1 Kevin F. Quinn (RETIRED) gentoo-dev 2005-10-28 10:16:59 UTC
Created attachment 71643 [details, diff]
Add test tarballs to SRC_URI when building tests

Two tarballs are fetched from w3.org for tests:

http://www.w3.org/XML/2004/xml-schema-test-suite/xmlschema2002-01-16/xsts-2002-01-16.tar.gz

http://www.w3.org/XML/2004/xml-schema-test-suite/xmlschema2004-01-14/xsts-2004-01-14.tar.gz


The ebuild patch here (for 2.6.20-r2) includes them in SRC_URI, and moves them
to their expected location in src_unpack().  I haven't done anything outside of
the ebuild, but you may want to consider doing changing gnome.org.eclass to
provide the name of the source archive:

[ -z "${GNOME_TARBALL_SUFFIX}" ] && export GNOME_TARBALL_SUFFIX="bz2"
PVP=(${PV//[-\._]/ })
GNOME_TARBALL="${P}.tar.${GNOME_TARBALL_SUFFIX}"
SRC_URI="mirror://gnome/sources/${PN}/${PVP[0]}.${PVP[1]}/${GNOME_TARBALL}"

and then using ${GNOME_TARBALL} in the src_unpack() function instead of
${P}.tar.${GNOME_TARBALL_SUFFIX} as I have done.

Same probably applies to 2.6.22 but that's left as an exercise for the reader
:)  The tarballs are listed in xstc/Makefile (search for TARBALL)
Comment 2 Kevin F. Quinn (RETIRED) gentoo-dev 2005-11-07 23:33:39 UTC
Created attachment 72429 [details, diff]
ebuild patch to add test tarballs to SRC_URI when building tests

Here's a patch against 2.6.22 to make it easy, since the issue wasn't been
picked up before marking 2.6.22 stable.  Patch is essentially unchanged from
2.6.20-r2, just applies cleanly against 2.6.22.

It still may be worth exporting the archive filename from gnome.org.eclass -
see previous comments.
Comment 3 Kevin F. Quinn (RETIRED) gentoo-dev 2006-01-17 13:55:43 UTC
Leonardo; since you've just added libxml-2.6.23, could you please consider putting in this fix.  The fix has been here since 2.6.20-r2.

Thanks
Comment 4 Kevin F. Quinn (RETIRED) gentoo-dev 2006-01-30 12:58:09 UTC
Fix committed on 2.6.23-r1 with permission of AllanonJL, all arches marked unstable.
Comment 5 Krisztian Kis-Szabo 2006-01-31 03:16:03 UTC
This fix does not work for me. Moving /usr/portage/distfiles/xsts-2002-01-16.tar.gz to /var/tmp/portage/libxml2-2.6.23-r1/work/libxml2-2.6.23/xstc/xsts-2002-01-16.tar.gz is denied. Here is the error, sorry for hungarian words:
ACCESS DENIED  rename:    /usr/portage/distfiles/xsts-2002-01-16.tar.gz
mv: `/usr/portage/distfiles/xsts-2002-01-16.tar.gz'-t nem lehet ide 
Comment 6 Krisztian Kis-Szabo 2006-01-31 03:16:03 UTC
This fix does not work for me. Moving /usr/portage/distfiles/xsts-2002-01-16.tar.gz to /var/tmp/portage/libxml2-2.6.23-r1/work/libxml2-2.6.23/xstc/xsts-2002-01-16.tar.gz is denied. Here is the error, sorry for hungarian words:
ACCESS DENIED  rename:    /usr/portage/distfiles/xsts-2002-01-16.tar.gz
mv: `/usr/portage/distfiles/xsts-2002-01-16.tar.gz'-t nem lehet ide áthelyezni: `/var/tmp/portage/libxml2-2.6.23-r1/work/libxml2-2.6.23/xstc/xsts-2002-01-16.tar.gz'
Comment 7 Krisztian Kis-Szabo 2006-01-31 05:06:41 UTC
Using cp ${DISTDIR}/${XSTS_TARBALL_1} instead of mv ${DISTDIR}/${XSTS_TARBALL_1} in the patch seems good.
Comment 8 Kevin F. Quinn (RETIRED) gentoo-dev 2006-01-31 11:08:16 UTC
Gah - how embarrassing; that was a stupid mistake!  Thanks for the report; fixed in cvs (changed mv to cp!)