Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101338 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40062 invoked from network); 12 Dec 2017 20:50:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2017 20:50:21 -0000 Authentication-Results: pb1.pair.com header.from=jelle@vdwaa.nl; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jelle@vdwaa.nl; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain vdwaa.nl from 74.125.82.51 cause and error) X-PHP-List-Original-Sender: jelle@vdwaa.nl X-Host-Fingerprint: 74.125.82.51 mail-wm0-f51.google.com Received: from [74.125.82.51] ([74.125.82.51:35359] helo=mail-wm0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F2/55-53433-A01403A5 for ; Tue, 12 Dec 2017 15:50:20 -0500 Received: by mail-wm0-f51.google.com with SMTP id f9so1219014wmh.0 for ; Tue, 12 Dec 2017 12:50:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vdwaa-nl.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=FV5cPVGwQtNBq9woJionPeA09kIQTjEPxX2pAiCB11U=; b=LVICWliFsOF/+re55PMID4ayqM/MNn6IvZcU64fcuVqqye6ZZ9BXrdGR72Kb9AVppZ hIjkIHp4feF1yysck4MWnzfZLHXHnbETkgPER/q4JwC16zjgAJFXLWCuBlNEvkLFVdMt ttrSls2n9zMeUTP58e0ABZvlqw8mlcZXZZ0mr+i9JwMNit348Ni+NYi4zF837tcgf/tT 4d9+ETxYNW8hHd+u4WNRIZp24wXpny8z31orqID69dg1tgo+0SKZBhGSeWaQfHjHEhXD 6/S/q1uomrzXBsgSv2jxLn02K8Vtq1b02UZyEFKwiOxy4dEA/oqgadqP34TGaD1VQ7S2 EyXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=FV5cPVGwQtNBq9woJionPeA09kIQTjEPxX2pAiCB11U=; b=tmx+6Myd1ub8HLXHH1aS+hjgPrBsPl4u52tGAr2xzO3O/nSHmZImIeDVRtPsccENC9 uf+WPnXj7DVFO7r6Nn8XQ+ffklUINUoo+X2V/oG5PJu3uwDNNfV7ORt3w/AjBz5BkjrA vKe98Oon1ivhh4zeccJaEWaDTsTCOyYdI3lK1LrqbQX/XQOgkunBUNrwgu5FNQIdMAVO G084YARB8wzHa+79fl+2ntVJn5Mdkcps1ZGkMUIu5L9Rrqdlt0bTucokO7mvAHa8nt6T UuqPa0KIcRnynEyCkJqTLWXPGTs+g/tEohk+0wx1mFFsmwb16vpiL6GdyiXyb60XHUeF gvMw== X-Gm-Message-State: AKGB3mIAKUZoXaGk9jzdtdlxl2PwIY5NX7UCqWxzGdQ+H7FW9TOnPnm4 mtrpct6VomqdwLLQ62ZBcGK8jw== X-Google-Smtp-Source: ACJfBotKLu6MpHhAIUcxVz6pUnIfULR6rI9jnXv1CBdr8tLJ+FJXyLWP4C8o+OC7UwDraxSe6Y8Sow== X-Received: by 10.80.143.67 with SMTP id 61mr4437373edy.219.1513111816029; Tue, 12 Dec 2017 12:50:16 -0800 (PST) Received: from gmail.com (535537FC.cm-6-6a.dynamic.ziggo.nl. [83.85.55.252]) by smtp.gmail.com with ESMTPSA id p93sm214922edp.14.2017.12.12.12.50.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2017 12:50:15 -0800 (PST) Date: Tue, 12 Dec 2017 21:50:14 +0100 To: Stanislav Malyshev Cc: PHP Internals Message-ID: <20171212205013.yniwxasnvijcz5km@gmail.com> References:<20171211211157.d7lj5vibpaaka4ji@gmail.com> <3aa774e4-c83b-79e1-edf8-acbbad76ea41@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To:<3aa774e4-c83b-79e1-edf8-acbbad76ea41@gmail.com> User-Agent: NeoMutt/20171208 Subject: Re: [PHP-DEV] [RFC] Reproducible Builds Support From: jelle@vdwaa.nl (Jelle van der Waa) On 12/11/17 at 11:33pm, Stanislav Malyshev wrote: > Hi! > > > Once issue is the PHP_BUILD_DATE, which makes the build > > non-reproducible. I've made a PR which uses SOURCE_DATE_EPOCH which is > > set in the reprodiculbe build env. This should keep the current > > functionality intact, while adding support for reproducible builds. [2] > > [3] > > SOURCE_DATE_EPOCH (or any other variable) looks like a good way to make > it predictable. > > > Another issue is the php_uname functions which contains the > > hostname, since the hostname is varied per build this makes it > > non-reproducible. This is caused by the following line: > > > > configure.ac:PHP_UNAME=`uname -a | xargs` required in: > > ext/standard/info.c: php_uname = PHP_UNAME; > > I think the best solution here would be to have another variable to > override this. The issue with this approach would be that every distribution has to set this variable. I know it's the same with SOURCE_DATE_EPOCH, but that is well established. > > > I would argue that this is strange unexpected behaviour, and maybe it > > should throw an exception instead? Or can it show only "Linux" as > > fallback? basically PHP_OS. Ideas? > > If those old systems run PHP and need uname, changing stuff there is > probably harder and more expensive than on other systems. With this in > mind, I'd rather not mess with it, especially for a purpose that can > easily be achieved without it. Hmmm true, but the fallback being the hostname where PHP was build on seems a little bit odd, doesn't it? -- Jelle van der Waa