[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gpsd-dev] patches from pkgsrc: SConstruct
From: |
Greg Troxel |
Subject: |
[gpsd-dev] patches from pkgsrc: SConstruct |
Date: |
Wed, 19 Jun 2019 20:28:17 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (berkeley-unix) |
scons appears to nuke the environment, which I realize has pluses and
minuses. pkgsrc uses wrappers for compilers, to limit visibility of
dependencies to those that are declared, and to munge linker flags
sometimes. Those need the pointer to the control file.
And same issue for using ccache. I would think that people on other
systems would have trouble with ccache not finding the cache dir. There
seems to be a tradition of accomodating many build systems; I can change
the style to match and push myself if this would be acceptable.
$NetBSD: patch-SConstruct,v 1.1 2019/05/01 20:22:02 gdt Exp $
Tell scons to pass the wrapper config variable to children, so the
wrapped compiler works.
Not yet addressed upstream.
--- SConstruct.orig 2018-10-03 00:05:28.000000000 +0000
+++ SConstruct
@@ -280,6 +280,9 @@ import_env = (
'STAGING_DIR', # Required by the OpenWRT and CeroWrt builds.
'STAGING_PREFIX', # Required by the OpenWRT and CeroWrt builds.
'WRITE_PAD', # So we can test WRITE_PAD values on the fly.
+ # pkgsrc
+ 'CWRAPPERS_CONFIG_DIR',
+ 'CCACHE_DIR',
)
envs = {}
- [gpsd-dev] patches from pkgsrc: SConstruct,
Greg Troxel <=
Re: [gpsd-dev] patches from pkgsrc: SConstruct, Greg Troxel, 2019/06/20