Bug#398177: [php-maint] Bug#398177: libapache2-mod-php4: Non-changes to php.ini not detected correctly

2006-11-12 Thread Steve Langasek
On Sun, Nov 12, 2006 at 10:26:31AM +0100, Mike Hommey wrote:
 Package: libapache2-mod-php4
 Version: 4:4.4.4-6
 Severity: normal

 When I upgraded libapache2-mod-php4 from version 4.4.4-3 to 4.4.4-6, ucf
 asked be if I wanted to keep my modified php.ini file, or if I wanted to
 install the new file but... I never made any changes to the php.ini file.

So you never installed any php extension packages, or you refused to let
these packages auto-update php.ini for you?

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
[EMAIL PROTECTED]   http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#398177: [php-maint] Bug#398177: libapache2-mod-php4: Non-changes to php.ini not detected correctly

2006-11-12 Thread sean finney
On Sun, 2006-11-12 at 01:45 -0800, Steve Langasek wrote:
  When I upgraded libapache2-mod-php4 from version 4.4.4-3 to 4.4.4-6, ucf
  asked be if I wanted to keep my modified php.ini file, or if I wanted to
  install the new file but... I never made any changes to the php.ini file.
 
 So you never installed any php extension packages, or you refused to let
 these packages auto-update php.ini for you?

i think i've seen this as well.  afaict the problem is because in
the old version of php, the php.ini file was *copied* from /usr/share
during the postinst script, and thus in  4.4.4-4 (when ucf was
introduced), the first time it's run it sees the existing file and
treats it as locally modified.

so then, the fix for this would be to check for upgrades from  4.4.4-4
when php.ini hasn't been modified, and to copy over the new file before
running ucf to register it?


sean


signature.asc
Description: This is a digitally signed message part


Bug#398177: [php-maint] Bug#398177: libapache2-mod-php4: Non-changes to php.ini not detected correctly

2006-11-12 Thread Mike Hommey
On Sun, Nov 12, 2006 at 01:45:43AM -0800, Steve Langasek [EMAIL PROTECTED] 
wrote:
 On Sun, Nov 12, 2006 at 10:26:31AM +0100, Mike Hommey wrote:
  Package: libapache2-mod-php4
  Version: 4:4.4.4-6
  Severity: normal
 
  When I upgraded libapache2-mod-php4 from version 4.4.4-3 to 4.4.4-6, ucf
  asked be if I wanted to keep my modified php.ini file, or if I wanted to
  install the new file but... I never made any changes to the php.ini file.
 
 So you never installed any php extension packages, or you refused to let
 these packages auto-update php.ini for you?

Do you mean php extensions packages write to php config file ? That
sounds like a policy infrigment to me... As far as I can tell, there is
a conf.d directory containing the php4-mysql config, though I can't tell
for sure if it was the case before.

Mike


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#398177: [php-maint] Bug#398177: libapache2-mod-php4: Non-changes to php.ini not detected correctly

2006-11-12 Thread Steve Langasek
On Sun, Nov 12, 2006 at 01:09:46PM +0100, Mike Hommey wrote:
   When I upgraded libapache2-mod-php4 from version 4.4.4-3 to 4.4.4-6, ucf
   asked be if I wanted to keep my modified php.ini file, or if I wanted to
   install the new file but... I never made any changes to the php.ini file.

  So you never installed any php extension packages, or you refused to let
  these packages auto-update php.ini for you?

 Do you mean php extensions packages write to php config file ? That
 sounds like a policy infrigment to me... As far as I can tell, there is
 a conf.d directory containing the php4-mysql config, though I can't tell
 for sure if it was the case before.

It's not a conffile and it's coordinated, so no, it's not a policy
infringement -- it's just messy.

When I first installed the new package I did get the ucf prompt, because my
old php.ini had extension= lines added to it as expected.  But Sean seems to
think that this may happen even with an unmodified php.ini; he probably
knows better than I do.

-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
[EMAIL PROTECTED]   http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]