![](https://seccdn.libravatar.org/avatar/a4139df10120ce151e457fd1faff018d.jpg?s=120&d=mm&r=g)
On 12/05/2016 06:08 AM, Stefan Seyfried wrote:
Hi Larry,
Am 04.12.2016 um 17:43 schrieb Larry Finger:
Dominique,
I now have a patch for VB that builds with X server 1.19.0. Unfortunately, it breaks the build with v. 1.18.4. I do not know how to conditionally include a patch depending on the version of a required package, nor do I know how to pass that information to the build as an exported symbol.
I don't know this. But. Maybe the patch could be changed to build with both version (some ugly #ifdef stuff or similar)?
Do you have a pointer to the patched package so that we can see what you're talking about and maybe help?
Best regards,
Probably needs to be uglier then a ifdef, you could create a bash 1 liner based off "X -version" (or any other way to find the X11 version from the command line without launching it). You could then use a shell test too determine whether too apply the patch or not. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adeliade Australia, UTC+9:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B