[Libreoffice-commits] core.git: 2 commits - codemaker/source solenv/bin

Tor Lillqvist tml at iki.fi
Tue Apr 9 03:18:11 PDT 2013


 codemaker/source/codemaker/exceptiontree.cxx  |    1 
 solenv/bin/modules/installer/simplepackage.pm |   38 ++++++++++++++++++++++++++
 2 files changed, 39 insertions(+)

New commits:
commit f0aecebe20f3347ddc56828d4280b875682cad34
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Apr 9 12:37:02 2013 +0300

    WaE: unused variable
    
    Change-Id: I64ac7b45722e4147091068e71e9ceedea3d73010

diff --git a/codemaker/source/codemaker/exceptiontree.cxx b/codemaker/source/codemaker/exceptiontree.cxx
index f8dd868..a6e154e 100644
--- a/codemaker/source/codemaker/exceptiontree.cxx
+++ b/codemaker/source/codemaker/exceptiontree.cxx
@@ -60,6 +60,7 @@ void ExceptionTree::add(
         list.push_back(n);
         rtl::Reference< unoidl::Entity > ent;
         codemaker::UnoType::Sort s = manager->getSort(b2u(n), &ent);
+        (void) s; // WaE: unused variable
         assert(s == codemaker::UnoType::SORT_EXCEPTION_TYPE);
         n = u2b(
             static_cast< unoidl::ExceptionTypeEntity * >(ent.get())->
commit db403988a7fd7d468f53d9296ff8d6c213ce435c
Author: Tor Lillqvist <tml at iki.fi>
Date:   Tue Apr 9 12:35:06 2013 +0300

    Forward-port the app bundle signing from the 4.0 branch
    
    For now, use the same quick hack as in the 4.0 branch: Just sign the
    app bundle as a while, not individual dylibs. Should factor out the
    code in Makefile.in that signs all dylibs. Make sure to sign the
    application app bundle only, not the SDK.
    
    Change-Id: I6b0a39354c54b0e0f5352d0fd0bdb57650dc100a

diff --git a/solenv/bin/modules/installer/simplepackage.pm b/solenv/bin/modules/installer/simplepackage.pm
index ff18bc9..58cff7d 100755
--- a/solenv/bin/modules/installer/simplepackage.pm
+++ b/solenv/bin/modules/installer/simplepackage.pm
@@ -410,6 +410,44 @@ sub create_package
 
             chdir $localfrom;
         }
+        else
+        {
+            if (($volume_name_classic_app eq 'LibreOffice' || $volume_name_classic_app eq 'LibreOfficeDev') &&
+                defined($ENV{'MACOSX_CODESIGNING_IDENTITY'}) && $ENV{'MACOSX_CODESIGNING_IDENTITY'} ne "" )
+            {
+                # Just sign the .app as a whole, which means signing
+                # the CFBundleExecutable from Info.plist,
+                # i.e. soffice, plus the contents of the Resources
+                # treee (which is not much, far from all of our
+                # non-code "resources").
+
+                # Don't bother here in the 4.0 branch to sign each
+                # individual .dylib, or each additional binary. See
+                # master for more work plus possibly eventually
+                # re-organising the app bundle structure to be more
+                # Mac-like (the "program" symlink, eek!) and actually
+                # putting all non-code resources (including extension
+                # scripts!)  into Resources so that they participate
+                # in the signing and their validity can be guaranteed.
+
+                $systemcall = "codesign --sign $ENV{'MACOSX_CODESIGNING_IDENTITY'} -v -v -v $tempdir/$packagename/$volume_name_classic_app.app";
+                print "... $systemcall ...\n";
+                my $returnvalue = system($systemcall);
+                $infoline = "Systemcall: $systemcall\n";
+                push( @installer::globals::logfileinfo, $infoline);
+
+                if ($returnvalue)
+                {
+                    $infoline = "ERROR: Could not execute \"$systemcall\"!\n";
+                    push( @installer::globals::logfileinfo, $infoline);
+                }
+                else
+                {
+                    $infoline = "Success: Executed \"$systemcall\" successfully!\n";
+                    push( @installer::globals::logfileinfo, $infoline);
+                }
+            }
+        }
 
         $systemcall = "cd $localtempdir && hdiutil makehybrid -hfs -hfs-openfolder $folder $folder -hfs-volume-name \"$volume_name\" -ov -o $installdir/tmp && hdiutil convert -ov -format UDBZ $installdir/tmp.dmg -o $archive && ";
         if (( $ref ne "" ) && ( $$ref ne "" )) {


More information about the Libreoffice-commits mailing list