Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] php.ini: set date.timezone
Date: Sat, 02 May 2015 17:43:38 +0200	[thread overview]
Message-ID: <5544F0AA.7050305@mind.be> (raw)
In-Reply-To: <1430579415-22802-3-git-send-email-bos@je-eigen-domein.nl>

On 02/05/15 17:10, Floris Bos wrote:
> Set date.timezone in php.ini to match time zone settings.
> Prevents a warning being logged about it not being set
> each time a PHP date/time method is used.
> 
> Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

 Regards,
 Arnout

> 
> ---
> v2: follows Arnout's suggestion, using BR2_TARGET_LOCALTIME
> ---
>  package/php/php.mk | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/package/php/php.mk b/package/php/php.mk
> index 3b9a117..47811ff 100644
> --- a/package/php/php.mk
> +++ b/package/php/php.mk
> @@ -24,6 +24,12 @@ PHP_CONF_ENV = \
>  	ac_cv_func_strcasestr=yes \
>  	EXTRA_LIBS="$(PHP_EXTRA_LIBS)"
>  
> +ifeq ($(BR2_TARGET_LOCALTIME),)
> +PHP_LOCALTIME = UTC
> +else
> +PHP_LOCALTIME = $(BR2_TARGET_LOCALTIME)
> +endif
> +
>  # PHP can't be AUTORECONFed the standard way unfortunately
>  PHP_DEPENDENCIES += host-autoconf host-automake host-libtool
>  define PHP_BUILDCONF
> @@ -288,6 +294,8 @@ define PHP_INSTALL_FIXUP
>  	rm -f $(TARGET_DIR)/usr/bin/phpize
>  	$(INSTALL) -D -m 0755 $(PHP_DIR)/php.ini-production \
>  		$(TARGET_DIR)/etc/php.ini
> +	$(SED) 's%;date.timezone =.*%date.timezone = $(PHP_LOCALTIME)%' \
> +		$(TARGET_DIR)/etc/php.ini
>  endef
>  
>  PHP_POST_INSTALL_TARGET_HOOKS += PHP_INSTALL_FIXUP
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2015-05-02 15:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-02 15:10 [Buildroot] [PATCH 1/2] rpi-firmware: allow disabling installation of binary DTBs Floris Bos
2015-05-02 15:10 ` [Buildroot] [PATCH 2/2] rpi-firmware: modify settings for Pi 2 Floris Bos
2015-05-02 15:56   ` Yann E. MORIN
2015-05-02 17:17   ` Thomas Petazzoni
2015-05-02 15:10 ` [Buildroot] [PATCH v2] php.ini: set date.timezone Floris Bos
2015-05-02 15:43   ` Arnout Vandecappelle [this message]
2015-05-02 17:18   ` Thomas Petazzoni
2015-05-02 17:22     ` Floris Bos
2015-05-02 18:54       ` Thomas Petazzoni
2015-06-19 20:30 ` [Buildroot] [PATCH 1/2] rpi-firmware: allow disabling installation of binary DTBs Yann E. MORIN
2015-06-19 20:52   ` Floris Bos
2015-06-19 21:07     ` Yann E. MORIN
2015-06-19 22:47       ` Yann E. MORIN
2015-06-28 22:35     ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5544F0AA.7050305@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox