Skip to content

Commit

Permalink
More yubihsm_pkcs11 path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
qpernil committed May 11, 2022
1 parent 65787a6 commit badeaf7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
cmake --build build -- --jobs=2
test -e ./build/src/yubihsm-shell
test -e ./build/lib/libyubihsm.$LIBEXT
test -e ./build/pkcs11/yubihsm_pkcs11.$LIBEXT
test -e ./build/lib/yubihsm_pkcs11.$LIBEXT
test -e ./build/yhwrap/yubihsm-wrap
- name: Test
if: ${{ matrix.test }}
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
LIBEXT: ${{ matrix.libext }}
OS: ${{ matrix.os }}
run: |
export YUBIHSM_PKCS11_MODULE="`pwd`/build/pkcs11/yubihsm_pkcs11.$LIBEXT"
export YUBIHSM_PKCS11_MODULE="`pwd`/build/lib/yubihsm_pkcs11.$LIBEXT"
pushd /tmp/python-pkcs11tester
echo "connector=$DEFAULT_CONNECTOR_URL" >yubihsm_pkcs11.conf
if [ "$OS" = "macos-latest" ]; then
Expand All @@ -126,7 +126,7 @@ jobs:
OS: ${{ matrix.os }}
run: |
if [ "$OS" != "ubuntu-18.04" ]; then
export YUBIHSM_PKCS11_MODULE="`pwd`/build/pkcs11/yubihsm_pkcs11.$LIBEXT"
export YUBIHSM_PKCS11_MODULE="`pwd`/build/lib/yubihsm_pkcs11.$LIBEXT"
echo "connector=$DEFAULT_CONNECTOR_URL" >yubihsm_pkcs11.conf
export YUBIHSM_PKCS11_CONF=`pwd`/yubihsm_pkcs11.conf
pushd /tmp/yubihsm_sunpkcs11_tests
Expand Down
1 change: 0 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ DEB_BUILD_OPTIONS=noddebs
override_dh_install:
chrpath -d $(CURDIR)/debian/tmp/usr/bin/*
chrpath -d $(CURDIR)/debian/tmp/usr/lib/*.so*
chrpath -d $(CURDIR)/debian/tmp/usr/lib/pkcs11/*.so*
dh_install --fail-missing

override_dh_auto_configure:
Expand Down
2 changes: 1 addition & 1 deletion debian/yubihsm-pkcs11.install
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#! /usr/bin/dh-exec

usr/lib/pkcs11/*.so /usr/lib/${DEB_HOST_MULTIARCH}/pkcs11
usr/lib/yubihsm_pkcs11.so /usr/lib/${DEB_HOST_MULTIARCH}/pkcs11
4 changes: 2 additions & 2 deletions resources/release/linux/yubihsm-shell.spec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ make install
chrpath -r %{_libdir} %{buildroot}/%{_bindir}/yubihsm-shell
chrpath -r %{_libdir} %{buildroot}/%{_bindir}/yubihsm-wrap
chrpath -r %{_libdir} %{buildroot}/%{_bindir}/yubihsm-auth
chrpath -r %{_libdir} %{buildroot}/%{_libdir}/pkcs11/yubihsm_pkcs11.so
chrpath -r %{_libdir} %{buildroot}/%{_libdir}/yubihsm_pkcs11.so
mkdir -p %{buildroot}/%{_prefix}/share/licenses/%{name}
install -m 0644 ../LICENSE %{buildroot}/%{_prefix}/share/licenses/%{name}

Expand All @@ -59,7 +59,7 @@ install -m 0644 ../LICENSE %{buildroot}/%{_prefix}/share/licenses/%{name}
%{_libdir}/libykhsmauth.so.2
%{_libdir}/libykhsmauth.so.2.*
%dir %{_libdir}/pkcs11
%{_libdir}/pkcs11/yubihsm_pkcs11.so
%{_libdir}/yubihsm_pkcs11.so
%files -n %{_yubihsm}-devel
%{_libdir}/libyubihsm.so
%{_libdir}/libyubihsm_http.so
Expand Down
2 changes: 1 addition & 1 deletion resources/release/macos/make_release_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ install_name_tool -change "$BREW_LIB/libusb/lib/libusb-1.0.0.dylib" "@loader_pa
install_name_tool -change "$BREW_LIB/libusb/lib/libusb-1.0.0.dylib" "@loader_path/../lib/libusb-1.0.0.dylib" "$OUTPUT/lib/libyubihsm_usb.$VERSION.dylib"
install_name_tool -change "$BREW_LIB/libusb/lib/libusb-1.0.0.dylib" "@loader_path/../lib/libusb-1.0.0.dylib" "$OUTPUT/lib/libyubihsm_usb.$SO_VERSION.dylib"

install_name_tool -change "$BREW_LIB/[email protected]/lib/libcrypto.1.1.dylib" "@loader_path/../lib/libcrypto.1.1.dylib" "$OUTPUT/lib/pkcs11/yubihsm_pkcs11.dylib"
install_name_tool -change "$BREW_LIB/[email protected]/lib/libcrypto.1.1.dylib" "@loader_path/../lib/libcrypto.1.1.dylib" "$OUTPUT/lib/yubihsm_pkcs11.dylib"

install_name_tool -change "$BREW_LIB/[email protected]/lib/libcrypto.1.1.dylib" "@loader_path/../lib/libcrypto.1.1.dylib" "$OUTPUT/bin/yubihsm-shell"
install_name_tool -change "$BREW_LIB/[email protected]/lib/libcrypto.1.1.dylib" "@loader_path/../lib/libcrypto.1.1.dylib" "$OUTPUT/bin/yubihsm-wrap"
Expand Down

0 comments on commit badeaf7

Please sign in to comment.