Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444183 - www-servers/thttpd-2.26.4-r1 FEATURES=nodoc - chmod: cannot access '/data/cross/alix3-i586/firmware//usr/share/doc/thttpd-2.26.4-r1/htdocs.dist/cgi-bin/printenv': No such file or directory
Summary: www-servers/thttpd-2.26.4-r1 FEATURES=nodoc - chmod: cannot access '/data/cro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 16:53 UTC by Bertrand Jacquin
Modified: 2012-11-22 14:35 UTC (History)
0 users

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


Attachments
www-servers:thttpd-2.26.4-r1:20121121-164800.log (www-servers:thttpd-2.26.4-r1:20121121-164800.log,27.74 KB, text/plain)
2012-11-21 16:54 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2012-11-21 16:53:40 UTC
www-servers/thttpd-2.26.4-r1 now put htdocs in ./usr/share/doc/${PF}. Theses files are not installed if FEATURES="nodoc". So postinst() fail as it's changing permissions on that files :

pkg_postinst() {
        chown root:${THTTPD_GROUP} "${EROOT}/usr/sbin/makeweb" \
                || die "Failed chown makeweb"
        chmod 2751 "${EROOT}/usr/sbin/makeweb" \
                || die "Failed chmod makeweb"
        chmod 755 "${EROOT}/usr/share/doc/${PF}/htdocs.dist/cgi-bin/printenv" \
                || die "Failed chmod printenv"
}

Shouldn't this be done in src_install() ?

Attached the complete log.

Reproducible: Always
Comment 1 Bertrand Jacquin 2012-11-21 16:54:36 UTC
Created attachment 330141 [details]
www-servers:thttpd-2.26.4-r1:20121121-164800.log
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-21 17:32:55 UTC
(In reply to comment #0)
> Shouldn't this be done in src_install() ?

I don't see why not. This isn't what postinst is for.
Comment 3 Anthony Basile gentoo-dev 2012-11-22 14:35:16 UTC
(In reply to comment #2)
> (In reply to comment #0)
> > Shouldn't this be done in src_install() ?
> 
> I don't see why not. This isn't what postinst is for.

Yeah this is left over from when I inherited the ebuild.  Anyhow, this should be fixed without a rev bump.

Please reopen if its still a problem.