| Summary: | x11-proto/xcb-proto-1.7.1 should use EAPI 4 to detect upgrades | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Petteri Räty (RETIRED) <betelgeuse> |
| Component: | [OLD] Library | Assignee: | Gentoo X packagers <x11> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | pacho |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Petteri Räty (RETIRED)
2012-04-08 16:03:22 UTC
I will commit it next week if nobody disagree Thanks Got a patch we can look at? Would be the following:
--- xcb-proto-1.8-r3.ebuild~ 2013-10-07 07:01:40.000000000 +0200
+++ xcb-proto-1.8-r3.ebuild 2013-10-07 21:31:33.000000000 +0200
@@ -43,5 +43,7 @@
}
pkg_postinst() {
- ewarn "Please rebuild both libxcb and xcb-util if you are upgrading from version 1.6"
+ if [[ ${REPLACING_VERSIONS} < 1.7 ]]; then
+ ewarn "Please rebuild both libxcb and xcb-util if you are upgrading from version 1.6"
+ fi
}
Looks ok to me. @x11, any objections? I am not sure if that works, because e.g. [[ 1.10 < 1.7 ]] will evaluate to true, and REPLACING_VERSIONS can contain multiple versions. Maybe something with has() would be better. Yeah, I have tried to find some way to handle this but I couldn't :S, I have seen in the tree some ways like relying in versionator eclass for this (used, for example, in postfix ebuilds) purged from portage |