Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121851 - DSPAM 3.6.3 errors in ebuilds for txt, opt-in and opt-out
Summary: DSPAM 3.6.3 errors in ebuilds for txt, opt-in and opt-out
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lim Swee Tat (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-06 10:10 UTC by steveb
Modified: 2006-02-13 07:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steveb 2006-02-06 10:10:56 UTC
When installing DSPAM with the Gentoo ebuild, then the /txt and /opt-in and /opt-out directories got installed into ${CONFDIR}. Using strace to look where the binary searches for the directories, I see that the directories must be in ${HOMEDIR}. This would mean, that the ebuild needs to be modified to this:


        # installs the notification messages
        diropts -m0775 -o dspam -g dspam
        dodir ${HOMEDIR}/txt
        keepdir ${HOMEDIR}/txt
        insinto ${HOMEDIR}/txt
        insopts -m644 -o dspam -g dspam
        doins ${S}/txt/*.txt

        # Create the opt-in / opt-out directories
        diropts -m0775 -o dspam -g dspam
        dodir ${HOMEDIR}/opt-in
        keepdir ${HOMEDIR}/opt-in
        dodir ${HOMEDIR}/opt-out
        keepdir ${HOMEDIR}/opt-out


This is the output of strace (not full. only the relevant stuff):

stat64("/var/spool/dspam/opt-in/globaluser.dspam", 0xbfc01bbc) = -1 ENOENT (No such file or directory)

stat64("/var/spool/dspam/opt-out/globaluser.nodspam", 0xbfc01bbc) = -1 ENOENT (No such file or directory)

open("/var/spool/dspam/txt/firstrun.txt", O_RDONLY) = -1 ENOENT (No such file or directory)



cheers

SteveB
Comment 1 Lim Swee Tat (RETIRED) gentoo-dev 2006-02-13 07:37:36 UTC
New ebuild 3.6.4 is updated with fix