summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Baergen <joshuabaergen@gentoo.org>2005-12-04 23:06:24 +0000
committerJoshua Baergen <joshuabaergen@gentoo.org>2005-12-04 23:06:24 +0000
commit8caad77badb1540ed86f68b7c3e42f994b19fa71 (patch)
tree3af171621f7e680e71b65bbe6415783b895a0119 /x11-libs
parentDon't overwrite the actual .int file, copy into ._cfg* for etc-update. (diff)
downloadgentoo-2-8caad77badb1540ed86f68b7c3e42f994b19fa71.tar.gz
gentoo-2-8caad77badb1540ed86f68b7c3e42f994b19fa71.tar.bz2
gentoo-2-8caad77badb1540ed86f68b7c3e42f994b19fa71.zip
Keep the old libdrm.so.1 around so things don't break horribly on upgrade.
(Portage version: 2.0.53)
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/libdrm/ChangeLog5
-rw-r--r--x11-libs/libdrm/libdrm-2.0.ebuild22
2 files changed, 25 insertions, 2 deletions
diff --git a/x11-libs/libdrm/ChangeLog b/x11-libs/libdrm/ChangeLog
index 7cd1a5651bba..28b0cb90bff3 100644
--- a/x11-libs/libdrm/ChangeLog
+++ b/x11-libs/libdrm/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for x11-libs/libdrm
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libdrm/ChangeLog,v 1.10 2005/12/04 22:46:32 joshuabaergen Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libdrm/ChangeLog,v 1.11 2005/12/04 23:06:24 joshuabaergen Exp $
+
+ 04 Dec 2005; Joshua Baergen <joshuabaergen@gentoo.org> libdrm-2.0.ebuild:
+ Keep the old libdrm.so.1 around so things don't break horribly on upgrade.
*libdrm-2.0 (04 Dec 2005)
diff --git a/x11-libs/libdrm/libdrm-2.0.ebuild b/x11-libs/libdrm/libdrm-2.0.ebuild
index d6aa9acad4f6..b548d7529153 100644
--- a/x11-libs/libdrm/libdrm-2.0.ebuild
+++ b/x11-libs/libdrm/libdrm-2.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/libdrm/libdrm-2.0.ebuild,v 1.1 2005/12/04 22:46:32 joshuabaergen Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/libdrm/libdrm-2.0.ebuild,v 1.2 2005/12/04 23:06:24 joshuabaergen Exp $
# Must be before x-modular eclass is inherited
#SNAPSHOT="yes"
@@ -13,3 +13,23 @@ SRC_URI="http://dri.freedesktop.org/libdrm/${P}.tar.gz"
KEYWORDS="~amd64 ~arm ~mips ~ppc ~s390 ~sh ~sparc ~x86"
RDEPEND=""
DEPEND="${RDEPEND}"
+
+pkg_preinst() {
+ x-modular_pkg_preinst
+
+ if [[ -e ${ROOT}/usr/$(get_libdir)/libdrm.so.1 ]] ; then
+ cp -pPR "${ROOT}"/usr/$(get_libdir)/libdrm.so.1 "${IMAGE}"/usr/$(get_libdir)/
+ fi
+}
+
+pkg_postinst() {
+ x-modular_pkg_postinst
+
+ if [[ -e ${ROOT}/usr/$(get_libdir)/libdrm.so.1 ]] ; then
+ ewarn "You must re-compile all packages that are linked against"
+ ewarn "libdrm 1 by using revdep-rebuild from gentoolkit:"
+ ewarn "# revdep-rebuild --soname libdrm.so.1"
+ ewarn "After this, you can delete /usr/$(get_libdir)/libdrm.so.1"
+ epause
+ fi
+}