Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122824 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id B54081A009C for ; Sat, 30 Mar 2024 14:21:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1711808512; bh=nEPs2ETKNj9Td9ptnyHkcAnshuFbeGSliD0VWq/LjJU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=jzapd0boJdll9UthI/wzt+wuCay6AAmureHNQTh51aLtxCfqBNkoQqcboVOTMTk/D O1+wH0iWnz2cPrgHUNp7uIAEJzm87GauRkvoZi9eND+/9g3MS7R7h+IfTfFmOFrY94 LEhRiUDlOWzXU4XQFzd1Zdna02HR4CI9NpjV4hLsuP2A9asmYE86vynWXlAXoCvYck tfV1RJz2jfTBx8gX32Ove9IM9AvONubN9a66u2IfuhHzUouajp5tO2I83pRx6KY5J9 Fx4a23+BNdOmgCeW73AIkqLjBBsvUM3BlcjhjvsQxdKkAytc1QIbf3y/ZHrMgE2hFM kXxZteK8fKCqQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3365C1805CF for ; Sat, 30 Mar 2024 14:21:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 30 Mar 2024 14:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1711808483; bh=qoJToP3Uqxm/+b6LN+1815s4IXK+Cs3uuiFPPNFQ7QE=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=Ok90twwYW6phKpuLMpUEQfkq6JzLAjc04M2GleYl/rWXMIX14MqNDSkdX+H09nH9P H3T7VcG4B6+hCtxt0JvPZKqta0N0InyMK84lnR5h6on87HULZ4qmuxaPxZEN9x4XGM 6iq99GXqivd00UEhWLWu5Rv4g5lfqEj2jaxx5tMIeJFRHyY+IY8L2vigNnc4Ykg0NO Rau9jTBXVObuvsZkGvi2ct2cUGl8+4azgSJ00UmuwPZF9VO0IdBO0808WOg0imPDQV qz78B2Z90ZsupGwWS6yCGl6orAx1gIMGO2UacgTaMRYgO/OZdNJvYVgSTzH4XxVcmx rmlaqhDPzpNXA== Message-ID: Date: Sat, 30 Mar 2024 15:21:20 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] Consider removing autogenerated files from tarballs To: Stanislav Malyshev , Sebastian Bergmann , PHP Internals References: <9008050F-4EE1-4E19-B513-654602E118A7@benramsey.com> <3d90e236-49d8-4f80-a6dd-3584267a83e3@php.net> <586c3320-b38b-47bb-9c06-6762f1eb242b@gmail.com> Content-Language: en-US In-Reply-To: <586c3320-b38b-47bb-9c06-6762f1eb242b@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 3/30/24 14:20, Stanislav Malyshev wrote: >> But does the release manager generate the files (and the tarball) in a >> reproducible way? > > I understand that's what ./scripts/dev/makedist and > ./scripts/dev/genfiles do, but I suspect exact bits in resulting > configure and lexers may depend on the exact version of tools & utils > used. For upstream packagers like distros I'd likely recommend using > these tools directly anyway, and not rely on what's in the package. > I've made some improvements to the 'makedist' script last year to improve reproducibility [1], but they are not fully reproducible yet. Notably the timestamps within the .tar archive are not reproducible yet: https://github.com/php/php-src/blob/186465b1ddcf203ddffb5d24bae897508c711586/scripts/dev/makedist#L169-L172 They are set to the time the script is run, but should probably be derived from the time of the current commit instead. Likewise the gzip call does not have the -n flag and thus also embeds a timestamp into the .tar.gz archive. There are probably further bits that are not reproducible yet. Best regards Tim Düsterhus [1] https://github.com/php/php-src/pull/10613 and https://github.com/php/php-src/pull/10615