perl: fix miniperl missing execute permission (CI fix)
authorAlexandru Ardelean <redacted>
Wed, 20 May 2026 08:22:31 +0000 (11:22 +0300)
committerAlexandru Ardelean <redacted>
Wed, 20 May 2026 17:09:52 +0000 (20:09 +0300)
On some build systems, the miniperl binary is created without execute
permission (errno 126 when running it as /bin/sh). This breaks building
the mro extension and cascades to all dependent packages.

Fix by ensuring chmod +x on miniperl after the main build step.
This matches how many other build systems handle this same issue.

Signed-off-by: Alexandru Ardelean <redacted>
lang/perl/Makefile

index 3a3910c9d97cf7b60f06bfe498fc17ac42873328..50e76cafe8174764f876bc842a9358f80a4f0f7a 100644 (file)
@@ -135,6 +135,8 @@ define Build/Compile
        # make depend is required to avoid race conditions: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=996953
        +$(MAKE) -C $(PKG_BUILD_DIR) depend
        +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)
+       # miniperl may lack execute permission on some build systems, fix it for extension builds
+       chmod +x $(PKG_BUILD_DIR)/miniperl
 endef
 
 ifeq ($(CONFIG_arc),)
git clone https://git.99rst.org/PROJECT