Hello!
I have a package requiring qr-code-generator.
As you can see, it has both a c and c++ version.
The recipe on cci currently only packages the c++ version.
But I need the c version.
How would you fix this?
The problem is that qr-code-generator builds all its libraries with the same name: qrcodegen (with no postfix).
enable_c option and build either the c or c++ versionqrcodegen++/qrcodegenpp`and build both (c library asqrcodegen`)Solution 1 does allow to have both the c and c++ in the build tree, because options are global.
Solution 2 requires patches to all dependencies.
Solution 3 is the easiest because it does not need any patches to any recipes needing the c version. Also it allows to combine the c and c++ versions without patching. The only downside is having to maintain an extra recipe.
What solution do you guys prefer? An alternative of which I didn't think of?
Most helpful comment
References:
https://github.com/nayuki/QR-Code-generator/issues/63
https://github.com/nayuki/QR-Code-generator/pull/72