Re: [arch-dev-public] Edit /etc/php/php.ini config file in chroot

2019-02-12 Thread Eli Schwartz via arch-dev-public
On 2/11/19 1:17 PM, NicoHood wrote:
> Hi,
> I am using devtools to create a package with php scripts. It uses
> composer to build the package. I get the error:
> 
> The requested PHP extension ext-iconv * is missing from your system.
> Install or enable PHP's iconv extension.
> 
> This can be solved by editing the config file and add:
> extension=iconv
> 
> The config file is only accessible by root. How do I edit this config
> file within the PKGBUILD if its build by devtools? Any idea?

Hmm, I didn't realize this was the VIP support channel for packaging
issues, would likely expect that on aur-general. :/

I'm anyways not sure why you'd wish to exclude 99% of all arch users
from answering your question.

...

Like any other package, this PKGBUILD cannot invoke things as sudo or
try to mess with the system. Whether it is used via devtools or not, is
not the point.

The standard solution is to investigate language-specific mechanisms for
running with a different config file...

php --help lists two likely options. Pierre has already mentioned one of
them.

-- 
Eli Schwartz
Bug Wrangler and Trusted User



signature.asc
Description: OpenPGP digital signature


Re: [arch-dev-public] Edit /etc/php/php.ini config file in chroot

2019-02-11 Thread Pierre Schmitz
Do you have an example PKGBUILD? I'd say provide a custom php.ini or
use cli parameters like php -d extension=iconv etc.

On Mon, Feb 11, 2019 at 7:17 PM NicoHood  wrote:
>
> Hi,
> I am using devtools to create a package with php scripts. It uses
> composer to build the package. I get the error:
>
> The requested PHP extension ext-iconv * is missing from your system.
> Install or enable PHP's iconv extension.
>
> This can be solved by editing the config file and add:
> extension=iconv
>
> The config file is only accessible by root. How do I edit this config
> file within the PKGBUILD if its build by devtools? Any idea?
>
> ~Nico
>


[arch-dev-public] Edit /etc/php/php.ini config file in chroot

2019-02-11 Thread NicoHood
Hi,
I am using devtools to create a package with php scripts. It uses
composer to build the package. I get the error:

The requested PHP extension ext-iconv * is missing from your system.
Install or enable PHP's iconv extension.

This can be solved by editing the config file and add:
extension=iconv

The config file is only accessible by root. How do I edit this config
file within the PKGBUILD if its build by devtools? Any idea?

~Nico



signature.asc
Description: OpenPGP digital signature