Author: belegdol
Update of /cvs/nonfree/rpms/mame/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv20771
Modified Files:
mame.spec
Added Files:
mame-genie-smpfix.patch
Log Message:
Fixed parallel building
mame-genie-smpfix.patch:
actions/make/make_cpp.lua | 2 +-
host/scripts.c | 24 ++++++++++++------------
2 files changed, 13 insertions(+), 13 deletions(-)
--- NEW FILE mame-genie-smpfix.patch ---
diff -up mame-0.163/3rdparty/genie/src/actions/make/make_cpp.lua.smpfix
mame-0.163/3rdparty/genie/src/actions/make/make_cpp.lua
--- mame-0.163/3rdparty/genie/src/actions/make/make_cpp.lua.smpfix 2015-07-12
10:25:25.086599249 +0200
+++ mame-0.163/3rdparty/genie/src/actions/make/make_cpp.lua 2015-07-12 10:25:25.322601824
+0200
@@ -86,7 +86,7 @@
end
-- target build rule
- _p('$(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)')
+ _p('$(TARGET): $(TARGETDIR) $(OBJDIRS) $(GCH) $(OBJECTS) $(LDDEPS)
$(RESOURCES)')
if prj.kind == "StaticLib" then
if prj.msgarchiving then
diff -up mame-0.163/3rdparty/genie/src/host/scripts.c.smpfix
mame-0.163/3rdparty/genie/src/host/scripts.c
--- mame-0.163/3rdparty/genie/src/host/scripts.c.smpfix 2015-07-12 10:28:20.990519044
+0200
+++ mame-0.163/3rdparty/genie/src/host/scripts.c 2015-07-12 10:28:38.640711676 +0200
@@ -180,18 +180,18 @@ const char* builtin_scripts[] = {
/* actions/make/make_cpp.lua */
"premake.make.cpp = { }\npremake.make.override = { }\nlocal cpp =
premake.make.cpp\nlocal make = premake.make\nfunction premake.make_cpp(prj)\nlocal cc =
premake.gettool(prj)\nlocal platforms = premake.filterplatforms(prj.solution,
cc.platforms, \"Native\")\npremake.gmake_cpp_header(prj, cc, platforms)\nfor _,
platform in ipairs(platforms) do\nfor cfg in premake.eachconfig(prj, platform)
do\npremake.gmake_cpp_config(prj, cfg, cc)\nend\nend\nlocal objdirs = {}\nlocal
additionalobjdirs = {}\nfor _, file in ipairs(prj.files) do\nif path.iscppfile(file)
then\nobjdirs[_MAKE.esc(path.getdirectory(path.trimdots(file)))] = 1\nend\nend\nfor _,
custombuildtask in ipairs(prj.custombuildtask or {}) do\nfor _, buildtask in
ipairs(custombuildtask or {})
do\nadditionalobjdirs[_MAKE.esc(path.getdirectory(path.getrelative(prj.location,buildtask[2])))]
= 1\nend\nend\n_p('OBJDIRS := \\\\')\n_p('\\t$(OBJDIR) \\\\')\nfor dir, _
in pairs(objdirs) do\n_p('\\t$(OBJDIR)/%s \\\\', dir)\nend\nfor dir
, _ in pairs(additionalobjdirs) do\n_p"
- "('\\t%s \\\\', dir)\nend\n_p('')\n_p('RESOURCES :=
\\\\')\nfor _, file in ipairs(prj.files) do\nif path.isresourcefile(file)
then\n_p('\\t$(OBJDIR)/%s.res \\\\',
_MAKE.esc(path.getbasename(file)))\nend\nend\n_p('')\n_p('.PHONY: clean
prebuild prelink')\n_p('')\nif os.is(\"MacOSX\") and prj.kind ==
\"WindowedApp\" then\n_p('all: $(TARGETDIR) $(OBJDIRS) prebuild prelink
$(TARGET) $(dir $(TARGETDIR))PkgInfo $(dir
$(TARGETDIR))Info.plist')\nelse\n_p('all: $(TARGETDIR) $(OBJDIRS) prebuild prelink
$(TARGET)')\nend\n_p('\\t@:')\n_p('')\nif (prj.kind ==
\"StaticLib\" and prj.options.ArchiveSplit) then\n_p('define
max_args')\n_p('\\t$(eval _args:=)')\n_p('\\t$(foreach obj,$3,$(eval
_args+=$(obj))$(if $(word $2,$(_args)),$1$(_args)$(EOL)$(eval
_args:=)))')\n_p('\\t$(if
$(_args),$1$(_args))')\n_p('endef')\n_p('')\n_p('define
EOL')\n_p('')\n_p('')\n_p('endef')\n_p('')\nend\n_p('$(TARGET):
$(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)')\nif prj.kind == \"StaticLib\"
then\nif prj.msgarchivin
g then\n_p('\\t@echo ' .. prj.msgarchi"
- "ving)\nelse\n_p('\\t@echo Archiving %s', prj.name)\nend\nif (not
prj.archivesplit_size) then\nprj.archivesplit_size=200\nend\nif (not
prj.options.ArchiveSplit) then\n_p('\\t$(SILENT) $(LINKCMD)
$(OBJECTS)')\nelse\n_p('\\t$(call RM,$(TARGET))')\n_p('\\t@$(call
max_args,$(LINKCMD),'.. prj.archivesplit_size
..',$(OBJECTS))')\n_p('\\t$(SILENT) $(LINKCMD_NDX)')\nend\nelse\nif
prj.msglinking then\n_p('\\t@echo ' .. prj.msglinking)\nelse\n_p('\\t@echo
Linking %s', prj.name)\nend\n_p('\\t$(SILENT)
$(LINKCMD)')\nend\n_p('\\t$(POSTBUILDCMDS)')\n_p('')\n_p('$(TARGETDIR):')\npremake.make_mkdirrule(\"$(TARGETDIR)\")\n_p('$(OBJDIRS):')\nif
(not prj.solution.messageskip) or (not table.contains(prj.solution.messageskip,
\"SkipCreatingMessage\")) then\n_p('\\t@echo Creating
$(@)')\nend\n_p('\\t-$(call MKDIR,$@)')\n_p('')\nif
os.is(\"MacOSX\") and prj.kind == \"WindowedApp\" then\n_p('$(dir
$(TARGETDIR))PkgInfo:')\n_p('$(dir
$(TARGETDIR))Info.plist:')\n_p('')\nend\n_p('clean:')\nif (not prj
.solution.messageskip) or (not table.c"
- "ontains(prj.solution.messageskip, \"SkipCleaningMessage\"))
then\n_p('\\t@echo Cleaning %s', prj.name)\nend\n_p('ifeq
(posix,$(SHELLTYPE))')\n_p('\\t$(SILENT) rm -f
$(TARGET)')\n_p('\\t$(SILENT) rm -rf
$(OBJDIR)')\n_p('else')\n_p('\\t$(SILENT) if exist $(subst
/,\\\\\\\\,$(TARGET)) del $(subst /,\\\\\\\\,$(TARGET))')\n_p('\\t$(SILENT) if
exist $(subst /,\\\\\\\\,$(OBJDIR)) rmdir /s /q $(subst
/,\\\\\\\\,$(OBJDIR))')\n_p('endif')\n_p('')\n_p('prebuild:')\n_p('\\t$(PREBUILDCMDS)')\n_p('')\n_p('prelink:')\n_p('\\t$(PRELINKCMDS)')\n_p('')\ncpp.pchrules(prj)\ncpp.fileRules(prj)\ncpp.dependencyRules(prj)\nfor
_, custombuildtask in ipairs(prj.custombuildtask or {}) do\nfor _, buildtask in
ipairs(custombuildtask or {}) do\nlocal deps = string.format(\"%s
\",path.getrelative(prj.location,buildtask[1]))\nfor _, depdata in
ipairs(buildtask[3] or {}) do\ndeps = deps .. string.format(\"%s
\",path.getrelative(prj.location,depdata))\nend\n_p('%s:
%s'\n,path.getrelative(prj.location,bui
ldtask[2])\n, deps\n)\nfor _, cmdline "
- "in ipairs(buildtask[4] or {}) do\nlocal cmd = cmdline\nlocal num = 1\nfor _,
depdata in ipairs(buildtask[3] or {}) do\ncmd = string.gsub(cmd,\"%$%(\" .. num
..\"%)\", string.format(\"%s
\",path.getrelative(prj.location,depdata)))\nnum = num + 1\nend\ncmd =
string.gsub(cmd, \"%$%(<%)\", \"$<\")\ncmd = string.gsub(cmd,
\"%$%(@%)\", \"$@\")\n \n_p('\\t$(SILENT)
%s',cmd)\nend\n_p('')\nend\nend\n_p('-include
$(OBJECTS:%%.o=%%.d)')\n_p('ifneq (,$(PCH))')\n_p(' -include
$(OBJDIR)/$(notdir $(PCH)).d')\n_p('endif')\nend\nfunction
premake.gmake_cpp_header(prj, cc, platforms)\n_p('# %s project makefile autogenerated
by GENie', premake.action.current().shortname)\n_p('ifndef config')\n_p('
config=%s', _MAKE.esc(premake.getconfigname(prj.solution.configurations[1],
platforms[1], true)))\n_p('endif')\n_p('')\n_p('ifndef
verbose')\n_p(' SILENT =
@')\n_p('endif')\n_p('')\n_p('SHELLTYPE :=
msdos')\n_p('ifeq (,$(ComSpec)$(COMSPEC))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('ifeq (/b
in,$(findstring /bin,$(SHELL)))')\n_p("
- "' SHELLTYPE := posix')\n_p('endif')\n_p('')\n_p('ifeq
(posix,$(SHELLTYPE))')\n_p(' MKDIR = $(SILENT) mkdir -p
\"$(1)\"')\n_p(' COPY = $(SILENT) cp -fR \"$(1)\"
\"$(2)\"')\n_p(' RM= $(SILENT) rm -f
\"$(1)\"')\n_p('else')\n_p(' MKDIR = $(SILENT) mkdir
\"$(subst /,\\\\\\\\,$(1))\" 2> nul || exit 0')\n_p(' COPY =
$(SILENT) copy /Y \"$(subst /,\\\\\\\\,$(1))\" \"$(subst
/,\\\\\\\\,$(2))\"')\n_p(' RM = $(SILENT) del /F \"$(subst
/,\\\\\\\\,$(1))\" 2> nul || exit
0')\n_p('endif')\n_p('')\n_p('CC = %s', cc.cc)\n_p('CXX =
%s', cc.cxx)\n_p('AR = %s', cc.ar)\n_p('')\n_p('ifndef
RESCOMP')\n_p(' ifdef WINDRES')\n_p(' RESCOMP =
$(WINDRES)')\n_p(' else')\n_p(' RESCOMP = windres')\n_p('
endif')\n_p('endif')\n_p('')\nend\nfunction
premake.gmake_cpp_config(prj, cfg, cc)\n_p('ifeq ($(config),%s)',
_MAKE.esc(cfg.shortname))\ncpp.platformtools(cfg, cc)\n_p(' ' ..
(table.contains(premake.make.override,\"OBJDIR\") and \"override \" or
\"\") .. 'OBJDIR = %s', _MAKE.
esc(cfg.objectsdir))\n_p(' ' .. (tabl"
- "e.contains(premake.make.override,\"TARGETDIR\") and \"override
\" or \"\") .. 'TARGETDIR = %s',
_MAKE.esc(cfg.buildtarget.directory))\n_p(' ' ..
(table.contains(premake.make.override,\"TARGET\") and \"override \" or
\"\") .. 'TARGET = $(TARGETDIR)/%s',
_MAKE.esc(cfg.buildtarget.name))\n_p(' DEFINES +=%s',
make.list(cc.getdefines(cfg.defines)))\n_p(' INCLUDES +=%s',
make.list(cc.getincludedirs(cfg.includedirs)))\ncpp.pchconfig(cfg)\ncpp.flags(cfg,
cc)\ncpp.linker(prj, cfg, cc)\n_p(' OBJECTS := \\\\')\nfor _, file in
ipairs(prj.files) do\nif path.iscppfile(file) then\nif not table.icontains(cfg.excludes,
file) then\n_p('\\t$(OBJDIR)/%s.o \\\\'\n,
_MAKE.esc(path.trimdots(path.removeext(file)))\n)\nend\nend\nend\n_p('')\n_p('
define PREBUILDCMDS')\nif #cfg.prebuildcommands > 0 then\n_p('\\t@echo Running
pre-build commands')\n_p('\\t%s', table.implode(cfg.prebuildcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\n_p(' define PRELINKCMDS')\nif #cfg.prelinkc
ommands > 0 then\n_p('\\t@echo Running"
- " pre-link commands')\n_p('\\t%s', table.implode(cfg.prelinkcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\n_p(' define POSTBUILDCMDS')\nif #cfg.postbuildcommands > 0
then\n_p('\\t@echo Running post-build commands')\n_p('\\t%s',
table.implode(cfg.postbuildcommands, \"\", \"\",
\"\\n\\t\"))\nend\n_p(' endef')\nmake.settings(cfg,
cc)\n_p('endif')\n_p('')\nend\nfunction cpp.platformtools(cfg, cc)\nlocal
platform = cc.platforms[cfg.platform]\nif platform.cc then\n_p(' CC =
%s', platform.cc)\nend\nif platform.cxx then\n_p(' CXX = %s',
platform.cxx)\nend\nif platform.ar then\n_p(' AR = %s',
platform.ar)\nend\nend\nfunction cpp.flags(cfg, cc)\nif cfg.pchheader and not
cfg.flags.NoPCH then\n_p(' FORCE_INCLUDE += -include $(OBJDIR)/$(notdir
$(PCH))')\nend\nif #cfg.forcedincludes > 0 then\n_p(' FORCE_INCLUDE +=
-include %s'\n,premake.esc(table.concat(cfg.forcedincludes,
\";\")))\nend\n_p(' ALL_CPPFLAGS += $(CPPFLAGS) %s $(DEFINES)
$(INCLUDES)',
table.concat(cc.getcppflags(cfg), \" "
- "\"))\n_p(' ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH)%s',
make.list(table.join(cc.getcflags(cfg), cfg.buildoptions, cfg.buildoptions_c)))\n_p('
ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH)%s',
make.list(table.join(cc.getcflags(cfg), cc.getcxxflags(cfg), cfg.buildoptions,
cfg.buildoptions_cpp)))\n_p(' ALL_OBJCFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS)
$(ARCH)%s', make.list(table.join(cc.getcflags(cfg), cc.getcxxflags(cfg),
cfg.buildoptions, cfg.buildoptions_objc)))\n_p(' ALL_RESFLAGS += $(RESFLAGS)
$(DEFINES) $(INCLUDES)%s',\n
make.list(table.join(cc.getdefines(cfg.resdefines),\n
cc.getincludedirs(cfg.resincludedirs), cfg.resoptions)))\nend\nfunction cpp.linker(prj,
cfg, cc)\n_p(' ALL_LDFLAGS += $(LDFLAGS)%s',
make.list(table.join(cc.getlibdirflags(cfg), cc.getldflags(cfg),
cfg.linkoptions)))\n_p(' LDDEPS +=%s',
make.list(_MAKE.esc(premake.getlinks(cfg, \"siblings\",
\"fullpath\"))))\n_p(' LIBS
+= $(LDDEPS)%s', make.list(cc.ge"
- "tlinkflags(cfg)))\nif cfg.kind == \"StaticLib\" then\nif
cfg.platform:startswith(\"Universal\") then\n_p(' LINKCMD = libtool -o
$(TARGET)')\nelse\nif (not prj.options.ArchiveSplit) then\nif cc.llvm then\n_p('
LINKCMD = $(AR) rcs $(TARGET)')\nelse\n_p(' LINKCMD = $(AR) -rcs
$(TARGET)')\nend\nelse\nif cc.llvm then\n_p(' LINKCMD = $(AR) qc
$(TARGET)')\n_p(' LINKCMD_NDX= $(AR) cs $(TARGET)')\nelse\n_p(' LINKCMD
= $(AR) -qc $(TARGET)')\n_p(' LINKCMD_NDX= $(AR) -cs
$(TARGET)')\nend\nend\nend\nelse\nlocal tool = iif(cfg.language == \"C\",
\"CC\", \"CXX\")\n_p(' LINKCMD = $(%s) -o $(TARGET) $(OBJECTS)
$(RESOURCES) $(ARCH) $(ALL_LDFLAGS) $(LIBS)', tool)\nend\nend\nfunction
cpp.pchconfig(cfg)\nif not cfg.pchheader or cfg.flags.NoPCH then\nreturn\nend\nlocal pch =
cfg.pchheader\nfor _, incdir in ipairs(cfg.includedirs) do\nlocal abspath =
path.getabsolute(path.join(cfg.project.location, incdir))\nlocal testname =
path.join(abspath, pch)\nif os.isfile(testnam
e) then\npch = path.getrelative(cfg.lo"
- "cation, testname)\nbreak\nend\nend\n_p(' PCH = %s',
_MAKE.esc(pch))\n_p(' GCH = $(OBJDIR)/$(notdir
$(PCH)).gch')\nend\nfunction cpp.pchrules(prj)\n_p('ifneq
(,$(PCH))')\n_p('$(GCH): $(PCH)')\n_p('\\t@echo $(notdir
$<)')\nlocal cmd = iif(prj.language == \"C\", \"$(CC) -x c-header
$(ALL_CFLAGS)\", \"$(CXX) -x c++-header
$(ALL_CXXFLAGS)\")\n_p('\\t$(SILENT) %s -MMD -MP $(DEFINES) $(INCLUDES) -o
\"$@\" -MF \"$(@:%%.gch=%%.d)\" -c \"$<\"',
cmd)\n_p('endif')\n_p('')\nend\nfunction cpp.fileRules(prj)\nfor _, file
in ipairs(prj.files or {}) do\nif path.iscppfile(file) then\n_p('$(OBJDIR)/%s.o:
%s'\n, _MAKE.esc(path.trimdots(path.removeext(file)))\n, _MAKE.esc(file)\n)\nif
(path.isobjcfile(file) and prj.msgcompile_objc) then\n_p('\\t@echo ' ..
prj.msgcompile_objc)\nelseif prj.msgcompile then\n_p('\\t@echo ' ..
prj.msgcompile)\nelse\n_p('\\t@echo $(notdir $<)')\nend\nif
(path.isobjcfile(file)) then\n_p('\\t$(SILENT) $(CXX) $(ALL_OBJCFLAGS)
$(FORCE_INCLUDE) -o \"$@\"
-MF $(@:%%.o=%%.d) -c \"$<\"')\nelse\n"
- "cpp.buildcommand(path.iscfile(file) and not prj.options.ForceCPP,
\"o\")\nend\nfor _, task in ipairs(prj.postcompiletasks or {})
do\n_p('\\t$(SILENT) %s', task)\n_p('')\nend\n_p('')\nelseif
(path.getextension(file) == \".rc\") then\n_p('$(OBJDIR)/%s.res: %s',
_MAKE.esc(path.getbasename(file)), _MAKE.esc(file))\nif prj.msgresource
then\n_p('\\t@echo ' .. prj.msgresource)\nelse\n_p('\\t@echo $(notdir
$<)')\nend\n_p('\\t$(SILENT) $(RESCOMP) $< -O coff -o \"$@\"
$(ALL_RESFLAGS)')\n_p('')\nend\nend\nend\nfunction
cpp.dependencyRules(prj)\nfor _, dependency in ipairs(prj.dependency or {}) do\nfor _, dep
in ipairs(dependency or {}) do\nif (dep[3]==nil or dep[3]==false)
then\n_p('$(OBJDIR)/%s.o: %s'\n,
_MAKE.esc(path.trimdots(path.removeext(path.getrelative(prj.location, dep[1]))))\n,
_MAKE.esc(path.getrelative(prj.location, dep[2]))\n)\nelse\n_p('%s: %s'\n,
_MAKE.esc(dep[1])\n, _MAKE.esc(path.getrelative(prj.location,
dep[2]))\n)\nend\n_p('')\nend\nend\nend\nfunction cpp.buildcom
mand(iscfile, objext)\nlocal flags = i"
- "if(iscfile, '$(CC) $(ALL_CFLAGS)', '$(CXX)
$(ALL_CXXFLAGS)')\n_p('\\t$(SILENT) %s $(FORCE_INCLUDE) -o \"$@\" -MF
$(@:%%.%s=%%.d) -c \"$<\"', flags, objext)\nend\n",
+ "('\\t%s \\\\', dir)\nend\n_p('')\n_p('RESOURCES :=
\\\\')\nfor _, file in ipairs(prj.files) do\nif path.isresourcefile(file)
then\n_p('\\t$(OBJDIR)/%s.res \\\\',
_MAKE.esc(path.getbasename(file)))\nend\nend\n_p('')\n_p('.PHONY: clean
prebuild prelink')\n_p('')\nif os.is(\"MacOSX\") and prj.kind ==
\"WindowedApp\" then\n_p('all: $(TARGETDIR) $(OBJDIRS) prebuild prelink
$(TARGET) $(dir $(TARGETDIR))PkgInfo $(dir
$(TARGETDIR))Info.plist')\nelse\n_p('all: $(TARGETDIR) $(OBJDIRS) prebuild prelink
$(TARGET)')\nend\n_p('\\t@:')\n_p('')\nif (prj.kind ==
\"StaticLib\" and prj.options.ArchiveSplit) then\n_p('define
max_args')\n_p('\\t$(eval _args:=)')\n_p('\\t$(foreach obj,$3,$(eval
_args+=$(obj))$(if $(word $2,$(_args)),$1$(_args)$(EOL)$(eval
_args:=)))')\n_p('\\t$(if
$(_args),$1$(_args))')\n_p('endef')\n_p('')\n_p('define
EOL')\n_p('')\n_p('')\n_p('endef')\n_p('')\nend\n_p('$(TARGET):
$(TARGETDIR) $(OBJDIRS) $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES)')\nif prj.kind ==
\"StaticLib\"
then\nif prj.msgarchiving then\n_p('"
+ "\\t@echo ' .. prj.msgarchiving)\nelse\n_p('\\t@echo Archiving %s',
prj.name)\nend\nif (not prj.archivesplit_size) then\nprj.archivesplit_size=200\nend\nif
(not prj.options.ArchiveSplit) then\n_p('\\t$(SILENT) $(LINKCMD)
$(OBJECTS)')\nelse\n_p('\\t$(call RM,$(TARGET))')\n_p('\\t@$(call
max_args,$(LINKCMD),'.. prj.archivesplit_size
..',$(OBJECTS))')\n_p('\\t$(SILENT) $(LINKCMD_NDX)')\nend\nelse\nif
prj.msglinking then\n_p('\\t@echo ' .. prj.msglinking)\nelse\n_p('\\t@echo
Linking %s', prj.name)\nend\n_p('\\t$(SILENT)
$(LINKCMD)')\nend\n_p('\\t$(POSTBUILDCMDS)')\n_p('')\n_p('$(TARGETDIR):')\npremake.make_mkdirrule(\"$(TARGETDIR)\")\n_p('$(OBJDIRS):')\nif
(not prj.solution.messageskip) or (not table.contains(prj.solution.messageskip,
\"SkipCreatingMessage\")) then\n_p('\\t@echo Creating
$(@)')\nend\n_p('\\t-$(call MKDIR,$@)')\n_p('')\nif
os.is(\"MacOSX\") and prj.kind == \"WindowedApp\" then\n_p('$(dir
$(TARGETDIR))PkgInfo:')\n_p('$(dir
$(TARGETDIR))Info.plist:')\n_p('')\nend\
n_p('clean:')\nif (not prj.solution.me"
+ "ssageskip) or (not table.contains(prj.solution.messageskip,
\"SkipCleaningMessage\")) then\n_p('\\t@echo Cleaning %s',
prj.name)\nend\n_p('ifeq (posix,$(SHELLTYPE))')\n_p('\\t$(SILENT) rm -f
$(TARGET)')\n_p('\\t$(SILENT) rm -rf
$(OBJDIR)')\n_p('else')\n_p('\\t$(SILENT) if exist $(subst
/,\\\\\\\\,$(TARGET)) del $(subst /,\\\\\\\\,$(TARGET))')\n_p('\\t$(SILENT) if
exist $(subst /,\\\\\\\\,$(OBJDIR)) rmdir /s /q $(subst
/,\\\\\\\\,$(OBJDIR))')\n_p('endif')\n_p('')\n_p('prebuild:')\n_p('\\t$(PREBUILDCMDS)')\n_p('')\n_p('prelink:')\n_p('\\t$(PRELINKCMDS)')\n_p('')\ncpp.pchrules(prj)\ncpp.fileRules(prj)\ncpp.dependencyRules(prj)\nfor
_, custombuildtask in ipairs(prj.custombuildtask or {}) do\nfor _, buildtask in
ipairs(custombuildtask or {}) do\nlocal deps = string.format(\"%s
\",path.getrelative(prj.location,buildtask[1]))\nfor _, depdata in
ipairs(buildtask[3] or {}) do\ndeps = deps .. string.format(\"%s
\",path.getrelative(prj.location,depdata))\nend\n_p('%s: %s'\n,path.ge
trelative(prj.location,buildtask[2])\n"
+ ", deps\n)\nfor _, cmdline in ipairs(buildtask[4] or {}) do\nlocal cmd =
cmdline\nlocal num = 1\nfor _, depdata in ipairs(buildtask[3] or {}) do\ncmd =
string.gsub(cmd,\"%$%(\" .. num ..\"%)\", string.format(\"%s
\",path.getrelative(prj.location,depdata)))\nnum = num + 1\nend\ncmd =
string.gsub(cmd, \"%$%(<%)\", \"$<\")\ncmd = string.gsub(cmd,
\"%$%(@%)\", \"$@\")\n \n_p('\\t$(SILENT)
%s',cmd)\nend\n_p('')\nend\nend\n_p('-include
$(OBJECTS:%%.o=%%.d)')\n_p('ifneq (,$(PCH))')\n_p(' -include
$(OBJDIR)/$(notdir $(PCH)).d')\n_p('endif')\nend\nfunction
premake.gmake_cpp_header(prj, cc, platforms)\n_p('# %s project makefile autogenerated
by GENie', premake.action.current().shortname)\n_p('ifndef config')\n_p('
config=%s', _MAKE.esc(premake.getconfigname(prj.solution.configurations[1],
platforms[1], true)))\n_p('endif')\n_p('')\n_p('ifndef
verbose')\n_p(' SILENT =
@')\n_p('endif')\n_p('')\n_p('SHELLTYPE :=
msdos')\n_p('ifeq (,$(ComSpec)$(COMSPEC))')\n_p(' SHELLTYPE :=
posix')\
n_p('endif')\n_p('ifeq (/bin,$(findstr"
+ "ing /bin,$(SHELL)))')\n_p(' SHELLTYPE :=
posix')\n_p('endif')\n_p('')\n_p('ifeq
(posix,$(SHELLTYPE))')\n_p(' MKDIR = $(SILENT) mkdir -p
\"$(1)\"')\n_p(' COPY = $(SILENT) cp -fR \"$(1)\"
\"$(2)\"')\n_p(' RM= $(SILENT) rm -f
\"$(1)\"')\n_p('else')\n_p(' MKDIR = $(SILENT) mkdir
\"$(subst /,\\\\\\\\,$(1))\" 2> nul || exit 0')\n_p(' COPY =
$(SILENT) copy /Y \"$(subst /,\\\\\\\\,$(1))\" \"$(subst
/,\\\\\\\\,$(2))\"')\n_p(' RM = $(SILENT) del /F \"$(subst
/,\\\\\\\\,$(1))\" 2> nul || exit
0')\n_p('endif')\n_p('')\n_p('CC = %s', cc.cc)\n_p('CXX =
%s', cc.cxx)\n_p('AR = %s', cc.ar)\n_p('')\n_p('ifndef
RESCOMP')\n_p(' ifdef WINDRES')\n_p(' RESCOMP =
$(WINDRES)')\n_p(' else')\n_p(' RESCOMP = windres')\n_p('
endif')\n_p('endif')\n_p('')\nend\nfunction
premake.gmake_cpp_config(prj, cfg, cc)\n_p('ifeq ($(config),%s)',
_MAKE.esc(cfg.shortname))\ncpp.platformtools(cfg, cc)\n_p(' ' ..
(table.contains(premake.make.override,\"OBJDIR\") and \"override \" or
\"\") ..
'OBJDIR = %s', _MAKE.esc(cfg.obje"
+ "ctsdir))\n_p(' ' ..
(table.contains(premake.make.override,\"TARGETDIR\") and \"override \"
or \"\") .. 'TARGETDIR = %s',
_MAKE.esc(cfg.buildtarget.directory))\n_p(' ' ..
(table.contains(premake.make.override,\"TARGET\") and \"override \" or
\"\") .. 'TARGET = $(TARGETDIR)/%s',
_MAKE.esc(cfg.buildtarget.name))\n_p(' DEFINES +=%s',
make.list(cc.getdefines(cfg.defines)))\n_p(' INCLUDES +=%s',
make.list(cc.getincludedirs(cfg.includedirs)))\ncpp.pchconfig(cfg)\ncpp.flags(cfg,
cc)\ncpp.linker(prj, cfg, cc)\n_p(' OBJECTS := \\\\')\nfor _, file in
ipairs(prj.files) do\nif path.iscppfile(file) then\nif not table.icontains(cfg.excludes,
file) then\n_p('\\t$(OBJDIR)/%s.o \\\\'\n,
_MAKE.esc(path.trimdots(path.removeext(file)))\n)\nend\nend\nend\n_p('')\n_p('
define PREBUILDCMDS')\nif #cfg.prebuildcommands > 0 then\n_p('\\t@echo Running
pre-build commands')\n_p('\\t%s', table.implode(cfg.prebuildcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\n_p(' define PRELI
NKCMDS')\nif #cfg.prelinkcommands > 0 "
+ "then\n_p('\\t@echo Running pre-link commands')\n_p('\\t%s',
table.implode(cfg.prelinkcommands, \"\", \"\",
\"\\n\\t\"))\nend\n_p(' endef')\n_p(' define
POSTBUILDCMDS')\nif #cfg.postbuildcommands > 0 then\n_p('\\t@echo Running
post-build commands')\n_p('\\t%s', table.implode(cfg.postbuildcommands,
\"\", \"\", \"\\n\\t\"))\nend\n_p('
endef')\nmake.settings(cfg, cc)\n_p('endif')\n_p('')\nend\nfunction
cpp.platformtools(cfg, cc)\nlocal platform = cc.platforms[cfg.platform]\nif platform.cc
then\n_p(' CC = %s', platform.cc)\nend\nif platform.cxx then\n_p('
CXX = %s', platform.cxx)\nend\nif platform.ar then\n_p(' AR =
%s', platform.ar)\nend\nend\nfunction cpp.flags(cfg, cc)\nif cfg.pchheader and not
cfg.flags.NoPCH then\n_p(' FORCE_INCLUDE += -include $(OBJDIR)/$(notdir
$(PCH))')\nend\nif #cfg.forcedincludes > 0 then\n_p(' FORCE_INCLUDE +=
-include %s'\n,premake.esc(table.concat(cfg.forcedincludes,
\";\")))\nend\n_p(' ALL_CPPFLAGS += $(CPPFLAGS) %
s $(DEFINES) $(INCLUDES)', table.conca"
+ "t(cc.getcppflags(cfg), \" \"))\n_p(' ALL_CFLAGS += $(CFLAGS)
$(ALL_CPPFLAGS) $(ARCH)%s', make.list(table.join(cc.getcflags(cfg), cfg.buildoptions,
cfg.buildoptions_c)))\n_p(' ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS)
$(ARCH)%s', make.list(table.join(cc.getcflags(cfg), cc.getcxxflags(cfg),
cfg.buildoptions, cfg.buildoptions_cpp)))\n_p(' ALL_OBJCFLAGS += $(CXXFLAGS)
$(CFLAGS) $(ALL_CPPFLAGS) $(ARCH)%s', make.list(table.join(cc.getcflags(cfg),
cc.getcxxflags(cfg), cfg.buildoptions, cfg.buildoptions_objc)))\n_p(' ALL_RESFLAGS
+= $(RESFLAGS) $(DEFINES) $(INCLUDES)%s',\n
make.list(table.join(cc.getdefines(cfg.resdefines),\n
cc.getincludedirs(cfg.resincludedirs), cfg.resoptions)))\nend\nfunction cpp.linker(prj,
cfg, cc)\n_p(' ALL_LDFLAGS += $(LDFLAGS)%s',
make.list(table.join(cc.getlibdirflags(cfg), cc.getldflags(cfg),
cfg.linkoptions)))\n_p(' LDDEPS +=%s',
make.list(_MAKE.esc(premake.getlinks(cfg, \"siblings\", \"
fullpath\"))))\n_p(' LIBS += $(L"
+ "DDEPS)%s', make.list(cc.getlinkflags(cfg)))\nif cfg.kind ==
\"StaticLib\" then\nif cfg.platform:startswith(\"Universal\")
then\n_p(' LINKCMD = libtool -o $(TARGET)')\nelse\nif (not
prj.options.ArchiveSplit) then\nif cc.llvm then\n_p(' LINKCMD = $(AR) rcs
$(TARGET)')\nelse\n_p(' LINKCMD = $(AR) -rcs $(TARGET)')\nend\nelse\nif
cc.llvm then\n_p(' LINKCMD = $(AR) qc $(TARGET)')\n_p(' LINKCMD_NDX=
$(AR) cs $(TARGET)')\nelse\n_p(' LINKCMD = $(AR) -qc $(TARGET)')\n_p('
LINKCMD_NDX= $(AR) -cs $(TARGET)')\nend\nend\nend\nelse\nlocal tool =
iif(cfg.language == \"C\", \"CC\", \"CXX\")\n_p('
LINKCMD = $(%s) -o $(TARGET) $(OBJECTS) $(RESOURCES) $(ARCH) $(ALL_LDFLAGS)
$(LIBS)', tool)\nend\nend\nfunction cpp.pchconfig(cfg)\nif not cfg.pchheader or
cfg.flags.NoPCH then\nreturn\nend\nlocal pch = cfg.pchheader\nfor _, incdir in
ipairs(cfg.includedirs) do\nlocal abspath =
path.getabsolute(path.join(cfg.project.location, incdir))\nlocal testname =
path.join(abspath,
pch)\nif os.isfile(testname) then\npch"
+ " = path.getrelative(cfg.location, testname)\nbreak\nend\nend\n_p(' PCH
= %s', _MAKE.esc(pch))\n_p(' GCH = $(OBJDIR)/$(notdir
$(PCH)).gch')\nend\nfunction cpp.pchrules(prj)\n_p('ifneq
(,$(PCH))')\n_p('$(GCH): $(PCH)')\n_p('\\t@echo $(notdir
$<)')\nlocal cmd = iif(prj.language == \"C\", \"$(CC) -x c-header
$(ALL_CFLAGS)\", \"$(CXX) -x c++-header
$(ALL_CXXFLAGS)\")\n_p('\\t$(SILENT) %s -MMD -MP $(DEFINES) $(INCLUDES) -o
\"$@\" -MF \"$(@:%%.gch=%%.d)\" -c \"$<\"',
cmd)\n_p('endif')\n_p('')\nend\nfunction cpp.fileRules(prj)\nfor _, file
in ipairs(prj.files or {}) do\nif path.iscppfile(file) then\n_p('$(OBJDIR)/%s.o:
%s'\n, _MAKE.esc(path.trimdots(path.removeext(file)))\n, _MAKE.esc(file)\n)\nif
(path.isobjcfile(file) and prj.msgcompile_objc) then\n_p('\\t@echo ' ..
prj.msgcompile_objc)\nelseif prj.msgcompile then\n_p('\\t@echo ' ..
prj.msgcompile)\nelse\n_p('\\t@echo $(notdir $<)')\nend\nif
(path.isobjcfile(file)) then\n_p('\\t$(SILENT) $(CXX) $(ALL_OBJCFLAGS) $
(FORCE_INCLUDE) -o \"$@\" -MF $(@:%%.o"
+ "=%%.d) -c \"$<\"')\nelse\ncpp.buildcommand(path.iscfile(file) and
not prj.options.ForceCPP, \"o\")\nend\nfor _, task in
ipairs(prj.postcompiletasks or {}) do\n_p('\\t$(SILENT) %s',
task)\n_p('')\nend\n_p('')\nelseif (path.getextension(file) ==
\".rc\") then\n_p('$(OBJDIR)/%s.res: %s',
_MAKE.esc(path.getbasename(file)), _MAKE.esc(file))\nif prj.msgresource
then\n_p('\\t@echo ' .. prj.msgresource)\nelse\n_p('\\t@echo $(notdir
$<)')\nend\n_p('\\t$(SILENT) $(RESCOMP) $< -O coff -o \"$@\"
$(ALL_RESFLAGS)')\n_p('')\nend\nend\nend\nfunction
cpp.dependencyRules(prj)\nfor _, dependency in ipairs(prj.dependency or {}) do\nfor _, dep
in ipairs(dependency or {}) do\nif (dep[3]==nil or dep[3]==false)
then\n_p('$(OBJDIR)/%s.o: %s'\n,
_MAKE.esc(path.trimdots(path.removeext(path.getrelative(prj.location, dep[1]))))\n,
_MAKE.esc(path.getrelative(prj.location, dep[2]))\n)\nelse\n_p('%s: %s'\n,
_MAKE.esc(dep[1])\n, _MAKE.esc(path.getrelative(prj.location,
dep[2]))\n)\nend\n_p('')\nend\nend\n
end\nfunction cpp.buildcommand(iscfile"
+ ", objext)\nlocal flags = iif(iscfile, '$(CC) $(ALL_CFLAGS)', '$(CXX)
$(ALL_CXXFLAGS)')\n_p('\\t$(SILENT) %s $(FORCE_INCLUDE) -o \"$@\" -MF
$(@:%%.%s=%%.d) -c \"$<\"', flags, objext)\nend\n",
/* actions/make/make_csharp.lua */
"local function getresourcefilename(cfg, fname)\nif path.getextension(fname) ==
\".resx\" then\n local name = cfg.buildtarget.basename .. \".\"\n
local dir = path.getdirectory(fname)\n if dir ~= \".\" then \nname = name ..
path.translate(dir, \".\") .. \".\"\nend\nreturn
\"$(OBJDIR)/\" .. _MAKE.esc(name .. path.getbasename(fname)) ..
\".resources\"\nelse\nreturn fname\nend\nend\nfunction
premake.make_csharp(prj)\nlocal csc = premake.dotnet\nlocal cfglibs = { }\nlocal cfgpairs
= { }\nlocal anycfg\nfor cfg in premake.eachconfig(prj) do\nanycfg = cfg\ncfglibs[cfg] =
premake.getlinks(cfg, \"siblings\", \"fullpath\")\ncfgpairs[cfg] = {
}\nfor _, fname in ipairs(cfglibs[cfg]) do\nif path.getdirectory(fname) ~=
cfg.buildtarget.directory then\ncfgpairs[cfg][\"$(TARGETDIR)/\" ..
_MAKE.esc(path.getname(fname))] = _MAKE.esc(fname)\nend\nend\nend\nlocal sources =
{}\nlocal embedded = { }\nlocal copypairs = { }\nfor fcfg in premake.project.eachfile(prj)
do\nlocal action = csc.g
etbuildaction(fcfg)\nif action == \"Co"
Index: mame.spec
===================================================================
RCS file: /cvs/nonfree/rpms/mame/devel/mame.spec,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -r1.111 -r1.112
--- mame.spec 9 Jul 2015 21:01:40 -0000 1.111
+++ mame.spec 12 Jul 2015 08:34:41 -0000 1.112
@@ -24,6 +24,7 @@
Source100: whatsnew.zip
Patch0: %{name}-fortify.patch
Patch1: %{name}-systempa.patch
+Patch2: %{name}-genie-smpfix.patch
BuildRequires: expat-devel
BuildRequires: flac-devel
@@ -126,6 +127,7 @@
%patch0 -p1 -b .fortify
%patch1 -p1 -b .systempa
+%patch2 -p1 -b .smpfix
# Fix encoding
#for whatsnew in whatsnew_0162.txt; do
@@ -326,6 +328,7 @@
- Patched to use system PortAudio
- Added more workarouds for low memory on the builder
- Replaced wildcards with || approach
+- Fixed parallel building
* Sun Jun 07 2015 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.162-1
- Updated to 0.162