From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 10 Jun 2022 11:42:43 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nzbAB-009rr2-Jz for lore@lore.pengutronix.de; Fri, 10 Jun 2022 11:42:43 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nzbAA-0004k0-IN; Fri, 10 Jun 2022 11:42:42 +0200 Received: from mail.ela-soft.com ([213.23.49.162]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzbA0-0004jr-Ec for ptxdist@pengutronix.de; Fri, 10 Jun 2022 11:42:32 +0200 Received: from [10.0.0.47] (tupai.ela-bln.local [10.0.0.47]) by mail.ela-soft.com (mailsystem) with ESMTPSA id C0C87277D7 for ; Fri, 10 Jun 2022 11:42:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ela-soft.com; s=2021; t=1654854151; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NY4oY8ulPR9/2702lvz1oVpV5EDCJ0XQ/fSz4vWZY8k=; b=F8oQtel09/o3qZfY1Ef/vrWHtStlUWROND36bh9hk7dGKOVYGKLurHNaeoZuRVG9lV65jN LRJH6IPOqaRRZPWyiru2wRbyLrLfvX3cj4qOBGy8wxuZIEaUoq6cxw1xY38pY03K7xrDGC jzmeAya0zOP5qMZpa+ig1tZZ53wx+guc511OQs8yVE7ZyvvOz+K1VXUasFpbSBA1EUpSdM Me+tJtW6KBoCJRmqEpxmFhLM6OoRhyOpNuEhtQ5cGO9fSn3YIFZTQMDr1qgYArPLwHQ6ct yikdCv4YzW7+c7vUAkGGv3jvc5pYMyxyyRRVNe9AY76Vr/nOBw4J3W33tJr2LA== Message-ID: <97c41aaf-ea0e-c0e7-5e34-88e18a9c4329@ela-soft.com> Date: Fri, 10 Jun 2022 11:42:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Content-Language: de-DE To: ptxdist@pengutronix.de References: <28671d34-f6bb-86e8-d8cb-0c0753ed7119@ela-soft.com> From: Andreas Helmcke In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-102.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED,USER_IN_WELCOMELIST, USER_IN_WHITELIST autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH v2 1/2] php: reanimate PHP as PHP8 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.ext.pengutronix.de); SAEximRunCond expanded to false Hello, Am 10.06.22 um 08:19 schrieb Michael Olbrich: > On Fri, Jun 03, 2022 at 05:12:08PM +0200, Andreas Helmcke wrote: >> + >> +ifdef PTXCONF_PHP8_SAPI_CGI >> + @$(call install_copy, php8, 0, 0, 0755, -, /usr/bin/php-cgi) >> +endif >> + >> +ifdef PTXCONF_PHP8_INI >> + @$(call install_alternative, php8, 0, 0, 0644, /etc/php8/php.ini) > > php8 does not install this, so you need to add on to ptxdist in > projectroot/. > php8 does provide templates for php.ini. I would like to use this file: .../build-target/php-8.1.6/php.ini-production I'd like to have ptxdist to install php.ini from the users project root, if provided (just like install_alternative does) but copy php-ini-production as php.ini, if install_alternative does not find a source. I think I can achieve this just with copying php.ini-production to ptxdist projectroot/ but then with each version bump this has to be done manually again. Is there a better solution? Andreas