Skip to content

Commit

Permalink
Add libcrypto and libudev compatible packages
Browse files Browse the repository at this point in the history
They create symlinks for binaries which were build for older
lib versions.
  • Loading branch information
betacentauri authored and eriksl committed Nov 18, 2018
1 parent 6eca809 commit 65aff97
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
@@ -0,0 +1,20 @@
SUMMARY = "Compatibility for packages that link to older libcrypto or libssl"

require conf/license/license-gplv2.inc

RDEPENDS_${PN} = "libcrypto libssl"

RREPLACES_${PN} = "libcrypto1.0.0 libssl1.0.0 libcrypto0.9.8 libssl0.9.8"
RCONFLICTS_${PN} = "libcrypto1.0.0 libssl1.0.0 libcrypto0.9.8 libssl0.9.8"

do_install () {
install -d ${D}${libdir}
ln -sf libcrypto.so.1.0.2 ${D}${libdir}/libcrypto.so.0.9.8
ln -sf libssl.so.1.0.2 ${D}${libdir}/libssl.so.0.9.8
ln -sf libcrypto.so.1.0.2 ${D}${libdir}/libcrypto.so.1.0.0
ln -sf libssl.so.1.0.2 ${D}${libdir}/libssl.so.1.0.0
}

FILES_${PN} = "${libdir}"

RPROVIDES_${PN} += "libcrypto1.0.0 libssl1.0.0 libcrypto0.9.8 libssl0.9.8"
12 changes: 12 additions & 0 deletions meta-openpli/recipes-core/udev/libudev1-compat_3.2.5.bb
@@ -0,0 +1,12 @@
SUMMARY = "Compatibility for packages that link to older libudev0"

require conf/license/license-gplv2.inc

RDEPENDS_${PN} = "libudev"

do_install_append() {
install -d ${D}${base_libdir}
ln -sf libudev.so.1 ${D}${base_libdir}/libudev.so.0
}

FILES_${PN} = "${base_libdir}"

0 comments on commit 65aff97

Please sign in to comment.