On Mar 4, 2018 16:59, "Rex Dieter" <rdieter@xxxxxxxxxxxx> wrote:
Germano Massullo wrote:What's wrong with hard-coding? (e.g. so it to be something like
> Package
> https://src.fedoraproject.org/rpms/firefox-pkcs11-loader
> (upstream) https://github.com/open-eid/firefox-pkcs11-loader
>
> contains file
> https://github.com/open-eid/firefox-pkcs11-loader/blob/ master/onepinopenscpkcs11.json
> that has the tag
> "path": "onepin-opensc-pkcs11.so"
>
> This tag is wrong and for example on x86_64 CPU architecture systems, it
> must be
> "path": "/usr/lib64/pkcs11/onepin-opensc-pkcs11.so"
>
> How could I patch this file without having to hardcode the /usr/lib64
> path?
%{_libdir}/pkcs11/onepin-opensc-pkcs11.so
)
-- Rex
What about just using sed at the beginning of %build (or where appropriate) to replace the wrong location with the right one (where rpm obviously knows the right %{_libdir})?
Fabio
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@lists.fedoraproject.org
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx