Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 208887
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Chris Gianelloni (RETIRED) <wolf31o2@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
libxml2-build.patch libxml2-build.patch patch Chris Gianelloni (RETIRED) 2008-02-04 20:34 0000 1.03 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 208887 depends on: Show dependency tree
Bug 208887 blocks:
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: 2008-02-04 20:32 0000
As strange as this sounds, this package assumes that /usr/bin/xmlcatalog is
available during pkg_postinst, even when ROOT != /, which causes problems for
the release.  Currently, libxml2 gets pulled into stage1 by gettext.  Well,
there's no guarantee that the seed stage will have xmlcatalog, and stage1 is
built with ROOT=/tmp/stage1root, so we're trying to run a non-existent
xmlcatalog from / and writing to ${ROOT}etc/xml/catalog, which always produces
a 0-byte file with no contents.  Since the ebuild only runs the xmlcatalog code
when ${ROOT}etc/xml/catalog doesn't exist, we end up with an empty file in the
stages.

I'm attaching a simple fix to this bug, which causes the xmlcatalog code to not
run for USE=build or USE=bootstrap... this will ensure the xmlcatalog is
created during stage3, when ROOT=/ and /usr/bin/xmlcatalog will definitely be
available.

------- Comment #1 From Chris Gianelloni (RETIRED) 2008-02-04 20:34:31 0000 -------
Created an attachment (id=142674) [details]
libxml2-build.patch

Here's the patch.  It simply skips the rest of pkg_postinst if USE includes
build or bootstrap.

------- Comment #2 From Chris Gianelloni (RETIRED) 2008-02-04 20:34:50 0000 -------
If nobody objects, I'd like to go ahead and commit this.

------- Comment #3 From Gilles Dartiguelongue 2008-02-04 21:53:42 0000 -------
looks ok to me. Just stick a comment like 

# Fix for release media, see bug #208887

------- Comment #4 From Chris Gianelloni (RETIRED) 2008-02-05 03:16:10 0000 -------
Cool... and... done...

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug