Re: %{_lib} leads to dir not found, whereas lib works fine (firefox-pkcs11-loader)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Il 06/03/2018 16:35, Dennis Gilmore ha scritto:
> El mar, 06-03-2018 a las 15:29 +0100, Germano Massullo escribió:
>> During package firefox-pkcs11-loader build, the following two spec
>> file
>> lines
>>
>> %dir %_prefix/%{_lib}/mozilla/pkcs11-modules/
>> %_prefix/%{_lib}/mozilla/pkcs11-modules/onepinopenscpkcs11.json
>>
>> and also this variant
>>
>> %dir %{_libdir}/mozilla/pkcs11-modules/
>> %{_libdir}/mozilla/pkcs11-modules/onepinopenscpkcs11.json
>>
>> lead to errors
>>
>> Directory not found: /builddir/build/BUILDROOT/firefox-pkcs11-loader-
>> 3.13.0-2.fc27.x86_64/usr/lib64/mozilla/pkcs11-modules
>> File not found: /builddir/build/BUILDROOT/firefox-pkcs11-loader-
>> 3.13.0-2.fc27.x86_64/usr/lib64/mozilla/pkcs11-
>> modules/onepinopenscpkcs11.json
> noarch only builds do not have %{_lib} or %{_libdir} defined 
>

Thank you very much, I solved with
%{cmake} . -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir}

Could you please leave a feedback about the comment I am going to attach
in the spec file?

# in noarch builds, %%{_libdir} is not defined in cmake, so the default
# installation would try installing for example
# file onepinopenscpkcs11.json
# into /usr/lib/mozilla/pkcs11-modules/onepinopenscpkcs11.json
# even if the system architecture is 64bit. This will lead to errors because
# the %%files entry
# %{_libdir}/mozilla/pkcs11-modules/onepinopenscpkcs11.json
# would be defined as
# /usr/lib64/mozilla/pkcs11-modules/onepinopenscpkcs11.json
# that is different from the previous one
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux