Hi, upon trying to emerge net-www/dansguardian (both versions 2.7.1 and 2.7.2) a build error occurs as follows: Generating platform specific logrotation... Generating platform specific logrotate.d script... [snip] if [ -f /sbin/chkconfig ]; then /sbin/chkconfig --add dansguardian; fi if [ -f /usr/sbin/update-rc.d ]; then /usr/sbin/update-rc.d dansguardian defaults 50; fi if [ -d /etc/logrotate.d/ ]; then cp -f ./logrotate.dansguardian /var/tmp/portage/dansguardian-2.7.1/image//etc/logrotate.d/dansguardian; fi cp: cannot create regular file `/var/tmp/portage/dansguardian-2.7.1/image//etc/logrotate.d/dansguardian': No such file or directory make: *** [install] Error 1 !!! ERROR: net-www/dansguardian-2.7.1 failed. !!! Function src_install, Line 25, Exitcode 2 !!! (no error message) This error occurs regardless of whether logrotate is actually installed or not. I have tested on three Gentoo boxes, one of which is my server (running the older toolchain), and the other two being desktops which were recently built with the new standard x86-1.4 profile and corresponding toolchain. Reproducible: Always Steps to Reproduce: 1. Simply attempt to install. Expected Results: Installed without a hitch ;-) It seems that the /var/tmp/portage/dansguardian-x.x.x/image/etc/logrotate.d directory is not created, thus preventing from the dansguardian logrotate script from being created underneath that directory.
Created attachment 15492 [details] Working ebuild Simple fix, just having the ebuild create the directory before calling make install Here's the diff. @@ -22,6 +22,7 @@ } src_install() { + if [ -d "/etc/logrotate.d" ]; then mkdir -p ${D}/etc/logrotate.d; fi make install || die dodir /etc/init.d
fixed, i didn't notice this because i don't have logrotate installed and never encountered the issue
*** Bug 25876 has been marked as a duplicate of this bug. ***