summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/libxcb')
-rw-r--r--x11-libs/libxcb/ChangeLog6
-rw-r--r--x11-libs/libxcb/libxcb-1.4.ebuild27
2 files changed, 26 insertions, 7 deletions
diff --git a/x11-libs/libxcb/ChangeLog b/x11-libs/libxcb/ChangeLog
index a031f193029f..d99087fcb511 100644
--- a/x11-libs/libxcb/ChangeLog
+++ b/x11-libs/libxcb/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-libs/libxcb
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxcb/ChangeLog,v 1.35 2009/09/11 14:09:14 remi Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxcb/ChangeLog,v 1.36 2009/09/11 18:01:53 remi Exp $
+
+ 11 Sep 2009; Rémi Cardona <remi@gentoo.org> libxcb-1.4.ebuild:
+ add preserve_old_lib to libxcb 1.4 and add a link to a proper upgrade
+ guide
11 Sep 2009; Rémi Cardona <remi@gentoo.org> -libxcb-1.3.ebuild:
drop old ebuilds
diff --git a/x11-libs/libxcb/libxcb-1.4.ebuild b/x11-libs/libxcb/libxcb-1.4.ebuild
index 50a51e889bd3..3e89d2aa9a01 100644
--- a/x11-libs/libxcb/libxcb-1.4.ebuild
+++ b/x11-libs/libxcb/libxcb-1.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxcb/libxcb-1.4.ebuild,v 1.2 2009/08/18 16:58:22 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libxcb/libxcb-1.4.ebuild,v 1.3 2009/09/11 18:01:53 remi Exp $
EAPI="2"
@@ -37,11 +37,26 @@ src_install() {
dobin "${FILESDIR}"/xcb-rebuilder.sh || die
}
+pkg_preinst() {
+ x-modular_pkg_preinst
+ preserve_old_lib /usr/$(get_libdir)/libxcb-xlib.so.0.0.0
+}
+
pkg_postinst() {
x-modular_pkg_postinst
-
- ewarn "libxcb-1.2 removed libxcb-xlib.so. Run xcb-rebuilder.sh to rebuild"
- ewarn "packages that broke. revdep-rebuild may also work."
- ebeep 5
- epause 5
+ preserve_old_lib_notify /usr/$(get_libdir)/libxcb-xlib.so.0.0.0
+
+ if [[ -e /usr/$(get_libdir)/libxcb-xlib.so.0.0.0 ]]; then
+ ewarn "libxcb-xlib.so is no longer shipped by ${PN} but was kept on your system"
+ ewarn
+ ewarn "While your system will still work, emerging new packages or updates"
+ ewarn "will likely fail. You can fix broken libtool .la files by running :"
+ ewarn
+ ewarn " ${FILESDIR}/xcb-rebuilder.sh"
+ ewarn
+ ewarn "To completely get rid of libxcb-xlib.so references, please read :"
+ ewarn "http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml"
+ ebeep 5
+ epause 5
+ fi
}