Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77285 - sarg ebuild does not compile
Summary: sarg ebuild does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Jonathan Smith (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-09 15:27 UTC by Robert S
Modified: 2005-06-22 07:41 UTC (History)
4 users (show)

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 Robert S 2005-01-09 15:27:58 UTC
When I issue:

# emerge sarg

I get

Calculating dependencies ...done!
>>> emerge (1 of 1) net-analyzer/sarg-1.4.1-r2 to /
>>> md5 src_uri ;-) sarg-1.4.1.tar.gz
>>> md5 src_uri ;-) sarg-1.4.1-index.sort.patch
>>> Unpacking source...
>>> Unpacking sarg-1.4.1.tar.gz to /var/tmp/portage/sarg-1.4.1-r2/work
>>> Unpacking sarg-1.4.1-index.sort.patch to /var/tmp/portage/sarg-1.4.1-r2/work
unpack sarg-1.4.1-index.sort.patch: file format not recognized. Ignoring.
 * Applying sarg-1.4.1-index.sort.patch ...                                                                                             [ ok ]
 * Applying sarg-1.4.1-2.6.fix.patch ...                                                                                                [ ok ]
>>> Source unpacked.
creating cache ./config.cache
configure: error: can not find install-sh or install.sh in cfgaux ./cfgaux

!!! ERROR: net-analyzer/sarg-1.4.1-r2 failed.
!!! Function src_compile, Line 31, Exitcode 1
!!! ./configure failed
!!! If you need support, post the topmost build error, NOT this status message.



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




If I do ./configure && make && make install, sarg compiles, but when I try to
run sarg I get

# sarg
Segmentation fault
Comment 1 Robert S 2005-05-01 02:52:29 UTC
There hasn't been any progress on this.

I have managed to download and install the latest version sarg-2.0.6.  The ./configure script doesn't complete, but its possible to do "make" and "make install" to install it into the default location.  It works fine on my amd64 machine.  Below is a rudimentary ebuild.  You need to download the tarball manually and it needs a bit of tweaking to make it work.  I haven't mastered ebuilds and patches yet.

Maybe somebody would like to make this into something decent.

#sarg-2.0.6.ebuild
inherit eutils
DESCRIPTION="Sarg (Squid Analysis Report Generator) is a tool that allows you to
 view where your users are going to on the Internet."
HOMEPAGE="http://sarg.sourceforge.net"
SRC_URI="file:/usr/portage/distfiles/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=""
RDEPEND=">=net-proxy/squid-2.5.1"
src_unpack() {
        unpack ${A}
        cd ${S}
}
src_compile() {
        rm -rf config.cache
        emake || die
}
src_install() {
        dodir /etc/sarg /usr/bin /usr/man/man1
        make \
                BINDIR=${D}/usr/bin \
                MANDIR=${D}/usr/man/man1 \
                SYSCONFDIR=${D}/etc/sarg \
                install || die
}
Comment 2 Eldad Zack (RETIRED) gentoo-dev 2005-05-02 06:42:38 UTC
I've just completed a successful emerge of sarg.
Does anyone experience this as well?
Comment 3 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-05-03 10:52:27 UTC
yes. i can't even download it.

>>> Downloading http://dev.gentoo.org/~eldad/distfiles/sarg-1.4.1-index.sort.patch
--21:52:52--  http://dev.gentoo.org/%7Eeldad/distfiles/sarg-1.4.1-index.sort.patch
           => `/usr/portage/distfiles/sarg-1.4.1-index.sort.patch'
Resolving dev.gentoo.org... 134.68.220.30
Connecting to dev.gentoo.org[134.68.220.30]:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
21:52:52 ERROR 403: Forbidden.

!!! Couldn't download sarg-1.4.1-index.sort.patch. Aborting.
Comment 4 Marcelo Goes (RETIRED) gentoo-dev 2005-05-03 16:15:05 UTC
I can confirm the 403.
$ ls -lh /home/eldad/public_html/distfiles/sarg-1.4.1-index.sort.patch
-rw-------  1 eldad users 2.0K May  2 11:47 /home/eldad/public_html/distfiles/sarg-1.4.1-index.sort.patch

You're probably not getting the error because the patch is already in your ${DISTFILES}?

Cheers,
Marcelo
Comment 5 Eldad Zack (RETIRED) gentoo-dev 2005-05-04 00:16:37 UTC
fixed it, you can download it now
Comment 6 Jonathan Smith (RETIRED) gentoo-dev 2005-06-22 07:41:33 UTC
fixed in 2.0.8