Set CPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS in the Jenkinsfile to avoid errors caused by dpkg

This commit is contained in:
Username404 2021-08-18 13:38:58 +02:00
parent df334ec693
commit ab7fcee9a2
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
def buildTarget(String path, String rpmArch, String debArch, boolean isPackageArchDeb = true) {
String packageArch = isPackageArchDeb ? debArch : rpmArch;
cmakeBuild buildDir: "cmake-build-${packageArch}", buildType: 'release', cleanBuild: true, installation: 'Main',
cmakeArgs: "-DCMAKE_C_COMPILER=/usr/bin/${path}-gcc -DCMAKE_CXX_COMPILER=/usr/bin/${path}-g++ -DCMAKE_LINKER=/usr/bin/${path}-ld.gold -DCMAKE_AR=/usr/bin/${path}-ar -DCPACK_RPM_PACKAGE_ARCHITECTURE=${rpmArch} -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=${debArch} -DCXX_TARGET=${packageArch}"
cmakeArgs: "-DCMAKE_C_COMPILER=/usr/bin/${path}-gcc -DCMAKE_CXX_COMPILER=/usr/bin/${path}-g++ -DCMAKE_LINKER=/usr/bin/${path}-ld.gold -DCMAKE_AR=/usr/bin/${path}-ar -DCPACK_RPM_PACKAGE_ARCHITECTURE=${rpmArch} -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=${debArch} -DCXX_TARGET=${packageArch} -DCPACK_DEBIAN_PACKAGE_SHLIBDEPS_PRIVATE_DIRS=/usr/${path}/lib/"
cmake arguments: "--build ./cmake-build-${packageArch} --target ybcon", installation: 'Main'
sh "/usr/bin/${path}-strip ./cmake-build-${packageArch}/ybcon"
cpack installation: 'Main', workingDir: "cmake-build-${packageArch}"