summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-05-07 14:31:25 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2020-05-07 14:31:25 +0200
commit1742ac5b784922032fb9aae5e61909bd9ab3c578 (patch)
treee53c4e1e17614c197c0da8fcf31166789437c7ee /solenv
parent99c4fefdbb6129a58421b9c7f4a005f868a0e701 (diff)
fix macOS codesigning when using a separate builddir
88453fd13a653963b394b8f865ff104b5545f137 changed the hardened_runtime.xcent to a generated file Change-Id: I54b927d1990835bb902f62e03d51b0e70735269c
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/macosx-codesign-app-bundle2
-rw-r--r--solenv/bin/modules/installer/simplepackage.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle
index db2f6ffc55d2..8a8f8445c629 100755
--- a/solenv/bin/macosx-codesign-app-bundle
+++ b/solenv/bin/macosx-codesign-app-bundle
@@ -36,7 +36,7 @@ if test -n "$ENABLE_MACOSX_SANDBOX"; then
other_files=''
else
# We then want to sign data files, too, hmm.
- entitlements="--entitlements $SRCDIR/hardened_runtime.xcent"
+ entitlements="--entitlements $BUILDDIR/hardened_runtime.xcent"
other_files="\
-or -name '*.fodt' -or -name 'schema.strings' -or -name 'schema.xml' \
-or -name '*.jar' -or -name 'LICENSE' -or -name 'LICENSE.html' \
diff --git a/solenv/bin/modules/installer/simplepackage.pm b/solenv/bin/modules/installer/simplepackage.pm
index b32f77d3bef6..7c7afe67d513 100644
--- a/solenv/bin/modules/installer/simplepackage.pm
+++ b/solenv/bin/modules/installer/simplepackage.pm
@@ -433,7 +433,7 @@ sub create_package
opendir(my $dh, $sdkbindir);
foreach my $sdkbinary (readdir $dh) {
next unless -f "$sdkbindir/$sdkbinary";
- $systemcall = "codesign --force --verbose --options=runtime --identifier='$ENV{MACOSX_BUNDLE_IDENTIFIER}.$sdkbinary' --sign '$ENV{MACOSX_CODESIGNING_IDENTITY}' --entitlements $ENV{SRCDIR}/hardened_runtime.xcent $sdkbindir/$sdkbinary > /tmp/codesign_losdk_$sdkbinary.log 2>&1";
+ $systemcall = "codesign --force --verbose --options=runtime --identifier='$ENV{MACOSX_BUNDLE_IDENTIFIER}.$sdkbinary' --sign '$ENV{MACOSX_CODESIGNING_IDENTITY}' --entitlements $ENV{BUILDDIR}/hardened_runtime.xcent $sdkbindir/$sdkbinary > /tmp/codesign_losdk_$sdkbinary.log 2>&1";
print "... $systemcall ...\n";
my $returnvalue = system($systemcall);
$infoline = "Systemcall: $systemcall\n";