From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B8B87139694 for ; Wed, 26 Apr 2017 20:28:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6803D21C091; Wed, 26 Apr 2017 20:28:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0BB09E0D26 for ; Wed, 26 Apr 2017 20:28:27 +0000 (UTC) Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 0B43234165C for ; Wed, 26 Apr 2017 20:28:26 +0000 (UTC) Received: by mail-io0-f173.google.com with SMTP id k87so10498304ioi.0 for ; Wed, 26 Apr 2017 13:28:26 -0700 (PDT) X-Gm-Message-State: AN3rC/7eAiOvM8kS3kN7gS7oFnM4GKrmwn2xoxmhs+gdI4WM+2f8OdBU bHTtj7DCaNyM5JRfPBL7EBKCoEGtdg== X-Received: by 10.107.160.77 with SMTP id j74mr1601780ioe.58.1493238503945; Wed, 26 Apr 2017 13:28:23 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.107.19.87 with HTTP; Wed, 26 Apr 2017 13:28:03 -0700 (PDT) In-Reply-To: References: From: Mike Gilbert Date: Wed, 26 Apr 2017 16:28:03 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-dev] about modifying an ebuild in local overlay and $FILESDIR To: Gentoo Dev Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 8a93912a-d7d6-4985-840a-9a52fc0a89c3 X-Archives-Hash: e5d7c7c237b8f4d49cfaf3b5941c97ab On Wed, Apr 26, 2017 at 4:03 PM, Christian Bricart wrote: > Hi all, > > from time to time, I need to make (and maintain) modifications to an > ebuild from the main tree in my local overlay. > So basically, I create the directory structure from > /usr/portage/// under > /usr/local/portage///, copy over the ebuild and do my > modifications in the ebuild. > So far how an overlay works ;-) > > But if there are references to patches, init-scripts, conf-files, etc > from $FILESDIR w/i the original ebuild, one also needs to copy those > into /usr/local/portage/../../files/ .. > > Is it possible to "overlay" such files used in epatch(), newins(), > newconfd(), newinitd(), etc too..? > > so i.e: > FILESDIR = "${repository_location}/${CATEGORY}/${PN}/files" > should support a fallback to: > FILESDIR = "${PORTDIR}/${CATEGORY}/${PN}/files" > if not found... > (or actually to the defined $master from the repo used) No, this is not possible. It might be possible to implement in portage, but I don't think it's a very good/workable idea. As a workaround, you could symlink individual files, or even the entire files directory.