Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144646 - net-analyzer/snort-2.6.0 failed patch
Summary: net-analyzer/snort-2.6.0 failed patch
Status: RESOLVED DUPLICATE of bug 143998
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-21 08:01 UTC by Geo
Modified: 2006-08-21 08:09 UTC (History)
0 users

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 Geo 2006-08-21 08:01:56 UTC
he problem is that if you emerge the ebuild of snort-2.6 with the option
inline, sguil or flexresp, you use the patch of snort-2.4
(snort-2.4.0-genpatches.tar.bz2)
But snort-2.4.0-genpatches.tar.bz2 aren't in the SRC_URI

SRC_URI="http://www.snort.org/dl/current/${P}.tar.gz   
http://www.snort.org/pub-bin/downloads.cgi/Download/comm_rules/Community-Rules.tar.gz
http://www.snort.org/pub-bin/downloads.cgi/Download/vrt_pr/snortrules-pr-2.4.tar.gz
snortsam? ( mirror://gentoo/snortsam-20050110.tar.gz )"

src_unpack() {
        unpack ${A}
        cd "${S}"

        if use flexresp || use inline ; then
                epatch "${WORKDIR}/2.4.0-libnet-1.0.patch"
        fi

        sed -i "s:var RULE_PATH ../rules:var RULE_PATH /etc/snort/rules:" \
                etc/snort.conf || die "sed snort.conf failed"

        if use prelude ; then
                sed -i -e "s:AC_PROG_RANLIB:AC_PROG_LIBTOOL:" configure.in \
                        || die "sed configure.in failed"
        fi

        if use sguil ; then
                epatch "${WORKDIR}/2.4.0-spp_portscan_sguil.patch"
                epatch "${WORKDIR}/2.4.0-spp_stream4_sguil.patch"
        fi

        if use snortsam ; then
                cd ..
                einfo "Applying snortsam patch"
                ./patchsnort.sh "${S}" || die "snortsam patch failed"
                cd "${S}"
        fi

        einfo "Regenerating autoconf/automake files"
        AT_M4DIR=m4 eautoreconf
}

the result is 

When you compile with USE="inline sguil", it want a patch

 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 * 
 *   /var/tmp/portage/snort-2.6.0/work/2.4.0-libnet-1.0.patch
 *   ( 2.4.0-libnet-1.0.patch )


!!! ERROR: net-analyzer/snort-2.6.0 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  snort-2.6.0.ebuild, line 49:   Called epatch
'/var/tmp/portage/snort-2.6.0/work/2.4.0-libnet-1.0.patch'
  eutils.eclass, line 190:   Called die

!!! Cannot find $EPATCH_SOURCE!

Portage 2.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4,
2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Mobile Intel(R) Celeron(TM) CPU        
1333MHz
Gentoo Base System version 1.6.14
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O0 -march=pentium3 -pipe -momit-leaf-frame-pointer
-fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config
/usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O0 -march=pentium3 -pipe -momit-leaf-frame-pointer
-fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr"
LC_ALL="fr"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups
dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm
gstreamer gtk gtk2 imlib inline ipv6 isdnlog jpeg kerberos ldap libclamav
libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls nptl oav ogg opengl
oss pam pcre pdflib perl pic png pppd prelude python qt3 qt4 quicktime readline
reflection sdl session sguil spell spl ssl symlink tcpd truetype truetype-fonts
type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc
input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux
userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-21 08:03:01 UTC
Not portage, read the products' descriptions please.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-21 08:09:56 UTC

*** This bug has been marked as a duplicate of 143998 ***