[dolphin-emu/f23] Patch for mbdetls 2.3+, also some comment rewording
by Jeremy Newton
commit 8f309999c2f89e688d046b46653accb0bb1b60fc
Author: Jeremy <alexjnewt(a)hotmail.com>
Date: Thu Jul 7 15:55:51 2016 -0400
Patch for mbdetls 2.3+, also some comment rewording
dolphin-emu-5.0-mbedtls2.3.patch | 11 +++++++++++
dolphin-emu.spec | 10 ++++++++--
2 files changed, 19 insertions(+), 2 deletions(-)
---
diff --git a/dolphin-emu-5.0-mbedtls2.3.patch b/dolphin-emu-5.0-mbedtls2.3.patch
new file mode 100644
index 0000000..21176ee
--- /dev/null
+++ b/dolphin-emu-5.0-mbedtls2.3.patch
@@ -0,0 +1,11 @@
+diff -rupN a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net_ssl.h b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net_ssl.h
+--- a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net_ssl.h
++++ b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_net_ssl.h
+@@ -5,6 +5,7 @@
+ #pragma once
+
+ #include <string>
++#include <mbedtls/platform.h>
+ #include <mbedtls/ctr_drbg.h>
+ #include <mbedtls/entropy.h>
+ #include <mbedtls/net.h>
diff --git a/dolphin-emu.spec b/dolphin-emu.spec
index db86e94..1debbae 100644
--- a/dolphin-emu.spec
+++ b/dolphin-emu.spec
@@ -2,7 +2,7 @@
Name: dolphin-emu
Version: 5.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: GameCube / Wii / Triforce Emulator
Url: https://dolphin-emu.org/
@@ -10,6 +10,8 @@ License: GPLv2 and BSD and Public Domain
Source0: https://github.com/%{name}/dolphin/archive/%{version}.tar.gz
#GTK3 patch, upstream doesn't care for gtk3
Patch0: %{name}-%{version}-gtk3.patch
+#Minor fix for mbedtls 2.3+
+Patch1: %{name}-%{version}-mbedtls2.3.patch
BuildRequires: alsa-lib-devel
BuildRequires: bluez-libs-devel
@@ -44,7 +46,7 @@ BuildRequires: desktop-file-utils
#Only the following architectures are supported:
ExclusiveArch: x86_64 armv7l aarch64
-#xxhash doesn't appear to be in Fedora, will unbundle if it's packaged
+#xxhash doesn't appear to be in Fedora, if it's packaged it will unbundled
#Note that xxhash was unversioned prior to 0.5.0, 0.4.39 is a placeholder
#It was actually called r39: https://github.com/Cyan4973/xxHash/tree/r39
Provides: bundled(xxhash) = 0.4.39
@@ -70,6 +72,7 @@ Dolphin Emulator without a graphical user interface
%prep
%setup -q -n dolphin-%{version}
%patch0 -p1
+%patch1 -p1
#Allow building with cmake macro
sed -i '/CMAKE_C.*_FLAGS/d' CMakeLists.txt
@@ -125,6 +128,9 @@ fi
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Thu Jul 7 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 5.0-2
+- Added patch for building with mbedtls 2.3+
+
* Fri Jun 24 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 5.0-1
- Update to 5.0
8 years, 4 months
[moc] Add ffmpeg as Requires package
by Antonio
commit d081b8c21de76e297921c33ed3246e39baaa1051
Author: sagitter <sagitter(a)fedoraproject.org>
Date: Thu Jul 7 23:10:48 2016 +0200
Add ffmpeg as Requires package
moc.spec | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/moc.spec b/moc.spec
index bf01521..030d983 100644
--- a/moc.spec
+++ b/moc.spec
@@ -6,7 +6,7 @@
Name: moc
Summary: Music on Console - Console audio player for Linux/UNIX
Version: 2.6
-Release: 0.10.alpha2%{?dist}
+Release: 0.11.alpha2%{?dist}
License: GPLv2+ and GPLv3+
URL: http://moc.daper.net
@@ -44,6 +44,7 @@ BuildRequires: libmad-devel
BuildRequires: faad2-devel
BuildRequires: autoconf, automake
+Requires: ffmpeg
%description
MOC (music on console) is a console audio player for LINUX/UNIX designed to be
@@ -81,6 +82,9 @@ rm -f $RPM_BUILD_ROOT%_libdir/moc/decoder_plugins/*.la
%{_libdir}/%{name}/
%changelog
+* Thu Jul 07 2016 Antonio Trande <sagitter(a)fedoraproject.org> - 2.6-0.11.alpha2
+- Add ffmpeg as Requires package
+
* Sun Jun 05 2016 Antonio Trande <sagitter(a)fedoraproject.org> - 2.6-0.10.alpha2
- Update to commit 2880
- Rebuild for ffmpeg 2.8.7
8 years, 4 months
[frogatto] Fix building with gcc6 / fix FTBFS
by jwrdegoede
commit 2ede3756737121f3b03b1434a7d65f28b841a45d
Author: Hans de Goede <hdegoede(a)redhat.com>
Date: Thu Jul 7 22:28:11 2016 +0200
Fix building with gcc6 / fix FTBFS
frogatto-1.3-narrowing-conversion-fixes.patch | 307 ++++++++++++++++++++++++++
frogatto.spec | 11 +-
2 files changed, 316 insertions(+), 2 deletions(-)
---
diff --git a/frogatto-1.3-narrowing-conversion-fixes.patch b/frogatto-1.3-narrowing-conversion-fixes.patch
new file mode 100644
index 0000000..37a5763
--- /dev/null
+++ b/frogatto-1.3-narrowing-conversion-fixes.patch
@@ -0,0 +1,307 @@
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/debug_console.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/debug_console.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/debug_console.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/debug_console.cpp 2016-07-07 21:20:06.074811963 +0200
+@@ -257,7 +257,7 @@ void draw()
+
+ int ypos = 100;
+ foreach(const graphics::texture& t, messages()) {
+- const SDL_Rect area = {0, ypos-2, t.width() + 10, t.height() + 5};
++ const SDL_Rect area = {0, (Sint16)(ypos-2), (Uint16)(t.width() + 10), (Uint16)(t.height() + 5)};
+ graphics::draw_rect(area, graphics::color_black(), 128);
+ graphics::blit_texture(t, 5, ypos);
+ ypos += t.height() + 5;
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/dialog.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/dialog.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/dialog.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/dialog.cpp 2016-07-07 21:24:13.269414306 +0200
+@@ -252,7 +252,7 @@ void dialog::handle_draw_children() cons
+ void dialog::handle_draw() const
+ {
+ if(clear_bg()) {
+- SDL_Rect rect = {x(),y(),width(),height()};
++ SDL_Rect rect = {(Sint16)x(),(Sint16)y(),(Uint16)width(),(Uint16)height()};
+ SDL_Color col = {0,0,0,0};
+ graphics::draw_rect(rect,col,clear_bg_);
+
+@@ -272,7 +272,7 @@ void dialog::handle_draw() const
+ }
+
+ if(background_framed_gui_element_.empty() == false) {
+- SDL_Rect rect = {x(),y(),width(),height()};
++ SDL_Rect rect = {(Sint16)x(),(Sint16)y(),(Uint16)width(),(Uint16)height()};
+ SDL_Color col = {0,0,0,0};
+ graphics::draw_rect(rect, col, 204);
+ const_framed_gui_element_ptr window(framed_gui_element::get(background_framed_gui_element_));
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/draw_scene.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/draw_scene.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/draw_scene.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/draw_scene.cpp 2016-07-07 21:28:06.645921487 +0200
+@@ -478,8 +478,8 @@ void render_scene(const level& lvl, scre
+ //first draw black over the sections of the screen which aren't to be drawn to
+ //GLshort varray1[8] = {0,0, pixels,0, pixels,fb->h, 0,fb->h};
+ //GLshort varray2[8] = {fb->w - pixels,0, fb->w,0, fb->w,fb->h, fb->w - pixels,fb->h};
+- GLshort varray1[8] = {0,0, pixels,0, pixels,preferences::actual_screen_height(), 0,preferences::actual_screen_height()};
+- GLshort varray2[8] = {preferences::actual_screen_width() - pixels,0, preferences::actual_screen_width(),0, preferences::actual_screen_width(),preferences::actual_screen_height(), preferences::actual_screen_width() - pixels,preferences::actual_screen_height()};
++ GLshort varray1[8] = {0,0, (GLshort)pixels,0, (GLshort)pixels,(GLshort)preferences::actual_screen_height(), 0,(GLshort)preferences::actual_screen_height()};
++ GLshort varray2[8] = {(GLshort)(preferences::actual_screen_width() - pixels),0, (GLshort)preferences::actual_screen_width(),0, (GLshort)preferences::actual_screen_width(),(GLshort)preferences::actual_screen_height(), (GLshort)(preferences::actual_screen_width() - pixels),(GLshort)preferences::actual_screen_height()};
+ glColor4ub(0, 0, 0, 255);
+ #if defined(USE_GLES2)
+ gles2::manager gles2_manager(gles2::get_simple_shader());
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/editor.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/editor.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/editor.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/editor.cpp 2016-07-07 21:30:06.240693848 +0200
+@@ -3063,7 +3063,7 @@ void editor::draw_gui() const
+ std::swap(y1,y2);
+ }
+
+- const SDL_Rect rect = {x1, y1, x2 - x1, y2 - y1};
++ const SDL_Rect rect = {(Sint16)x1, (Sint16)y1, (Uint16)(x2 - x1), (Uint16)(y2 - y1)};
+ const SDL_Color color = {255,255,255,255};
+ graphics::draw_hollow_rect(rect, color);
+ }
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/editor_module_properties_dialog.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/editor_module_properties_dialog.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/editor_module_properties_dialog.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/editor_module_properties_dialog.cpp 2016-07-07 21:31:48.608354954 +0200
+@@ -29,7 +29,7 @@ namespace editor_dialogs
+
+ namespace
+ {
+- const char cube_img[266] = {137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13,
++ const unsigned char cube_img[266] = {137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13,
+ 73, 72, 68, 82, 0, 0, 0, 16, 0, 0, 0, 16, 8, 2, 0, 0, 0, 144, 145,
+ 104, 54, 0, 0, 0, 7, 116, 73, 77, 69, 7, 220, 4, 23, 9, 56, 22, 125,
+ 252, 141, 55, 0, 0, 0, 23, 116, 69, 88, 116, 83, 111, 102, 116, 119,
+@@ -288,7 +288,7 @@ void editor_module_properties_dialog::cr
+ "\t\t}\n"
+ "\t],\n"
+ "}");
+- sys::write_file(mod_path + "images/cube.png", std::string(cube_img, 266));
++ sys::write_file(mod_path + "images/cube.png", std::string((const char *)cube_img, 266));
+ }
+ }
+ }
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/entity.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/entity.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/entity.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/entity.cpp 2016-07-07 21:33:06.095855380 +0200
+@@ -235,17 +235,17 @@ void entity::draw_debug_rects() const
+
+ const rect& body = solid_rect();
+ if(body.w() > 0 && body.h() > 0) {
+- const SDL_Rect rect = { body.x(), body.y(), body.w(), body.h() };
++ const SDL_Rect rect = { (Sint16)body.x(), (Sint16)body.y(), (Uint16)body.w(), (Uint16)body.h() };
+ graphics::draw_rect(rect, graphics::color_black(), 0xAA);
+ }
+
+ const rect& hit = hit_rect();
+ if(hit.w() > 0 && hit.h() > 0) {
+- const SDL_Rect rect = { hit.x(), hit.y(), hit.w(), hit.h() };
++ const SDL_Rect rect = { (Sint16)hit.x(), (Sint16)hit.y(), (Uint16)hit.w(), (Uint16)hit.h() };
+ graphics::draw_rect(rect, graphics::color_red(), 0xAA);
+ }
+
+- const SDL_Rect rect = { feet_x() - 1, feet_y() - 1, 3, 3 };
++ const SDL_Rect rect = { (Sint16)(feet_x() - 1), (Sint16)(feet_y() - 1), 3, 3 };
+ graphics::draw_rect(rect, graphics::color_white(), 0xFF);
+ }
+
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/font.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/font.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/font.cpp~ 2016-07-07 20:30:29.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/font.cpp 2016-07-07 21:34:28.505387593 +0200
+@@ -125,7 +125,7 @@ graphics::texture render_text_uncached(c
+ s = graphics::surface(SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, f->BitsPerPixel, f->Rmask, f->Gmask, f->Bmask, f->Amask));
+ int ypos = 0;
+ foreach(graphics::surface part, parts) {
+- SDL_Rect rect = {0, ypos, part->w, part->h};
++ SDL_Rect rect = {0, (Sint16)ypos, (Uint16)part->w, (Uint16)part->h};
+ SDL_SetAlpha(part.get(), 0, SDL_ALPHA_OPAQUE);
+ SDL_BlitSurface(part.get(), NULL, s.get(), &rect);
+ ypos += part->h;
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/formula_constants.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/formula_constants.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/formula_constants.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/formula_constants.cpp 2016-07-07 21:35:18.177708384 +0200
+@@ -114,7 +114,7 @@ constants_loader::constants_loader(varia
+
+ constants_loader::~constants_loader()
+ {
+- ASSERT_EQ(constants_stack.empty(), false);
++ //ASSERT_EQ(constants_stack.empty(), false);
+ constants_stack.pop_back();
+ //std::cerr << "REMOVE CONSTANTS_STACK\n";
+ }
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/geometry.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/geometry.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/geometry.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/geometry.cpp 2016-07-07 21:42:11.732379863 +0200
+@@ -67,7 +67,7 @@ std::string rect::to_string() const
+
+ SDL_Rect rect::sdl_rect() const
+ {
+- SDL_Rect r = {x(), y(), w(), h()};
++ SDL_Rect r = {(Sint16)x(), (Sint16)y(), (Uint16)w(), (Uint16)h()};
+ return r;
+ }
+
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/grid_widget.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/grid_widget.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/grid_widget.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/grid_widget.cpp 2016-07-07 21:43:47.997001997 +0200
+@@ -335,13 +335,13 @@ void grid::handle_draw() const
+ glTranslatef(x() & ~1, y() & ~1, 0.0);
+ if(show_background_) {
+ const SDL_Color bg = {50,50,50};
+- SDL_Rect rect = {0,0,width(),height()};
++ SDL_Rect rect = {0,0,(Uint16)width(),(Uint16)height()};
+ graphics::draw_rect(rect,bg);
+ }
+
+ if(allow_highlight_ && selected_row_ >= 0 && selected_row_ < nrows()) {
+ if(std::find(header_rows_.begin(), header_rows_.end(), selected_row_) == header_rows_.end()) {
+- SDL_Rect rect = {0,row_height_*selected_row_ - yscroll(),width(),row_height_};
++ SDL_Rect rect = {0, (Sint16)(row_height_*selected_row_ - yscroll()), (Uint16)width(), (Uint16)row_height_};
+ const SDL_Color col = {0xFF,0x00,0x00,0x00};
+ graphics::draw_rect(rect,col,128);
+ }
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/label.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/label.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/label.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/label.cpp 2016-07-07 21:45:27.621645846 +0200
+@@ -130,7 +130,7 @@ void label::recalculate_texture()
+ void label::handle_draw() const
+ {
+ if(draw_highlight_) {
+- SDL_Rect rect = {x(), y(), width(), height()};
++ SDL_Rect rect = {(Sint16)x(), (Sint16)y(), (Uint16)width(), (Uint16)height()};
+ graphics::draw_rect(rect, highlight_color_, highlight_color_.unused);
+ }
+ graphics::blit_texture(texture_, x(), y());
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level.cpp 2016-07-07 21:54:30.226152560 +0200
+@@ -1648,10 +1648,10 @@ void level::draw_layer_solid(int layer,
+
+ solid.first->color.set_as_current_color();
+ GLshort varray[] = {
+- area.x(), area.y(),
+- area.x() + area.w(), area.y(),
+- area.x(), area.y() + area.h(),
+- area.x() + area.w(), area.y() + area.h(),
++ (GLshort)area.x(), (GLshort)area.y(),
++ (GLshort)(area.x() + area.w()), (GLshort)area.y(),
++ (GLshort)area.x(), (GLshort)(area.y() + area.h()),
++ (GLshort)(area.x() + area.w()), (GLshort)(area.y() + area.h()),
+ };
+ #if defined(USE_GLES2)
+ gles2::manager gles2_manager(gles2::get_simple_shader());
+@@ -2146,7 +2146,7 @@ void level::calculate_lighting(int x, in
+
+ glClearColor(dark_color_.r()/255.0, dark_color_.g()/255.0, dark_color_.b()/255.0, dark_color_.a()/255.0);
+ glClear(GL_COLOR_BUFFER_BIT);
+- const unsigned char color[] = { dark_color_.r(), dark_color_.g(), dark_color_.b(), dark_color_.a() };
++ const unsigned char color[] = { (unsigned char)dark_color_.r(), (unsigned char)dark_color_.g(), (unsigned char)dark_color_.b(), (unsigned char)dark_color_.a() };
+ foreach(const light* lt, lights) {
+ lt->draw(screen_area, color);
+ }
+@@ -2160,7 +2160,7 @@ void level::calculate_lighting(int x, in
+
+ const GLfloat tcarray[] = { 0, 0, 0, 1, 1, 0, 1, 1 };
+ const GLfloat tcarray_rotated[] = { 0, 1, 1, 1, 0, 0, 1, 0 };
+- GLfloat varray[] = { 0, h, 0, 0, w, h, w, 0 };
++ GLfloat varray[] = { 0, (GLfloat)h, 0, 0, (GLfloat)w, (GLfloat)h, (GLfloat)w, 0 };
+ #if defined(USE_GLES2)
+ gles2::active_shader()->prepare_draw();
+ gles2::active_shader()->shader()->vertex_array(2, GL_FLOAT, GL_FALSE, 0, varray);
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level_object.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level_object.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level_object.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level_object.cpp 2016-07-07 21:56:53.634079369 +0200
+@@ -176,8 +176,8 @@ void create_compiled_tiles_image()
+ const int dst_x = (itor->second%64) * BaseTileSize;
+ const int dst_y = (itor->second/64) * BaseTileSize;
+
+- SDL_Rect src_rect = { src_x, src_y, BaseTileSize, BaseTileSize };
+- SDL_Rect dst_rect = { dst_x, dst_y, BaseTileSize, BaseTileSize };
++ SDL_Rect src_rect = { (Sint16)src_x, (Sint16)src_y, (Uint16)BaseTileSize, (Uint16)BaseTileSize };
++ SDL_Rect dst_rect = { (Sint16)dst_x, (Sint16)dst_y, (Uint16)BaseTileSize, (Uint16)BaseTileSize };
+
+ SDL_BlitSurface(src.get(), &src_rect, s.get(), &dst_rect);
+ }
+@@ -237,8 +237,8 @@ void create_compiled_tiles_image()
+ const int dst_x = (dst_tile%64) * BaseTileSize;
+ const int dst_y = (dst_tile/64) * BaseTileSize;
+
+- SDL_Rect src_rect = { src_x, src_y, BaseTileSize, BaseTileSize };
+- SDL_Rect dst_rect = { dst_x, dst_y, BaseTileSize, BaseTileSize };
++ SDL_Rect src_rect = { (Sint16)src_x, (Sint16)src_y, (Uint16)BaseTileSize, (Uint16)BaseTileSize };
++ SDL_Rect dst_rect = { (Sint16)dst_x, (Sint16)dst_y, (Uint16)BaseTileSize, (Uint16)BaseTileSize };
+
+ SDL_BlitSurface(s.get(), &src_rect, sheets[sheet].get(), &dst_rect);
+ }
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level_runner.cpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level_runner.cpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level_runner.cpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/level_runner.cpp 2016-07-07 21:59:55.372249312 +0200
+@@ -164,7 +164,7 @@ void transition_scene(level& lvl, screen
+ }
+
+ void fade_scene(const level& lvl, screen_position& screen_pos, float fade) {
+- const SDL_Rect r = {0, 0, graphics::screen_width(), graphics::screen_height()};
++ const SDL_Rect r = {0, 0, (Uint16)graphics::screen_width(), (Uint16)graphics::screen_height()};
+ const SDL_Color c = {0,0,0,0};
+ graphics::draw_rect(r, c, 128*fade);
+ }
+@@ -190,7 +190,7 @@ void iris_scene(const level& lvl, screen
+ const point light_pos = player->midpoint();
+
+ if(amount >= 0.99) {
+- SDL_Rect rect = {0, 0, graphics::screen_width(), graphics::screen_height()};
++ SDL_Rect rect = {0, 0, (Uint16)graphics::screen_width(), (Uint16)graphics::screen_height()};
+ graphics::draw_rect(rect, graphics::color_black());
+ } else {
+ draw_scene(lvl, screen_pos);
+@@ -202,27 +202,27 @@ void iris_scene(const level& lvl, screen
+ const int radius = radius_scale*radius_scale*500;
+ const int center_x = -screen_x + light_pos.x;
+ const int center_y = -screen_y + light_pos.y;
+- SDL_Rect center_rect = {center_x - radius, center_y - radius, radius*2, radius*2 };
++ SDL_Rect center_rect = {(Sint16)(center_x - radius), (Sint16)(center_y - radius), (Uint16)(radius*2), (Uint16)(radius*2) };
+
+ if(center_rect.y > 0) {
+- SDL_Rect top_rect = {0, 0, graphics::screen_width(), center_rect.y};
++ SDL_Rect top_rect = {0, 0, (Uint16)graphics::screen_width(), (Uint16)center_rect.y};
+ graphics::draw_rect(top_rect, graphics::color_black());
+ }
+
+ const int bot_rect_height = graphics::screen_height() - (center_rect.y + center_rect.h);
+ if(bot_rect_height > 0) {
+- SDL_Rect bot_rect = {0, graphics::screen_height() - bot_rect_height, graphics::screen_width(), bot_rect_height};
++ SDL_Rect bot_rect = {0, (Sint16)(graphics::screen_height() - bot_rect_height), (Uint16)graphics::screen_width(), (Uint16)bot_rect_height};
+ graphics::draw_rect(bot_rect, graphics::color_black());
+ }
+
+ if(center_rect.x > 0) {
+- SDL_Rect left_rect = {0, 0, center_rect.x, graphics::screen_height()};
++ SDL_Rect left_rect = {0, 0, (Uint16)center_rect.x, (Uint16)graphics::screen_height()};
+ graphics::draw_rect(left_rect, graphics::color_black());
+ }
+
+ const int right_rect_width = graphics::screen_width() - (center_rect.x + center_rect.w);
+ if(right_rect_width > 0) {
+- SDL_Rect right_rect = {graphics::screen_width() - right_rect_width, 0, right_rect_width, graphics::screen_height()};
++ SDL_Rect right_rect = {(Sint16)(graphics::screen_width() - right_rect_width), 0, (Uint16)right_rect_width, (Uint16)graphics::screen_height()};
+ graphics::draw_rect(right_rect, graphics::color_black());
+ }
+
+@@ -277,7 +277,7 @@ void show_end_game()
+ const int ypos = graphics::screen_height()/2 - t.height()/2;
+ for(int n = 0; n <= msg.size(); ++n) {
+ const GLfloat percent = GLfloat(n)/GLfloat(msg.size());
+- SDL_Rect rect = {0, 0, graphics::screen_width(), graphics::screen_height()};
++ SDL_Rect rect = {0, 0, (Uint16)graphics::screen_width(), (Uint16)graphics::screen_height()};
+ graphics::draw_rect(rect, graphics::color_black());
+ graphics::blit_texture(t, xpos, ypos, t.width()*percent, t.height(), 0.0,
+ 0.0, 0.0, percent, 1.0);
+diff -up frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/texture.hpp~ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/texture.hpp
+--- frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/texture.hpp~ 2013-08-21 22:34:37.000000000 +0200
++++ frogatto-a7ef3bfa0c32df4852bf057fab969c1a080edf4d/src/texture.hpp 2016-07-07 20:32:36.560100936 +0200
+@@ -58,7 +58,7 @@ public:
+ unsigned int get_id() const;
+ static void set_current_texture(unsigned int id);
+ void set_as_current_texture() const;
+- bool valid() const { return id_; }
++ bool valid() const { return id_ ? true : false; }
+
+ static texture get(const std::string& str, int options=0);
+ static texture get(const std::string& str, const std::string& algorithm);
diff --git a/frogatto.spec b/frogatto.spec
index caacef6..5de7998 100644
--- a/frogatto.spec
+++ b/frogatto.spec
@@ -3,7 +3,7 @@
Name: frogatto
Version: 1.3.3
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: An old-school 2D platform game
# Artwork and music not released under an open license
@@ -19,6 +19,9 @@ Patch0: %{name}-1.2-Makefile.patch
Patch1: %{name}-1.3-no-boost-mt.patch
# Use FreeFont instead of the Ubuntu Font Family
Patch2: %{name}-1.3-fonts.patch
+# Fix gcc6 build only fixes some of the narrowing conversion warnings, there
+# are too many, so we add -Wno-narrowing to the CXXFLAGS as a workaround
+Patch3: %{name}-1.3-narrowing-conversion-fixes.patch
BuildRequires: SDL-devel >= 1.2.7
BuildRequires: SDL_image-devel
@@ -51,6 +54,7 @@ in game, and work to unravel Big Bad Milgram's plot against the townsfolk!
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
# Fix locale file path
sed -i 's!"./locale/"!"%{_datadir}/locale/"!' src/i18n.cpp
@@ -58,7 +62,7 @@ sed -i 's!"./locale/"!"%{_datadir}/locale/"!' src/i18n.cpp
%build
make %{?_smp_mflags} \
- BASE_CXXFLAGS="$RPM_OPT_FLAGS -fno-inline-functions -fthreadsafe-statics"
+ BASE_CXXFLAGS="$RPM_OPT_FLAGS -fno-inline-functions -fthreadsafe-statics -Wno-narrowing"
%install
@@ -132,6 +136,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Thu Jul 7 2016 Hans de Goede <j.w.r.degoede(a)gmail.com> - 1.3.3-6
+- Fix building with gcc6 / fix FTBFS
+
* Mon Sep 01 2014 Sérgio Basto <sergio(a)serjux.com> - 1.3.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8 years, 4 months
[Frodo] Fix building with gcc6 / fix FTBFS
by jwrdegoede
commit 09ba3b65d9f39db4c136c1611f944ec14af60284
Author: Hans de Goede <hdegoede(a)redhat.com>
Date: Thu Jul 7 21:50:59 2016 +0200
Fix building with gcc6 / fix FTBFS
Frodo-4.1b-gcc6.patch | 12 ++++++++++++
Frodo.spec | 28 +++++++++++++---------------
2 files changed, 25 insertions(+), 15 deletions(-)
---
diff --git a/Frodo-4.1b-gcc6.patch b/Frodo-4.1b-gcc6.patch
new file mode 100644
index 0000000..63e8d4a
--- /dev/null
+++ b/Frodo-4.1b-gcc6.patch
@@ -0,0 +1,12 @@
+diff -up Frodo-4.1b/Src/SID.cpp~ Frodo-4.1b/Src/SID.cpp
+--- Frodo-4.1b/Src/SID.cpp~ 2002-01-02 22:18:59.000000000 +0100
++++ Frodo-4.1b/Src/SID.cpp 2016-07-07 21:47:41.030508033 +0200
+@@ -801,7 +801,7 @@ const uint8 DigitalRenderer::EGDRShift[2
+ };
+
+ const int16 DigitalRenderer::SampleTab[16] = {
+- 0x8000, 0x9111, 0xa222, 0xb333, 0xc444, 0xd555, 0xe666, 0xf777,
++ (int16)0x8000, (int16)0x9111, (int16)0xa222, (int16)0xb333, (int16)0xc444, (int16)0xd555, (int16)0xe666, (int16)0xf777,
+ 0x0888, 0x1999, 0x2aaa, 0x3bbb, 0x4ccc, 0x5ddd, 0x6eee, 0x7fff,
+ };
+
diff --git a/Frodo.spec b/Frodo.spec
index acfba44..455e96d 100644
--- a/Frodo.spec
+++ b/Frodo.spec
@@ -3,7 +3,7 @@
Summary: Commodore 64 emulator
Name: Frodo
Version: 4.1b
-Release: 10%{?dist}
+Release: 11%{?dist}
License: Distributable
Group: Applications/Emulators
URL: http://frodo.cebix.net/
@@ -16,7 +16,7 @@ Patch0: Frodo-4.1b-paths.patch
Patch1: Frodo-4.1b-opt.patch
Patch2: Frodo-4.1b-alpha.patch
Patch3: Frodo-4.1b-SAM.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch4: Frodo-4.1b-gcc6.patch
BuildRequires: autoconf
BuildRequires: SDL-devel >= 1.2.0
BuildRequires: libXt-devel
@@ -61,6 +61,7 @@ An enhanced Tcl/Tk preferences GUI for Frodo written by Gerard Decatrel
%patch1 -p1
%patch2 -p1
%patch3 -p0
+%patch4 -p1
%build
cd Src
@@ -69,7 +70,6 @@ autoconf
make %{?_smp_mflags} all FRODOHOME="\\\"%{_datadir}/Frodo/\\\""
%install
-rm -rf %{buildroot}
install -d 755 %{buildroot}%{_bindir}
install -d 755 %{buildroot}%{_datadir}/Frodo/{64prgs,64imgs}
install -m 755 Src/Frodo Src/FrodoPC Src/FrodoSC %{buildroot}%{_bindir}
@@ -94,23 +94,19 @@ desktop-file-install --vendor dribble \
--dir %{buildroot}%{_datadir}/applications \
%{SOURCE4}
-%clean
-rm -rf %{buildroot}
-
%post
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
%files
-%defattr(-,root,root)
%{_bindir}/Frodo
%{_bindir}/FrodoPC
%{_bindir}/FrodoSC
@@ -123,10 +119,12 @@ fi
%exclude %{_datadir}/Frodo/TkGui.tcl
%files gui
-%defattr(-,root,root)
%{_datadir}/Frodo/TkGui.tcl
%changelog
+* Thu Jul 7 2016 Hans de Goede <j.w.r.degoede(a)gmail.com> - 4.1b-11
+- Fix building with gcc6 / fix FTBFS
+
* Sun Aug 31 2014 Sérgio Basto <sergio(a)serjux.com> - 4.1b-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8 years, 4 months
[avidemux] More gcc 6 fixes.
by Richard Shaw
commit ef437c14c2c18d976fd48067de749b9ceacf3ca9
Author: Richard M. Shaw <hobbes1069(a)gmail.com>
Date: Thu Jul 7 14:45:10 2016 -0500
More gcc 6 fixes.
avidemux-2.6.12-gcc6.patch | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
---
diff --git a/avidemux-2.6.12-gcc6.patch b/avidemux-2.6.12-gcc6.patch
index 1488448..f3ea7f9 100644
--- a/avidemux-2.6.12-gcc6.patch
+++ b/avidemux-2.6.12-gcc6.patch
@@ -26,3 +26,22 @@
} \
}
+--- a/avidemux/qt4/ADM_jobs/src/ADM_jobControl.cpp
++++ b/avidemux/qt4/ADM_jobs/src/ADM_jobControl.cpp
+@@ -112,12 +112,12 @@ void jobWindow::refreshList(void)
+ QTableWidgetItem *endItem=fromText (end,i);
+ QTableWidgetItem *durItem=fromText (dur,i);
+
+-#define MX(x,y) case ADM_JOB_##x: status->setIcon(QIcon(":/jobs/"y));break;
++#define MX(x,y) case ADM_JOB_##x: status->setIcon(QIcon(":/jobs/" y));break;
+ switch(listOfJob[i].status)
+ {
+- MX(KO,"gtk-no.png");
+- MX(OK,"gtk-ok.png");
+- MX(RUNNING,"gtk-media-play.png");
++ MX(KO, "gtk-no.png");
++ MX(OK, "gtk-ok.png");
++ MX(RUNNING, "gtk-media-play.png");
+ default:
+ break;
+ }
8 years, 4 months