Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 229797 Details for
Bug 317891
dev-libs/libxml2: prefix support + bootstrap fix
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Prefix diff
libxml2-2.7.7-prefix.patch (text/plain), 5.28 KB, created by
Fabian Groffen
on 2010-04-30 11:52:03 UTC
(
hide
)
Description:
Prefix diff
Filename:
MIME Type:
Creator:
Fabian Groffen
Created:
2010-04-30 11:52:03 UTC
Size:
5.28 KB
patch
obsolete
>--- ../../../rsync-tree/dev-libs/libxml2/libxml2-2.7.7.ebuild 2010-04-07 23:37:27.000000000 +0200 >+++ libxml2-2.7.7.ebuild 2010-04-30 12:51:02.864442000 +0200 >@@ -2,18 +2,18 @@ > # Distributed under the terms of the GNU General Public License v2 > # $Header: /var/cvsroot/gentoo-x86/dev-libs/libxml2/libxml2-2.7.7.ebuild,v 1.3 2010/04/07 21:16:18 arfrever Exp $ > >-EAPI="2" >+EAPI="3" > SUPPORT_PYTHON_ABIS="1" > RESTRICT_PYTHON_ABIS="3.*" > >-inherit libtool flag-o-matic eutils python >+inherit libtool flag-o-matic eutils python prefix > > DESCRIPTION="Version 2 of the library to manipulate XML files" > HOMEPAGE="http://www.xmlsoft.org/" > > LICENSE="MIT" > SLOT="2" >-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd" >+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~ppc-aix ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" > IUSE="debug doc examples ipv6 python readline test" > > XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite" >@@ -49,6 +49,11 @@ > } > > src_prepare() { >+ epatch "${FILESDIR}"/${PN}-2.7.1-catalog_path.patch >+ epatch "${FILESDIR}"/${PN}-2.7.2-winnt.patch >+ >+ eprefixify catalog.c xmlcatalog.c runtest.c xmllint.c >+ > epunt_cxx > > # Please do not remove, as else we get references to PORTAGE_TMPDIR >@@ -69,9 +74,9 @@ > > # --with-mem-debug causes unusual segmentation faults (bug #105120). > >- local myconf="--with-zlib >+ local myconf="--with-zlib=${EPREFIX}/usr > --with-html-subdir=${PF}/html >- --docdir=/usr/share/doc/${PF} >+ --docdir=${EPREFIX}/usr/share/doc/${PF} > $(use_with debug run-debug) > $(use_with python) > $(use_with readline) >@@ -81,7 +86,15 @@ > # filter seemingly problematic CFLAGS (#26320) > filter-flags -fprefetch-loop-arrays -funroll-loops > >- python_execute_function -f -q econf ${myconf} >+ # don't unconditionally run any python_* funcs, because at bootstrap: >+ # portage requires python, requires libintl, requires gettext (for !glibc >+ # && !uclibc), requires libxml2, calls python eclass method, fails because >+ # there is no python (yet). >+ if use python ; then >+ python_execute_function -f -q econf ${myconf} >+ else >+ econf ${myconf} >+ fi > } > > src_compile() { >@@ -90,8 +103,8 @@ > if use python; then > python_copy_sources python > building() { >- emake PYTHON_INCLUDES="$(python_get_includedir)" \ >- PYTHON_SITE_PACKAGES="$(python_get_sitedir)" >+ emake PYTHON_INCLUDES="${EPREFIX}$(python_get_includedir)" \ >+ PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" > } > python_execute_function -s --source-dir python building > fi >@@ -110,15 +123,15 @@ > > src_install() { > emake DESTDIR="${D}" \ >- EXAMPLES_DIR=/usr/share/doc/${PF}/examples \ >+ EXAMPLES_DIR="${EPREFIX}"/usr/share/doc/${PF}/examples \ > install || die "Installation failed" > > if use python; then > installation() { > emake DESTDIR="${D}" \ >- PYTHON_SITE_PACKAGES="$(python_get_sitedir)" \ >- docsdir=/usr/share/doc/${PF}/python \ >- exampledir=/usr/share/doc/${PF}/python/examples \ >+ PYTHON_SITE_PACKAGES="${EPREFIX}$(python_get_sitedir)" \ >+ docsdir="${EPREFIX}"/usr/share/doc/${PF}/python \ >+ exampledir="${EPREFIX}"/usr/share/doc/${PF}/python/examples \ > install > } > python_execute_function -s --source-dir python installation >@@ -126,22 +139,36 @@ > python_clean_sitedirs > fi > >- rm -rf "${D}"/usr/share/doc/${P} >+ rm -rf "${ED}"/usr/share/doc/${P} > dodoc AUTHORS ChangeLog Copyright NEWS README* TODO* || die "dodoc failed" > > if ! use python; then >- rm -rf "${D}"/usr/share/doc/${PF}/python >- rm -rf "${D}"/usr/share/doc/${PN}-python-${PV} >+ rm -rf "${ED}"/usr/share/doc/${PF}/python >+ rm -rf "${ED}"/usr/share/doc/${PN}-python-${PV} > fi > > if ! use doc; then >- rm -rf "${D}"/usr/share/gtk-doc >- rm -rf "${D}"/usr/share/doc/${PF}/html >+ rm -rf "${ED}"/usr/share/gtk-doc >+ rm -rf "${ED}"/usr/share/doc/${PF}/html > fi > > if ! use examples; then >- rm -rf "${D}/usr/share/doc/${PF}/examples" >- rm -rf "${D}/usr/share/doc/${PF}/python/examples" >+ rm -rf "${ED}/usr/share/doc/${PF}/examples" >+ rm -rf "${ED}/usr/share/doc/${PF}/python/examples" >+ fi >+} >+ >+pkg_preinst() { >+ # >+ # on windows, xmllint is installed by interix libxml2 in parent prefix. >+ # this is the version to use. the native winnt version does not support >+ # symlinks, which makes repoman fail if the portage tree is linked in >+ # from another location (which is my default). >+ # >+ if [[ ${CHOST} == *-winnt* ]]; then >+ cd "${ED}" >+ rm usr/bin/xmllint >+ rm usr/bin/xmlcatalog > fi > } > >@@ -157,14 +184,14 @@ > elog "Skipping XML catalog creation for stage building (bug #208887)." > else > # need an XML catalog, so no-one writes to a non-existent one >- CATALOG="${ROOT}etc/xml/catalog" >+ CATALOG="${EROOT}etc/xml/catalog" > > # we dont want to clobber an existing catalog though, > # only ensure that one is there > # <obz@gentoo.org> > if [ ! -e ${CATALOG} ]; then >- [ -d "${ROOT}etc/xml" ] || mkdir -p "${ROOT}etc/xml" >- /usr/bin/xmlcatalog --create > ${CATALOG} >+ [ -d "${EROOT}etc/xml" ] || mkdir -p "${EROOT}etc/xml" >+ "${EPREFIX}"/usr/bin/xmlcatalog --create > ${CATALOG} > einfo "Created XML catalog in ${CATALOG}" > fi > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 317891
:
229797
|
262221