From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <veldy@veldy.net> X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=AXB_XMAILER_MIMEOLE_OL_024C2, DKIM_ADSP_NXDOMAIN,DMARC_MISSING,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=4.0.0 Received: from fuggle.veldy.net (veldy-host33.dsl.visi.com [209.98.200.33]) by chiba.3jane.net (Postfix) with ESMTP id CFD34ABB45 for <gentoo-dev@gentoo.org>; Mon, 2 Sep 2002 13:46:25 -0500 (CDT) Received: from cascade (cascade.veldy.net [192.168.1.1]) by fuggle.veldy.net (Postfix) with SMTP id 94F47129D20; Mon, 2 Sep 2002 13:46:24 -0500 (CDT) Message-ID: <00da01c252b1$077df720$0101a8c0@cascade> From: "Thomas T. Veldhouse" <veldy@veldy.net> To: "Paul de Vrieze" <pauldv@cs.kun.nl>, <gentoo-dev@gentoo.org> References: <3D711EEC.3090702@hiwaay.net> <200209021007.42932.pauldv@cs.kun.nl> Subject: Re: [gentoo-dev] ebuild problem Date: Mon, 2 Sep 2002 13:46:20 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: <mailto:gentoo-dev-request@gentoo.org?subject=help> List-Post: <mailto:gentoo-dev@gentoo.org> List-Subscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>, <mailto:gentoo-dev-request@gentoo.org?subject=subscribe> List-Id: Gentoo Linux developer list <gentoo-dev.gentoo.org> List-Unsubscribe: <http://lists.gentoo.org/mailman/listinfo/gentoo-dev>, <mailto:gentoo-dev-request@gentoo.org?subject=unsubscribe> List-Archive: <http://lists.gentoo.org/pipermail/gentoo-dev/> X-Archives-Salt: 504a79b9-ae0f-4391-81dd-3578e76f57cf X-Archives-Hash: 7817bb21bfe1dcff25996b868eed0c2a It would probably help if you ran the ebuild as root :) Tom Veldhouse ----- Original Message ----- From: "Paul de Vrieze" <pauldv@cs.kun.nl> To: <gentoo-dev@gentoo.org> Sent: Monday, September 02, 2002 3:07 AM Subject: Re: [gentoo-dev] ebuild problem On Saturday 31 August 2002 21:54, mschroer wrote: > I am new to Gentoo and having trouble with an ebuild. I put the latest > tarball of anjuta-0.9.99.tar.gz in the distfile directory and built a > new ebuild file from the anjuta-0.1.9.ebuild. When I emerge, running as > root, I get the following error: > > ******** all the unpack and compile seem to work fine and the image is > built in var/// and I get to here ******* > > make install-man1 > make[3]: Entering directory > `/var/tmp/portage/anjuta-0.9.99/work/anjuta-0.9.99/doc' > /bin/sh ../mkinstalldirs /usr/share/man/man1 > /bin/install -c -m 644 ./anjuta.1 /usr/share/man/man1/anjuta.1 > ACCESS DENIED open_wr: /usr/share/man/man1/anjuta.1 > /bin/install: cannot create regular file `/usr/share/man/man1/anjuta.1': > Permission denied > /bin/install -c -m 644 ./anjuta_launcher.1 > /usr/share/man/man1/anjuta_launcher.1 > ACCESS DENIED open_wr: /usr/share/man/man1/anjuta_launcher.1 > /bin/install: cannot create regular file > `/usr/share/man/man1/anjuta_launcher.1': Permission denied > make[3]: *** [install-man1] Error 1 > make[3]: Leaving directory > `/var/tmp/portage/anjuta-0.9.99/work/anjuta-0.9.99/doc' > make[2]: *** [install-man] Error 2 > make[2]: Leaving directory > `/var/tmp/portage/anjuta-0.9.99/work/anjuta-0.9.99/doc' > make[1]: *** [install-am] Error 2 > make[1]: Leaving directory > `/var/tmp/portage/anjuta-0.9.99/work/anjuta-0.9.99/doc' > make: *** [install-recursive] Error 1 > > !!! ERROR: The ebuild did not complete successfully. > !!! Function src_install, Line 8, Exitcode 2 > !!! (no error message) > > --------------------------- ACCESS VIOLATION SUMMARY > --------------------------- > LOG FILE = "/tmp/sandbox-anjuta-0.9.99-23571.log" > > open_wr: /usr/share/man/man1/anjuta.1 > open_wr: /usr/share/man/man1/anjuta_launcher.1 > -------------------------------------------------------------------------- - >----- !!! emerge aborting on > /usr/portage/dev-util/anjuta/anjuta-0.9.99.ebuild . > > > Can anyone help me ? > The trick is that portage uses sandboxing. This means building is only allowed in /var/tmp/portage/<bla> This means you must persuade anjuta to install in the destination root which is given in an ebuild by ${D}. This technique makes it a lot easier to track which files should become part of the package. Oftern this persuading can be done with the DESTDIR variable, but sometimes further tricks are nescesary. I advise you to look at some ebuilds (look for PREFIX=${D}/usr/ ), and check the makefile of anjuta. Paul -- Paul de Vrieze Junior Researcher Mail: pauldv@cs.kun.nl Homepage: http://www.devrieze.net _______________________________________________ gentoo-dev mailing list gentoo-dev@gentoo.org http://lists.gentoo.org/mailman/listinfo/gentoo-dev