git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #14275 from nico202/meterbridge

meterbridge: fix gcc-5 build (thanks to: http://ports.ubuntu.com/pool…

commit915a02ccaf1ec09f2258094ab3189e5116713e96 authorArseniy Seroka <jagajaga@users.noreply.github.com> dateMon 28 Mar 2016, 23:16 (11 years ago) parent96a1e39c7a26cc
2 files changed+32−1
pkgs/applications/audio/meterbridge/default.nix+1−1 pkgs/applications/audio/meterbridge/fix_build_with_gcc-5.patch+31
pkgs/applications/audio/meterbridge/default.nix+1−1
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 sha256 = "0jb6g3kbfyr5yf8mvblnciva2bmc01ijpr51m21r27rqmgi8gj5k";
1111 };
1212
13− patches = [ ./buf_rect.patch ];
13+ patches = [ ./buf_rect.patch ./fix_build_with_gcc-5.patch];
1414
1515 buildInputs =
1616 [ pkgconfig SDL SDL_image libjack2
pkgs/applications/audio/meterbridge/fix_build_with_gcc-5.patchnew file+31
@@ -0,0 +1,31 @@
1+Description: Fix build with gcc-5
2+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778003
3+Author: Jaromír Mikeš <mira.mikes@seznam.cz>
4+Forwarded: No
5+
6+Index: meterbridge/src/linedraw.h
7+===================================================================
8+--- meterbridge.orig/src/linedraw.h
9++++ meterbridge/src/linedraw.h
10+@@ -1,7 +1,7 @@
11+ #ifndef LINEDRAW_H
12+ #define LINEDRAW_H
13+
14+-inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col);
15++void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col);
16+
17+ void draw_ptr(SDL_Surface *surface, int x1, int y1, int x2, int y2, Uint32 nedle_col, Uint32 aa_col);
18+
19+Index: meterbridge/src/linedraw.c
20+===================================================================
21+--- meterbridge.orig/src/linedraw.c
22++++ meterbridge/src/linedraw.c
23+@@ -4,7 +4,7 @@
24+ /* set a pixel on an SDL_Surface, assumes that the surface is 32bit RGBA,
25+ * ordered ABGR (I think), probably wont work on bigendian systems */
26+
27+-inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col)
28++void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col)
29+ {
30+ Uint32 *bufp = (Uint32 *)surface->pixels + y*surface->pitch/4 + x;
31+ *bufp = col;