Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29233 - honeyd-0.6a.ebuild fails
Summary: honeyd-0.6a.ebuild fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-20 17:07 UTC by 06lmd6402
Modified: 2003-09-24 06:12 UTC (History)
0 users

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


Attachments
Fixed honeyd-0.6a.ebuild (honeyd-0.6a.ebuild,961 bytes, text/plain)
2003-09-21 06:42 UTC, 06lmd6402
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 06lmd6402 2003-09-20 17:07:26 UTC
net-analyzer/honeyd 0.6a chokes when ebuilding:

     honeyd.c:2416: error: `PATH_HONEYDINCLUDE' undeclared

Adding the appropriate -DPATH_HONEYDINCLUDE=${honeydincludedir} entry to the
.ebuild caused something else to break in personality.c (sorry I didn't have
time to follow up).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




# emerge info
Portage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1700MHz
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml
alsa gdbm berkdb slang readline arts tetex bonobo svga tcltk java guile X sdl
gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl
mozilla cdr fbcon gtk2 imap pda -apm -kde -qt"
Comment 1 06lmd6402 2003-09-21 06:42:34 UTC
Created attachment 18073 [details]
Fixed honeyd-0.6a.ebuild
Comment 2 06lmd6402 2003-09-21 06:45:18 UTC
Replacing the elaborate set of CFLAGS in honeyd-0.6a.ebuild yields a successful compile/install/merge:

# diff --normal honeyd-0.6a.ebuild honeyd-0.6a.ebuild.original
25c25,28
<       emake || die "emake failed"
---
>       emake CFLAGS="${CFLAGS} -Wall -g \
>               -DPATH_HONEYDDATA=${honeyddatadir} \
>               -DPATH_HONEYDLIB=${honeydlibdir} " \
>               || die "emake failed"

(See attached simplified .ebuild)

I don't quite understand why the original .ebuild creator felt it necessary to explicitly specify -DPATH_* -- they're in the Makefile.

Cael
Comment 3 Daniel Ahlberg (RETIRED) gentoo-dev 2003-09-24 06:12:25 UTC
Fixed. Problem was that the CFLAGS variable in the Makefile got overwritten by 
the ebuild. This was done so the optimizations would be used when compiling 
the package. I've made a diffrent approach and now it compiles fine.