* Please rebuild both libxcb and xcb-util if you are upgrading from version 1.6 With EAPI 4 you can detect if this is the case using REPLACING_VERSIONS
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