Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25881 - net-www/dansguardian will not compile
Summary: net-www/dansguardian will not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Joshua Brindle (RETIRED)
URL:
Whiteboard:
Keywords:
: 25876 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-04 09:04 UTC by kfm
Modified: 2003-08-04 23:21 UTC (History)
0 users

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


Attachments
Working ebuild (dansguardian-2.7.1.ebuild,1.08 KB, text/plain)
2003-08-04 11:33 UTC, Bryan Østergaard (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kfm 2003-08-04 09:04:04 UTC
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.
Comment 1 Bryan Østergaard (RETIRED) gentoo-dev 2003-08-04 11:33:06 UTC
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
Comment 2 Joshua Brindle (RETIRED) gentoo-dev 2003-08-04 23:09:07 UTC
fixed, i didn't notice this because i don't have logrotate installed and never encountered the issue
Comment 3 Joshua Brindle (RETIRED) gentoo-dev 2003-08-04 23:21:27 UTC
*** Bug 25876 has been marked as a duplicate of this bug. ***