Browse Source

upgrading package: libwebsockets 2.4.2 -> 3.0.0

master
parent
commit
7315372733
  1. 29
      libwebsockets/libwebsockets.patch
  2. 4
      libwebsockets/libwebsockets.spec

29
libwebsockets/libwebsockets.patch

@ -1,19 +1,19 @@
Index: CMakeLists.txt Index: CMakeLists.txt
--- CMakeLists.txt.orig 2017-10-16 14:09:58.000000000 +0200 --- CMakeLists.txt.orig 2018-05-07 05:27:50.000000000 +0200
+++ CMakeLists.txt 2017-10-16 20:07:41.985243000 +0200 +++ CMakeLists.txt 2018-05-07 07:11:14.658929000 +0200
@@ -842,9 +842,9 @@ @@ -1050,9 +1050,9 @@
set(VISIBILITY_FLAG -fvisibility=hidden)
endif() endif()
if ((UNIX OR LWS_WITH_ESP8266) AND NOT LWS_WITH_ESP32)
- set(CMAKE_C_FLAGS "-Wall -Werror ${VISIBILITY_FLAG} -Wundef ${CMAKE_C_FLAGS}" ) if (UNIX AND NOT LWS_WITH_ESP32)
+ set(CMAKE_C_FLAGS "${VISIBILITY_FLAG} ${CMAKE_C_FLAGS}" ) - set(CMAKE_C_FLAGS "-Wall -Wsign-compare -Wignored-qualifiers -Wtype-limits -Wuninitialized -Werror ${VISIBILITY_FLAG} -Wundef ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
+ set(CMAKE_C_FLAGS "${VISIBILITY_FLAG} ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
else() else()
- set(CMAKE_C_FLAGS "-Wall ${VISIBILITY_FLAG} ${CMAKE_C_FLAGS}" ) - set(CMAKE_C_FLAGS "-Wall -Wsign-compare -Wignored-qualifiers -Wtype-limits -Wuninitialized -Werror ${VISIBILITY_FLAG} ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
+ set(CMAKE_C_FLAGS "${VISIBILITY_FLAG} ${CMAKE_C_FLAGS}" ) + set(CMAKE_C_FLAGS "${VISIBILITY_FLAG} ${GCOV_FLAGS} ${CMAKE_C_FLAGS}" )
endif() endif()
endif () endif ()
@@ -1718,7 +1718,7 @@ @@ -1916,7 +1916,7 @@
Description: Websockets server and client library Description: Websockets server and client library
Version: ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH} Version: ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}
@ -22,11 +22,12 @@ Index: CMakeLists.txt
Cflags: -I\${includedir}" Cflags: -I\${includedir}"
) )
@@ -1761,7 +1761,6 @@ @@ -1962,8 +1962,6 @@
# Export targets (This is used for other CMake projects to easily find the libraries and include files).
export(TARGETS ${LWS_LIBRARIES}
FILE "${PROJECT_BINARY_DIR}/LibwebsocketsTargets.cmake") FILE "${PROJECT_BINARY_DIR}/LibwebsocketsTargets.cmake")
-export(PACKAGE libwebsockets) endif()
-export(PACKAGE libwebsockets)
-
# Generate the config file for the build-tree. # Generate the config file for the build-tree.
set(LWS__INCLUDE_DIRS set(LWS__INCLUDE_DIRS
"${PROJECT_SOURCE_DIR}/lib"

4
libwebsockets/libwebsockets.spec

@ -31,8 +31,8 @@ Distribution: OpenPKG Community
Class: EVAL Class: EVAL
Group: Networking Group: Networking
License: LGPL License: LGPL
Version: 2.4.2 Version: 3.0.0
Release: 20180308 Release: 20180507
# list of sources # list of sources
Source0: https://github.com/warmcat/libwebsockets/archive/v%{version}.tar.gz Source0: https://github.com/warmcat/libwebsockets/archive/v%{version}.tar.gz

Loading…
Cancel
Save