From 3a3d01f209030915d9dc54b2b9380d2a3e73c4fc Mon Sep 17 00:00:00 2001 From: Lyb9 <1576988680@qq.com> Date: Mon, 9 Aug 2021 11:46:35 +0800 Subject: [PATCH] =?UTF-8?q?add=20component=20directory:=20pixman=E3=80=81g?= =?UTF-8?q?enann=E3=80=81minmea=E3=80=81qrencode=E3=80=81quirc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/media/pixman/origin.patch | 388 +++++++++++++++++++++++++ components/media/pixman/patch.sha256 | 1 + components/media/pixman/src.sha256 | 1 + components/media/upnp/origin.patch | 2 +- components/media/upnp/patch.sha256 | 2 +- components/utility/genann/origin.patch | 39 +++ components/utility/genann/patch.sha256 | 1 + components/utility/genann/src.sha256 | 1 + components/utility/minmea/src.sha256 | 1 + components/utility/qrencode/src.sha256 | 1 + components/utility/quirc/.gitkeep | 0 components/utility/quirc/src.sha256 | 1 + 12 files changed, 436 insertions(+), 2 deletions(-) create mode 100644 components/media/pixman/origin.patch create mode 100644 components/media/pixman/patch.sha256 create mode 100644 components/media/pixman/src.sha256 create mode 100644 components/utility/genann/origin.patch create mode 100644 components/utility/genann/patch.sha256 create mode 100644 components/utility/genann/src.sha256 create mode 100644 components/utility/minmea/src.sha256 create mode 100644 components/utility/qrencode/src.sha256 create mode 100644 components/utility/quirc/.gitkeep create mode 100644 components/utility/quirc/src.sha256 diff --git a/components/media/pixman/origin.patch b/components/media/pixman/origin.patch new file mode 100644 index 0000000..ceb8f57 --- /dev/null +++ b/components/media/pixman/origin.patch @@ -0,0 +1,388 @@ +diff --git a/pixman-0.40.0/config.h b/pixman-0.40.0/config.h +new file mode 100644 +index 0000000..9feff94 +--- /dev/null ++++ b/pixman-0.40.0/config.h +@@ -0,0 +1,188 @@ ++/* config.h. Generated from config.h.in by configure. */ ++/* config.h.in. Generated from configure.ac by autoheader. */ ++ ++/* Define if building universal (internal helper macro) */ ++/* #undef AC_APPLE_UNIVERSAL_BUILD */ ++ ++/* Whether we have alarm() */ ++#define HAVE_ALARM 1 ++ ++/* Whether the compiler supports __builtin_clz */ ++#define HAVE_BUILTIN_CLZ /**/ ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_DLFCN_H 1 ++ ++/* Whether we have FE_DIVBYZERO */ ++#define HAVE_FEDIVBYZERO 0 ++ ++/* Whether we have feenableexcept() */ ++#define HAVE_FEENABLEEXCEPT 0 ++ ++/* Define to 1 if we have */ ++#define HAVE_FENV_H 0 ++ ++/* Whether the tool chain supports __float128 */ ++#define HAVE_FLOAT128 /**/ ++ ++/* Whether the compiler supports GCC vector extensions */ ++#define HAVE_GCC_VECTOR_EXTENSIONS /**/ ++ ++/* Define to 1 if you have the `getisax' function. */ ++/* #undef HAVE_GETISAX */ ++ ++/* Whether we have getpagesize() */ ++#define HAVE_GETPAGESIZE 1 ++ ++/* Whether we have gettimeofday() */ ++#define HAVE_GETTIMEOFDAY 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_INTTYPES_H 1 ++ ++/* Define to 1 if you have the `pixman-1' library (-lpixman-1). */ ++/* #undef HAVE_LIBPIXMAN_1 */ ++ ++/* Whether we have libpng */ ++#define HAVE_LIBPNG 0 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_MEMORY_H 1 ++ ++/* Whether we have mmap() */ ++#define HAVE_MMAP 1 ++ ++/* Whether we have mprotect() */ ++#define HAVE_MPROTECT 1 ++ ++/* Whether we have posix_memalign() */ ++#define HAVE_POSIX_MEMALIGN 1 ++ ++/* Whether pthreads is supported */ ++#define HAVE_PTHREADS /**/ ++ ++/* Whether we have sigaction() */ ++#define HAVE_SIGACTION 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDINT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STDLIB_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRINGS_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_STRING_H 1 ++ ++/* Define to 1 if we have */ ++#define HAVE_SYS_MMAN_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_STAT_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_SYS_TYPES_H 1 ++ ++/* Define to 1 if you have the header file. */ ++#define HAVE_UNISTD_H 1 ++ ++/* Define to the sub-directory where libtool stores uninstalled libraries. */ ++#define LT_OBJDIR ".libs/" ++ ++/* Name of package */ ++#define PACKAGE "pixman" ++ ++/* Define to the address where bug reports for this package should be sent. */ ++#define PACKAGE_BUGREPORT "pixman@lists.freedesktop.org" ++ ++/* Define to the full name of this package. */ ++#define PACKAGE_NAME "pixman" ++ ++/* Define to the full name and version of this package. */ ++#define PACKAGE_STRING "pixman 0.40.0" ++ ++/* Define to the one symbol short name of this package. */ ++#define PACKAGE_TARNAME "pixman" ++ ++/* Define to the home page for this package. */ ++#define PACKAGE_URL "" ++ ++/* Define to the version of this package. */ ++#define PACKAGE_VERSION "0.40.0" ++ ++/* enable output that can be piped to gnuplot */ ++/* #undef PIXMAN_GNUPLOT */ ++ ++/* enable TIMER_BEGIN/TIMER_END macros */ ++/* #undef PIXMAN_TIMERS */ ++ ++/* The size of `long', as computed by sizeof. */ ++#define SIZEOF_LONG 8 ++ ++/* Define to 1 if you have the ANSI C header files. */ ++#define STDC_HEADERS 1 ++ ++/* The compiler supported TLS storage class */ ++#define TLS __thread ++ ++/* Whether the tool chain supports __attribute__((constructor)) */ ++#define TOOLCHAIN_SUPPORTS_ATTRIBUTE_CONSTRUCTOR /**/ ++ ++/* use ARM IWMMXT compiler intrinsics */ ++/* #undef USE_ARM_IWMMXT */ ++ ++/* use ARM NEON assembly optimizations */ ++/* #undef USE_ARM_NEON */ ++ ++/* use ARM SIMD assembly optimizations */ ++/* #undef USE_ARM_SIMD */ ++ ++/* use GNU-style inline assembler */ ++//#define USE_GCC_INLINE_ASM 0 ++ ++/* use Loongson Multimedia Instructions */ ++/* #undef USE_LOONGSON_MMI */ ++ ++/* use MIPS DSPr2 assembly optimizations */ ++/* #undef USE_MIPS_DSPR2 */ ++ ++/* use OpenMP in the test suite */ ++#define USE_OPENMP 1 ++ ++/* use SSE2 compiler intrinsics */ ++#define USE_SSE2 1 ++ ++/* use SSSE3 compiler intrinsics */ ++#define USE_SSSE3 1 ++ ++/* use VMX compiler intrinsics */ ++/* #undef USE_VMX */ ++ ++/* use x86 MMX compiler intrinsics */ ++#define USE_X86_MMX 1 ++ ++/* Version number of package */ ++#define VERSION "0.40.0" ++ ++/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most ++ significant byte first (like Motorola and SPARC, unlike Intel). */ ++#if defined AC_APPLE_UNIVERSAL_BUILD ++# if defined __BIG_ENDIAN__ ++# define WORDS_BIGENDIAN 1 ++# endif ++#else ++# ifndef WORDS_BIGENDIAN ++/* # undef WORDS_BIGENDIAN */ ++# endif ++#endif ++ ++/* Define to `__inline__' or `__inline' if that's what the C compiler ++ calls it, or to nothing if 'inline' is not supported under any name. */ ++#ifndef __cplusplus ++/* #undef inline */ ++#endif ++ ++/* Define to sqrt if you do not have the `sqrtf' function. */ ++/* #undef sqrtf */ +diff --git a/pixman-0.40.0/demos/gtk-utils.h b/pixman-0.40.0/demos/gtk-utils.h +index 36be4de..bf88b42 100644 +--- a/pixman-0.40.0/demos/gtk-utils.h ++++ b/pixman-0.40.0/demos/gtk-utils.h +@@ -1,15 +1,18 @@ + #include + #include ++#ifndef __LITEOS__ + #include + #include ++#endif + #include "pixman.h" + + void show_image (pixman_image_t *image); + + pixman_image_t * + pixman_image_from_file (const char *filename, pixman_format_code_t format); +- ++#ifndef __LITEOS__ + GdkPixbuf *pixbuf_from_argb32 (uint32_t *bits, + int width, + int height, + int stride); ++#endif +diff --git a/pixman-0.40.0/pixman/pixman-compiler.h b/pixman-0.40.0/pixman/pixman-compiler.h +index a02aa49..888b992 100644 +--- a/pixman-0.40.0/pixman/pixman-compiler.h ++++ b/pixman-0.40.0/pixman/pixman-compiler.h +@@ -229,6 +229,6 @@ + + #else + +-# error "Unknown thread local support for this system. Pixman will not work with multiple threads. Define PIXMAN_NO_TLS to acknowledge and accept this limitation and compile pixman without thread-safety support." ++//# error "Unknown thread local support for this system. Pixman will not work with multiple threads. Define PIXMAN_NO_TLS to acknowledge and accept this limitation and compile pixman without thread-safety support." + + #endif +diff --git a/pixman-0.40.0/pixman/pixman-general.c b/pixman-0.40.0/pixman/pixman-general.c +index 7e5a0d0..05e45be 100644 +--- a/pixman-0.40.0/pixman/pixman-general.c ++++ b/pixman-0.40.0/pixman/pixman-general.c +@@ -153,7 +153,7 @@ general_composite_rect (pixman_implementation_t *imp, + Bpp = 16; + } + +-#define ALIGN(addr) \ ++#define _ALIGN(addr) \ + ((uint8_t *)((((uintptr_t)(addr)) + 15) & (~15))) + + if (width <= 0 || _pixman_multiply_overflows_int (width, Bpp * 3)) +@@ -173,9 +173,9 @@ general_composite_rect (pixman_implementation_t *imp, + memset (stack_scanline_buffer, 0, sizeof (stack_scanline_buffer)); + } + +- src_buffer = ALIGN (scanline_buffer); +- mask_buffer = ALIGN (src_buffer + width * Bpp); +- dest_buffer = ALIGN (mask_buffer + width * Bpp); ++ src_buffer = _ALIGN (scanline_buffer); ++ mask_buffer = _ALIGN (src_buffer + width * Bpp); ++ dest_buffer = _ALIGN (mask_buffer + width * Bpp); + + if (width_flag == ITER_WIDE) + { +diff --git a/pixman-0.40.0/pixman/pixman-implementation.c b/pixman-0.40.0/pixman/pixman-implementation.c +index 2c7de4c..111ddbf 100644 +--- a/pixman-0.40.0/pixman/pixman-implementation.c ++++ b/pixman-0.40.0/pixman/pixman-implementation.c +@@ -394,8 +394,9 @@ _pixman_choose_implementation (void) + + if (!_pixman_disabled ("fast")) + imp = _pixman_implementation_create_fast_path (imp); +- ++#if 0 + imp = _pixman_x86_get_implementations (imp); ++#endif + imp = _pixman_arm_get_implementations (imp); + imp = _pixman_ppc_get_implementations (imp); + imp = _pixman_mips_get_implementations (imp); +diff --git a/pixman-0.40.0/pixman/pixman-private.h b/pixman-0.40.0/pixman/pixman-private.h +index d836cc5..9e3da60 100644 +--- a/pixman-0.40.0/pixman/pixman-private.h ++++ b/pixman-0.40.0/pixman/pixman-private.h +@@ -15,9 +15,9 @@ + + #ifndef __ASSEMBLER__ + +-#ifndef PACKAGE +-# error config.h must be included before pixman-private.h +-#endif ++//#ifndef PACKAGE ++//# error config.h must be included before pixman-private.h ++//#endif + + #define PIXMAN_DISABLE_DEPRECATED + #define PIXMAN_USE_INTERNAL_API +diff --git a/pixman-0.40.0/pixman/pixman-version.h b/pixman-0.40.0/pixman/pixman-version.h +new file mode 100644 +index 0000000..8b0e774 +--- /dev/null ++++ b/pixman-0.40.0/pixman/pixman-version.h +@@ -0,0 +1,54 @@ ++/* ++ * Copyright © 2008 Red Hat, Inc. ++ * ++ * Permission is hereby granted, free of charge, to any person ++ * obtaining a copy of this software and associated documentation ++ * files (the "Software"), to deal in the Software without ++ * restriction, including without limitation the rights to use, copy, ++ * modify, merge, publish, distribute, sublicense, and/or sell copies ++ * of the Software, and to permit persons to whom the Software is ++ * furnished to do so, subject to the following conditions: ++ * ++ * The above copyright notice and this permission notice shall be ++ * included in all copies or substantial portions of the Software. ++ * ++ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, ++ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF ++ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND ++ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS ++ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ++ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN ++ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ++ * SOFTWARE. ++ * ++ * Author: Carl D. Worth ++ */ ++ ++#ifndef PIXMAN_VERSION_H__ ++#define PIXMAN_VERSION_H__ ++ ++#ifndef PIXMAN_H__ ++# error pixman-version.h should only be included by pixman.h ++#endif ++ ++#define PIXMAN_VERSION_MAJOR 0 ++#define PIXMAN_VERSION_MINOR 40 ++#define PIXMAN_VERSION_MICRO 0 ++ ++#define PIXMAN_VERSION_STRING "0.40.0" ++ ++#define PIXMAN_VERSION_ENCODE(major, minor, micro) ( \ ++ ((major) * 10000) \ ++ + ((minor) * 100) \ ++ + ((micro) * 1)) ++ ++#define PIXMAN_VERSION PIXMAN_VERSION_ENCODE( \ ++ PIXMAN_VERSION_MAJOR, \ ++ PIXMAN_VERSION_MINOR, \ ++ PIXMAN_VERSION_MICRO) ++ ++#ifndef PIXMAN_API ++# define PIXMAN_API ++#endif ++ ++#endif /* PIXMAN_VERSION_H__ */ +diff --git a/pixman-0.40.0/test/fuzzer-find-diff.pl b/pixman-0.40.0/test/fuzzer-find-diff.pl +old mode 100755 +new mode 100644 +diff --git a/pixman-0.40.0/test/utils.c b/pixman-0.40.0/test/utils.c +index cd9ab26..42964e3 100644 +--- a/pixman-0.40.0/test/utils.c ++++ b/pixman-0.40.0/test/utils.c +@@ -982,7 +982,7 @@ enable_divbyzero_exceptions (void) + #ifdef HAVE_FENV_H + #ifdef HAVE_FEENABLEEXCEPT + #ifdef HAVE_FEDIVBYZERO +- feenableexcept (FE_DIVBYZERO); ++ //feenableexcept (FE_DIVBYZERO); + #endif + #endif + #endif +@@ -994,7 +994,7 @@ enable_invalid_exceptions (void) + #ifdef HAVE_FENV_H + #ifdef HAVE_FEENABLEEXCEPT + #ifdef FE_INVALID +- feenableexcept (FE_INVALID); ++ //feenableexcept (FE_INVALID); + #endif + #endif + #endif +diff --git a/pixman-0.40.0/test/utils.h b/pixman-0.40.0/test/utils.h +index 701417f..646220f 100644 +--- a/pixman-0.40.0/test/utils.h ++++ b/pixman-0.40.0/test/utils.h +@@ -113,8 +113,8 @@ fence_image_create_bits (pixman_format_code_t format, + pixman_bool_t stride_fence); + + /* Return the page size if FENCE_MALLOC_ACTIVE, or zero otherwise */ +-unsigned long +-fence_get_page_size (); ++//unsigned long ++//fence_get_page_size (); + + /* Generate n_bytes random bytes in fence_malloced memory */ + uint8_t * diff --git a/components/media/pixman/patch.sha256 b/components/media/pixman/patch.sha256 new file mode 100644 index 0000000..dfdc25c --- /dev/null +++ b/components/media/pixman/patch.sha256 @@ -0,0 +1 @@ +5204346eb10afbbef47798e71b4629fdb931c4cbab82ca9899102e868834298d origin.patch diff --git a/components/media/pixman/src.sha256 b/components/media/pixman/src.sha256 new file mode 100644 index 0000000..7f1ecfd --- /dev/null +++ b/components/media/pixman/src.sha256 @@ -0,0 +1 @@ +27c253621386e9d1a981d285d0cb13052ec276ed9945969cbf1d9a03d7caee32 pixman-0.40.0.zip diff --git a/components/media/upnp/origin.patch b/components/media/upnp/origin.patch index 2d49243..3be12ff 100644 --- a/components/media/upnp/origin.patch +++ b/components/media/upnp/origin.patch @@ -1,7 +1,7 @@ diff --git a/libupnp-1.6.22/autoconfig.h b/libupnp-1.6.22/autoconfig.h new file mode 100755 index 0000000..ffe20ba ---- /dev/null +--- a/libupnp-1.6.22/autoconfig.h +++ b/libupnp-1.6.22/autoconfig.h @@ -0,0 +1,223 @@ +/* autoconfig.h. Generated from autoconfig.h.in by configure. */ diff --git a/components/media/upnp/patch.sha256 b/components/media/upnp/patch.sha256 index 9492182..7028eb4 100644 --- a/components/media/upnp/patch.sha256 +++ b/components/media/upnp/patch.sha256 @@ -1 +1 @@ -0270ee2a1e4d77f95571310d8e12ed857f7384cffb3ef53262fcf9196db041b9 origin.patch +51cd0825be891ae2c22fe6ada2da92c8d9f599beccc41452884aad2f852d9ea8 origin.patch diff --git a/components/utility/genann/origin.patch b/components/utility/genann/origin.patch new file mode 100644 index 0000000..94da110 --- /dev/null +++ b/components/utility/genann/origin.patch @@ -0,0 +1,39 @@ +diff --git a/genann-1.0.0/example1.c b/genann-1.0.0_m/example1.c +index d3f3b4e..399cf27 100644 +--- a/genann-1.0.0/example1.c ++++ b/genann-1.0.0/example1.c +@@ -3,7 +3,7 @@ + #include + #include "genann.h" + +-int main(int argc, char *argv[]) ++int GenannDemoBackpropagation(void) + { + printf("GENANN example 1.\n"); + printf("Train a small ANN to the XOR function using backpropagation.\n"); +diff --git a/genann-1.0.0/example2.c b/genann-1.0.0_m/example2.c +index fe63569..a5c92b2 100644 +--- a/genann-1.0.0/example2.c ++++ b/genann-1.0.0/example2.c +@@ -4,7 +4,7 @@ + #include + #include "genann.h" + +-int main(int argc, char *argv[]) ++int GenannDemoRandomSerch(void) + { + printf("GENANN example 2.\n"); + printf("Train a small ANN to the XOR function using random search.\n"); +diff --git a/genann-1.0.0/genann.h b/genann-1.0.0_m/genann.h +index e4b7383..6d43f9c 100644 +--- a/genann-1.0.0/genann.h ++++ b/genann-1.0.0/genann.h +@@ -100,6 +100,8 @@ double genann_act_sigmoid_cached(const genann *ann, double a); + double genann_act_threshold(const genann *ann, double a); + double genann_act_linear(const genann *ann, double a); + ++int GenannDemoBackpropagation(void); ++int GenannDemoRandomSerch(void); + + #ifdef __cplusplus + } diff --git a/components/utility/genann/patch.sha256 b/components/utility/genann/patch.sha256 new file mode 100644 index 0000000..81d7dbc --- /dev/null +++ b/components/utility/genann/patch.sha256 @@ -0,0 +1 @@ +8431e9836039b6d9501bae75e7e99bd537b3519433b360f83ad18b70f8dfa78d origin.patch diff --git a/components/utility/genann/src.sha256 b/components/utility/genann/src.sha256 new file mode 100644 index 0000000..ae4c0f6 --- /dev/null +++ b/components/utility/genann/src.sha256 @@ -0,0 +1 @@ +af0eb80559f3ebcfaf214631dcc931ed974a34dbac83c0fa6c9a82ce8e950f95 genann-1.0.0.zip diff --git a/components/utility/minmea/src.sha256 b/components/utility/minmea/src.sha256 new file mode 100644 index 0000000..5d7c727 --- /dev/null +++ b/components/utility/minmea/src.sha256 @@ -0,0 +1 @@ +854da417d2050d2e2432fb06bc21b8d1820953f1f6514884a4028f1f8507e701 minmea-0.3.0.zip diff --git a/components/utility/qrencode/src.sha256 b/components/utility/qrencode/src.sha256 new file mode 100644 index 0000000..7f1ecfd --- /dev/null +++ b/components/utility/qrencode/src.sha256 @@ -0,0 +1 @@ +27c253621386e9d1a981d285d0cb13052ec276ed9945969cbf1d9a03d7caee32 pixman-0.40.0.zip diff --git a/components/utility/quirc/.gitkeep b/components/utility/quirc/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/components/utility/quirc/src.sha256 b/components/utility/quirc/src.sha256 new file mode 100644 index 0000000..4a6a097 --- /dev/null +++ b/components/utility/quirc/src.sha256 @@ -0,0 +1 @@ +e2b7a09f81d9436fc0c66c9412548113f8194fa2ddd08ddd87fc0844d6daaa63 quirc-1.1.zip -- Gitee