[packaging/craft-blueprints-kde] kde/applications/labplot: [labplot] only copy entitelment file, not re-sign

Stefan Gerlach <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 17cebb50aa4e7ae7e5992828c65f0dd2c591d9d8 by Stefan Gerlach.
Committed on 28/07/2026 at 22:12.
Pushed by sgerlach into branch 'master'.

[labplot] only copy entitelment file, not re-sign

M  +1    -14   kde/applications/labplot/labplot.py

https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/17cebb50aa4e7ae7e5992828c65f0dd2c591d9d8

diff --git a/kde/applications/labplot/labplot.py b/kde/applications/labplot/labplot.py
index 8f095ad84..7a1246948 100644
--- a/kde/applications/labplot/labplot.py
+++ b/kde/applications/labplot/labplot.py
@@ -299,24 +299,11 @@ class Package(CMakePackageBase):
             utils.copyFile(os.path.join(pysideLocation, "__init__.py"), pysidePath, linkOnly=False)
             utils.copyFile(os.path.join(shibokenLocation, "__init__.py"), shibokenPath, linkOnly=False)
 
-            # Copy entitlements file and re-sign to allow loading Python packages with different signatures
+            # Copy entitlements file for code signing (applied by Craft or CI)
             entitlementsSource = self.sourceDir() / "labplot.entitlements"
             if entitlementsSource.exists():
                 entitlementsDest = appPath / "Contents/Resources/labplot.entitlements"
                 utils.copyFile(entitlementsSource, entitlementsDest, linkOnly=False)
-                print(f"Copied entitlements file to {entitlementsDest}")
-
-                # Re-sign with entitlements (ad-hoc signature for now, Craft will re-sign later if needed)
-                import subprocess
-                result = subprocess.run([
-                    "codesign", "--force", "--deep", "--sign", "-",
-                    "--entitlements", str(entitlementsDest),
-                    str(appPath)
-                ], capture_output=True, text=True)
-                if result.returncode == 0:
-                    print("Re-signed app with entitlements")
-                else:
-                    print(f"Warning: Failed to re-sign with entitlements: {result.stderr}")
 
             # fix falsely picked up system Python lib
             # utils.system(["install_name_tool", "-change", "/Library/Frameworks/Python.framework/Versions/3.12/Python", os.path.join(appPath, "Contents", "Frameworks", "Python.framework", "Versions", "3.11", "Python"), os.path.join(appPath, "Contents", "MacOS", "cantor_pythonserver")])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.