pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/59482: mail/squirrelmail update problems



>Number:         59482
>Category:       pkg
>Synopsis:       mail/squirrelmail update problems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 24 11:40:01 +0000 2025
>Originator:     Hauke Fath
>Release:        NetBSD 9.4_STABLE
>Organization:
Technische Universitaet Darmstadt
>Environment:
	
	
System: NetBSD Hochobir 9.4_STABLE NetBSD 9.4_STABLE (DMZ_DOMU) #0: Tue Jul 2 05:02:44 CEST 2024 hf4kh@Hochstuhl:/var/obj/netbsd-builds/9/amd64/sys/arch/amd64/compile/DMZ_DOMU amd64
Architecture: x86_64
Machine: amd64
>Description:

	After a php upgrade (8.1 -> 8.2) I found the machine's
	squirrelmail installation had lost its configuration.

	There are several aspects to that:

	(1) The package name has a php prefix, implying installation
	under PREFIX/share/php/<version>/squirrelmail.
	I have been wondering about whether it makes sense to version
	applications that way (as opposed to libraries/modules), and
	now am convinced that it does not. Switching a foo based
	application from foo-N to foo-N+1 does not change the
	application, so there is no reason to move it.

	(2) squirrelmail recommends local configuration go into
	config/config_local.php which is then included by
	config/config.php. I did that, and the file was removed with
	the php81 package. It either should not be in PLIST (not
	pkgsrc managed) and thus left alone during a package removal,
	or, even better, should move to PKG_SYSCONFDIR.

	Having been tripped up like this before, I had
	config_local.php under rcs control. I was able to move the RCS
	directory, check out config_local.php, and back in business.

	
>How-To-Repeat:

	Upgrade php, find your squirrelmail installation broken.

	
>Fix:

	Move config_local.php to PKG_SYSCONFDIR.

	Consider removing the php prefix from the package name.

	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index