Fix compilation with CPLUS_INCLUDE_PATH set for Flatpak builds
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.
This commit is contained in:
parent
d622f692cf
commit
9c54357b13
12
endless-sky-0.9.8-environment.patch
Normal file
12
endless-sky-0.9.8-environment.patch
Normal file
@ -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:
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: endless-sky
|
Name: endless-sky
|
||||||
Version: 0.9.8
|
Version: 0.9.8
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Summary: Space exploration, trading, and combat game
|
Summary: Space exploration, trading, and combat game
|
||||||
|
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
@ -15,6 +15,10 @@ Source0: https://github.com/%{name}/%{name}/archive/%{gittag0}.tar.gz#/%{name}-%
|
|||||||
Patch0: endless-sky-0.8.10-remove-games-path.patch
|
Patch0: endless-sky-0.8.10-remove-games-path.patch
|
||||||
# Unset CCFLAGS override inside SConstruct.
|
# Unset CCFLAGS override inside SConstruct.
|
||||||
Patch1: endless-sky-0.9.4-remove-additional-ccflags.patch
|
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}
|
Requires: %{name}-data = %{version}-%{release}
|
||||||
BuildRequires: scons
|
BuildRequires: scons
|
||||||
@ -100,6 +104,10 @@ install -m644 -D endless-sky.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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 is in /usr/bin, even if we're compiling with a different %%{_prefix}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user