Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 875826 Details for
Bug 1076808
netpanzer bundles physfs
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to use system physfs
0001-Build-with-system-physfs-instead-of-bundled-one-1076.patch (text/plain), 7.36 KB, created by
Ville Skyttä
on 2014-03-18 07:44:27 UTC
(
hide
)
Description:
Patch to use system physfs
Filename:
MIME Type:
Creator:
Ville Skyttä
Created:
2014-03-18 07:44:27 UTC
Size:
7.36 KB
patch
obsolete
>From dfd1a8fa2ec8e0fec692428076b180749b7dd782 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi> >Date: Tue, 18 Mar 2014 09:31:15 +0200 >Subject: [PATCH] Build with system physfs instead of bundled one (#1076808) > >--- > netpanzer-0.8.4-system-physfs.patch | 114 ++++++++++++++++++++++++++++++++++++ > netpanzer.spec | 8 ++- > 2 files changed, 121 insertions(+), 1 deletion(-) > create mode 100644 netpanzer-0.8.4-system-physfs.patch > >diff --git a/netpanzer-0.8.4-system-physfs.patch b/netpanzer-0.8.4-system-physfs.patch >new file mode 100644 >index 0000000..987477e >--- /dev/null >+++ b/netpanzer-0.8.4-system-physfs.patch >@@ -0,0 +1,114 @@ >+diff --git a/SConstruct b/SConstruct >+index 1ffaa27..c344024 100644 >+--- a/SConstruct >++++ b/SConstruct >+@@ -155,15 +155,12 @@ crossmingwenv.BuildDir(crossmingwenv['FINALBUILDDIR'],'.',duplicate=0) >+ crosslinuxenv.BuildDir(crosslinuxenv['FINALBUILDDIR'],'.',duplicate=0) >+ >+ luaenv = env.Clone() >+-physfsenv = env.Clone() >+ networkenv = env.Clone() >+ >+ crossmingwluaenv = crossmingwenv.Clone() >+-crossmingwphysfsenv = crossmingwenv.Clone() >+ crossmingwnetworkenv = crossmingwenv.Clone() >+ >+ crosslinuxluaenv = crosslinuxenv.Clone() >+-crosslinuxphysfsenv = crosslinuxenv.Clone() >+ crosslinuxnetworkenv = crosslinuxenv.Clone() >+ >+ ################################################################ >+@@ -205,9 +202,9 @@ print 'Building version ' + NPVERSION + ' in ' + sys.platform >+ # Configure Environments >+ ################################################################ >+ >+-env.Append( CPPPATH = [ '.', 'src/Lib', 'src/NetPanzer', 'src/Lib/physfs', 'src/Lib/lua'] ) >+-crossmingwenv.Append( CPPPATH = [ '.', 'src/Lib', 'src/NetPanzer', 'src/Lib/physfs', 'src/Lib/lua'] ) >+-crosslinuxenv.Append( CPPPATH = [ '.', 'src/Lib', 'src/NetPanzer', 'src/Lib/physfs', 'src/Lib/lua'] ) >++env.Append( CPPPATH = [ '.', 'src/Lib', 'src/NetPanzer', 'src/Lib/lua'] ) >++crossmingwenv.Append( CPPPATH = [ '.', 'src/Lib', 'src/NetPanzer', 'src/Lib/lua'] ) >++crosslinuxenv.Append( CPPPATH = [ '.', 'src/Lib', 'src/NetPanzer', 'src/Lib/lua'] ) >+ >+ # for this platform >+ if thisplatform == 'darwin': >+@@ -217,13 +214,11 @@ if thisplatform == 'darwin': >+ if env['universal'] != 'false': >+ env.Append( CCFLAGS = [ '-arch', 'ppc', '-arch', 'i386' ] ) >+ luaenv.Append( CCFLAGS = [ '-arch', 'ppc', '-arch', 'i386' ] ) >+- physfsenv.Append( CCFLAGS = [ '-arch', 'ppc', '-arch', 'i386' ] ) >+ networkenv.Append( CCFLAGS = [ '-arch', 'ppc', '-arch', 'i386' ] ) >+ env.Append( LINKFLAGS = [ '-mmacosx-version-min=10.4', '-arch', 'ppc', '-arch', 'i386' ] ) >+ else: >+ env.Append( CCFLAGS = [ '-arch', 'i386' ] ) >+ luaenv.Append( CCFLAGS = [ '-arch', 'i386' ] ) >+- physfsenv.Append( CCFLAGS = [ '-arch', 'i386' ] ) >+ networkenv.Append( CCFLAGS = [ '-arch', 'i386' ] ) >+ env.Append( LINKFLAGS = [ '-arch', 'i386' ] ) >+ >+@@ -273,28 +268,12 @@ MakeStaticLib( luaenv, 'nplua', 'lua', '*.c') >+ MakeStaticLib(crossmingwluaenv, 'nplua', 'lua', '*.c') >+ MakeStaticLib(crosslinuxluaenv, 'nplua', 'lua', '*.c') >+ >+-# BUILDS PHYSFS >+-physfsenv.Append( CFLAGS = [ '-DPHYSFS_SUPPORTS_ZIP=1', '-DZ_PREFIX=1', '-DPHYSFS_NO_CDROM_SUPPORT=1' ] ) >+-physfsenv.Append( CPPPATH = [ 'src/Lib/physfs', 'src/Lib/physfs/zlib123' ] ) >+-MakeStaticLib(physfsenv, 'npphysfs', 'physfs physfs/platform physfs/archivers physfs/zlib123', '*.c') >+- >+-crossmingwphysfsenv.Append( CFLAGS = [ '-DPHYSFS_SUPPORTS_ZIP=1', '-DZ_PREFIX=1', '-DPHYSFS_NO_CDROM_SUPPORT=1' ] ) >+-crossmingwphysfsenv.Append( CPPPATH = [ 'src/Lib/physfs', 'src/Lib/physfs/zlib123' ] ) >+-MakeStaticLib(crossmingwphysfsenv, 'npphysfs', 'physfs physfs/platform physfs/archivers physfs/zlib123', '*.c') >+- >+-crosslinuxphysfsenv.Append( CFLAGS = [ '-DPHYSFS_SUPPORTS_ZIP=1', '-DZ_PREFIX=1', '-DPHYSFS_NO_CDROM_SUPPORT=1' ] ) >+-crosslinuxphysfsenv.Append( CPPPATH = [ 'src/Lib/physfs', 'src/Lib/physfs/zlib123' ] ) >+-MakeStaticLib(crosslinuxphysfsenv, 'npphysfs', 'physfs physfs/platform physfs/archivers physfs/zlib123', '*.c') >+- >+ # BUILDS 2D >+ env.Append( CFLAGS = [ '-DZ_PREFIX=1' ] ) >+-env.Append( CPPPATH = 'src/Lib/physfs/zlib123' ) >+ MakeStaticLib(env, 'np2d', '2D 2D/libpng', '*.c*') >+ crossmingwenv.Append( CFLAGS = [ '-DZ_PREFIX=1' ] ) >+-crossmingwenv.Append( CPPPATH = 'src/Lib/physfs/zlib123' ) >+ MakeStaticLib(crossmingwenv, 'np2d', '2D 2D/libpng', '*.c*') >+ crosslinuxenv.Append( CFLAGS = [ '-DZ_PREFIX=1' ] ) >+-crosslinuxenv.Append( CPPPATH = 'src/Lib/physfs/zlib123' ) >+ MakeStaticLib(crosslinuxenv, 'np2d', '2D 2D/libpng', '*.c*') >+ >+ # BUILDS REST OF LIBRARIES >+@@ -323,9 +302,9 @@ if crossmingwenv.has_key('WINICON'): >+ >+ crosslinuxenv.Append( NPSOURCES = globSources(crosslinuxenv, 'src/NetPanzer', npdirs, "*.cpp") ) >+ >+-env.Append( NPLIBS = ['nplua','np2d','npnetwork','nplibs','npphysfs'] ) >+-crossmingwenv.Append( NPLIBS = ['nplua','np2d','npnetwork','nplibs','npphysfs'] ) >+-crosslinuxenv.Append( NPLIBS = ['nplua','np2d','npnetwork','nplibs','npphysfs'] ) >++env.Append( NPLIBS = ['nplua','np2d','npnetwork','nplibs','physfs'] ) >++crossmingwenv.Append( NPLIBS = ['nplua','np2d','npnetwork','nplibs','physfs'] ) >++crosslinuxenv.Append( NPLIBS = ['nplua','np2d','npnetwork','nplibs','physfs'] ) >+ >+ if env.has_key('LIBS'): >+ env.Append( NPLIBS = env['LIBS'] ) >+diff --git a/src/Lib/Util/FileSystem.cpp b/src/Lib/Util/FileSystem.cpp >+index 1deae2d..a951119 100644 >+--- a/src/Lib/Util/FileSystem.cpp >++++ b/src/Lib/Util/FileSystem.cpp >+@@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA >+ #include "Exception.hpp" >+ #include "Log.hpp" >+ #include "FileSystem.hpp" >+-#include "physfs/physfs.h" >+ >+ namespace filesystem >+ { >+diff --git a/src/Lib/Util/FileSystem.hpp b/src/Lib/Util/FileSystem.hpp >+index 244d075..8bda26e 100644 >+--- a/src/Lib/Util/FileSystem.hpp >++++ b/src/Lib/Util/FileSystem.hpp >+@@ -23,7 +23,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA >+ #include "SDL.h" >+ #include <string> >+ #include <stdlib.h> >+-#include "physfs/physfs.h" >++#include <physfs.h> >+ >+ namespace filesystem >+ { >diff --git a/netpanzer.spec b/netpanzer.spec >index 8bed9a8..2b85cad 100644 >--- a/netpanzer.spec >+++ b/netpanzer.spec >@@ -1,6 +1,6 @@ > Name: netpanzer > Version: 0.8.4 >-Release: 5%{?dist} >+Release: 6%{?dist} > Summary: An Online Multiplayer Tactical Warfare Game > > Group: Amusements/Games >@@ -17,6 +17,7 @@ Patch4: netpanzer-0.8.2-MapSelectionView-memory.patch > #Patch5: netpanzer-0.8.3-scons-fixes.patch > Patch6: netpanzer-0.8.3-optflags-580241.patch > Patch7: netpanzer-0.8.4-gcc470.patch >+Patch8: netpanzer-0.8.4-system-physfs.patch > BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) > > BuildRequires: physfs-devel >= 0.1.9, desktop-file-utils, doxygen, scons >@@ -51,6 +52,8 @@ sed -i 's/\r//' RELNOTES > #%patch5 -p0 > %patch6 -p1 > %patch7 -p0 >+%patch8 -p1 >+rm -r src/Lib/physfs > > %build > scons datadir=%{_datadir}/netpanzer %{?_smp_mflags} >@@ -106,6 +109,9 @@ rm -rf $RPM_BUILD_ROOT > %{_datadir}/netpanzer > > %changelog >+* Tue Mar 18 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.8.4-6 >+- Build with system physfs instead of bundled one (#1076808) >+ > * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.4-5 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild > >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1076808
: 875826