Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84708 - mailman INSTALLDIR only partially supported
Summary: mailman INSTALLDIR only partially supported
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Highest major (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
: 96015 97466 121064 122078 (view as bug list)
Depends on:
Blocks: 106622
  Show dependency tree
 
Reported: 2005-03-09 23:50 UTC by Tero Pelander
Modified: 2007-09-14 00:33 UTC (History)
14 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
remove hardcoded paths in favor of INSTALLDIR (mailman-installdir.patch,1.63 KB, patch)
2005-03-09 23:51 UTC, Tero Pelander
Details | Diff
Ubuntu's mailman... (mailman.list.bz2,8.78 KB, application/x-bzip2)
2006-11-21 15:29 UTC, Norberto Bensa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tero Pelander 2005-03-09 23:50:45 UTC
The INSTALLDIR setting in the beginning of mailman ebuild isn't really effective as some of the paths are hardcoded in the rest of the ebuild. This means that for example INSTALLDIR=/opt/mailman causes the local configuration to be overwriten  and some of the tools from contribute directory are not installed.

Actually distributions shouldn't use /usr/local. If I remember correctly LSB reserves that for local admin. Most of the other "odd" packages in gentoo use /opt instead. Examples: dev-java/blackdown-jdk, www-servers/tomcat
Comment 1 Tero Pelander 2005-03-09 23:51:48 UTC
Created attachment 53054 [details, diff]
remove hardcoded paths in favor of INSTALLDIR
Comment 2 Tuan Van (RETIRED) gentoo-dev 2005-03-10 10:08:12 UTC
I want to get rid of INSTALLDIR and default it to a permanent location, but it seems that noone agrees on one. Originallly (way before I've touched mailman) it was in /var then moved to /home, bug #14974. Then after that it've moved to /usr/local, bug # 21037. Personally I want to rework mailman, have it install in /var/lib/mailman and the web related files installed by webapp.eclass. I am short in time and not very good with webapp. Elfyn McBratney and I discuss about it a bit. Hopefully, he will have something very shortly.
Comment 3 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-03-10 15:20:01 UTC
I'm on the net-mail@ alias so I've dropped myself from the Cc, thanks for adding me though. :)

As Tuan noted, I'm going to hammer something out soon to get the mailman package in portage webapp'ised.  If the net-mail crew are okay with it, I'll also get my teeth into migrating mailman away from /usr/local, too - but that's a big job, so I'd like it if those two tasks were separate. :p

I'll post a link when I have something more complete.
Comment 4 Matteo Settenvini 2005-04-22 15:37:49 UTC
Some applications also needs the mailman binaries to be systemwide accessible (Savane comes to mind), expecially the "newlist" command to create new lists.

e.g. Savane uses an hardcoded path (probably because it's in use in Debian systems) like "/usr/sbin/newlist". That makes sense, imho (to have binaries in /usr/sbin, I mean).
Comment 5 Tim Keitt 2005-05-01 11:51:28 UTC
Package systems should not touch /usr/local at all (at least by default). Would be great to see this re-homed to /var/lib or other location.
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2005-07-07 03:58:28 UTC
*** Bug 97466 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-01-31 08:57:30 UTC
*** Bug 121064 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-02-08 05:18:26 UTC
*** Bug 122078 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-02-08 05:19:54 UTC
*** Bug 96015 has been marked as a duplicate of this bug. ***
Comment 10 Hanno Böck gentoo-dev 2006-03-22 04:35:31 UTC
I see that it would probably be better to make this use webapp-config, but as long as it doesn't, the attached patch looks sane to me (and I have similar changes done on my own system).

If nobody crys "no" within the next day, I'll go ahead and apply that changes to consistently use the INSTALLDIR var.
Comment 11 Hanno Böck gentoo-dev 2006-05-08 05:31:25 UTC
applied
Comment 12 Norberto Bensa 2006-11-21 15:28:59 UTC
Any news on this one? I mount /usr read-only so mailman as packaged by Gentoo is unusable for me.

Ubuntu on the other hand, puts mailman in 
/usr/lib/mailman 
/usr/lib/cgi-bin
/var/lib/mailman
/usr/sbin
...etc...

Attached the output of "dpkg -L mailman" in Ubuntu Edgy
Comment 13 Norberto Bensa 2006-11-21 15:29:53 UTC
Created attachment 102495 [details]
Ubuntu's mailman...
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-01-11 23:12:24 UTC
INSTALLDIR should *not* default to /usr/local, period. Also, there's no way to configure it without editing the ebuild, as it sets the value unconditionally, whether INSTALLDIR is defined or not by the user.

Comment 15 Hanno Böck gentoo-dev 2007-09-13 21:57:29 UTC
We now have installation variables (MAILMAN_INSTALLDIR and MAILMAN_VAR_PREFIX) that can be used for customized install paths. Beside, we have more sane defaults (no more /usr/local).

WARNING: Your installation will not work if you update and don't move your lists around.
Comment 16 Norberto Bensa 2007-09-14 00:33:51 UTC
Can we have a little documentation about these variables? Besides, the ebuild 2.1.9-r1 has /usr/local hardcoded. Am I missing something?