#2 Fix compilation with CPLUS_INCLUDE_PATH set for Flatpak builds
Merged 5 years ago by linkdupont. Opened 5 years ago by otaylor.
rpms/ otaylor/endless-sky build-tool-environment  into  master

@@ -0,0 +1,12 @@ 

+ diff -up SConstruct.path SConstruct

+ --- SConstruct.path	2019-01-15 16:29:57.084998841 +0000

+ +++ SConstruct	2019-01-15 16:33:21.014998063 +0000

+ @@ -1,7 +1,7 @@

+  import os

+  

+  # Load any environment variables that alter the build.

+ -env = Environment()

+ +env = Environment(ENV = os.environ)

+  if 'CCFLAGS' in os.environ:

+  	env.Append(CCFLAGS = os.environ['CCFLAGS'])

+  if 'CXXFLAGS' in os.environ:

file modified
+9 -1
@@ -2,7 +2,7 @@ 

  

  Name:		endless-sky

  Version:	0.9.8

- Release:	8%{?dist}

+ Release:	9%{?dist}

  Summary:	Space exploration, trading, and combat game

  

  License:	GPLv3
@@ -15,6 +15,10 @@ 

  Patch0:		endless-sky-0.8.10-remove-games-path.patch

  # Unset CCFLAGS override inside SConstruct.

  Patch1:		endless-sky-0.9.4-remove-additional-ccflags.patch

+ # Pass the entire environment to build commands; RPM already standardizes the

+ # environment. This is needed for CPLUS_INCLUDE_PATH for the Flatpak build,

+ # but potentially for other things as well.

+ Patch2:		endless-sky-0.9.8-environment.patch

  

  Requires:	%{name}-data = %{version}-%{release}

  BuildRequires:	scons
@@ -100,6 +104,10 @@ 

  

  

  %changelog

+ * Tue Jan 15 2019 fedora-toolbox <otaylor@redhat.com> - 0.9.8-9

+ - Pass the entire environment to build commands; fixes CPLUS_INCLUDE_PATH for

+   flatpaks.

+ 

  * Fri Sep  7 2018 Owen Taylor <otaylor@redhat.com> - 0.9.8-8

  - scons is in /usr/bin, even if we're compiling with a different %%{_prefix}

  

Scons normally constructs a new clean environment for build commands;
this is not necessary in the RPM environment, when the environment
is already standardized, and makes things work less reliably.

Pull-Request has been merged by linkdupont

5 years ago