View | Details | Raw Unified | Return to bug 264940
Collapse All | Expand All

(-)b/misc/raspberrypi-userland/files/patch-host__applications_android_apps_vidtex_CMakeLists.txt (+10 lines)
Added Link Here
1
--- host_applications/android/apps/vidtex/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ host_applications/android/apps/vidtex/CMakeLists.txt
3
@@ -1,6 +1,6 @@
4
 cmake_minimum_required(VERSION 2.8)
5
 
6
-SET(COMPILE_DEFINITIONS -Werror -Wall)
7
+SET(COMPILE_DEFINITIONS -Wall)
8
 include_directories(${PROJECT_SOURCE_DIR}/host_applications/linux/libs/bcm_host/include)
9
 
10
 set (VIDTEX_SOURCES
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_dtmerge_CMakeLists.txt (+11 lines)
Added Link Here
1
--- host_applications/linux/apps/dtmerge/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ host_applications/linux/apps/dtmerge/CMakeLists.txt
3
@@ -4,7 +4,7 @@ get_filename_component (VIDEOCORE_ROOT ../../../.. ABS
4
 include (${VIDEOCORE_ROOT}/makefiles/cmake/global_settings.cmake)
5
 
6
 if (NOT WIN32)
7
-   add_definitions(-Wall -Werror)
8
+   add_definitions(-Wall)
9
 endif ()
10
 
11
 include_directories (
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_dtoverlay_CMakeLists.txt (-2 / +11 lines)
Lines 1-6 Link Here
1
--- host_applications/linux/apps/dtoverlay/CMakeLists.txt.orig	2016-10-30 UTC
1
--- host_applications/linux/apps/dtoverlay/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ host_applications/linux/apps/dtoverlay/CMakeLists.txt
2
+++ host_applications/linux/apps/dtoverlay/CMakeLists.txt
3
@@ -22,12 +22,4 @@ add_custom_command(TARGET dtoverlay POST
3
@@ -4,7 +4,7 @@ get_filename_component (VIDEOCORE_ROOT ../../../.. ABS
4
 include (${VIDEOCORE_ROOT}/makefiles/cmake/global_settings.cmake)
5
 
6
 if (NOT WIN32)
7
-   add_definitions(-Wall -Werror)
8
+   add_definitions(-Wall)
9
 endif ()
10
 
11
 include_directories (
12
@@ -22,12 +22,4 @@ add_custom_command(TARGET dtoverlay POST_BUILD COMMAND
4
 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dtparam DESTINATION bin)
13
 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/dtparam DESTINATION bin)
5
 
14
 
6
 set(DTOVERLAY_SCRIPTS dtoverlay-pre dtoverlay-post)
15
 set(DTOVERLAY_SCRIPTS dtoverlay-pre dtoverlay-post)
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_gencmd_CMakeLists.txt (+11 lines)
Added Link Here
1
--- host_applications/linux/apps/gencmd/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ host_applications/linux/apps/gencmd/CMakeLists.txt
3
@@ -4,7 +4,7 @@ if (WIN32)
4
    set(VCOS_PLATFORM win32)
5
 else ()
6
    set(VCOS_PLATFORM pthreads)
7
-   add_definitions(-Wall -Werror)
8
+   add_definitions(-Wall)
9
 endif ()
10
 
11
 include_directories( ../../../.. 
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_hello__pi_Makefile.include (-3 / +3 lines)
Lines 1-8 Link Here
1
--- host_applications/linux/apps/hello_pi/Makefile.include.orig	2015-03-10 14:32:31 UTC
1
--- host_applications/linux/apps/hello_pi/Makefile.include.orig	2016-10-24 19:59:54 UTC
2
+++ host_applications/linux/apps/hello_pi/Makefile.include
2
+++ host_applications/linux/apps/hello_pi/Makefile.include
3
@@ -3,7 +3,7 @@ CFLAGS+=-DSTANDALONE -D__STDC_CONSTANT_M
3
@@ -3,7 +3,7 @@ CFLAGS+=-DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC
4
 
4
 
5
 LDFLAGS+=-L$(SDKSTAGE)/opt/vc/lib/ -lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt -lm -L../libs/ilclient -L../libs/vgfont
5
 LDFLAGS+=-L$(SDKSTAGE)/opt/vc/lib/ -lbrcmGLESv2 -lbrcmEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt -lm -L$(SDKSTAGE)/opt/vc/src/hello_pi/libs/ilclient -L$(SDKSTAGE)/opt/vc/src/hello_pi/libs/vgfont
6
 
6
 
7
-INCLUDES+=-I$(SDKSTAGE)/opt/vc/include/ -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -I$(SDKSTAGE)/opt/vc/include/interface/vmcs_host/linux -I./ -I$(SDKSTAGE)/opt/vc/src/hello_pi/libs/ilclient -I$(SDKSTAGE)/opt/vc/src/hello_pi/libs/vgfont
7
-INCLUDES+=-I$(SDKSTAGE)/opt/vc/include/ -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -I$(SDKSTAGE)/opt/vc/include/interface/vmcs_host/linux -I./ -I$(SDKSTAGE)/opt/vc/src/hello_pi/libs/ilclient -I$(SDKSTAGE)/opt/vc/src/hello_pi/libs/vgfont
8
+INCLUDES+=-I$(SDKSTAGE)/opt/vc/include/ -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -I$(SDKSTAGE)/opt/vc/include/interface/vmcs_host/linux -I./ -I$(SDKSTAGE)/opt/vc/src/hello_pi/libs/ilclient -I$(SDKSTAGE)/opt/vc/src/hello_pi/libs/vgfont -ILOCALBASE/include/freetype2
8
+INCLUDES+=-I$(SDKSTAGE)/opt/vc/include/ -I$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -I$(SDKSTAGE)/opt/vc/include/interface/vmcs_host/linux -I./ -I$(SDKSTAGE)/opt/vc/src/hello_pi/libs/ilclient -I$(SDKSTAGE)/opt/vc/src/hello_pi/libs/vgfont -ILOCALBASE/include/freetype2
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_raspicam_CMakeLists.txt (+11 lines)
Added Link Here
1
--- host_applications/linux/apps/raspicam/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ host_applications/linux/apps/raspicam/CMakeLists.txt
3
@@ -1,7 +1,7 @@
4
 
5
 # raspistill/raspivid/raspiyuv
6
 
7
-SET(COMPILE_DEFINITIONS -Werror)
8
+SET(COMPILE_DEFINITIONS)
9
 
10
 include_directories(${PROJECT_SOURCE_DIR}/host_applications/linux/libs/bcm_host/include)
11
 include_directories(${PROJECT_SOURCE_DIR}/host_applications/linux/apps/raspicam/)
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_raspicam_RaspiStill.c (+31 lines)
Added Link Here
1
--- host_applications/linux/apps/raspicam/RaspiStill.c.orig	2022-06-28 11:46:30 UTC
2
+++ host_applications/linux/apps/raspicam/RaspiStill.c
3
@@ -46,9 +46,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
4
  * We use the RaspiCamControl code to handle the specific camera settings.
5
  */
6
 
7
-// We use some GNU extensions (asprintf, basename)
8
-#define _GNU_SOURCE
9
-
10
+#include <libgen.h>
11
 #include <stdio.h>
12
 #include <stdlib.h>
13
 #include <ctype.h>
14
@@ -445,7 +443,7 @@ static void dump_status(RASPISTILL_STATE *state)
15
  * @param state Pointer to state structure to assign any discovered parameters to
16
  * @return non-0 if failed for some reason, 0 otherwise
17
  */
18
-static int parse_cmdline(int argc, const char **argv, RASPISTILL_STATE *state)
19
+static int parse_cmdline(int argc, char **argv, RASPISTILL_STATE *state)
20
 {
21
    // Parse the command line arguments.
22
    // We are looking for --<something> or -<abbreviation of something>
23
@@ -1756,7 +1754,7 @@ static void rename_file(RASPISTILL_STATE *state, FILE 
24
 /**
25
  * main
26
  */
27
-int main(int argc, const char **argv)
28
+int main(int argc, char **argv)
29
 {
30
    // Our main data storage vessel..
31
    RASPISTILL_STATE state;
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_raspicam_RaspiStillYUV.c (+31 lines)
Added Link Here
1
--- host_applications/linux/apps/raspicam/RaspiStillYUV.c.orig	2022-06-28 11:40:06 UTC
2
+++ host_applications/linux/apps/raspicam/RaspiStillYUV.c
3
@@ -46,9 +46,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
4
  * We use the RaspiPreview code to handle the generic preview
5
  */
6
 
7
-// We use some GNU extensions (basename)
8
-#define _GNU_SOURCE
9
-
10
+#include <libgen.h>
11
 #include <stdio.h>
12
 #include <stdlib.h>
13
 #include <string.h>
14
@@ -287,7 +285,7 @@ static void dump_status(RASPISTILLYUV_STATE *state)
15
  * @param state Pointer to state structure to assign any discovered parameters to
16
  * @return non-0 if failed for some reason, 0 otherwise
17
  */
18
-static int parse_cmdline(int argc, const char **argv, RASPISTILLYUV_STATE *state)
19
+static int parse_cmdline(int argc, char **argv, RASPISTILLYUV_STATE *state)
20
 {
21
    // Parse the command line arguments.
22
    // We are looking for --<something> or -<abbreviation of something>
23
@@ -1186,7 +1184,7 @@ static void rename_file(RASPISTILLYUV_STATE *state, FI
24
 /**
25
  * main
26
  */
27
-int main(int argc, const char **argv)
28
+int main(int argc, char **argv)
29
 {
30
    // Our main data storage vessel..
31
    RASPISTILLYUV_STATE state;
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_raspicam_RaspiVid.c (+31 lines)
Added Link Here
1
--- host_applications/linux/apps/raspicam/RaspiVid.c.orig	2022-06-28 11:41:40 UTC
2
+++ host_applications/linux/apps/raspicam/RaspiVid.c
3
@@ -47,9 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
4
  * We use the RaspiPreview code to handle the (generic) preview window
5
  */
6
 
7
-// We use some GNU extensions (basename)
8
-#define _GNU_SOURCE
9
-
10
+#include <libgen.h>
11
 #include <stdio.h>
12
 #include <stdlib.h>
13
 #include <string.h>
14
@@ -449,7 +447,7 @@ static void dump_status(RASPIVID_STATE *state)
15
  * @param state Pointer to state structure to assign any discovered parameters to
16
  * @return Non-0 if failed for some reason, 0 otherwise
17
  */
18
-static int parse_cmdline(int argc, const char **argv, RASPIVID_STATE *state)
19
+static int parse_cmdline(int argc, char **argv, RASPIVID_STATE *state)
20
 {
21
    // Parse the command line arguments.
22
    // We are looking for --<something> or -<abbreviation of something>
23
@@ -2034,7 +2032,7 @@ static int wait_for_next_change(RASPIVID_STATE *state)
24
 /**
25
  * main
26
  */
27
-int main(int argc, const char **argv)
28
+int main(int argc, char **argv)
29
 {
30
    // Our main data storage vessel..
31
    RASPIVID_STATE state;
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_raspicam_RaspiVidYUV.c (+31 lines)
Added Link Here
1
--- host_applications/linux/apps/raspicam/RaspiVidYUV.c.orig	2022-06-28 11:42:24 UTC
2
+++ host_applications/linux/apps/raspicam/RaspiVidYUV.c
3
@@ -49,9 +49,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
4
  * We use the RaspiPreview code to handle the generic preview
5
 */
6
 
7
-// We use some GNU extensions (basename)
8
-#define _GNU_SOURCE
9
-
10
+#include <libgen.h>
11
 #include <stdio.h>
12
 #include <stdlib.h>
13
 #include <string.h>
14
@@ -325,7 +323,7 @@ static void dump_status(RASPIVIDYUV_STATE *state)
15
  * @param state Pointer to state structure to assign any discovered parameters to
16
  * @return Non-0 if failed for some reason, 0 otherwise
17
  */
18
-static int parse_cmdline(int argc, const char **argv, RASPIVIDYUV_STATE *state)
19
+static int parse_cmdline(int argc, char **argv, RASPIVIDYUV_STATE *state)
20
 {
21
    // Parse the command line arguments.
22
    // We are looking for --<something> or -<abbreviation of something>
23
@@ -1210,7 +1208,7 @@ static int wait_for_next_change(RASPIVIDYUV_STATE *sta
24
 /**
25
  * main
26
  */
27
-int main(int argc, const char **argv)
28
+int main(int argc, char **argv)
29
 {
30
    // Our main data storage vessel..
31
    RASPIVIDYUV_STATE state;
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_smem_CMakeLists.txt (+11 lines)
Added Link Here
1
--- host_applications/linux/apps/smem/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ host_applications/linux/apps/smem/CMakeLists.txt
3
@@ -4,7 +4,7 @@ get_filename_component (VIDEOCORE_ROOT ../../../.. ABS
4
 include (${VIDEOCORE_ROOT}/makefiles/cmake/global_settings.cmake)
5
 
6
 if (NOT WIN32)
7
-   add_definitions(-Wall -Werror)
8
+   add_definitions(-Wall)
9
 endif ()
10
 
11
 include_directories (
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_libs_bcm__host_CMakeLists.txt (+11 lines)
Added Link Here
1
--- host_applications/linux/libs/bcm_host/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ host_applications/linux/libs/bcm_host/CMakeLists.txt
3
@@ -3,7 +3,7 @@ if (WIN32)
4
    set(VCOS_PLATFORM win32)
5
 else ()
6
    set(VCOS_PLATFORM pthreads)
7
-   add_definitions(-Wall -Werror)
8
+   add_definitions(-Wall)
9
 endif ()
10
 
11
 include_directories( ../../../.. 
(-)b/misc/raspberrypi-userland/files/patch-host__applications_linux_libs_sm_CMakeLists.txt (+11 lines)
Added Link Here
1
--- host_applications/linux/libs/sm/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ host_applications/linux/libs/sm/CMakeLists.txt
3
@@ -3,7 +3,7 @@ if (WIN32)
4
    set(VCOS_PLATFORM win32)
5
 else ()
6
    set(VCOS_PLATFORM pthreads)
7
-   add_definitions(-Wall -Werror -Wno-error=parentheses-equality -Wno-error=enum-conversion)
8
+   add_definitions(-Wall -Wno-error=parentheses-equality -Wno-error=enum-conversion)
9
 endif ()
10
 
11
 include_directories( ../../../..
(-)b/misc/raspberrypi-userland/files/patch-interface_mmal_CMakeLists.txt (+11 lines)
Added Link Here
1
--- interface/mmal/CMakeLists.txt.orig	2022-06-28 04:33:47 UTC
2
+++ interface/mmal/CMakeLists.txt
3
@@ -3,7 +3,7 @@ if (NOT DEFINED LIBRARY_TYPE)
4
 set(LIBRARY_TYPE SHARED)
5
 endif (NOT DEFINED LIBRARY_TYPE)
6
 
7
-add_definitions(-Wall -Werror -Wno-error=enum-conversion)
8
+add_definitions(-Wall)
9
 
10
 if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
11
     message(STATUS "${CMAKE_CXX_COMPILER_VERSION}")
(-)b/misc/raspberrypi-userland/files/patch-interface_vcos_CMakeLists.txt (+11 lines)
Added Link Here
1
--- interface/vcos/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ interface/vcos/CMakeLists.txt
3
@@ -43,7 +43,7 @@ foreach (header ${HEADERS})
4
 endforeach ()
5
 
6
 if (CMAKE_COMPILER_IS_GNUCC)
7
-   add_definitions (-ggdb -Werror -Wall)
8
+   add_definitions (-ggdb -Wall)
9
 endif ()
10
 
11
 if (CMAKE_COMPILER_2005)
(-)b/misc/raspberrypi-userland/files/patch-interface_vcos_pthreads_CMakeLists.txt (+11 lines)
Added Link Here
1
--- interface/vcos/pthreads/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
2
+++ interface/vcos/pthreads/CMakeLists.txt
3
@@ -1,7 +1,7 @@
4
 # MSVC5 does not fully support C99, enabling declaration-after-statement
5
 # warnings allows a common MSVC5 build error to be detected in Linux builds.
6
 if (CMAKE_COMPILER_IS_GNUCC)
7
-   set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wdeclaration-after-statement")
8
+   set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wdeclaration-after-statement")
9
    add_definitions (-D_GNU_SOURCE)
10
 endif ()
11
 
(-)b/misc/raspberrypi-userland/files/patch-interface_vmcs__host_linux_vcfiled_CMakeLists.txt (-2 / +9 lines)
Lines 1-8 Link Here
1
Don't install Linux specific init script.
1
Don't install Linux specific init script.
2
2
3
--- interface/vmcs_host/linux/vcfiled/CMakeLists.txt.orig	2015-02-13 18:39:19 UTC
3
--- interface/vmcs_host/linux/vcfiled/CMakeLists.txt.orig	2016-10-24 19:59:54 UTC
4
+++ interface/vmcs_host/linux/vcfiled/CMakeLists.txt
4
+++ interface/vmcs_host/linux/vcfiled/CMakeLists.txt
5
@@ -20,8 +20,8 @@ install(TARGETS vcfiled 
5
@@ -1,6 +1,3 @@
6
-
7
-add_definitions(-Werror)
8
-
9
 # vcfiled - serves files to videocore. used for media handlers from
10
 # OpenMAX/IL and loading VLLs.
11
 add_executable(vcfiled vcfiled.c)
12
@@ -20,8 +17,8 @@ install(TARGETS vcfiled 
6
 configure_file (etc/init.d/vcfiled ${PROJECT_BINARY_DIR}/etc/init.d/vcfiled)
13
 configure_file (etc/init.d/vcfiled ${PROJECT_BINARY_DIR}/etc/init.d/vcfiled)
7
 
14
 
8
 # script to start up vcfiled at start of day
15
 # script to start up vcfiled at start of day
(-)b/misc/raspberrypi-userland/files/patch-makefiles_cmake_vmcs.cmake (-3 / +2 lines)
Lines 1-6 Link Here
1
--- makefiles/cmake/vmcs.cmake.orig	2015-01-05 16:36:28 UTC
1
--- makefiles/cmake/vmcs.cmake.orig	2016-10-24 19:59:54 UTC
2
+++ makefiles/cmake/vmcs.cmake
2
+++ makefiles/cmake/vmcs.cmake
3
@@ -55,10 +55,6 @@
3
@@ -57,10 +57,6 @@ configure_file (
4
 #        DESTINATION ${VMCS_INSTALL_PREFIX}/sbin
4
 #        DESTINATION ${VMCS_INSTALL_PREFIX}/sbin
5
 #        PERMISSIONS OWNER_WRITE WORLD_READ)
5
 #        PERMISSIONS OWNER_WRITE WORLD_READ)
6
 
6
 
7
- 

Return to bug 264940