Skip to content

Commit 50339c8

Browse files
committed
rpm: Build with 'CFLAGS=%{optflags}' and '--debug' for 'valac'
Fix 'process_error' in FastCGI: using string format without proper parameter is an error.
1 parent 59cfe0b commit 50339c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

data/valum.spec.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ meta-data.
3434
%setup -q
3535

3636
%build
37-
./waf configure --prefix=%{_prefix}
37+
./waf configure --prefix=%{_prefix} CFLAGS="%{optflags}" VALAFLAGS='--debug'
3838
./waf build
3939

4040
%install

src/vsgi-fastcgi.vala

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace VSGI.FastCGI {
3333
private inline void process_error (global::FastCGI.Stream stream) throws IOError {
3434
var error = new GLib.Error (IOError.quark (),
3535
FileUtils.error_from_errno (stream.get_error ()), // TODO: fix and use IOError.from_errno
36+
"%s",
3637
strerror (stream.get_error ()));
3738

3839
// FastCGI error

0 commit comments

Comments
 (0)