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 160D7139694 for ; Wed, 26 Apr 2017 20:03:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8D48E0D29; Wed, 26 Apr 2017 20:03:30 +0000 (UTC) Received: from mail2.aachalon.net (mail2.aachalon.net [138.201.2.46]) (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 941B3E0D12 for ; Wed, 26 Apr 2017 20:03:30 +0000 (UTC) Received: from [IPv6:2a03:2260:114:2:9a8b:42e0:5102:7530] (unknown [IPv6:2a03:2260:114:2:9a8b:42e0:5102:7530]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: shiva) by mail2.aachalon.net (Postfix) with ESMTPSA id 3wCrcH6MsRz29Cv for ; Wed, 26 Apr 2017 22:03:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bricart.de; s=dkey201501; t=1493237008; bh=4wN8DCKMGcZeI9o5p75AWDGIqZSlKkDNkGBeSm7U5BU=; h=To:From:Subject:Date; b=fH8FJbmyOd7c75k9at2Tx9pk59KdWfUv2fv+plT/I5iBh9uTKGteW2QJ9phkUlDwo guAyRAsrQK5xl2v2his7qmcxAIECeXSSTTgfqZPBaVZddZq3+nOoII2cl6MiJMrE4Y vsEUa397ytkqFOTS2JHa+HQEDQRFQxPx3MYRKyWS0R4L10HUoumQmoQfQ5Fq8dDHyX D0KEI5pSFhyQJiYcj8xdjOBC8y3S12Zb8DNczIyOg9XXQHaY5Wul7J1noA3T//GRSb D6P4PeYRJNatvpN/5ywgX5nKZxjliVsBy61teE4XPFGWF5aHC+X70kzQ7k7wW1u0MW 3ZfT3JHI9CA1Q== To: Gentoo Dev From: Christian Bricart Subject: [gentoo-dev] about modifying an ebuild in local overlay and $FILESDIR Message-ID: Date: Wed, 26 Apr 2017 22:03:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: da6c6234-e460-4c91-89e2-fcd90a4a6706 X-Archives-Hash: bf0d0aca4228ff64999596b436d2f698 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) Christian