Skip to content

Commit

Permalink
Merge pull request #8858 from keithc-ca/debug-image-0.20.0
Browse files Browse the repository at this point in the history
AIX: Transform file names in debug-image
  • Loading branch information
pshipton committed Mar 13, 2020
2 parents 7e9a034 + 7b228ca commit 8fe7c70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion buildenv/jenkins/common/build.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,13 @@ def archive_sdk() {
}
// test if the debug-image directory is present
if (fileExists("${debugImageDir}")) {
if (SPEC.contains('zos')) {
if (SPEC.contains('aix')) {
// On AIX, .debuginfo files are simple copies of the shared libraries.
// Change all suffixes from .debuginfo to .so; then remove the .so suffix
// from names in the bin directory. This will result in an archive that
// can be extracted overtop of a jdk yielding one that is debuggable.
sh "tar -C ${debugImageDir} -zcvf ${DEBUG_IMAGE_FILENAME} . --transform 's#\\.debuginfo\$#.so#' --transform 's#\\(bin/.*\\)\\.so\$#\\1#' --show-stored-names"
} else if (SPEC.contains('zos')) {
// Note: to preserve the files ACLs set _OS390_USTAR=Y env variable (see variable files)
sh "pax -wvz '-s#${debugImageDir}##' -f ${DEBUG_IMAGE_FILENAME} ${debugImageDir}"
} else {
Expand Down

0 comments on commit 8fe7c70

Please sign in to comment.