- Ensure pkgconfig symbols are provided - Remove redundant tags/sections per specfile guideline suggestions - Parallel building using %_smp_mflags - Make pkgconfig provides available - Add patch to work around compilation problems on SLES11SP1 - Update to version 0.5.2 * Increased window size x10. * Fixed SSHv1. * Fixed bugged lists. * Fixed use-after-free + inconsistent callbacks call in poll. * Fixed scp documentation. * Fixed possible infinite loop in channel_read(). * Fixed handling of short reads of sftp_async_read(). * Fixed handling request service timeout in blocking mode. * Fixed ssh_auth_list() documentation. * Fixed incorrect return values in ssh_channel_write(). * Fixed an infinite loop in the termination callback. * Fixed handling of SSH_AGAIN in channel_open(). * Fixed "status -5 inflating zlib packet" OBS-URL: https://build.opensuse.org/request/show/103121 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libssh?expand=0&rev=22
35 lines
1.5 KiB
Diff
35 lines
1.5 KiB
Diff
From: Jan Engelhardt <jengelh@medozas.de>
|
|
Date: 2012-02-06 00:00:21.707276910 +0100
|
|
|
|
The header file /usr/include/asm/sigcontext.h uses an unnamed
|
|
aggregate (inside struct _fpstate), which is not permitted by ISO
|
|
C99. gcc's -pedantic-errors flag causes this to be flagged.
|
|
|
|
gcc has an exception that system header files are exempt from
|
|
pedantic-error reporting, but somehow this fails to work in SLES 11
|
|
SP 1 and only SP1, even though
|
|
|
|
- both SP0 and SP1 have gcc-4.3.4
|
|
- the unnamed aggregate is in both SP0 and SP1
|
|
|
|
Just like -Werror is a common nuisance, rip out -pedantic-errors
|
|
occurences as well.
|
|
|
|
---
|
|
cmake/Modules/DefineCompilerFlags.cmake | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: libssh-0.5.1/cmake/Modules/DefineCompilerFlags.cmake
|
|
===================================================================
|
|
--- libssh-0.5.1.orig/cmake/Modules/DefineCompilerFlags.cmake
|
|
+++ libssh-0.5.1/cmake/Modules/DefineCompilerFlags.cmake
|
|
@@ -9,7 +9,7 @@ if (UNIX AND NOT WIN32)
|
|
#
|
|
if (${CMAKE_C_COMPILER_ID} MATCHES GNU)
|
|
# add -Wconversion ?
|
|
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -pedantic-errors")
|
|
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security")
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute")
|