* Re: [gentoo-dev] ebuild ACCESS VIOLATION Error again
2002-05-24 13:09 [gentoo-dev] ebuild ACCESS VIOLATION Error again hanez
@ 2002-05-24 12:58 ` Paul de Vrieze
2002-05-24 14:26 ` hanez
0 siblings, 1 reply; 3+ messages in thread
From: Paul de Vrieze @ 2002-05-24 12:58 UTC (permalink / raw
To: gentoo-dev
On Friday 24 May 2002 15:09, hanez wrote:
> hello gentoo devs,
>
> i'm working on an ebuild for the VRB library. i need this library for
> compiling other things. i have read the developer howtos and the
> skel.ebuild file and still have no idea how i can fix my problems.
>
> i think (please correct me if it's false), that when i'm setting
> DESTDIR=${D} between make and install in src_install(), the ebuild has
> write access to the DESTDIR. when installing VRB i need to have write
> access to /usr/bin, /usr/lib and /usr/include. is this possible??
> LOG FILE = "/tmp/sandbox-vrb-0.3.0-14558.log"
>
> mkdir: /usr/include/libvrb
> open_wr: /usr/bin/_new_iobuffer
The DESTDIR variable is supported by most (not all) makefile's. This Makefile
doesn't so you will need to make a patch on the Makefile, change the prefix
at install time or some other hack. A trick in this is to get an src.rpm (or
spec file) to look how rpm based distributions use this library.
Paul
--
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-dev] ebuild ACCESS VIOLATION Error again
@ 2002-05-24 13:09 hanez
2002-05-24 12:58 ` Paul de Vrieze
0 siblings, 1 reply; 3+ messages in thread
From: hanez @ 2002-05-24 13:09 UTC (permalink / raw
To: gentoo-dev
hello gentoo devs,
i'm working on an ebuild for the VRB library. i need this library for
compiling other things. i have read the developer howtos and the skel.ebuild
file and still have no idea how i can fix my problems.
i think (please correct me if it's false), that when i'm setting DESTDIR=${D}
between make and install in src_install(), the ebuild has write access to the
DESTDIR. when installing VRB i need to have write access to /usr/bin,
/usr/lib and /usr/include. is this possible??
you can find the error messsage and a part of my ebuild script below.
regards
hanez... ;-)
###
test -d /usr/bin || ( mkdir -p /usr/bin ; chmod 0755 /usr/bin )
test -d /usr/include/libvrb || ( mkdir -p /usr/include/libvrb ; chmod 0755
/usr/include/libvrb )
ACCESS DENIED mkdir: /usr/include/libvrb
mkdir: cannot create directory `/usr/include/libvrb': Permission denied
chmod: failed to get attributes of `/usr/include/libvrb': No such file or
directory
make: [install_dirs] Error 1 (ignored)
test -d /usr/lib || ( mkdir -p /usr/lib ; chmod 0755 /usr/lib )
rm -f /usr/bin/_new_iobuffer
cp -fp bin/iobuffer /usr/bin/_new_iobuffer
ACCESS DENIED open_wr: /usr/bin/_new_iobuffer
cp: cannot create regular file `/usr/bin/_new_iobuffer': Permission denied
make: *** [install_all] Error 1
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 3, Exitcode 2
!!! make install failed
--------------------------- ACCESS VIOLATION SUMMARY
---------------------------
LOG FILE = "/tmp/sandbox-vrb-0.3.0-14558.log"
mkdir: /usr/include/libvrb
open_wr: /usr/bin/_new_iobuffer
--------------------------------------------------------------------------------
###
part of the ebuild script:
###
src_unpack() {
unpack "${P}.tar.gz"
}
src_compile() {
cd ${S}
# hmmm, why is the script called "C"onfigure???
./Configure \
--prefix=/usr || die "./Configure failed"
emake || die "emake failed"
}
src_install () {
cd ${S}
make DESTDIR=${D} install || die "make install failed"
dodoc INSTALL LICENSE README
}
###
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] ebuild ACCESS VIOLATION Error again
2002-05-24 12:58 ` Paul de Vrieze
@ 2002-05-24 14:26 ` hanez
0 siblings, 0 replies; 3+ messages in thread
From: hanez @ 2002-05-24 14:26 UTC (permalink / raw
To: gentoo-dev
On Friday 24 May 2002 14:58, Paul de Vrieze wrote:
> The DESTDIR variable is supported by most (not all) makefile's. This
> Makefile doesn't so you will need to make a patch on the Makefile, change
> the prefix at install time or some other hack. A trick in this is to get an
> src.rpm (or spec file) to look how rpm based distributions use this
> library.
ok, allright. i have done it another way. the ebuild is ready for use. i have
build another style of ebuild script but it works perfectly now. ;-P
regards
hanez... ;-)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-05-24 14:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-24 13:09 [gentoo-dev] ebuild ACCESS VIOLATION Error again hanez
2002-05-24 12:58 ` Paul de Vrieze
2002-05-24 14:26 ` hanez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox