**** BEGIN LOGGING AT Wed Oct 12 02:59:57 2011 Oct 12 06:53:33 nico * r28426 /packages/lang/twisted/Makefile: [packages] twisted: add build dependency on librpc on uClibc, fix PyMod compilation, unmark as broken Oct 12 06:54:50 nico * r28427 /branches/packages_10.03.1/lang/twisted/Makefile: [packages/backfire] twisted: merge [28426] Oct 12 09:19:23 build #74 of avr32 is complete: Failure [failed compile_4] Build details are at http://buildbot.openwrt.org:8010/builders/avr32/builds/74 Oct 12 10:46:12 kaloz * r28428 /trunk/tools/ (5 files in 3 dirs): [tools]: add upx, but make it build only for ppc now Oct 12 14:06:41 jow * r28429 /packages/net/openl2tp/ (6 files in 2 dirs): [packages] openl2tp: ship generated RPC sources as many distros lack support the required rpcgen features Oct 12 14:07:35 jow * r28430 /branches/packages_10.03.1/net/openl2tp/ (Makefile src/): [backfire/packages] merge r28429 Oct 12 17:56:19 <{Nico}> /win 9 Oct 12 17:58:00 -ENOWIN Oct 12 18:01:24 <{Nico}> :D Oct 12 18:01:47 <{Nico}> trim(" /win 9") Oct 12 18:02:35 ok, so timezones. Oct 12 18:03:46 in openwrt, this is, e.g. system.@system[0].timezone=PST8PDT,M3.2.0,M11.1.0 Oct 12 18:03:59 this is set to /etc/TZ, which is used by uclibc. Oct 12 18:05:05 and the zoneinfo files will be copied to /etc/timezone if present. Oct 12 18:05:38 glibc will use /etc/timezone if present, or possibly TZ, if that's set as a variable. Oct 12 18:05:49 but PHP, of course, is special. Oct 12 18:07:21 under openwrt, as best I can tell, it needs either TZ set, or explicitly set to the word format, e.g. America/Los_Angeles Oct 12 18:07:37 not the PST8PDT... etc format. Oct 12 18:07:53 anyone care to opine? I'm using eglibc of course. Oct 12 18:52:12 Chocks: we recently added support for the tzdata package and handling of it in /etc/config/system Oct 12 18:53:04 Chocks: basically you can set system.@system[0].zonename="America/Los_Angeles" which will result in an /etc/timezone symlink to the appropriate /usr/share/zoneinfo/foo file Oct 12 18:53:11 at least glibc is happy with that then Oct 12 18:56:47 ok, thanks. I was trying that now anyway. Oct 12 18:57:00 I know PHP is probably still going to have a tantrum Oct 12 20:29:01 hm, I think there's a problem Oct 12 20:29:17 there doesn't seem to be an explicit North America zoneinfo package. Oct 12 20:29:40 there is a Los_Angeles file, but it's not in a subdir, from I think, the simple package. Oct 12 20:29:55 zoneinfo-northamerica ? Oct 12 20:30:29 hm, didn't get turned on Oct 12 21:03:25 ok, so why do we have zoneinfo and timezone values? Oct 12 21:03:59 because timezone was there first Oct 12 21:04:05 and zoneinfo databases are huge Oct 12 21:04:19 and there is no way to map tz values to zone names Oct 12 21:04:23 in a unique manner Oct 12 21:04:31 also uclibc has no zoneinfo support Oct 12 21:04:51 I understand all that. But what should I be setting? Oct 12 21:05:04 for a *glibc environment, just zonename Oct 12 21:05:12 ok, fair. Oct 12 21:05:27 that works for everything except for PHP Oct 12 21:05:31 which is too special for words Oct 12 21:05:43 what is needed by php? Oct 12 21:06:19 http://pastebin.com/fzEnqVsL Oct 12 21:06:55 if you set TZ= in the environment, it will use that, however Oct 12 21:07:32 maybe patcing php is the easiest, don't know Oct 12 21:08:01 you can set the timezone in PHP's ini, but that doesn't seem very satisfactory Oct 12 21:09:53 and where would you set TZ? /etc/profile isn't sufficient for e.g, the web server Oct 12 21:11:02 /etc/functions maybe Oct 12 21:14:31 http://anonscm.debian.org/gitweb/?p=pkg-php/php.git;a=blob;f=debian/patches/use_embedded_timezonedb.patch;h=2cee34cfd553c2e76ed755416a3a2dc2acaea995;hb=26be0b274826937a5cffd2eedc0e5f8738abd597 Oct 12 21:16:57 right. That seems desirable. Oct 12 21:18:06 I would not mind integrating that if somebody can test it Oct 12 21:18:21 I guess I just nominated myself Oct 12 21:18:35 hacking TZ= into /etc/functions.sh doesn't seem to help Oct 12 21:19:32 I don't know how php developers came to the conclusion that shipping a private copy of a fast changinging database is a wise idea Oct 12 21:20:05 maybe for portability reasons Oct 12 21:20:10 It's not clear to me that PHP is "developed" in any traditional sense. Oct 12 21:21:44 jow_laptop: i wouldn't call the timezone db particularly fast changing. Oct 12 21:21:50 I'm wondering that http://www.php.net/manual/de/datetime.configuration.php describes that TZ env var is used, but http://www.php.net/manual/de/function.date-default-timezone-get.php states that it is not used anymore for timezone guessing. Oct 12 21:22:11 i'd believe the latter Oct 12 21:23:21 I'd know the reasons why TZ env support was dropped with php 5.3.0 Oct 12 21:23:59 EqUaTe: every one to three months Oct 12 21:24:09 php 5.3.8, at least on the command line in openwrt, honours TZ Oct 12 21:24:14 then the world is even more fucked up than i thought. Oct 12 21:24:18 but it's clearly a huge hack Oct 12 21:25:07 and given the court case against the guy behind the current tz db used on most systems, i already thought it was pretty fucked up. Oct 12 21:25:38 I think patching /usr/share/zoneinfo into php is the way to go Oct 12 21:27:21 patch applies ok Oct 12 21:27:41 I named it 102- Oct 12 21:27:58 doesn't build tho. hah. Oct 12 21:31:28 looks like lines 627/628 need to be swapped Oct 12 21:33:28 that's the case without the config option set tho. Oct 12 21:49:22 it's complaining about not knowing about the new --with-system-tzdata option I'm handing it. do I have to do some comedy to get it to pick up the stuff in timelib.m4? Oct 12 21:49:41 yes Oct 12 21:49:51 you need to autoreconf the tree Oct 12 21:49:56 can be adventorous though Oct 12 21:50:11 it only works without issues maybe ~50% of the time Oct 12 21:50:31 try adding PKG_FIXUP:=autoreconf to the OpenWrt makefile Oct 12 21:50:53 right Oct 12 21:50:58 oh, how I love cross compiling Oct 12 21:51:02 if thats fails, extend Build/Configure with a call to "$(STAGING_DIR_HOST)/bin/autoconf" Oct 12 21:51:10 and see if that works Oct 12 21:51:28 if that fails too you have to patch the generated configure script Oct 12 21:51:29 it already has no-autoreconf there Oct 12 21:51:42 or simply bypass it and add the required defines to TARGET_CFLAGS Oct 12 21:52:24 TARGET_CFLAGS += -DHAVE_SYSTEM_TZDATA=1 Oct 12 21:52:57 yes, that made a big mess. will try that. Oct 12 21:53:58 simply unpack the php sources with all previous patches, then apply the new patch and run a "buildconf --force"; this should result in 3 updated files Oct 12 21:54:38 * Chocks suggest that mhei is not talking about a cross compile environment Oct 12 21:55:23 create a diff of this 3 files and replace the 900-*patch in openwrt Oct 12 21:58:46 after this procedure you should be able to add the --with-system-tzdata to owrt's php5 Makefile Oct 12 21:59:40 I guess that http://anonscm.debian.org/gitweb/?p=pkg-php/php.git;a=blob;f=debian/patches/use_embedded_timezonedb_fixes.patch;h=fa4c0d1929e802e7eb640b848b2946f20c4725aa;hb=26be0b274826937a5cffd2eedc0e5f8738abd597 is also required Oct 12 21:59:41 sure. but no joy on forcing the TARGET_CFLAGS Oct 12 21:59:57 ah Oct 12 22:02:49 I could give this a try next evening; have to leave now; can you drop me an email with your results? Oct 12 22:03:26 mhei: will do Oct 12 22:04:45 I'm doing it right now, will post to the list when/if it works Oct 12 22:05:23 ok, thnx + cu Oct 12 22:06:34 \o/ Oct 12 22:10:42 ok. I need to restart the webserver, i.e, php-cgi process to get new time zone, but that's ok Oct 12 22:16:45 there, enjoy Oct 12 22:16:55 thanks **** ENDING LOGGING AT Thu Oct 13 02:59:57 2011