From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 20 Nov 2026 08:33:29 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xUJ7g-001NLw-2O for lore@lore.pengutronix.de; Fri, 20 Nov 2026 08:33:29 +0100 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1xUJ7g-0002JW-1A; Fri, 20 Nov 2026 08:33:28 +0100 Received: from mx1.white.stw.pengutronix.de ([185.203.200.13]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1xUJ7P-0002B5-0h for ptxdist@pengutronix.de; Fri, 20 Nov 2026 08:33:11 +0100 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPS id 6900C200878 for ; Fri, 20 Nov 2026 08:33:10 +0100 (CET) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1795159990; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=DjmzT2rteejfohBeeh3pe1PeJ+59U56hpx7NhN+fLv8=; b=eAkc5zQYb77mDwnknT6AUMIgfw+uAJdjblFkzU6mR2n0e26wGyCb+KzaQtuf7MGYqLKqyt oBVV9zXQucUo7eiH6yEC/poeIZ3wxn44umETCXlV6zLft7Hmkhd2ZGa/Dm9lTvs3br1Rak LDt7vSGiDZIZqiyKdBAUj+q25Vy1w3z0ZbR4CDjohgtlw2Ayv19W0CM/rg2Cl+NidQSA+v GQE1G8ixKroTRaNY5czfUPmhTAvQ+6/Ir/YKPATV5faaHdMtZ9mGhWr2sGc0VRtHVr8W2d ZjxDenV+OnsJIVXEwBWfvCCjUQ4B0o3dfKwr4j8RO4ruwTPujbMnsNnMZWQe1Q== ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1795159990; a=rsa-sha256; cv=none; b=NW5/CAu+vQvLDPdHcIhV6u4PYi21FLPJHmXFRi1L9Gs8+ETVwrPUkpXiCTSarlJLVabok9 G7uadM5wFZgjq+GaU3UD8tuUhS2Gb6aU2JgSINCKOFIUlOXGDCu/edhjhNuTSkDCvr6+z8 ZQdyfI9ce7U2Sxd6LRB4OQIUBZucKG9UmV90HHdQJIyESuA+mxaFrQggQZd4SjjzSe23cs n7q7bVyucO5UB7p5QhqkIZ7z20sJ9xupp1z7Kaw9QBwk0SYtaqcQa1wod4dkAqA6HlWKdZ nmJ0bN8KVLKjR1cEoOm4E6P4EGBdcrINs7FlGtEdmIGjCKqTKxs82tvTCJ2HLQ== ARC-Authentication-Results: i=1; mx1.white.stw.pengutronix.de; dkim=pass header.d=gmail.com header.s=20260707 header.b=ZYl61XgH; spf=pass (mx1.white.stw.pengutronix.de: domain of rug2ros@gmail.com designates 2a00:1450:4864:20::433 as permitted sender) smtp.mailfrom=rug2ros@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-491971ac844so452515f8f.2 for ; Thu, 19 Nov 2026 23:33:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795159990; x=1795764790; h=content-type:mime-version:message-id:subject:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=DjmzT2rteejfohBeeh3pe1PeJ+59U56hpx7NhN+fLv8=; b=gmwpoFy/bd8ee8V6DnAq0ahpReESDYcn8In+FfDxBZz7Kvyvkx9kSy7DGaUt+VZpfs r4IiDigJ+qqxrGof1gTnJ+RkyV46hzVliLINWPgmFoBvEZlSOMXTjRUH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:7571:5743 with SMTP id 5b1f17b1804b1-4bb88813444mr47338785e9.27.1795159989653; Thu, 19 Nov 2026 23:33:09 -0800 (PST) Received: from laptop-RR (p200300c00f1e0300d0a573d2b372d350.dip0.t-ipconnect.de. [2003:c0:f1e:300:d0a5:73d2:b372:d350]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb85399d52sm89929195e9.6.2026.11.19.23.33.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 23:33:08 -0800 (PST) Date: Fri, 20 Nov 2026 08:33:07 +0100 From: Rug Ros To: ptxdist@pengutronix.de Message-ID: <20261120083307.3f89ec27@laptop-RR> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/DkDpCJlCAQbt21H=dre3ClX" X-Spamd-Result: default: False [-3.50 / 15.00]; BAYES_HAM(-3.00)[99.99%]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4864::/56]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20260707]; MIME_GOOD(-0.10)[multipart/mixed,text/plain,text/x-patch]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:+]; ARC_NA(0.00)[]; ARC_SIGNED(0.00)[pengutronix.de:s=20260414:i=1]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[ptxdist@pengutronix.de]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::433:from]; RECEIVED_SPAMHAUS_PBL(0.00)[2003:c0:f1e:300:d0a5:73d2:b372:d350:received]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM(-0.00)[-1.000]; HAS_ATTACHMENT(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Action: no action X-Rspamd-Queue-Id: 6900C200878 X-Rspamd-Server: mx1 X-Stat-Signature: 6yd8wrp5a519xua1cz5c49p8qro59bu4 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_GMAIL_RCVD,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.2 Subject: [ptxdist] Possible bug while compiling the kernel sourced via lndir:// X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false --MP_/DkDpCJlCAQbt21H=dre3ClX Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, n order to make some changes to a device driver, I sourced the kernel via an lndir:// URL. The kernel compilation itself succeeds, but the kernel.compile stage subsequently fails with the following error: make: Leaving directory '/home/ruggero/phytec/i.MX6Linux/i.MX6Linux.newKernel/platform-phyFLEX-i.MX6/build-target/linux-6.12.96' sed: can't read /home/ruggero/phytec/i.MX6Linux/i.MX6Linux/platform-phyFLEX-i.MX6/build-target/linux-6.12.96/compile_commands.json: No such file or directory make: ***[/home/ruggero/phytec/i.MX6Linux/i.MX6Linux/rules/kernel.make:276: /home/ruggero/phytec/i.MX6Linux/i.MX6Linux/platform-phyFLEX-i.MX6/state/kernel.compile] Error 2 I traced the issue to ptxd_make_world_compile_commands_filter() in ptxd_make_world_compile_commands.sh: In this function the file compile_commands.json is modified using sed, and the source is handled properly (variable ${src_cmds}). If sed succeeds, ptxd_make_world_compile_commands_cleanup() is called. However, ptxd_make_world_compile_commands_cleanup() runs sed on "${pkg_dir}/compile_commands.json". While that path is valid for regular builds, it points to the wrong location when using an lndir:// URL. As a workaround, I passed the resolved path as a parameter to ptxd_make_world_compile_commands_cleanup() and updated its second call site in ptxd_make_world_compile.sh accordingly. I have attached a patch with my changes for reference. Best regards Ruggero --MP_/DkDpCJlCAQbt21H=dre3ClX Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=compile-kernel-lndir.patch diff -Naur /mnt/tmp/usr/local/lib/ptxdist-2026.07.0/scripts/lib/ptxd_make_world_compile.sh /usr/local/lib/ptxdist-2026.07.0/scripts/lib/ptxd_make_world_compile.sh --- /mnt/tmp/usr/local/lib/ptxdist-2026.07.0/scripts/lib/ptxd_make_world_compile.sh 2026-06-27 13:07:38.000000000 +0000 +++ /usr/local/lib/ptxdist-2026.07.0/scripts/lib/ptxd_make_world_compile.sh 2026-11-19 15:37:54.949219877 +0000 @@ -164,7 +164,7 @@ print "\n]" }' } > "${pkg_dir}/compile_commands.json" && - ptxd_make_world_compile_commands_cleanup + ptxd_make_world_compile_commands_cleanup "${pkg_dir}/compile_commands.json" fi } export -f ptxd_make_world_compile_finish diff -Naur /mnt/tmp/usr/local/lib/ptxdist-2026.07.0/scripts/lib/ptxd_make_world_compile_commands.sh /usr/local/lib/ptxdist-2026.07.0/scripts/lib/ptxd_make_world_compile_commands.sh --- /mnt/tmp/usr/local/lib/ptxdist-2026.07.0/scripts/lib/ptxd_make_world_compile_commands.sh 2026-06-27 13:07:38.000000000 +0000 +++ /usr/local/lib/ptxdist-2026.07.0/scripts/lib/ptxd_make_world_compile_commands.sh 2026-11-19 15:38:31.841776180 +0000 @@ -12,7 +12,7 @@ ptxd_make_world_compile_commands_cleanup() { sed -i \ -e 's/ *-fno-diagnostics-show-caret//g' \ - "${pkg_dir}/compile_commands.json" + "${1}" } export -f ptxd_make_world_compile_commands_cleanup @@ -44,7 +44,7 @@ -e "s#\(\"command\": \" *[^ ]*\(gcc\|clang\) \)#\1 ${PTXDIST_CROSS_CPPFLAGS} ${pkg_cflags} #" \ -e "s#\(\"command\": \" *[^ ]*++ \)#\1 ${PTXDIST_CROSS_CPPFLAGS} ${pkg_cxxflags} #" \ "${src_cmds}" > "${dst_cmds}" && - ptxd_make_world_compile_commands_cleanup + ptxd_make_world_compile_commands_cleanup "${src_cmds}" } export -f ptxd_make_world_compile_commands_filter --MP_/DkDpCJlCAQbt21H=dre3ClX--