From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Tue, 12 Aug 2014 18:50:19 +0200 Subject: [Buildroot] [PATCH 1/1] postgresql: remove devfiles from target In-Reply-To: References: <1407605679-15342-1-git-send-email-bos@je-eigen-domein.nl> <53E74FAF.6000306@je-eigen-domein.nl> Message-ID: <20140812185019.57322578@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Thomas De Schampheleire, On Sun, 10 Aug 2014 14:54:51 +0200, Thomas De Schampheleire wrote: > >> Not entirely sure here, but isn't the better approach for pg_config to add > >> it to POSTGRESQL_CONFIG_SCRIPTS? This will ensure the file is fixed up for > >> staging usr, and removed from target automatically. > >> > > > > Note that pg_config is an ELF executable compiled for the target > > architecture, and not a text script that can be easily fixed up. > > Ok, in this case adding it to POSTGRESQL_CONFIG_SCRIPTS may not be the > best idea. More precisely: it will simply not work. The _CONFIG_SCRIPTS mechanism assumes that the -config files are shell scripts, in a certain format. With an ELF executable compiled for the target: 1/ There's no way the _CONFIG_SCRIPTS mechanism can work 2/ There's no real point in keeping this file on the build machine, because it's an executable built for the target. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com