code
string
repo_name
string
path
string
language
string
license
string
size
int64
################################################################################ # # menu-cache # ################################################################################ MENU_CACHE_VERSION_MAJOR = 1.0 MENU_CACHE_VERSION = $(MENU_CACHE_VERSION_MAJOR).1 MENU_CACHE_SOURCE = menu-cache-$(MENU_CACHE_VERSION).tar.xz MENU_CACHE_SITE = http://sourceforge.net/projects/lxde/files/menu-cache/$(MENU_CACHE_VERSION_MAJOR) MENU_CACHE_DEPENDENCIES = libfm-extra libglib2 MENU_CACHE_LICENSE = LGPLv2.1 MENU_CACHE_LICENSE_FILES = COPYING MENU_CACHE_INSTALL_STAGING = YES $(eval $(autotools-package))
shibajee/buildroot
package/menu-cache/menu-cache.mk
mk
mit
597
This patches makes opengl an optional component. Signed-off-by: Spenser Gilliland <spenser@gillilanding.com> --- Index: mesa3d-demos-8.1.0/configure.ac =================================================================== --- mesa3d-demos-8.1.0.orig/configure.ac +++ mesa3d-demos-8.1.0/configure.ac @@ -51,6 +51,14 @@ ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])]) PKG_PROG_PKG_CONFIG() +AC_ARG_ENABLE([gl], + [AS_HELP_STRING([--enable-gl], + [enable GL library @<:@default=no@:>@])], + [gl_enabled="$enableval"], + [gl_enabled=auto]) + +if test "x$gl_enabled" != "xno"; then + dnl Get the pkg-config definitions for libGL. We include a fallback dnl path for GL implementation that don't provide a .pc file PKG_CHECK_MODULES(GL, [gl], [], [ @@ -113,6 +121,8 @@ DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS" DEMO_LIBS="$DEMO_LIBS $GLU_LIBS" +fi + AC_ARG_ENABLE([egl], [AS_HELP_STRING([--enable-egl], [enable EGL library @<:@default=auto@:>@])], @@ -303,7 +313,7 @@ AC_SUBST([WAYLAND_CFLAGS]) AC_SUBST([WAYLAND_LIBS]) - +AM_CONDITIONAL(HAVE_GL, test "x$gl_enabled" = "xyes") AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes") AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes") AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes") Index: mesa3d-demos-8.1.0/src/egl/opengl/Makefile.am =================================================================== --- mesa3d-demos-8.1.0.orig/src/egl/opengl/Makefile.am +++ mesa3d-demos-8.1.0/src/egl/opengl/Makefile.am @@ -50,12 +50,14 @@ endif if HAVE_EGL +if HAVE_GL noinst_PROGRAMS = \ eglinfo \ peglgears \ $(EGL_DRM_DEMOS) \ $(EGL_X11_DEMOS) endif +endif egltri_x11_SOURCES = egltri.c eglgears_x11_SOURCES = eglgears.c Index: mesa3d-demos-8.1.0/src/util/Makefile.am =================================================================== --- mesa3d-demos-8.1.0.orig/src/util/Makefile.am +++ mesa3d-demos-8.1.0/src/util/Makefile.am @@ -27,7 +27,9 @@ AM_CFLAGS = \ AM_LDFLAGS = \ $(DEMO_LIBS) +if HAVE_GL noinst_LTLIBRARIES = libutil.la +endif if HAVE_GLUT AM_CFLAGS += \
shibajee/buildroot
package/mesa3d-demos/0001-demos-optional-gl.patch
patch
mit
2,124
config BR2_PACKAGE_MESA3D_DEMOS bool "mesa3d-demos" select BR2_PACKAGE_LIBGLEW if BR2_PACKAGE_XORG7 && BR2_PACKAGE_HAS_LIBGL select BR2_PACKAGE_LIBGLU if BR2_PACKAGE_XORG7 && BR2_PACKAGE_HAS_LIBGL select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7 && BR2_PACKAGE_HAS_LIBGL select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7 && BR2_PACKAGE_HAS_LIBGL depends on BR2_PACKAGE_HAS_LIBGL || BR2_PACKAGE_HAS_LIBGLES \ || BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBOPENVG help OpenGL demos from the Mesa 3D project. http://mesa3d.org
shibajee/buildroot
package/mesa3d-demos/Config.in
in
mit
547
# From http://lists.freedesktop.org/archives/mesa-announce/2015-December/000191.html sha256 c173154bbd0d5fb53d732471984def42fb1b14ac85fcb834138fb9518b3e0bef mesa-demos-8.3.0.tar.bz2
shibajee/buildroot
package/mesa3d-demos/mesa3d-demos.hash
hash
mit
182
################################################################################ # # mesa3d-demos # ################################################################################ MESA3D_DEMOS_VERSION = 8.3.0 MESA3D_DEMOS_SOURCE = mesa-demos-$(MESA3D_DEMOS_VERSION).tar.bz2 MESA3D_DEMOS_SITE = ftp://ftp.freedesktop.org/pub/mesa/demos/$(MESA3D_DEMOS_VERSION) MESA3D_DEMOS_AUTORECONF = YES MESA3D_DEMOS_DEPENDENCIES = host-pkgconf MESA3D_DEMOS_LICENSE = MIT MESA3D_DEMOS_CONF_OPTS += \ --disable-osmesa \ --disable-gles1 ifeq ($(BR2_PACKAGE_XORG7)$(BR2_PACKAGE_HAS_LIBGL),yy) MESA3D_DEMOS_DEPENDENCIES += libgl libglew libglu xlib_libX11 xlib_libXext MESA3D_DEMOS_CONF_OPTS += --enable-gl --enable-x11 else MESA3D_DEMOS_CONF_OPTS += --disable-gl --disable-x11 endif ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y) MESA3D_DEMOS_DEPENDENCIES += libegl MESA3D_DEMOS_CONF_OPTS += --enable-egl else MESA3D_DEMOS_CONF_OPTS += --disable-egl endif ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y) MESA3D_DEMOS_DEPENDENCIES += libgles MESA3D_DEMOS_CONF_OPTS += --enable-gles2 else MESA3D_DEMOS_CONF_OPTS += --disable-gles2 endif ifeq ($(BR2_PACKAGE_HAS_LIBOPENVG),y) MESA3D_DEMOS_DEPENDENCIES += libopenvg MESA3D_DEMOS_CONF_OPTS += --enable-vg else MESA3D_DEMOS_CONF_OPTS += --disable-vg endif ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y) MESA3D_DEMOS_DEPENDENCIES += mesa3d MESA3D_DEMOS_CONF_OPTS += --enable-gbm else MESA3D_DEMOS_CONF_OPTS += --disable-gbm endif ifeq ($(BR2_PACKAGE_FREETYPE),y) MESA3D_DEMOS_DEPENDENCIES += freetype MESA3D_DEMOS_CONF_OPTS += --enable-freetype2 else MESA3D_DEMOS_CONF_OPTS += --disable-freetype2 endif ifeq ($(BR2_PACKAGE_LIBFREEGLUT),y) MESA3D_DEMOS_DEPENDENCIES += libfreeglut MESA3D_DEMOS_CONF_OPTS += --with-glut=$(STAGING_DIR)/usr # osmesa support depends on glut ifeq ($(BR2_PACKAGE_MESA3D_OSMESA),y) MESA3D_DEMOS_CONF_OPTS += --enable-osmesa else MESA3D_DEMOS_CONF_OPTS += --disable-osmesa endif else MESA3D_DEMOS_CONF_OPTS += --without-glut --disable-osmesa endif ifeq ($(BR2_PACKAGE_WAYLAND),y) MESA3D_DEMOS_DEPENDENCIES += wayland MESA3D_DEMOS_CONF_OPTS += --enable-wayland else MESA3D_DEMOS_CONF_OPTS += --disable-wayland endif $(eval $(autotools-package))
shibajee/buildroot
package/mesa3d-demos/mesa3d-demos.mk
mk
mit
2,179
config BR2_PACKAGE_MESA3D_HEADERS bool help Mesa 3D, an open-source implementation of the OpenGL specification. This package only installs headers needed by other packages. http://mesa3d.org
shibajee/buildroot
package/mesa3d-headers/Config.in
in
mit
207
################################################################################ # # mesa3d-headers # ################################################################################ # mesa3d-headers is inherently incompatible with mesa3d, so error out # if both are enabled. ifeq ($(BR2_PACKAGE_MESA3D)$(BR2_PACKAGE_MESA3D_HEADERS),yy) $(error mesa3d-headers enabled, but mesa3d enabled too) endif # Not possible to directly refer to mesa3d variables, because of # first/second expansion trickery... MESA3D_HEADERS_VERSION = 12.0.1 MESA3D_HEADERS_SOURCE = mesa-$(MESA3D_HEADERS_VERSION).tar.xz MESA3D_HEADERS_SITE = ftp://ftp.freedesktop.org/pub/mesa/$(MESA3D_HEADERS_VERSION) MESA3D_HEADERS_LICENSE = MIT, SGI, Khronos MESA3D_HEADERS_LICENSE_FILES = docs/license.html # Only installs header files MESA3D_HEADERS_INSTALL_STAGING = YES MESA3D_HEADERS_INSTALL_TARGET = NO MESA3D_HEADERS_DIRS = KHR ifeq ($(BR2_PACKAGE_HAS_LIBGL),y) MESA3D_HEADERS_DIRS += GL ifeq ($(BR2_PACKAGE_XORG7),y) # Not using $(SED) because we do not want to work in-place, and $(SED) # contains -i. define MESA3D_HEADERS_BUILD_DRI_PC sed -e 's:@\(exec_\)\?prefix@:/usr:' \ -e 's:@libdir@:${exec_prefix}/lib:' \ -e 's:@includedir@:${prefix}/include:' \ -e 's:@DRI_DRIVER_INSTALL_DIR@:${libdir}/dri:' \ -e 's:@VERSION@:$(MESA3D_HEADERS_VERSION):' \ -e 's:@DRI_PC_REQ_PRIV@::' \ $(@D)/src/mesa/drivers/dri/dri.pc.in \ >$(@D)/src/mesa/drivers/dri/dri.pc endef define MESA3D_HEADERS_INSTALL_DRI_PC $(INSTALL) -D -m 0644 $(@D)/include/GL/internal/dri_interface.h \ $(STAGING_DIR)/usr/include/GL/internal/dri_interface.h $(INSTALL) -D -m 0644 $(@D)/src/mesa/drivers/dri/dri.pc \ $(STAGING_DIR)/usr/lib/pkg-config/dri.pc endef endif # Xorg endif # OpenGL ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y) MESA3D_HEADERS_DIRS += EGL endif ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y) MESA3D_HEADERS_DIRS += GLES GLES2 endif ifeq ($(BR2_PACKAGE_HAS_LIBOPENVG),y) MESA3D_HEADERS_DIRS += VG endif define MESA3D_HEADERS_BUILD_CMDS $(MESA3D_HEADERS_BUILD_DRI_PC) endef define MESA3D_HEADERS_INSTALL_STAGING_CMDS $(foreach d,$(MESA3D_HEADERS_DIRS),\ cp -dpfr $(@D)/include/$(d) $(STAGING_DIR)/usr/include/ || exit 1$(sep)) $(MESA3D_HEADERS_INSTALL_DRI_PC) endef $(eval $(generic-package))
shibajee/buildroot
package/mesa3d-headers/mesa3d-headers.mk
mk
mit
2,288
From 83a1afd73f2d0aff9aa11c1754d6d407983afa7d Mon Sep 17 00:00:00 2001 From: Eric Le Bihan <eric.le.bihan.dev@free.fr> Date: Wed, 9 Apr 2014 12:48:36 +0200 Subject: [PATCH] Fix khrplatform.h not installed if EGL is disabled. KHR/khrplatform.h is required by the EGL, GLES and VG headers, but is only installed if Mesa3d is compiled with EGL support. This patch installs this header file unconditionally. Patch sent upstream: https://bugs.freedesktop.org/show_bug.cgi?id=77240 Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> (rebased for mesa3d 10.3) diff -uNr Mesa-10.3.0-rc2.org/src/egl/main/Makefile.am Mesa-10.3.0-rc2/src/egl/main/Makefile.am --- Mesa-10.3.0-rc2.org/src/egl/Makefile.am 2014-08-29 00:00:57.000000000 +0200 +++ Mesa-10.3.0-rc2/src/egl/Makefile.am 2014-09-02 21:35:52.548071820 +0200 @@ -85,9 +85,6 @@ pkgconfig_DATA = egl.pc -khrdir = $(includedir)/KHR -khr_HEADERS = $(top_srcdir)/include/KHR/khrplatform.h - egldir = $(includedir)/EGL egl_HEADERS = \ $(top_srcdir)/include/EGL/eglext.h \ diff -uNr Mesa-10.3.0-rc2.org/src/mapi/Makefile.am Mesa-10.3.0-rc2/src/mapi/Makefile.am --- Mesa-10.3.0-rc2.org/src/mapi/Makefile.am 2014-09-01 01:22:12.000000000 +0200 +++ Mesa-10.3.0-rc2/src/mapi/Makefile.am 2014-09-02 21:36:22.891686861 +0200 @@ -211,4 +211,7 @@ SUBDIRS += vgapi endif +khrdir = $(includedir)/KHR +khr_HEADERS = $(top_srcdir)/include/KHR/khrplatform.h + include $(top_srcdir)/install-lib-links.mk
shibajee/buildroot
package/mesa3d/0001-Fix-khrplatform.h-not-installed-if-EGL-is-disabled.patch
patch
mit
1,507
Fix runtime error with uClibc Patch inspired by https://www.winehq.org/pipermail/wine-bugs/2011-September/288987.html http://git.alpinelinux.org/cgit/aports/tree/main/wine/uclibc-fmaxf-fminf.patch?id=c9b491b6099eec02a835ffd05539b5c783c6c43a Starting an app using mesa3d 10.5.x, Kodi for example, fails: /usr/lib/kodi/kodi.bin: symbol 'fminf': can't resolve symbol in lib '/usr/lib/dri/i965_dri.so'. libGL error: unable to load driver: i965_dri.so libGL error: driver pointer missing libGL error: failed to load driver: i965 libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast This patch was rejected by upstream mesa3d: http://lists.freedesktop.org/archives/mesa-dev/2015-March/079436.html The real fix was committed to uClibc: http://git.uclibc.org/uClibc/commit/?id=6c4538905e65ceb203f59aaa9a61728e81c6bc0a Until the external toolchains do not contain this uClibc patch we keep this patch: http://lists.busybox.net/pipermail/buildroot/2015-March/123410.html Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> --- diff -uNr mesa-10.5.3.org/src/glsl/nir/nir_constant_expressions.c mesa-10.5.3/src/glsl/nir/nir_constant_expressions.c --- mesa-10.5.3.org/src/compiler/nir/nir_constant_expressions.c 2015-04-12 23:31:29.000000000 +0200 +++ mesa-10.5.3/src/compiler/nir/nir_constant_expressions.c 2015-04-13 19:59:37.819786541 +0200 @@ -48,6 +48,18 @@ } #endif +#ifdef __UCLIBC__ +float fmaxf(float a, float b) +{ + return (a > b) ? a : b; +} + +float fminf(float a, float b) +{ + return (a < b) ? a : b; +} +#endif + /** * Evaluate one component of packSnorm4x8. */
shibajee/buildroot
package/mesa3d/0002-Fix-runtime-error-with-uClibc.patch
patch
mit
1,622
Fix musl build Downloaded from http://git.alpinelinux.org/cgit/aports/plain/main/mesa/musl-fixes.patch Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> --- ./src/gallium/winsys/svga/drm/vmw_screen.h.orig +++ ./src/gallium/winsys/svga/drm/vmw_screen.h @@ -34,7 +34,7 @@ #ifndef VMW_SCREEN_H_ #define VMW_SCREEN_H_ - +#include <sys/stat.h> #include "pipe/p_compiler.h" #include "pipe/p_state.h"
shibajee/buildroot
package/mesa3d/0003-musl.patch
patch
mit
408
menuconfig BR2_PACKAGE_MESA3D bool "mesa3d" depends on BR2_INSTALL_LIBSTDCPP depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_SYNC_1 depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL select BR2_PACKAGE_LIBDRM select BR2_PACKAGE_EXPAT select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XPROTO_GLPROTO if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XORG7 select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XORG7 help Mesa 3D, an open-source implementation of the OpenGL specification. http://mesa3d.org if BR2_PACKAGE_MESA3D # inform the .mk file of gallium or dri driver selection config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_MESA3D_DRIVER bool config BR2_PACKAGE_MESA3D_DRI_DRIVER select BR2_PACKAGE_MESA3D_DRIVER select BR2_PACKAGE_HAS_LIBGL if BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBXSHMFENCE if BR2_PACKAGE_XPROTO_DRI3PROTO select BR2_PACKAGE_XPROTO_PRESENTPROTO if BR2_PACKAGE_XPROTO_DRI3PROTO bool config BR2_PACKAGE_PROVIDES_LIBGL default "mesa3d" if BR2_PACKAGE_MESA3D_DRI_DRIVER && \ BR2_PACKAGE_XORG7 config BR2_PACKAGE_MESA3D_DRIVER bool config BR2_PACKAGE_MESA3D_NEEDS_XA bool comment "Gallium drivers" config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU bool "Gallium nouveau driver" depends on BR2_i386 || BR2_x86_64 select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_NOUVEAU select BR2_PACKAGE_MESA3D_NEEDS_XA help Supports all Nvidia GPUs. config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600 bool "Gallium Radeon R600 driver" depends on BR2_i386 || BR2_x86_64 select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_RADEON select BR2_PACKAGE_MESA3D_NEEDS_XA help Driver for ATI/AMD Radeon R600/R700/HD5000/HD6000 GPUs. config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA bool "Gallium vmware svga driver" depends on BR2_i386 || BR2_x86_64 select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_VMWGFX select BR2_PACKAGE_MESA3D_NEEDS_XA help This is a virtual GPU driver for VMWare virtual machines. config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST bool "Gallium swrast driver" select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER help This is a software opengl implementation using the Gallium3D infrastructure. config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4 bool "Gallium vc4 driver" depends on BR2_arm select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_LIBDRM_VC4 select BR2_PACKAGE_MESA3D_NEEDS_XA help Driver for Broadcom VC4 (rpi2/3) GPUs. It requires a vanilla 4.5+ kernel with drm vc4 (open) support. config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL bool "Gallium virgl driver" select BR2_PACKAGE_MESA3D_GALLIUM_DRIVER select BR2_PACKAGE_MESA3D_OPENGL_EGL help virgl is the 3D acceleration backend for the virtio-gpu shipping with qemu. comment "DRI drivers" config BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST bool "DRI swrast driver" select BR2_PACKAGE_MESA3D_DRI_DRIVER help This is a software opengl implementation using the DRI infrastructure. config BR2_PACKAGE_MESA3D_DRI_DRIVER_I915 bool "DRI i915 driver" depends on BR2_i386 || BR2_x86_64 select BR2_PACKAGE_MESA3D_DRI_DRIVER select BR2_PACKAGE_LIBDRM_INTEL help Support for i915-based Intel GPUs. config BR2_PACKAGE_MESA3D_DRI_DRIVER_I965 bool "DRI i965 driver" depends on BR2_i386 || BR2_x86_64 select BR2_PACKAGE_MESA3D_DRI_DRIVER select BR2_PACKAGE_LIBDRM_INTEL help Support for i965-based Intel GPUs. config BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU bool "DRI nouveau driver" select BR2_PACKAGE_MESA3D_DRI_DRIVER select BR2_PACKAGE_LIBDRM_NOUVEAU help Support for Nvidia-based GPUs. config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON bool "DRI radeon driver" select BR2_PACKAGE_MESA3D_DRI_DRIVER select BR2_PACKAGE_LIBDRM_RADEON help Legacy Radeon driver for R100 series GPUs. comment "Off-screen Rendering" config BR2_PACKAGE_MESA3D_OSMESA bool "OSMesa library" help The OSMesa API provides functions for making off-screen renderings. if BR2_PACKAGE_MESA3D_DRIVER comment "Additional API Support" config BR2_PACKAGE_MESA3D_OPENGL_EGL bool "OpenGL EGL" select BR2_PACKAGE_HAS_LIBEGL help Use the Khronos EGL APIs. EGL is a window manager for OpenGL applications similar to GLX, for X, and WGL, for Windows. config BR2_PACKAGE_MESA3D_OPENGL_ES bool "OpenGL ES" select BR2_PACKAGE_HAS_LIBGLES help Use the Khronos OpenGL ES APIs. This is commonly used on embedded systems and represents a subset of the OpenGL API. endif # BR2_PACKAGE_MESA3D_DRIVER config BR2_PACKAGE_PROVIDES_LIBEGL default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL config BR2_PACKAGE_PROVIDES_LIBGLES default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_ES endif # BR2_PACKAGE_MESA3D comment "mesa3d needs a toolchain w/ C++, NPTL, dynamic library" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \ BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_SYNC_1
shibajee/buildroot
package/mesa3d/Config.in
in
mit
5,189
# From https://lists.freedesktop.org/archives/mesa-announce/2016-July/000227.html sha256 bab24fb79f78c876073527f515ed871fc9c81d816f66c8a0b051d8d653896389 mesa-12.0.1.tar.xz
shibajee/buildroot
package/mesa3d/mesa3d.hash
hash
mit
173
################################################################################ # # mesa3d # ################################################################################ # When updating the version, please also update mesa3d-headers MESA3D_VERSION = 12.0.1 MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz MESA3D_SITE = ftp://ftp.freedesktop.org/pub/mesa/$(MESA3D_VERSION) MESA3D_LICENSE = MIT, SGI, Khronos MESA3D_LICENSE_FILES = docs/license.html MESA3D_AUTORECONF = YES MESA3D_INSTALL_STAGING = YES MESA3D_PROVIDES = MESA3D_DEPENDENCIES = \ host-bison \ host-flex \ expat \ libdrm # The Sourcery MIPS toolchain has a special (non-upstream) feature to # have "compact exception handling", which unfortunately breaks with # mesa3d, so we disable it here by passing -mno-compact-eh. ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS),y) MESA3D_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mno-compact-eh" MESA3D_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -mno-compact-eh" endif ifeq ($(BR2_PACKAGE_OPENSSL),y) MESA3D_DEPENDENCIES += openssl MESA3D_CONF_OPTS += --with-sha1=libcrypto else ifeq ($(BR2_PACKAGE_LIBGCRYPT),y) MESA3D_DEPENDENCIES += libgcrypt MESA3D_CONF_OPTS += --with-sha1=libgcrypt else ifeq ($(BR2_PACKAGE_LIBSHA1),y) MESA3D_DEPENDENCIES += libsha1 MESA3D_CONF_OPTS += --with-sha1=libsha1 endif ifeq ($(BR2_PACKAGE_HAS_UDEV),y) MESA3D_DEPENDENCIES += udev MESA3D_CONF_OPTS += --disable-sysfs else MESA3D_CONF_OPTS += --enable-sysfs endif ifeq ($(BR2_PACKAGE_XORG7),y) MESA3D_DEPENDENCIES += \ xproto_xf86driproto \ xproto_dri2proto \ xproto_glproto \ xlib_libX11 \ xlib_libXext \ xlib_libXdamage \ xlib_libXfixes \ libxcb MESA3D_CONF_OPTS += --enable-glx --disable-mangling # quote from mesa3d configure "Building xa requires at least one non swrast gallium driver." ifeq ($(BR2_PACKAGE_MESA3D_NEEDS_XA),y) MESA3D_CONF_OPTS += --enable-xa else MESA3D_CONF_OPTS += --disable-xa endif else MESA3D_CONF_OPTS += \ --disable-glx \ --disable-xa endif # Drivers #Gallium Drivers MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU) += nouveau MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_R600) += r600 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA) += svga MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST) += swrast MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4) += vc4 MESA3D_GALLIUM_DRIVERS-$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL) += virgl # DRI Drivers MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_SWRAST) += swrast MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I915) += i915 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_I965) += i965 MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_NOUVEAU) += nouveau MESA3D_DRI_DRIVERS-$(BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON) += radeon ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER),) MESA3D_CONF_OPTS += \ --without-gallium-drivers else MESA3D_CONF_OPTS += \ --enable-shared-glapi \ --with-gallium-drivers=$(subst $(space),$(comma),$(MESA3D_GALLIUM_DRIVERS-y)) endif ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),) MESA3D_CONF_OPTS += \ --without-dri-drivers --disable-dri3 else ifeq ($(BR2_PACKAGE_XPROTO_DRI3PROTO),y) MESA3D_DEPENDENCIES += xlib_libxshmfence xproto_dri3proto xproto_presentproto MESA3D_CONF_OPTS += --enable-dri3 else MESA3D_CONF_OPTS += --disable-dri3 endif ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y) MESA3D_DEPENDENCIES += xlib_libXxf86vm endif # libGL is only provided for a full xorg stack ifeq ($(BR2_PACKAGE_XORG7),y) MESA3D_PROVIDES += libgl endif MESA3D_CONF_OPTS += \ --enable-shared-glapi \ --enable-driglx-direct \ --with-dri-drivers=$(subst $(space),$(comma),$(MESA3D_DRI_DRIVERS-y)) endif # APIs ifeq ($(BR2_PACKAGE_MESA3D_OSMESA),y) MESA3D_CONF_OPTS += --enable-osmesa else MESA3D_CONF_OPTS += --disable-osmesa endif # Always enable OpenGL: # - it is needed for GLES (mesa3d's ./configure is a bit weird) MESA3D_CONF_OPTS += --enable-opengl --enable-dri # libva and mesa3d have a circular dependency # we do not need libva support in mesa3d, therefore disable this option MESA3D_CONF_OPTS += --disable-va ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y) MESA3D_PROVIDES += libegl ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y) MESA3D_EGL_PLATFORMS = drm else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VC4),y) MESA3D_EGL_PLATFORMS = drm else ifeq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_VIRGL),y) MESA3D_EGL_PLATFORMS = drm endif ifeq ($(BR2_PACKAGE_WAYLAND),y) MESA3D_DEPENDENCIES += wayland MESA3D_EGL_PLATFORMS += wayland endif ifeq ($(BR2_PACKAGE_XORG7),y) MESA3D_EGL_PLATFORMS += x11 endif MESA3D_CONF_OPTS += \ --enable-gbm \ --enable-egl \ --with-egl-platforms=$(subst $(space),$(comma),$(MESA3D_EGL_PLATFORMS)) else MESA3D_CONF_OPTS += \ --disable-egl endif ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_ES),y) MESA3D_PROVIDES += libgles MESA3D_CONF_OPTS += --enable-gles1 --enable-gles2 else MESA3D_CONF_OPTS += --disable-gles1 --disable-gles2 endif # Avoid automatic search of llvm-config MESA3D_CONF_OPTS += --with-llvm-prefix=$(STAGING_DIR)/usr/bin $(eval $(autotools-package))
shibajee/buildroot
package/mesa3d/mesa3d.mk
mk
mit
5,097
Upstream fix to link metacity itself against libm The upstream fix is modified to also include the changes on the configure script directly, so that autoreconfiguring is not needed. Autoreconfiguring cannot be done easily on metacity, due to missing AM_GCONF_SOURCE_2 and AM_NLS macros. http://git.gnome.org/browse/metacity/commit/configure.in?id=9cb0b6ff520ea69bdff6c328a21787202aee1bcc Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> From 9cb0b6ff520ea69bdff6c328a21787202aee1bcc Mon Sep 17 00:00:00 2001 From: Götz Waschk <waschk@mandriva.org> Date: Wed, 22 Oct 2008 12:08:48 +0000 Subject: add libm reference. Closes #557357. 2008-10-22 Götz Waschk <waschk@mandriva.org> * configure.in: add libm reference. Closes #557357. svn path=/trunk/; revision=3984 --- (limited to 'configure.in') Index: b/configure.in =================================================================== --- a/configure.in +++ b/configure.in @@ -413,7 +413,7 @@ AC_DEFINE(HAVE_XSYNC, , [Have the Xsync extension library]) fi -METACITY_LIBS="$METACITY_LIBS $XSYNC_LIBS $RANDR_LIBS $SHAPE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" +METACITY_LIBS="$METACITY_LIBS $XSYNC_LIBS $RANDR_LIBS $SHAPE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm" METACITY_MESSAGE_LIBS="$METACITY_MESSAGE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" METACITY_WINDOW_DEMO_LIBS="$METACITY_WINDOW_DEMO_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" METACITY_PROPS_LIBS="$METACITY_PROPS_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" Index: b/configure =================================================================== --- a/configure +++ b/configure @@ -29509,7 +29509,7 @@ fi -METACITY_LIBS="$METACITY_LIBS $XSYNC_LIBS $RANDR_LIBS $SHAPE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" +METACITY_LIBS="$METACITY_LIBS $XSYNC_LIBS $RANDR_LIBS $SHAPE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lm" METACITY_MESSAGE_LIBS="$METACITY_MESSAGE_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" METACITY_WINDOW_DEMO_LIBS="$METACITY_WINDOW_DEMO_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" METACITY_PROPS_LIBS="$METACITY_PROPS_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
shibajee/buildroot
package/metacity/0001-add-libm-reference.patch
patch
mit
2,180
[PATCH] fix build with --disable-gconf src/core/prefs.c still contain a call to gconf_client_set_bool() when built with --disable-gconf, breaking the build. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> --- src/core/prefs.c | 2 ++ 1 file changed, 2 insertions(+) Index: metacity-2.25.1/src/core/prefs.c =================================================================== --- metacity-2.25.1.orig/src/core/prefs.c +++ metacity-2.25.1/src/core/prefs.c @@ -2949,6 +2949,7 @@ void meta_prefs_set_compositing_manager (gboolean whether) { +#if HAVE_GCONF GError *err = NULL; gconf_client_set_bool (default_client, @@ -2962,6 +2963,7 @@ err->message); g_error_free (err); } +#endif } #ifndef HAVE_GCONF
shibajee/buildroot
package/metacity/0002-gconf.patch
patch
mit
757
Upstream patch to fix link against libm The upstream patch is modified to also include the necessary Makefile.in, which avoids the need for autoreconfiguring the package. Autoreconfiguring the package unfortunately doesn't work, due to AM_GCONF_SOURCE_2 and AM_NLS macros being missing. http://git.gnome.org/browse/metacity/commit/src/tools/Makefile.am?id=13d0d52eb885598885b6ff4b73c795c8f29c2a6b Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> From 13d0d52eb885598885b6ff4b73c795c8f29c2a6b Mon Sep 17 00:00:00 2001 From: Matthias Clasen <mclasen@redhat.com> Date: Sun, 02 May 2010 14:50:42 +0000 Subject: fails to link with pedantic linkers --- (limited to 'src/tools/Makefile.am') Index: b/src/tools/Makefile.am =================================================================== --- a/src/tools/Makefile.am +++ b/src/tools/Makefile.am @@ -26,7 +26,7 @@ metacity_message_LDADD= @METACITY_MESSAGE_LIBS@ metacity_window_demo_LDADD= @METACITY_WINDOW_DEMO_LIBS@ -metacity_mag_LDADD= @METACITY_WINDOW_DEMO_LIBS@ +metacity_mag_LDADD= @METACITY_WINDOW_DEMO_LIBS@ -lm metacity_grayscale_LDADD = @METACITY_WINDOW_DEMO_LIBS@ EXTRA_DIST=$(icon_DATA) Index: b/src/tools/Makefile.in =================================================================== --- a/src/tools/Makefile.in +++ b/src/tools/Makefile.in @@ -281,7 +281,7 @@ metacity_message_LDADD = @METACITY_MESSAGE_LIBS@ metacity_window_demo_LDADD = @METACITY_WINDOW_DEMO_LIBS@ -metacity_mag_LDADD = @METACITY_WINDOW_DEMO_LIBS@ +metacity_mag_LDADD = @METACITY_WINDOW_DEMO_LIBS@ -lm metacity_grayscale_LDADD = @METACITY_WINDOW_DEMO_LIBS@ EXTRA_DIST = $(icon_DATA) all: all-am
shibajee/buildroot
package/metacity/0003-mag-add-libm-reference.patch
patch
mit
1,662
config BR2_PACKAGE_METACITY bool "metacity" depends on BR2_PACKAGE_LIBGTK2 depends on BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBX11 # Metacity configure.ac pretends it can be built without # Composite, but in reality, it doesn't build. select BR2_PACKAGE_XLIB_LIBXCOMPOSITE select BR2_PACKAGE_XLIB_LIBXFIXES select BR2_PACKAGE_XLIB_LIBXRENDER select BR2_PACKAGE_XLIB_LIBXDAMAGE # We do not directly depend on Xft, but they are needed to get # Xft support in Pango, which we require. select BR2_PACKAGE_XLIB_LIBXFT help Metacity is a window manager for the X Window System.
shibajee/buildroot
package/metacity/Config.in
in
mit
593
#!/bin/sh export GDK_USE_XFT=1 export LANG="en_US.UTF-8" export LC_ALL="en_US.UTF-8" /usr/bin/X11/rxvt -bg black -fg gray90 & exec /bin/metacity
shibajee/buildroot
package/metacity/Xsession
none
mit
145
# From http://ftp.gnome.org/pub/gnome/sources/metacity/2.25/metacity-2.25.1.sha256sum sha256 fb2ede4ac02d7da08d3c3323fb76afaf945c8cccc07cb2d3a4b7f44fb49f1c47 metacity-2.25.1.tar.bz2
shibajee/buildroot
package/metacity/metacity.hash
hash
mit
182
################################################################################ # # metacity # ################################################################################ # newer versions need libcanberra-gtk and gnome-doc-utils METACITY_VERSION_MAJOR = 2.25 METACITY_VERSION = $(METACITY_VERSION_MAJOR).1 METACITY_SOURCE = metacity-$(METACITY_VERSION).tar.bz2 METACITY_SITE = http://ftp.gnome.org/pub/gnome/sources/metacity/$(METACITY_VERSION_MAJOR) METACITY_LICENSE = GPLv2+ METACITY_LICENSE_FILES = COPYING METACITY_CONF_OPTS = \ --x-includes=$(STAGING_DIR)/usr/include/X11 \ --x-libraries=$(STAGING_DIR)/usr/lib \ --disable-glibtest \ --disable-gconf \ --disable-sm \ --disable-startup-notification METACITY_DEPENDENCIES = libgtk2 \ xlib_libX11 \ host-libxml-parser-perl \ xlib_libXcomposite \ xlib_libXfixes \ xlib_libXrender \ xlib_libXdamage ifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y) METACITY_DEPENDENCIES += xlib_libXcursor endif define METACITY_INSTALL_XSESSION $(INSTALL) -D package/metacity/Xsession $(TARGET_DIR)/etc/X11/Xsession endef METACITY_POST_INSTALL_TARGET_HOOKS += METACITY_INSTALL_XSESSION $(eval $(autotools-package))
shibajee/buildroot
package/metacity/metacity.mk
mk
mit
1,165
config BR2_PACKAGE_MICROPYTHON_LIB bool "micropython-lib" depends on BR2_PACKAGE_MICROPYTHON help Core Python libraries ported to MicroPython. http://micropython.org
shibajee/buildroot
package/micropython-lib/Config.in
in
mit
176
# Locally computed sha256 e659444fadd755c1b5dbff091aa1b23a835e7361da3a32f38774bd39a15937ad micropython-lib-v1.0.tar.gz
shibajee/buildroot
package/micropython-lib/micropython-lib.hash
hash
mit
120
################################################################################ # # micropython-lib # ################################################################################ MICROPYTHON_LIB_VERSION = v1.0 MICROPYTHON_LIB_SITE = $(call github,micropython,micropython-lib,$(MICROPYTHON_LIB_VERSION)) MICROPYTHON_LIB_LICENSE = Python software foundation license v2 (some modules), MIT (everything else) MICROPYTHON_LIB_LICENSE_FILES = LICENSE define MICROPYTHON_LIB_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ PREFIX=$(TARGET_DIR)/usr/lib/micropython \ install endef $(eval $(generic-package))
shibajee/buildroot
package/micropython-lib/micropython-lib.mk
mk
mit
623
Always use the fallback behaviour for determining the version number When built from within buildroot the micropython build process detects that it is inside a git repository and ends up using the buildroot version number instead of the correct micropython version number. Signed-off-by: Chris Packham <judge.packham@gmail.com> --- diff -Naur micropython-v1.4.5-old/py/makeversionhdr.py micropython-v1.4.5/py/makeversionhdr.py --- micropython-v1.4.5-old/py/makeversionhdr.py 2015-08-12 00:42:30.000000000 +1200 +++ micropython-v1.4.5/py/makeversionhdr.py 2015-09-16 10:21:06.698962836 +1200 @@ -70,9 +70,7 @@ def make_version_header(filename): # Get version info using git, with fallback to docs/conf.py - info = get_version_info_from_git() - if info is None: - info = get_version_info_from_docs_conf() + info = get_version_info_from_docs_conf() git_tag, git_hash, ver = info
shibajee/buildroot
package/micropython/0001-fix-version.patch
patch
mit
911
config BR2_PACKAGE_MICROPYTHON bool "micropython" select BR2_PACKAGE_LIBFFI depends on BR2_TOOLCHAIN_HAS_THREADS depends on !BR2_STATIC_LIBS # libffi doesn't provide the closure implementation on Blackfin depends on !BR2_bfin help Micro Python is a lean and fast implementation of the Python 3 programming language that is optimised to run on a microcontroller. http://micropython.org comment "micropython needs a toolchain w/ threads, dynamic library" depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS depends on !BR2_bfin
shibajee/buildroot
package/micropython/Config.in
in
mit
551
#locally computed sha256 f8ea3faffa797de1a06c16c8f57c784c665b318ca08ac17f74dcbc95322d47de micropython-v1.6.tar.gz
shibajee/buildroot
package/micropython/micropython.hash
hash
mit
115
################################################################################ # # micropython # ################################################################################ MICROPYTHON_VERSION = v1.6 MICROPYTHON_SITE = $(call github,micropython,micropython,$(MICROPYTHON_VERSION)) MICROPYTHON_LICENSE = MIT MICROPYTHON_LICENSE_FILES = LICENSE MICROPYTHON_DEPENDENCIES = host-pkgconf libffi # Use fallback implementation for exception handling on architectures that don't # have explicit support. ifeq ($(BR2_i386)$(BR2_x86_64)$(BR2_arm)$(BR2_armeb),) MICROPYTHON_CFLAGS = -DMICROPY_GCREGS_SETJMP=1 endif define MICROPYTHON_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/unix \ CROSS_COMPILE=$(TARGET_CROSS) \ CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS) endef define MICROPYTHON_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/unix \ DESTDIR=$(TARGET_DIR) \ PREFIX=$(TARGET_DIR)/usr \ install endef $(eval $(generic-package))
shibajee/buildroot
package/micropython/micropython.mk
mk
mit
948
Fix for https://bugs.launchpad.net/midori/+bug/1492932 Patch status: upstream Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- a/midori/midori-browser.c 2015-07-11 16:03:43 +0000 +++ b/midori/midori-browser.c 2015-09-25 21:30:31 +0000 @@ -5953,11 +5953,6 @@ G_CALLBACK (midori_browser_destroy_cb), NULL); gtk_window_set_role (GTK_WINDOW (browser), "browser"); gtk_window_set_icon_name (GTK_WINDOW (browser), MIDORI_STOCK_WEB_BROWSER); - #if GTK_CHECK_VERSION (3, 4, 0) - #ifndef HAVE_GRANITE - gtk_window_set_hide_titlebar_when_maximized (GTK_WINDOW (browser), TRUE); - #endif - #endif vbox = gtk_vbox_new (FALSE, 0); /* gtk_container_add (GTK_CONTAINER (browser), vbox); gtk_widget_show (vbox); */ --- a/midori/midori-view.c 2015-07-06 21:26:46 +0000 +++ b/midori/midori-view.c 2015-09-25 21:30:31 +0000 @@ -3495,9 +3495,6 @@ } else gtk_window_set_icon_name (GTK_WINDOW (window), icon_name); - #if GTK_CHECK_VERSION (3, 4, 0) - gtk_window_set_hide_titlebar_when_maximized (GTK_WINDOW (window), TRUE); - #endif gtk_widget_set_size_request (GTK_WIDGET (inspector_view), 700, 100); #if GTK_CHECK_VERSION (3, 0, 0) scrolled = gtk_scrolled_window_new (NULL, NULL); --- a/midori/midori-window.vala 2015-08-16 00:14:26 +0000 +++ b/midori/midori-window.vala 2015-09-25 21:30:31 +0000 @@ -28,7 +28,6 @@ toolbar.show_arrow = true; #if HAVE_GTK3 toolbar.get_style_context ().add_class ("primary-toolbar"); - hide_titlebar_when_maximized = true; #endif toolbar.popup_context_menu.connect ((x, y, button) => { return button == 3 && context_menu (toolbar); });
shibajee/buildroot
package/midori/0001-fix-bug-1492932.patch
patch
mit
1,761
GCR support only works/is useful with X11 support. Reported upstream: https://bugs.launchpad.net/midori/+bug/1515985 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura midori-0.5.11.orig/CMakeLists.txt midori-0.5.11/CMakeLists.txt --- midori-0.5.11.orig/CMakeLists.txt 2015-11-12 13:41:02.045898814 -0300 +++ midori-0.5.11/CMakeLists.txt 2015-11-12 14:00:09.765545018 -0300 @@ -175,18 +175,14 @@ set(PKGS ${PKGS} zeitgeist-2.0) endif() -if (WIN32) - add_definitions("-DGCR_VERSION=\"No\"") -else () - if (USE_GTK3) - pkg_check_modules(GCR REQUIRED gcr-3>=2.32) - else () - pkg_check_modules(GCR REQUIRED gcr-base-3>=2.32) - endif () +if (USE_GTK3 AND X11) + pkg_check_modules(GCR REQUIRED gcr-3>=2.32) add_definitions("-DGCR_VERSION=\"${GCR_VERSION}\"") add_definitions("-DHAVE_GCR") set(OPTS_INCLUDE_DIRS ${OPTS_INCLUDE_DIRS} ${GCR_INCLUDE_DIRS}) set(OPTS_LIBRARIES ${OPTS_LIBRARIES} ${GCR_LIBRARIES}) +else () + add_definitions("-DGCR_VERSION=\"No\"") endif () if (HALF_BRO_INCOM_WEBKIT2)
shibajee/buildroot
package/midori/0002-gcr-for-x11-only.patch
patch
mit
1,076
comment "midori needs libgtk3 and a glibc toolchain w/ C++, gcc >= 4.9" depends on BR2_PACKAGE_WEBKITGTK_ARCH_SUPPORTS depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_LIBGTK3 \ || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || !BR2_TOOLCHAIN_USES_GLIBC config BR2_PACKAGE_MIDORI bool "midori" # GCR can only be used with the X11 backend select BR2_PACKAGE_GCR if BR2_PACKAGE_LIBGTK3_X11 select BR2_PACKAGE_GRANITE select BR2_PACKAGE_LIBSOUP select BR2_PACKAGE_LIBSOUP_GNOME select BR2_PACKAGE_LIBXML2 select BR2_PACKAGE_SQLITE select BR2_PACKAGE_WEBKITGTK select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt, gcr, gnupg2 depends on BR2_PACKAGE_LIBGTK3 depends on BR2_INSTALL_LIBSTDCPP # webkitgtk depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # webkitgtk depends on BR2_TOOLCHAIN_USES_GLIBC # webkitgtk depends on BR2_PACKAGE_WEBKITGTK_ARCH_SUPPORTS help Midori is a lightweight web browser based on WebKit http://www.midori-browser.org/
shibajee/buildroot
package/midori/Config.in
in
mit
1,072
# From download link @ http://midori-browser.org/download/source/ sha1 64c86935028feb5f89d799c2acacaad67764da6f midori_0.5.11_all_.tar.bz2
shibajee/buildroot
package/midori/midori.hash
hash
mit
139
################################################################################ # # midori # ################################################################################ MIDORI_VERSION = 0.5.11 MIDORI_SOURCE = midori_$(MIDORI_VERSION)_all_.tar.bz2 MIDORI_SITE = http://midori-browser.org/downloads MIDORI_LICENSE = LGPLv2.1+ MIDORI_LICENSE_FILES = COPYING MIDORI_DEPENDENCIES = \ host-intltool \ host-librsvg \ host-pkgconf \ host-vala \ host-python \ $(if $(BR2_PACKAGE_LIBGTK3_X11),gcr) \ granite \ libgtk3 \ libsoup \ libxml2 \ sqlite \ webkitgtk \ $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \ $(if $(BR2_PACKAGE_LIBICONV),libiconv) MIDORI_CONF_OPTS = \ -DHALF_BRO_INCOM_WEBKIT2=ON \ -DUSE_GRANITE=ON \ -DUSE_GTK3=ON \ -DUSE_ZEITGEIST=OFF $(eval $(cmake-package))
shibajee/buildroot
package/midori/midori.mk
mk
mit
795
Use the strrchr() function instead of the deprecated rindex() function. --- mii-diag-2.11.orig/mii-diag.c.orig 2008-06-25 11:08:52.000000000 +1000 +++ mii-diag-2.11.orig/mii-diag.c 2005-03-27 03:56:33.000000000 +1000 @@ -174,7 +174,7 @@ { int c, errflag = 0; char **spp, *ifname; - char *progname = rindex(argv[0], '/') ? rindex(argv[0], '/')+1 : argv[0]; + char *progname = strrchr(argv[0], '/') ? strrchr(argv[0], '/')+1 : argv[0]; while ((c = getopt_long(argc, argv, shortopts, longopts, 0)) != EOF) switch (c) { @@ -310,7 +310,7 @@ str = endstr+1; else { fprintf(stderr, "Invalid driver parameter '%s'.\n", str); - str = index(str, ','); + str = strchr(str, ','); } } else if (endstr[0] == ',') { data32[i] = newval;
shibajee/buildroot
package/mii-diag/0001-strchr.patch
patch
mit
779
config BR2_PACKAGE_MII_DIAG bool "mii-diag" help mii-diag allows you to manipulate the MII registers of network cards.
shibajee/buildroot
package/mii-diag/Config.in
in
mit
127
# From http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/m/mii-diag/mii-diag_2.11-3.dsc sha256 c690e87e6010607593c1cc2ccd5c481eb3be179387220ad445d8ab83d73ad41c mii-diag_2.11.orig.tar.gz sha256 b49fd3e7c0c446a949c3ca246cc441824d7ef5a61530f884756a82b0b2997190 mii-diag_2.11-3.diff.gz
shibajee/buildroot
package/mii-diag/mii-diag.hash
hash
mit
301
################################################################################ # # mii-diag # ################################################################################ MII_DIAG_VERSION = 2.11 MII_DIAG_SOURCE = mii-diag_$(MII_DIAG_VERSION).orig.tar.gz MII_DIAG_PATCH = mii-diag_$(MII_DIAG_VERSION)-3.diff.gz MII_DIAG_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/m/mii-diag MII_DIAG_LICENSE = GPL # No version specified MII_DIAG_LICENSE_FILES = mii-diag.c MII_DIAG_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) define MII_DIAG_DEBIAN_PATCHES if [ -d $(@D)/debian/patches ]; then \ $(APPLY_PATCHES) $(@D) $(@D)/debian/patches \*.patch; \ fi endef MII_DIAG_POST_PATCH_HOOKS = MII_DIAG_DEBIAN_PATCHES define MII_DIAG_BUILD_CMDS $(MAKE) $(MII_DIAG_MAKE_OPTS) -C $(@D) mii-diag endef define MII_DIAG_INSTALL_TARGET_CMDS $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install-mii-diag endef $(eval $(generic-package))
shibajee/buildroot
package/mii-diag/mii-diag.mk
mk
mit
946
# HG changeset patch # User Adam Lackorzynski <adam@os.inf.tu-dresden.de> # Date 1432407431 -7200 # Sat May 23 20:57:11 2015 +0200 # Node ID 8bf81e6a8e60e37c2dec9577a1be6357b8d56165 # Parent 8c784c80c17aa7a346d982db23bca5df67302cda musl-libc compile fix By Felix Janda <felix.janda@posteo.de>: VC_MUSIC is enabled by default on linux and in dial.c the necessary header are only included for glibc. (The wrong conditional include has likely been introduced by the 2003-03-30 GNU/Hurd patch.) Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Taken from upstream Mercurial commit 8bf81e6a8e60] diff -r 8c784c80c17a -r 8bf81e6a8e60 src/dial.c --- a/src/dial.c Sat May 23 20:56:29 2015 +0200 +++ b/src/dial.c Sat May 23 20:57:11 2015 +0200 @@ -39,7 +39,7 @@ #include "intl.h" #ifdef VC_MUSIC -# if defined(__GLIBC__) +# if defined(__linux__) || defined(__GLIBC__) # include <sys/ioctl.h> # include <sys/kd.h> # include <sys/time.h>
shibajee/buildroot
package/minicom/0001-musl-libc-compile-fix.patch
patch
mit
959
# HG changeset patch # User Adam Lackorzynski <adam@os.inf.tu-dresden.de> # Date 1432407475 -7200 # Sat May 23 20:57:55 2015 +0200 # Node ID 93e5dd955c8bd944fd64bb04fd117c963c3758bc # Parent 8bf81e6a8e60e37c2dec9577a1be6357b8d56165 Change MAXNAMLEN to POSIX's NAME_MAX By Felix Janda <felix.janda@posteo.de>: MAXNAMLEN is usually defined in <sys/param.h> but it is better to use the equivalent POSIX NAME_MAX. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [Taken from upstream Mercurial commit 93e5dd955c8b] diff -r 8bf81e6a8e60 -r 93e5dd955c8b src/getsdir.c --- a/src/getsdir.c Sat May 23 20:57:11 2015 +0200 +++ b/src/getsdir.c Sat May 23 20:57:55 2015 +0200 @@ -145,7 +145,7 @@ * * The data will be in the form: * typedef struct dirEntry { - * char fname[MAXNAMLEN + 1]; + * char fname[NAME_MAX + 1]; * time_t time; * mode_t mode; * } GETSDIR_ENTRY; @@ -232,7 +232,7 @@ } /* copy the filename */ - strncpy((*datptr)[cnt].fname, dp->d_name, MAXNAMLEN); + strncpy((*datptr)[cnt].fname, dp->d_name, NAME_MAX); /* get information about the directory entry */ snprintf(fpath, sizeof(fpath), "%s/%s", dirpath, dp->d_name); diff -r 8bf81e6a8e60 -r 93e5dd955c8b src/getsdir.h --- a/src/getsdir.h Sat May 23 20:57:11 2015 +0200 +++ b/src/getsdir.h Sat May 23 20:57:55 2015 +0200 @@ -23,9 +23,10 @@ */ #include <dirent.h> +#include <limits.h> typedef struct dirEntry { /* structure of data item */ - char fname[MAXNAMLEN + 1]; /* filename + terminating null */ + char fname[NAME_MAX + 1]; /* filename + terminating null */ time_t time; /* last modification date */ mode_t mode; /* file mode (dir? etc.) */ ushort cflags; /* caller field for convenience */
shibajee/buildroot
package/minicom/0002-change-maxnamlen-to-posixs-name-max.patch
patch
mit
1,815
config BR2_PACKAGE_MINICOM bool "minicom" depends on BR2_USE_WCHAR depends on BR2_USE_MMU # fork select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE select BR2_PACKAGE_NCURSES help Minicom is a menu driven communications program. It emulates ANSI and VT102 terminals. It has a dialing directory and auto zmodem download. http://alioth.debian.org/projects/minicom/ comment "minicom needs a toolchain w/ wchar" depends on BR2_USE_MMU depends on !BR2_USE_WCHAR
shibajee/buildroot
package/minicom/Config.in
in
mit
478
# Locally calculated sha256 9ac3a663b82f4f5df64114b4792b9926b536c85f59de0f2d2b321c7626a904f4 minicom-2.7.tar.gz
shibajee/buildroot
package/minicom/minicom.hash
hash
mit
113
################################################################################ # # minicom # ################################################################################ MINICOM_VERSION = 2.7 MINICOM_SITE = https://alioth.debian.org/frs/download.php/file/3977 MINICOM_LICENSE = GPLv2+ MINICOM_LICENSE_FILES = COPYING # pkg-config is only used to check for liblockdev, which we don't have # in BR, so instead of adding host-pkgconf as a dependency, simply make # sure the host version isn't used so we don't end up with problems if # people have liblockdev1-dev installed MINICOM_CONF_ENV = PKG_CONFIG=/bin/false MINICOM_DEPENDENCIES = ncurses $(if $(BR2_ENABLE_LOCALE),,libiconv) $(eval $(autotools-package))
shibajee/buildroot
package/minicom/minicom.mk
mk
mit
719
config BR2_PACKAGE_MINIDLNA bool "minidlna" depends on !BR2_STATIC_LIBS depends on BR2_USE_WCHAR # flac depends on BR2_USE_MMU # fork depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS select BR2_PACKAGE_FFMPEG select BR2_PACKAGE_FLAC select BR2_PACKAGE_LIBVORBIS # selects libogg select BR2_PACKAGE_LIBOGG select BR2_PACKAGE_LIBID3TAG # selects zlib select BR2_PACKAGE_LIBEXIF select BR2_PACKAGE_JPEG select BR2_PACKAGE_SQLITE select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE help MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully compliant with DLNA/UPnP-AV clients. http://minidlna.sourceforge.net/ comment "minidlna needs a toolchain w/ dynamic library, threads, wchar" depends on BR2_USE_MMU depends on BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \ BR2_STATIC_LIBS
shibajee/buildroot
package/minidlna/Config.in
in
mit
911
#!/bin/sh # # minidlnad Starts minidlnad. # start() { printf "Starting minidlna: " umask 077 start-stop-daemon -S -q -p /var/run/minidlna/minidlna.pid \ --exec /usr/sbin/minidlnad -- "$@" [ $? = 0 ] && echo "OK" || echo "FAIL" } stop() { printf "Stopping minidlna: " start-stop-daemon -K -q -p /var/run/minidlna/minidlna.pid [ $? = 0 ] && echo "OK" || echo "FAIL" } restart() { stop # Sleep needed for minidlna to restart properly sleep 1 start "$@" } case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; force-reload) restart -R ;; *) echo "Usage: $0 {start|stop|restart|force-reload}" exit 1 esac exit $?
shibajee/buildroot
package/minidlna/S60minidlnad
none
mit
667
# From http://sourceforge.net/projects/minidlna/files/minidlna/1.1.5/ md5 1970e553a1eb8a3e7e302e2ce292cbc4 minidlna-1.1.5.tar.gz sha1 8185337621f5f9111118d8a4bca1e8cfcdd19505 minidlna-1.1.5.tar.gz
shibajee/buildroot
package/minidlna/minidlna.hash
hash
mit
197
################################################################################ # # minidlna # ################################################################################ MINIDLNA_VERSION = 1.1.5 MINIDLNA_SITE = http://downloads.sourceforge.net/project/minidlna/minidlna/$(MINIDLNA_VERSION) MINIDLNA_LICENSE = GPLv2, BSD-3c MINIDLNA_LICENSE_FILES = COPYING LICENCE.miniupnpd MINIDLNA_DEPENDENCIES = \ $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-gettext \ ffmpeg flac libvorbis libogg libid3tag libexif jpeg sqlite \ host-xutil_makedepend MINIDLNA_CONF_OPTS = \ --disable-static define MINIDLNA_INSTALL_CONF $(INSTALL) -D -m 644 $(@D)/minidlna.conf $(TARGET_DIR)/etc/minidlna.conf endef MINIDLNA_POST_INSTALL_TARGET_HOOKS += MINIDLNA_INSTALL_CONF define MINIDLNA_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/minidlna/S60minidlnad \ $(TARGET_DIR)/etc/init.d/S60minidlnad endef define MINIDLNA_INSTALL_INIT_SYSTEMD $(INSTALL) -D -m 0755 package/minidlna/minidlnad.service \ $(TARGET_DIR)/usr/lib/systemd/system/minidlnad.service mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -fs ../../../../usr/lib/systemd/system/minidlnad.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/minidlnad.service endef $(eval $(autotools-package))
shibajee/buildroot
package/minidlna/minidlna.mk
mk
mit
1,305
[Unit] Description=minidlna server After=network.target [Service] Type=forking ExecStart=/usr/sbin/minidlnad PIDFile=/var/run/minidlna/minidlna.pid [Install] WantedBy=multi-user.target
shibajee/buildroot
package/minidlna/minidlnad.service
service
mit
187
config BR2_PACKAGE_MINISSDPD bool "minissdpd" depends on BR2_USE_MMU # fork() select BR2_PACKAGE_LIBNFNETLINK help SSDP managing daemon. Designed to work with miniupnpc, miniupnpd, minidlna, etc. http://miniupnp.free.fr/
shibajee/buildroot
package/minissdpd/Config.in
in
mit
235
#!/bin/sh NAME=minissdpd PIDFILE=/var/run/$NAME.pid DAEMON=/usr/sbin/$NAME CFGFILE=/etc/default/$NAME IFACE=eth0 # Read configuration variable file if it is present if [ -f $CFGFILE ]; then . $CFGFILE fi DAEMON_ARGS="-i $IFACE" start() { printf "Starting $NAME: " start-stop-daemon -S -q -m -b -p $PIDFILE --exec $DAEMON -- $DAEMON_ARGS [ $? = 0 ] && echo "OK" || echo "FAIL" } stop() { printf "Stopping $NAME: " start-stop-daemon -K -q -p $PIDFILE [ $? = 0 ] && echo "OK" || echo "FAIL" } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit $?
shibajee/buildroot
package/minissdpd/S50minissdpd
none
mit
685
# Locally computed: sha256 dfd637b185731e1acb412a86faa9718eb93c04ca08280541a6d22d14d1fb890f minissdpd-1.5.tar.gz
shibajee/buildroot
package/minissdpd/minissdpd.hash
hash
mit
113
################################################################################ # # minissdpd # ################################################################################ MINISSDPD_VERSION = 1.5 MINISSDPD_SITE = http://miniupnp.free.fr/files MINISSDPD_LICENSE = BSD-3c MINISSDPD_LICENSE_FILES = LICENSE MINISSDPD_DEPENDENCIES = libnfnetlink define MINISSDPD_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \ -C $(@D) endef define MINISSDPD_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \ PREFIX=$(TARGET_DIR) install endef # Use dedicated init scripts for systemV and systemd instead of using # minissdpd.init.d.script as it is not compatible with buildroot init system define MINISSDPD_INSTALL_INIT_SYSV $(RM) $(TARGET_DIR)/etc/init.d/minissdpd $(INSTALL) -D -m 0755 package/minissdpd/S50minissdpd \ $(TARGET_DIR)/etc/init.d/S50minissdpd endef define MINISSDPD_INSTALL_INIT_SYSTEMD $(INSTALL) -D -m 644 package/minissdpd/minissdpd.service \ $(TARGET_DIR)/usr/lib/systemd/system/minissdpd.service mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -sf ../../../../usr/lib/systemd/system/minissdpd.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/minissdpd.service endef $(eval $(generic-package))
shibajee/buildroot
package/minissdpd/minissdpd.mk
mk
mit
1,332
[Unit] Description=SSDP managing daemon After=network.target [Service] Environment="IFACE=eth0" EnvironmentFile=/etc/default/minissdpd ExecStart=/usr/sbin/minissdpd -i $IFACE Restart=always [Install] WantedBy=multi-user.target
shibajee/buildroot
package/minissdpd/minissdpd.service
service
mit
229
config BR2_PACKAGE_MINIZIP bool "minizip" select BR2_PACKAGE_ZLIB help Enables to extract files from a .zip archive file. It is compatible with PKZip 2.04g, WinZip, InfoZip, MimarSinan Codex Suite 2002 tools, and compatible sofware. https://github.com/nmoinvaz/minizip config BR2_PACKAGE_MINIZIP_DEMOS bool "miniunzip/minizip" depends on BR2_PACKAGE_MINIZIP help Enable miniunzip/minizip binary tools.
shibajee/buildroot
package/minizip/Config.in
in
mit
425
# Locally computed sha256 ac361f40531d9fb7222d4befd10d160c647d5e85138f6bc9eda080ed8f937fb8 minizip-5f56dd81d94bd7028f7dc05d7d14112697c30241.tar.gz
shibajee/buildroot
package/minizip/minizip.hash
hash
mit
147
################################################################################ # # minizip # ################################################################################ MINIZIP_VERSION = 5f56dd81d94bd7028f7dc05d7d14112697c30241 MINIZIP_SITE = $(call github,nmoinvaz,minizip,$(MINIZIP_VERSION)) MINIZIP_DEPENDENCIES = zlib MINIZIP_AUTORECONF = YES MINIZIP_INSTALL_STAGING = YES MINIZIP_CONF_OPTS = $(if $(BR2_PACKAGE_MINIZIP_DEMOS),--enable-demos) MINIZIP_LICENSE = zlib license MINIZIP_LICENSE_FILES = LICENSE $(eval $(autotools-package))
shibajee/buildroot
package/minizip/minizip.mk
mk
mit
548
config BR2_PACKAGE_MIRACLECAST bool "miraclecast" depends on BR2_PACKAGE_SYSTEMD depends on BR2_TOOLCHAIN_USES_GLIBC depends on BR2_USE_WCHAR # glib2 depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 depends on BR2_USE_MMU # glib2 select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_GSTREAMER1 select BR2_PACKAGE_READLINE select BR2_PACKAGE_SYSTEMD_KDBUS help The MiracleCast project provides software to connect external monitors to your system via Wifi. It is compatible to the Wifi-Display specification also known as Miracast. MiracleCast implements the Display-Source as well as Display-Sink side. https://github.com/albfan/miraclecast comment "miraclecast needs systemd and a glibc toolchain w/ threads and wchar" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_USE_WCHAR \ || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_SYSTEMD
shibajee/buildroot
package/miraclecast/Config.in
in
mit
876
# Locally calculated sha256 e11440f782519663db367285dd54b53eb5feb78682dac42bd90230222de9f0fd miraclecast-c94be167c85c6ec8badd7ac79e3dea2e0b73225c.tar.gz
shibajee/buildroot
package/miraclecast/miraclecast.hash
hash
mit
153
################################################################################ # # miraclecast # ################################################################################ MIRACLECAST_VERSION = c94be167c85c6ec8badd7ac79e3dea2e0b73225c MIRACLECAST_SITE = $(call github,albfan,miraclecast,$(MIRACLECAST_VERSION)) MIRACLECAST_LICENSE = LGPLv2.1+, GPLv2 (gdhcp) MIRACLECAST_LICENSE_FILES = COPYING LICENSE_gdhcp LICENSE_htable LICENSE_lgpl MIRACLECAST_DEPENDENCIES = host-pkgconf systemd gstreamer1 \ readline libglib2 # Straight out the repository, no ./configure MIRACLECAST_AUTORECONF = YES define MIRACLECAST_INSTALL_DBUS_POLICY $(INSTALL) -m 0644 -D \ $(@D)/res/org.freedesktop.miracle.conf \ $(TARGET_DIR)/etc/dbus-1/system.d/org.freedesktop.miracle.conf endef MIRACLECAST_POST_INSTALL_TARGET_HOOKS += MIRACLECAST_INSTALL_DBUS_POLICY $(eval $(autotools-package))
shibajee/buildroot
package/miraclecast/miraclecast.mk
mk
mit
882
config BR2_PACKAGE_MJPEGTOOLS bool "mjpegtools" select BR2_PACKAGE_JPEG depends on BR2_USE_MMU # fork depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS help The mjpegtools programs are a set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux. http://mjpeg.sourceforge.net comment "mjpegtools needs a toolchain w/ C++, threads" depends on BR2_USE_MMU depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/mjpegtools/Config.in
in
mit
548
# From http://sourceforge.net/projects/mjpeg/files/mjpegtools/2.1.0/ md5 57bf5dd78976ca9bac972a6511b236f3 mjpegtools-2.1.0.tar.gz sha1 b9effa86280e23d67369e842e5cb645948583097 mjpegtools-2.1.0.tar.gz
shibajee/buildroot
package/mjpegtools/mjpegtools.hash
hash
mit
200
################################################################################ # # mjpegtools # ################################################################################ MJPEGTOOLS_VERSION = 2.1.0 MJPEGTOOLS_SITE = http://sourceforge.net/projects/mjpeg/files/mjpegtools/$(MJPEGTOOLS_VERSION) MJPEGTOOLS_DEPENDENCIES = host-pkgconf jpeg MJPEGTOOLS_LICENSE = GPLv2+ MJPEGTOOLS_LICENSE_FILES = COPYING ifeq ($(BR2_PACKAGE_LIBPNG),y) MJPEGTOOLS_CONF_OPTS += --with-libpng MJPEGTOOLS_DEPENDENCIES += libpng else MJPEGTOOLS_CONF_OPTS += --without-libpng endif # expects X11 backend in sdl ifeq ($(BR2_PACKAGE_SDL_X11),y) MJPEGTOOLS_CONF_OPTS += --with-libsdl MJPEGTOOLS_DEPENDENCIES += sdl else MJPEGTOOLS_CONF_OPTS += --without-libsdl endif ifeq ($(BR2_PACKAGE_SDL_GFX),y) MJPEGTOOLS_CONF_OPTS += --with-sdlgfx MJPEGTOOLS_DEPENDENCIES += sdl_gfx else MJPEGTOOLS_CONF_OPTS += --without-sdlgfx endif ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y) MJPEGTOOLS_CONF_OPTS += --with-x MJPEGTOOLS_DEPENDENCIES += xlib_libX11 else MJPEGTOOLS_CONF_OPTS += --without-x endif ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86DGA),y) MJPEGTOOLS_CONF_OPTS += --with-dga MJPEGTOOLS_DEPENDENCIES += xlib_libXxf86dga else MJPEGTOOLS_CONF_OPTS += --without-dga endif ifeq ($(BR2_PACKAGE_LIBGTK2),y) MJPEGTOOLS_CONF_OPTS += --with-gtk MJPEGTOOLS_DEPENDENCIES += libgtk2 else MJPEGTOOLS_CONF_OPTS += --without-gtk endif $(eval $(autotools-package))
shibajee/buildroot
package/mjpegtools/mjpegtools.mk
mk
mit
1,414
Fix musl build Patch written by Thomas Petazzoni: http://patchwork.ozlabs.org/patch/572309/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> diff -uNr mjpg-streamer-bbf32fddfd02a9e072e89e83a5b33e6ca0a7bd4b.org/plugins/input.h mjpg-streamer-bbf32fddfd02a9e072e89e83a5b33e6ca0a7bd4b/plugins/input.h --- mjpg-streamer-bbf32fddfd02a9e072e89e83a5b33e6ca0a7bd4b.org/plugins/input.h 2015-11-09 15:56:47.000000000 +0100 +++ mjpg-streamer-bbf32fddfd02a9e072e89e83a5b33e6ca0a7bd4b/plugins/input.h 2016-01-26 20:19:05.884349502 +0100 @@ -20,6 +20,7 @@ # # *******************************************************************************/ +#include <pthread.h> #include <syslog.h> #include "../mjpg_streamer.h" #define INPUT_PLUGIN_PREFIX " i: "
shibajee/buildroot
package/mjpg-streamer/0001-musl-pthread.patch
patch
mit
824
config BR2_PACKAGE_MJPG_STREAMER bool "mjpg-streamer" depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # linux/uvcvideo.h depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() depends on !BR2_STATIC_LIBS # plugins need dlopen() select BR2_PACKAGE_JPEG help MJPG-streamer takes JPGs from Linux-UVC compatible webcams, filesystem or other input plugins and streams them as M-JPEG via HTTP to webbrowsers, VLC and other software. http://mjpg-streamer.sourceforge.net comment "mjpg-streamer needs a toolchain w/ threads, headers >= 3.0, dynamic library" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS || \ !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 || BR2_STATIC_LIBS
shibajee/buildroot
package/mjpg-streamer/Config.in
in
mit
708
# Locally computed sha256 756a60cbc3404ac21109bb66091774ac8e1d64ebf60e2bf2c0d08a06d1abb9be mjpg-streamer-bbf32fddfd02a9e072e89e83a5b33e6ca0a7bd4b.tar.gz
shibajee/buildroot
package/mjpg-streamer/mjpg-streamer.hash
hash
mit
153
################################################################################ # # mjpg-streamer # ################################################################################ # Original source is located at # http://sourceforge.net/p/mjpg-streamer/code/commit_browser # oliv3r forked the repo to add support for 3.16 and 3.17 kernels: # http://sourceforge.net/p/mjpg-streamer/patches/14/ MJPG_STREAMER_VERSION = bbf32fddfd02a9e072e89e83a5b33e6ca0a7bd4b MJPG_STREAMER_SITE = $(call github,oliv3r,mjpg-streamer,$(MJPG_STREAMER_VERSION)) MJPG_STREAMER_LICENSE = GPLv2+ MJPG_STREAMER_LICENSE_FILES = LICENSE MJPG_STREAMER_DEPENDENCIES = jpeg ifeq ($(BR2_PACKAGE_LIBV4L),y) MJPG_STREAMER_DEPENDENCIES += libv4l MJPG_STREAMER_USE_LIBV4L += USE_LIBV4L2=true endif define MJPG_STREAMER_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) $(MJPG_STREAMER_USE_LIBV4L) endef define MJPG_STREAMER_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install endef $(eval $(generic-package))
shibajee/buildroot
package/mjpg-streamer/mjpg-streamer.mk
mk
mit
1,035
config BR2_PACKAGE_HOST_MKE2IMG bool "host mke2img" select BR2_PACKAGE_HOST_E2FSPROGS select BR2_PACKAGE_HOST_GENEXT2FS help Easily create filesystems of the extend familly: ext2/3/4. This tool is bundled by, and specific to Buildroot. However, it can be used from post-images scripts is needed. https://code.google.com/p/mke2img/
shibajee/buildroot
package/mke2img/Config.in.host
host
mit
349
#!/usr/bin/env bash # Buildroot wrapper to the collection of ext2/3/4 filesystem tools: # - genext2fs, to generate ext2 filesystem images # - tune2fs, to modify an ext2/3/4 filesystem (possibly in an image file) # - e2fsck, to check and fix an ext2/3/4 filesystem (possibly in an image file) set -e main() { local OPT OPTARG local nb_blocks nb_inodes nb_res_blocks root_dir image gen rev label uuid local -a genext2fs_opts local -a tune2fs_opts local tune2fs_O_opts # Default values gen=2 rev=1 nb_extra_blocks=0 nb_extra_inodes=0 while getopts :hb:B:i:I:r:d:o:G:R:l:u: OPT; do case "${OPT}" in h) help; exit 0;; b) nb_blocks=${OPTARG};; B) nb_extra_blocks=${OPTARG};; i) nb_inodes=${OPTARG};; I) nb_extra_inodes=${OPTARG};; r) nb_res_blocks=${OPTARG};; d) root_dir="${OPTARG}";; o) image="${OPTARG}";; G) gen=${OPTARG};; R) rev=${OPTARG};; l) label="${OPTARG}";; u) uuid="${OPTARG}";; :) error "option '%s' expects a mandatory argument\n" "${OPTARG}";; \?) error "unknown option '%s'\n" "${OPTARG}";; esac done # Sanity checks if [ -z "${root_dir}" ]; then error "you must specify a root directory with '-d'\n" fi if [ -z "${image}" ]; then error "you must specify an output image file with '-o'\n" fi case "${gen}:${rev}" in 2:0|2:1|3:1|4:1) ;; 3:0|4:0) error "revision 0 is invalid for ext3 and ext4\n" ;; *) error "unknown ext generation '%s' and/or revision '%s'\n" \ "${gen}" "${rev}" ;; esac # calculate needed inodes if [ -z "${nb_inodes}" ]; then nb_inodes=$(find "${root_dir}" | wc -l) nb_inodes=$((nb_inodes+400)) fi nb_inodes=$((nb_inodes+nb_extra_inodes)) # calculate needed blocks if [ -z "${nb_blocks}" ]; then # size ~= superblock, block+inode bitmaps, inodes (8 per block), # blocks; we scale inodes / blocks with 10% to compensate for # bitmaps size + slack nb_blocks=$(du -s -k "${root_dir}" |sed -r -e 's/[[:space:]]+.*$//') nb_blocks=$((500+(nb_blocks+nb_inodes/8)*11/10)) if [ ${gen} -ge 3 ]; then # we add 1300 blocks (a bit more than 1 MiB, assuming 1KiB blocks) # for the journal # Note: I came to 1300 blocks after trial-and-error checks. YMMV. nb_blocks=$((nb_blocks+1300)) fi fi nb_blocks=$((nb_blocks+nb_extra_blocks)) # Upgrade to rev1 if needed if [ ${rev} -ge 1 ]; then tune2fs_O_opts+=",filetype,sparse_super" fi # Add a journal for ext3 and above if [ ${gen} -ge 3 ]; then tune2fs_opts+=( -j -J size=1 ) fi # Add ext4 specific features if [ ${gen} -ge 4 ]; then tune2fs_O_opts+=",extents,uninit_bg,dir_index" fi # Add our -O options (there will be at most one leading comma, remove it) if [ -n "${tune2fs_O_opts}" ]; then tune2fs_opts+=( -O "${tune2fs_O_opts#,}" ) fi # Add the label if specified if [ -n "${label}" ]; then tune2fs_opts+=( -L "${label}" ) fi # Generate the filesystem genext2fs_opts=( -z -b ${nb_blocks} -N ${nb_inodes} -d "${root_dir}" ) if [ -n "${nb_res_blocks}" ]; then genext2fs_opts+=( -m ${nb_res_blocks} ) fi genext2fs "${genext2fs_opts[@]}" "${image}" # genext2fs does not generate a UUID, but fsck will whine if one # is missing, so we need to add a UUID. # Of course, this has to happen _before_ we run fsck. # Also, some ext4 metadata are based on the UUID, so we must # set it before we can convert the filesystem to ext4. # If the user did not specify a UUID, we generate a random one. # Although a random UUID may seem bad for reproducibility, there # already are so many things that are not reproducible in a # filesystem: file dates, file ordering, content of the files... tune2fs -U "${uuid:-random}" "${image}" # Upgrade the filesystem if [ ${#tune2fs_opts[@]} -ne 0 ]; then tune2fs "${tune2fs_opts[@]}" "${image}" fi # After changing filesystem options, running fsck is required # (see: man tune2fs). Running e2fsck in other cases will ensure # coherency of the filesystem, although it is not required. # 'e2fsck -pDf' means: # - automatically repair # - optimise and check for duplicate entries # - force checking # Sending output to oblivion, as e2fsck can be *very* verbose, # especially with filesystems generated by genext2fs. # Exit codes 1 & 2 are OK, it means fs errors were successfully # corrected, hence our little trick with $ret. ret=0 e2fsck -pDf "${image}" >/dev/null || ret=$? case ${ret} in 0|1|2) ;; *) errorN ${ret} "failed to run e2fsck on '%s' (ext%d)\n" \ "${image}" ${gen} esac printf "\n" trace "e2fsck was successfully run on '%s' (ext%d)\n" "${image}" ${gen} printf "\n" # Remove count- and time-based checks, they are not welcome # on embedded devices, where they can cause serious boot-time # issues by tremendously slowing down the boot. tune2fs -c 0 -i 0 "${image}" } help() { cat <<_EOF_ NAME ${my_name} - Create an ext2/3/4 filesystem image SYNOPSIS ${my_name} [OPTION]... DESCRIPTION Create ext2/3/4 filesystem image from the content of a directory. -b BLOCKS Create a filesystem of BLOCKS 1024-byte blocs. The default is to compute the required number of blocks. -i INODES Create a filesystem with INODES inodes. The default is to compute the required number of inodes. -r RES_BLOCKS Create a filesystem with RES_BLOCKS reserved blocks. The default is to reserve 0 block. -d ROOT_DIR Create a filesystem, using the content of ROOT_DIR as the content of the root of the filesystem. Mandatory. -o FILE Create the filesystem in FILE. Madatory. -G GEN -R REV Create a filesystem of generation GEN (2, 3 or 4), and revision REV (0 or 1). The default is to generate an ext2 revision 1 filesystem; revision 0 is invalid for ext3 and ext4. -l LABEL Create a filesystem with label LABEL. The default is to not set a label. -u UUID Create filesystem with uuid UUID. The default is to set a random UUID. Exit status: 0 if OK !0 in case of error _EOF_ } trace() { local msg="${1}"; shift; printf "%s: ${msg}" "${my_name}" "${@}"; } warn() { trace "${@}" >&2; } errorN() { local ret="${1}"; shift; warn "${@}"; exit ${ret}; } error() { errorN 1 "${@}"; } my_name="${0##*/}" main "$@"
shibajee/buildroot
package/mke2img/mke2img
none
mit
6,860
################################################################################ # # mke2img # ################################################################################ HOST_MKE2IMG_DEPENDENCIES = host-genext2fs host-e2fsprogs define HOST_MKE2IMG_INSTALL_CMDS $(INSTALL) -D -m 0755 package/mke2img/mke2img $(HOST_DIR)/usr/bin/mke2img endef $(eval $(host-generic-package))
shibajee/buildroot
package/mke2img/mke2img.mk
mk
mit
383
/* Program version */ #define VERSION "5.0.26" /* Configurable features */ /* Always hide legal disclaimers */ #undef ALWAYS_HIDE_DISCL /* Default server */ #define DEFAULTSERVER "whois.arin.net" /* Configuration file */ /* #define CONFIG_FILE "/etc/whois.conf" */ /* autoconf in cpp macros */ #ifdef linux # define ENABLE_NLS #endif #ifdef __FreeBSD__ /* which versions? */ # define HAVE_GETOPT_LONG # define HAVE_GETADDRINFO # define ENABLE_NLS # ifndef LOCALEDIR # define LOCALEDIR "/usr/local/share/locale" # endif #endif /* needs unistd.h */ #if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L # define HAVE_GETADDRINFO # define HAVE_REGEXEC #endif #if defined __APPLE__ && defined __MACH__ # define HAVE_GETOPT_LONG # define HAVE_GETADDRINFO #endif #if defined __GLIBC__ # define HAVE_GETOPT_LONG # if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1 # define HAVE_GETADDRINFO # endif # if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 7 # define HAVE_SHA_CRYPT # endif #endif /* Unknown versions of Solaris */ #if defined __SVR4 && defined __sun # define HAVE_SHA_CRYPT # define HAVE_SOLARIS_CRYPT_GENSALT #endif /* FIXME: which systems lack this? */ #define HAVE_GETTIMEOFDAY /* FIXME: disabled because it does not parse addresses with a netmask length. * The code using it needs to be either fixed or removed. #define HAVE_INET_PTON */ /* * Please send patches to correctly ignore old releases which lack a RNG * and add more systems which have one. */ #ifdef RANDOM_DEVICE #elif defined __GLIBC__ \ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__ \ /* AIX >= 5.2? */ \ || defined _AIX52 \ /* HP-UX >= B.11.11.09? */ \ || defined __hpux \ /* OS X: */ \ || (defined __APPLE__ && defined __MACH__) \ /* Solaris >= 9 (this is >= 7): */ \ || (defined __SVR4 && defined __sun && defined SUSv2) \ /* Tru64 UNIX >= 5.1B? */ \ || defined __osf # define RANDOM_DEVICE "/dev/urandom" #endif #ifdef ENABLE_NLS # ifndef NLS_CAT_NAME # define NLS_CAT_NAME "whois" # endif # ifndef LOCALEDIR # define LOCALEDIR "/usr/share/locale" # endif #endif
shibajee/buildroot
package/mkpasswd/config.h
C++
mit
2,092
/* * Copyright (C) 2001-2008 Marco d'Itri * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* for crypt, snprintf and strcasecmp */ #define _XOPEN_SOURCE #define _BSD_SOURCE /* System library */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "config.h" #ifdef HAVE_GETOPT_LONG #include <getopt.h> #endif #include <fcntl.h> #include <string.h> #include <time.h> #include <sys/types.h> #ifdef HAVE_XCRYPT #include <xcrypt.h> #include <sys/stat.h> #endif #ifdef HAVE_LINUX_CRYPT_GENSALT #define _OW_SOURCE #include <crypt.h> #endif #ifdef HAVE_GETTIMEOFDAY #include <sys/time.h> #endif /* Application-specific */ #include "utils.h" /* Global variables */ #ifdef HAVE_GETOPT_LONG static const struct option longopts[] = { {"method", optional_argument, NULL, 'm'}, /* for backward compatibility with versions < 4.7.25 (< 20080321): */ {"hash", optional_argument, NULL, 'H'}, {"help", no_argument, NULL, 'h'}, {"password-fd", required_argument, NULL, 'P'}, {"stdin", no_argument, NULL, 's'}, {"salt", required_argument, NULL, 'S'}, {"rounds", required_argument, NULL, 'R'}, {"version", no_argument, NULL, 'V'}, {NULL, 0, NULL, 0 } }; #else extern char *optarg; extern int optind; #endif static const char valid_salts[] = "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789./"; struct crypt_method { const char *method; /* short name used by the command line option */ const char *prefix; /* salt prefix */ const unsigned int minlen; /* minimum salt length */ const unsigned int maxlen; /* maximum salt length */ const unsigned int rounds; /* supports a variable number of rounds */ const char *desc; /* long description for the methods list */ }; static const struct crypt_method methods[] = { /* method prefix minlen, maxlen rounds description */ { "des", "", 2, 2, 0, N_("standard 56 bit DES-based crypt(3)") }, { "md5", "$1$", 8, 8, 0, "MD5" }, #if defined OpenBSD || defined FreeBSD || (defined __SVR4 && defined __sun) { "bf", "$2a$", 22, 22, 1, "Blowfish" }, #endif #if defined HAVE_LINUX_CRYPT_GENSALT { "bf", "$2a$", 22, 22, 1, "Blowfish, system-specific on 8-bit chars" }, /* algorithm 2y fixes CVE-2011-2483 */ { "bfy", "$2y$", 22, 22, 1, "Blowfish, correct handling of 8-bit chars" }, #endif #if defined FreeBSD { "nt", "$3$", 0, 0, 0, "NT-Hash" }, #endif #if defined HAVE_SHA_CRYPT /* http://people.redhat.com/drepper/SHA-crypt.txt */ { "sha-256", "$5$", 8, 16, 1, "SHA-256" }, { "sha-512", "$6$", 8, 16, 1, "SHA-512" }, #endif /* http://www.crypticide.com/dropsafe/article/1389 */ /* * Actually the maximum salt length is arbitrary, but Solaris by default * always uses 8 characters: * http://cvs.opensolaris.org/source/xref/onnv/onnv-gate/ \ * usr/src/lib/crypt_modules/sunmd5/sunmd5.c#crypt_gensalt_impl */ #if defined __SVR4 && defined __sun { "sunmd5", "$md5$", 8, 8, 1, "SunMD5" }, #endif { NULL, NULL, 0, 0, 0, NULL } }; void generate_salt(char *const buf, const unsigned int len); void *get_random_bytes(const int len); void display_help(int error); void display_version(void); void display_methods(void); int main(int argc, char *argv[]) { int ch, i; int password_fd = -1; unsigned int salt_minlen = 0; unsigned int salt_maxlen = 0; unsigned int rounds_support = 0; const char *salt_prefix = NULL; const char *salt_arg = NULL; unsigned int rounds = 0; char *salt = NULL; char rounds_str[30]; char *password = NULL; #ifdef ENABLE_NLS setlocale(LC_ALL, ""); bindtextdomain(NLS_CAT_NAME, LOCALEDIR); textdomain(NLS_CAT_NAME); #endif /* prepend options from environment */ argv = merge_args(getenv("MKPASSWD_OPTIONS"), argv, &argc); while ((ch = GETOPT_LONGISH(argc, argv, "hH:m:5P:R:sS:V", longopts, 0)) > 0) { switch (ch) { case '5': optarg = (char *) "md5"; /* fall through */ case 'm': case 'H': if (!optarg || strcaseeq("help", optarg)) { display_methods(); exit(0); } for (i = 0; methods[i].method != NULL; i++) if (strcaseeq(methods[i].method, optarg)) { salt_prefix = methods[i].prefix; salt_minlen = methods[i].minlen; salt_maxlen = methods[i].maxlen; rounds_support = methods[i].rounds; break; } if (!salt_prefix) { fprintf(stderr, _("Invalid method '%s'.\n"), optarg); exit(1); } break; case 'P': { char *p; password_fd = strtol(optarg, &p, 10); if (p == NULL || *p != '\0' || password_fd < 0) { fprintf(stderr, _("Invalid number '%s'.\n"), optarg); exit(1); } } break; case 'R': { char *p; rounds = strtol(optarg, &p, 10); if (p == NULL || *p != '\0' || rounds < 0) { fprintf(stderr, _("Invalid number '%s'.\n"), optarg); exit(1); } } break; case 's': password_fd = 0; break; case 'S': salt_arg = optarg; break; case 'V': display_version(); exit(0); case 'h': display_help(EXIT_SUCCESS); default: fprintf(stderr, _("Try '%s --help' for more information.\n"), argv[0]); exit(1); } } argc -= optind; argv += optind; if (argc == 2 && !salt_arg) { password = argv[0]; salt_arg = argv[1]; } else if (argc == 1) { password = argv[0]; } else if (argc == 0) { } else { display_help(EXIT_FAILURE); } /* default: DES password */ if (!salt_prefix) { salt_minlen = methods[0].minlen; salt_maxlen = methods[0].maxlen; salt_prefix = methods[0].prefix; } if (streq(salt_prefix, "$2a$") || streq(salt_prefix, "$2y$")) { /* OpenBSD Blowfish and derivatives */ if (rounds <= 5) rounds = 5; /* actually for 2a/2y it is the logarithm of the number of rounds */ snprintf(rounds_str, sizeof(rounds_str), "%02u$", rounds); } else if (rounds_support && rounds) snprintf(rounds_str, sizeof(rounds_str), "rounds=%u$", rounds); else rounds_str[0] = '\0'; if (salt_arg) { unsigned int c = strlen(salt_arg); if (c < salt_minlen || c > salt_maxlen) { if (salt_minlen == salt_maxlen) fprintf(stderr, ngettext( "Wrong salt length: %d byte when %d expected.\n", "Wrong salt length: %d bytes when %d expected.\n", c), c, salt_maxlen); else fprintf(stderr, ngettext( "Wrong salt length: %d byte when %d <= n <= %d" " expected.\n", "Wrong salt length: %d bytes when %d <= n <= %d" " expected.\n", c), c, salt_minlen, salt_maxlen); exit(1); } while (c-- > 0) { if (strchr(valid_salts, salt_arg[c]) == NULL) { fprintf(stderr, _("Illegal salt character '%c'.\n"), salt_arg[c]); exit(1); } } salt = NOFAIL(malloc(strlen(salt_prefix) + strlen(rounds_str) + strlen(salt_arg) + 1)); *salt = '\0'; strcat(salt, salt_prefix); strcat(salt, rounds_str); strcat(salt, salt_arg); } else { #ifdef HAVE_SOLARIS_CRYPT_GENSALT #error "This code path is untested on Solaris. Please send a patch." salt = crypt_gensalt(salt_prefix, NULL); if (!salt) perror(stderr, "crypt_gensalt"); #elif defined HAVE_LINUX_CRYPT_GENSALT void *entropy = get_random_bytes(64); salt = crypt_gensalt(salt_prefix, rounds, entropy, 64); if (!salt) { fprintf(stderr, "crypt_gensalt failed.\n"); exit(2); } free(entropy); #else unsigned int salt_len = salt_maxlen; if (salt_minlen != salt_maxlen) { /* salt length can vary */ srand(time(NULL) + getpid()); salt_len = rand() % (salt_maxlen - salt_minlen + 1) + salt_minlen; } salt = NOFAIL(malloc(strlen(salt_prefix) + strlen(rounds_str) + salt_len + 1)); *salt = '\0'; strcat(salt, salt_prefix); strcat(salt, rounds_str); generate_salt(salt + strlen(salt), salt_len); #endif } if (password) { } else if (password_fd != -1) { FILE *fp; char *p; if (isatty(password_fd)) fprintf(stderr, _("Password: ")); password = NOFAIL(malloc(128)); fp = fdopen(password_fd, "r"); if (!fp) { perror("fdopen"); exit(2); } if (!fgets(password, 128, fp)) { perror("fgets"); exit(2); } p = strpbrk(password, "\n\r"); if (p) *p = '\0'; } else { password = getpass(_("Password: ")); if (!password) { perror("getpass"); exit(2); } } { const char *result; result = crypt(password, salt); /* xcrypt returns "*0" on errors */ if (!result || result[0] == '*') { fprintf(stderr, "crypt failed.\n"); exit(2); } /* yes, using strlen(salt_prefix) on salt. It's not * documented whether crypt_gensalt may change the prefix */ if (!strneq(result, salt, strlen(salt_prefix))) { fprintf(stderr, _("Method not supported by crypt(3).\n")); exit(2); } printf("%s\n", result); } exit(0); } #ifdef RANDOM_DEVICE void* get_random_bytes(const int count) { char *buf; int fd; buf = NOFAIL(malloc(count)); fd = open(RANDOM_DEVICE, O_RDONLY); if (fd < 0) { perror("open(" RANDOM_DEVICE ")"); exit(2); } if (read(fd, buf, count) != count) { if (count < 0) perror("read(" RANDOM_DEVICE ")"); else fprintf(stderr, "Short read of %s.\n", RANDOM_DEVICE); exit(2); } close(fd); return buf; } #endif #ifdef RANDOM_DEVICE void generate_salt(char *const buf, const unsigned int len) { unsigned int i; unsigned char *entropy = get_random_bytes(len * sizeof(unsigned char)); for (i = 0; i < len; i++) buf[i] = valid_salts[entropy[i] % (sizeof valid_salts - 1)]; buf[i] = '\0'; } #else /* RANDOM_DEVICE */ void generate_salt(char *const buf, const unsigned int len) { unsigned int i; # ifdef HAVE_GETTIMEOFDAY struct timeval tv; gettimeofday(&tv, NULL); srand(tv.tv_sec ^ tv.tv_usec); # else /* HAVE_GETTIMEOFDAY */ # warning "This system lacks a strong enough random numbers generator!" /* * The possible values of time over one year are 31536000, which is * two orders of magnitude less than the allowed entropy range (2^32). */ srand(time(NULL) + getpid()); # endif /* HAVE_GETTIMEOFDAY */ for (i = 0; i < len; i++) buf[i] = valid_salts[rand() % (sizeof valid_salts - 1)]; buf[i] = '\0'; } #endif /* RANDOM_DEVICE */ void display_help(int error) { fprintf((EXIT_SUCCESS == error) ? stdout : stderr, _("Usage: mkpasswd [OPTIONS]... [PASSWORD [SALT]]\n" "Crypts the PASSWORD using crypt(3).\n\n")); fprintf(stderr, _( " -m, --method=TYPE select method TYPE\n" " -5 like --method=md5\n" " -S, --salt=SALT use the specified SALT\n" " -R, --rounds=NUMBER use the specified NUMBER of rounds\n" " -P, --password-fd=NUM read the password from file descriptor NUM\n" " instead of /dev/tty\n" " -s, --stdin like --password-fd=0\n" " -h, --help display this help and exit\n" " -V, --version output version information and exit\n" "\n" "If PASSWORD is missing then it is asked interactively.\n" "If no SALT is specified, a random one is generated.\n" "If TYPE is 'help', available methods are printed.\n" "\n" "Report bugs to %s.\n"), "<md+whois@linux.it>"); exit(error); } void display_version(void) { printf("mkpasswd %s\n\n", VERSION); puts("Copyright (C) 2001-2008 Marco d'Itri\n" "This is free software; see the source for copying conditions. There is NO\n" "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."); } void display_methods(void) { unsigned int i; printf(_("Available methods:\n")); for (i = 0; methods[i].method != NULL; i++) printf("%s\t%s\n", methods[i].method, methods[i].desc); }
shibajee/buildroot
package/mkpasswd/mkpasswd.c
C++
mit
12,374
################################################################################ # # mkpasswd # ################################################################################ # source included in buildroot, taken from # https://github.com/rfc1036/whois/blob/master/ # at revision 5a0f08500fa51608b6d3b73ee338be38c692eadb HOST_MKPASSWD_LICENSE = GPLv2+ define HOST_MKPASSWD_BUILD_CMDS $(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \ package/mkpasswd/mkpasswd.c package/mkpasswd/utils.c \ -o $(@D)/mkpasswd -lcrypt endef define HOST_MKPASSWD_INSTALL_CMDS $(INSTALL) -D -m 755 $(@D)/mkpasswd $(HOST_DIR)/usr/bin/mkpasswd endef $(eval $(host-generic-package)) MKPASSWD = $(HOST_DIR)/usr/bin/mkpasswd
shibajee/buildroot
package/mkpasswd/mkpasswd.mk
mk
mit
704
/* * Copyright 1999-2008 by Marco d'Itri <md@linux.it>. * * do_nofail and merge_args come from the module-init-tools package. * Copyright 2001 by Rusty Russell. * Copyright 2002, 2003 by Rusty Russell, IBM Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* for strdup */ #define _XOPEN_SOURCE 500 /* System library */ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <errno.h> /* Application-specific */ #include "utils.h" void *do_nofail(void *ptr, const char *file, const int line) { if (ptr) return ptr; err_quit("Memory allocation failure at %s:%d.", file, line); } /* Prepend options from a string. */ char **merge_args(char *args, char *argv[], int *argc) { char *arg, *argstring; char **newargs = NULL; unsigned int i, num_env = 0; if (!args) return argv; argstring = NOFAIL(strdup(args)); for (arg = strtok(argstring, " "); arg; arg = strtok(NULL, " ")) { num_env++; newargs = NOFAIL(realloc(newargs, sizeof(newargs[0]) * (num_env + *argc + 1))); newargs[num_env] = arg; } if (!newargs) return argv; /* Append commandline args */ newargs[0] = argv[0]; for (i = 1; i <= *argc; i++) newargs[num_env + i] = argv[i]; *argc += num_env; return newargs; } /* Error routines */ void err_sys(const char *fmt, ...) { va_list ap; va_start(ap, fmt); vfprintf(stderr, fmt, ap); fprintf(stderr, ": %s\n", strerror(errno)); va_end(ap); exit(2); } void err_quit(const char *fmt, ...) { va_list ap; va_start(ap, fmt); vfprintf(stderr, fmt, ap); fputs("\n", stderr); va_end(ap); exit(2); }
shibajee/buildroot
package/mkpasswd/utils.c
C++
mit
2,350
#ifndef WHOIS_UTILS_H #define WHOIS_UTILS_H /* Convenience macros */ #define streq(a, b) (strcmp(a, b) == 0) #define strcaseeq(a, b) (strcasecmp(a, b) == 0) #define strneq(a, b, n) (strncmp(a, b, n) == 0) #define strncaseeq(a, b, n) (strncasecmp(a, b, n) == 0) #define NOFAIL(ptr) do_nofail((ptr), __FILE__, __LINE__) /* Portability macros */ #ifdef __GNUC__ # define NORETURN __attribute__((noreturn)) #else # define NORETURN #endif #ifndef AI_IDN # define AI_IDN 0 #endif #ifndef AI_ADDRCONFIG # define AI_ADDRCONFIG 0 #endif #ifdef HAVE_GETOPT_LONG # define GETOPT_LONGISH(c, v, o, l, i) getopt_long(c, v, o, l, i) #else # define GETOPT_LONGISH(c, v, o, l, i) getopt(c, v, o) #endif #ifdef ENABLE_NLS # include <libintl.h> # include <locale.h> # define _(a) (gettext(a)) # ifdef gettext_noop # define N_(a) gettext_noop(a) # else # define N_(a) (a) # endif #else # define _(a) (a) # define N_(a) (a) # define ngettext(a, b, c) ((c==1) ? (a) : (b)) #endif /* Prototypes */ void *do_nofail(void *ptr, const char *file, const int line); char **merge_args(char *args, char *argv[], int *argc); void err_quit(const char *fmt, ...) NORETURN; void err_sys(const char *fmt, ...) NORETURN; #endif
shibajee/buildroot
package/mkpasswd/utils.h
C++
mit
1,204
#include <stdio.h> #include <unistd.h> #include <getopt.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <endian.h> #define VALIDATION_WORD 0x31305341 #define MAX_IMAGE_SIZE (60 * 1024 - 4) static int add_barebox_header; struct socfpga_header { uint8_t validation_word[4]; uint8_t version; uint8_t flags; uint8_t program_length[2]; uint8_t spare[2]; uint8_t checksum[2]; }; static uint32_t bb_header[] = { 0xea00007e, /* b 0x200 */ 0xeafffffe, /* 1: b 1b */ 0xeafffffe, /* 1: b 1b */ 0xeafffffe, /* 1: b 1b */ 0xeafffffe, /* 1: b 1b */ 0xeafffffe, /* 1: b 1b */ 0xeafffffe, /* 1: b 1b */ 0xeafffffe, /* 1: b 1b */ 0x65726162, /* 'bare' */ 0x00786f62, /* 'box\0' */ 0x00000000, /* padding */ 0x00000000, /* padding */ 0x00000000, /* padding */ 0x00000000, /* padding */ 0x00000000, /* padding */ 0x00000000, /* padding */ 0x00000000, /* socfpga header */ 0x00000000, /* socfpga header */ 0x00000000, /* socfpga header */ 0xea00006b, /* entry. b 0x200 */ }; static int read_full(int fd, void *buf, size_t size) { size_t insize = size; int now; int total = 0; while (size) { now = read(fd, buf, size); if (now == 0) return total; if (now < 0) return now; total += now; size -= now; buf += now; } return insize; } static int write_full(int fd, void *buf, size_t size) { size_t insize = size; int now; while (size) { now = write(fd, buf, size); if (now <= 0) return now; size -= now; buf += now; } return insize; } static uint32_t crc_table[256] = { 0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, 0x1a864db2, 0x1e475005, 0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61, 0x350c9b64, 0x31cd86d3, 0x3c8ea00a, 0x384fbdbd, 0x4c11db70, 0x48d0c6c7, 0x4593e01e, 0x4152fda9, 0x5f15adac, 0x5bd4b01b, 0x569796c2, 0x52568b75, 0x6a1936c8, 0x6ed82b7f, 0x639b0da6, 0x675a1011, 0x791d4014, 0x7ddc5da3, 0x709f7b7a, 0x745e66cd, 0x9823b6e0, 0x9ce2ab57, 0x91a18d8e, 0x95609039, 0x8b27c03c, 0x8fe6dd8b, 0x82a5fb52, 0x8664e6e5, 0xbe2b5b58, 0xbaea46ef, 0xb7a96036, 0xb3687d81, 0xad2f2d84, 0xa9ee3033, 0xa4ad16ea, 0xa06c0b5d, 0xd4326d90, 0xd0f37027, 0xddb056fe, 0xd9714b49, 0xc7361b4c, 0xc3f706fb, 0xceb42022, 0xca753d95, 0xf23a8028, 0xf6fb9d9f, 0xfbb8bb46, 0xff79a6f1, 0xe13ef6f4, 0xe5ffeb43, 0xe8bccd9a, 0xec7dd02d, 0x34867077, 0x30476dc0, 0x3d044b19, 0x39c556ae, 0x278206ab, 0x23431b1c, 0x2e003dc5, 0x2ac12072, 0x128e9dcf, 0x164f8078, 0x1b0ca6a1, 0x1fcdbb16, 0x018aeb13, 0x054bf6a4, 0x0808d07d, 0x0cc9cdca, 0x7897ab07, 0x7c56b6b0, 0x71159069, 0x75d48dde, 0x6b93dddb, 0x6f52c06c, 0x6211e6b5, 0x66d0fb02, 0x5e9f46bf, 0x5a5e5b08, 0x571d7dd1, 0x53dc6066, 0x4d9b3063, 0x495a2dd4, 0x44190b0d, 0x40d816ba, 0xaca5c697, 0xa864db20, 0xa527fdf9, 0xa1e6e04e, 0xbfa1b04b, 0xbb60adfc, 0xb6238b25, 0xb2e29692, 0x8aad2b2f, 0x8e6c3698, 0x832f1041, 0x87ee0df6, 0x99a95df3, 0x9d684044, 0x902b669d, 0x94ea7b2a, 0xe0b41de7, 0xe4750050, 0xe9362689, 0xedf73b3e, 0xf3b06b3b, 0xf771768c, 0xfa325055, 0xfef34de2, 0xc6bcf05f, 0xc27dede8, 0xcf3ecb31, 0xcbffd686, 0xd5b88683, 0xd1799b34, 0xdc3abded, 0xd8fba05a, 0x690ce0ee, 0x6dcdfd59, 0x608edb80, 0x644fc637, 0x7a089632, 0x7ec98b85, 0x738aad5c, 0x774bb0eb, 0x4f040d56, 0x4bc510e1, 0x46863638, 0x42472b8f, 0x5c007b8a, 0x58c1663d, 0x558240e4, 0x51435d53, 0x251d3b9e, 0x21dc2629, 0x2c9f00f0, 0x285e1d47, 0x36194d42, 0x32d850f5, 0x3f9b762c, 0x3b5a6b9b, 0x0315d626, 0x07d4cb91, 0x0a97ed48, 0x0e56f0ff, 0x1011a0fa, 0x14d0bd4d, 0x19939b94, 0x1d528623, 0xf12f560e, 0xf5ee4bb9, 0xf8ad6d60, 0xfc6c70d7, 0xe22b20d2, 0xe6ea3d65, 0xeba91bbc, 0xef68060b, 0xd727bbb6, 0xd3e6a601, 0xdea580d8, 0xda649d6f, 0xc423cd6a, 0xc0e2d0dd, 0xcda1f604, 0xc960ebb3, 0xbd3e8d7e, 0xb9ff90c9, 0xb4bcb610, 0xb07daba7, 0xae3afba2, 0xaafbe615, 0xa7b8c0cc, 0xa379dd7b, 0x9b3660c6, 0x9ff77d71, 0x92b45ba8, 0x9675461f, 0x8832161a, 0x8cf30bad, 0x81b02d74, 0x857130c3, 0x5d8a9099, 0x594b8d2e, 0x5408abf7, 0x50c9b640, 0x4e8ee645, 0x4a4ffbf2, 0x470cdd2b, 0x43cdc09c, 0x7b827d21, 0x7f436096, 0x7200464f, 0x76c15bf8, 0x68860bfd, 0x6c47164a, 0x61043093, 0x65c52d24, 0x119b4be9, 0x155a565e, 0x18197087, 0x1cd86d30, 0x029f3d35, 0x065e2082, 0x0b1d065b, 0x0fdc1bec, 0x3793a651, 0x3352bbe6, 0x3e119d3f, 0x3ad08088, 0x2497d08d, 0x2056cd3a, 0x2d15ebe3, 0x29d4f654, 0xc5a92679, 0xc1683bce, 0xcc2b1d17, 0xc8ea00a0, 0xd6ad50a5, 0xd26c4d12, 0xdf2f6bcb, 0xdbee767c, 0xe3a1cbc1, 0xe760d676, 0xea23f0af, 0xeee2ed18, 0xf0a5bd1d, 0xf464a0aa, 0xf9278673, 0xfde69bc4, 0x89b8fd09, 0x8d79e0be, 0x803ac667, 0x84fbdbd0, 0x9abc8bd5, 0x9e7d9662, 0x933eb0bb, 0x97ffad0c, 0xafb010b1, 0xab710d06, 0xa6322bdf, 0xa2f33668, 0xbcb4666d, 0xb8757bda, 0xb5365d03, 0xb1f740b4 }; uint32_t crc32(uint32_t crc, void *_buf, int length) { uint8_t *buf = _buf; while (length--) crc = crc << 8 ^ crc_table[(crc >> 24 ^ *(buf++)) & 0xff]; return crc; } static int add_socfpga_header(void *buf, int size) { struct socfpga_header *header = buf + 0x40; uint8_t *buf_header = buf + 0x40; uint32_t *crc; unsigned checksum; int length = size >> 2; int i; if (size & 0x3) { fprintf(stderr, "%s: size must be multiple of 4\n", __func__); return -EINVAL; } header->validation_word[0] = VALIDATION_WORD & 0xff; header->validation_word[1] = (VALIDATION_WORD >> 8) & 0xff; header->validation_word[2] = (VALIDATION_WORD >> 16) & 0xff; header->validation_word[3] = (VALIDATION_WORD >> 24) & 0xff; header->version = 0; header->flags = 0; header->program_length[0] = length & 0xff; header->program_length[1] = (length >> 8) & 0xff; header->spare[0] = 0; header->spare[1] = 0; checksum = 0; for (i = 0; i < sizeof(*header) - 2; i++) checksum += buf_header[i]; header->checksum[0] = checksum & 0xff;; header->checksum[1] = (checksum >> 8) & 0xff;; crc = buf + size - sizeof(uint32_t); *crc = crc32(0xffffffff, buf, size - sizeof(uint32_t)); *crc ^= 0xffffffff; return 0; } static void usage(const char *prgname) { fprintf(stderr, "usage: %s [OPTIONS] <infile>\n", prgname); } int main(int argc, char *argv[]) { int opt, ret; const char *outfile = NULL, *infile; struct stat s; void *buf; int fd; int min_image_size = 80; int max_image_size = MAX_IMAGE_SIZE; int addsize = 0, pad; while ((opt = getopt(argc, argv, "o:hb")) != -1) { switch (opt) { case 'b': add_barebox_header = 1; min_image_size = 0; max_image_size = MAX_IMAGE_SIZE - 512; addsize = 512; break; case 'h': usage(argv[0]); exit(0); case 'o': outfile = optarg; break; default: exit(1); } } if (optind == argc) { usage(argv[0]); exit(1); } infile = argv[optind]; ret = stat(infile, &s); if (ret) { perror("stat"); exit(1); } if (s.st_size < min_image_size) { fprintf(stderr, "input image too small. Minimum is 80 bytes\n"); exit(1); } if (s.st_size > max_image_size) { fprintf(stderr, "input image too big. Maximum is %d bytes, got %ld bytes\n", max_image_size, s.st_size); exit(1); } fd = open(infile, O_RDONLY); if (fd < 0) { perror("open infile"); exit(1); } pad = s.st_size & 0x3; if (pad) pad = 4 - pad; buf = calloc(s.st_size + 4 + addsize + pad, 1); if (!buf) { perror("malloc"); exit(1); } ret = read_full(fd, buf + addsize, s.st_size); if (ret < 0) { perror("read infile"); exit(1); } close(fd); if (add_barebox_header) { memcpy(buf, bb_header, sizeof(bb_header)); } ret = add_socfpga_header(buf, s.st_size + 4 + addsize + pad); if (ret) exit(1); fd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0644); if (fd < 0) { perror("open outfile"); exit(1); } ret = write_full(fd, buf, s.st_size + 4 + addsize + pad); if (ret < 0) { perror("write outfile"); exit(1); } exit(0); }
shibajee/buildroot
package/mkpimage/mkpimage.c
C++
mit
7,800
################################################################################ # # mkpimage # ################################################################################ # source included in the package # came from barebox's repository: # http://git.pengutronix.de/?p=barebox.git;a=blob;f=scripts/socfpga_mkimage.c;h=1a7a66d98841e9f52c3ea49c651286aa1412c9a5;hb=HEAD HOST_MKPIMAGE_LICENSE = GPLv2 define HOST_MKPIMAGE_BUILD_CMDS $(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) \ package/mkpimage/mkpimage.c -o $(@D)/mkpimage endef define HOST_MKPIMAGE_INSTALL_CMDS $(INSTALL) -D -m 0755 $(@D)/mkpimage $(HOST_DIR)/usr/bin/mkpimage endef $(eval $(host-generic-package))
shibajee/buildroot
package/mkpimage/mkpimage.mk
mk
mit
676
mmc-utils: fix mmc.h includes Some toolchains include asm-generic/int-l64.h from their asm/types.h file for certain 64-bit architectures. This causes a conflict between types like this one: asm-generic/int-l64.h:28:25: error: conflicting types for '__s64' typedef __signed__ long __s64; ^ In file included from mmc.h:17:0, from mmc_cmds.c:30: asm-generic/int-ll64.h:29:44: note: previous declaration of '__s64' was here __extension__ typedef __signed__ long long __s64; [Ryan: added include of linux/types.h because mmc/ioctl.h does not include it in kernel version before 3.4] Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com> --- mmc.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/mmc.h b/mmc.h index 9871d62..2d54ec5 100644 --- a/mmc.h +++ b/mmc.h @@ -14,9 +14,12 @@ * Boston, MA 021110-1307, USA. */ -#include <asm-generic/int-ll64.h> +#include <linux/types.h> #include <linux/mmc/ioctl.h> #include <stdio.h> +#ifndef _ASM_GENERIC_INT_L64_H +#include <asm-generic/int-ll64.h> +#endif #define CHECK(expr, msg, err_stmt) { if (expr) { fprintf(stderr, msg); err_stmt; } }
shibajee/buildroot
package/mmc-utils/0001-fix-mmc-h-includes.patch
patch
mit
1,208
config BR2_PACKAGE_MMC_UTILS bool "mmc-utils" depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 help MMC utils https://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git comment "mmc-utils needs a toolchain w/ headers >= 3.0" depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
shibajee/buildroot
package/mmc-utils/Config.in
in
mit
285
################################################################################ # # mmc-utils # ################################################################################ MMC_UTILS_VERSION = d0b46442b50794217e53b2455c1344c548d9d088 MMC_UTILS_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git MMC_UTILS_LICENSE = GPLv2 define MMC_UTILS_BUILD_CMDS $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) endef define MMC_UTILS_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0755 $(@D)/mmc $(TARGET_DIR)/usr/bin/mmc endef $(eval $(generic-package))
shibajee/buildroot
package/mmc-utils/mmc-utils.mk
mk
mit
556
config BR2_PACKAGE_MOARVM bool "moarvm" depends on BR2_TOOLCHAIN_HAS_THREADS # libuv depends on !BR2_STATIC_LIBS # libuv depends on BR2_USE_MMU # libuv depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS # libatomic_ops # needs AO_fetch_compare_and_swap, not implemented for sparcv8/sparcv9 depends on !BR2_sparc64 && !BR2_sparc select BR2_PACKAGE_LIBUV select BR2_PACKAGE_LIBTOMMATH select BR2_PACKAGE_LIBATOMIC_OPS help Short for "Metamodel On A Runtime", MoarVM is a virtual machine built especially for Rakudo Perl 6 and the NQP Compiler Toolchain. http://moarvm.com comment "moarvm needs a toolchain w/ threads, dynamic library" depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS depends on BR2_USE_MMU depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS depends on !BR2_sparc64 && !BR2_sparc
shibajee/buildroot
package/moarvm/Config.in
in
mit
829
# Locally computed sha256 6fe9000daada59535747f2557cc73573241ba8a6044271caf1647aa37be33c6d MoarVM-2016.04.tar.gz
shibajee/buildroot
package/moarvm/moarvm.hash
hash
mit
115
################################################################################ # # moarvm # ################################################################################ MOARVM_VERSION = 2016.04 MOARVM_SITE = http://moarvm.com/releases MOARVM_SOURCE = MoarVM-$(MOARVM_VERSION).tar.gz MOARVM_LICENSE = Artistic-2.0 MOARVM_LICENSE_FILES = Artistic2.txt MOARVM_INSTALL_STAGING = YES MOARVM_DEPENDENCIES = host-luajit libuv libtommath libatomic_ops MOARVM_CONF_OPTS = \ --build=$(GNU_HOST_NAME) \ --host=$(GNU_TARGET_NAME) \ --ar="$(TARGET_AR)" \ --cc="$(TARGET_CC)" \ --ld="$(TARGET_CC)" \ --prefix="/usr" \ --lua=$(HOST_DIR)/usr/bin/luajit \ --has-libuv \ --has-libtommath \ --has-libatomic ifeq ($(BR2_ENDIAN),"BIG") MOARVM_CONF_OPTS += --big-endian endif define MOARVM_CONFIGURE_CMDS (cd $(@D); perl Configure.pl $(MOARVM_CONF_OPTS)) endef define MOARVM_BUILD_CMDS $(MAKE) -C $(@D) endef define MOARVM_INSTALL_STAGING_CMDS $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install endef define MOARVM_INSTALL_TARGET_CMDS $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install endef $(eval $(generic-package))
shibajee/buildroot
package/moarvm/moarvm.mk
mk
mit
1,118
config BR2_PACKAGE_MOBILE_BROADBAND_PROVIDER_INFO bool "mobile-broadband-provider-info" help Mobile broadband provider database. http://live.gnome.org/NetworkManager/MobileBroadband/ServiceProviders
shibajee/buildroot
package/mobile-broadband-provider-info/Config.in
in
mit
208
# From http://ftp.gnome.org/pub/GNOME/sources/mobile-broadband-provider-info/20120614/mobile-broadband-provider-info-20120614.sha256sum sha256 72507a732e0cd16cf27424bb094b1c7a03e2206c119ad124722a283e587755f1 mobile-broadband-provider-info-20120614.tar.xz
shibajee/buildroot
package/mobile-broadband-provider-info/mobile-broadband-provider-info.hash
hash
mit
255
################################################################################ # # mobile-broadband-provider-info # ################################################################################ MOBILE_BROADBAND_PROVIDER_INFO_VERSION = 20120614 MOBILE_BROADBAND_PROVIDER_INFO_SITE = http://ftp.gnome.org/pub/GNOME/sources/mobile-broadband-provider-info/$(MOBILE_BROADBAND_PROVIDER_INFO_VERSION) MOBILE_BROADBAND_PROVIDER_INFO_SOURCE = mobile-broadband-provider-info-$(MOBILE_BROADBAND_PROVIDER_INFO_VERSION).tar.xz MOBILE_BROADBAND_PROVIDER_INFO_LICENSE = Public domain MOBILE_BROADBAND_PROVIDER_INFO_LICENSE_FILES = COPYING MOBILE_BROADBAND_PROVIDER_INFO_INSTALL_STAGING = YES MOBILE_BROADBAND_PROVIDER_INFO_DEPENDENCIES = host-pkgconf $(eval $(autotools-package))
shibajee/buildroot
package/mobile-broadband-provider-info/mobile-broadband-provider-info.mk
mk
mit
772
config BR2_PACKAGE_MODEM_MANAGER bool "modemmanager" depends on BR2_PACKAGE_HAS_UDEV depends on BR2_USE_WCHAR # libglib2 and gnutls depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2 depends on BR2_USE_MMU # dbus select BR2_PACKAGE_DBUS select BR2_PACKAGE_DBUS_GLIB select BR2_PACKAGE_LIBGUDEV help ModemManager is a DBus-activated daemon which controls mobile broadband (2G/3G/4G) devices and connections. http://www.freedesktop.org/wiki/Software/ModemManager/ if BR2_PACKAGE_MODEM_MANAGER config BR2_PACKAGE_MODEM_MANAGER_LIBMBIM bool "MBIM support" select BR2_PACKAGE_LIBMBIM help This option enables support for MBIM protocol config BR2_PACKAGE_MODEM_MANAGER_LIBQMI bool "QMI support" select BR2_PACKAGE_LIBQMI help This option enables support for QMI protocol endif comment "modemmanager needs udev /dev management and a toolchain w/ wchar, threads" depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ !BR2_PACKAGE_HAS_UDEV depends on BR2_USE_MMU
shibajee/buildroot
package/modem-manager/Config.in
in
mit
1,003
#!/bin/sh # # Starts ModemManager # PIDFILE=/var/run/ModemManager.pid [ -x $MODEMMANAGER_BIN ] || exit 0 start() { printf "Starting ModemManager: " umask 077 start-stop-daemon -S -q -b -m -p $PIDFILE \ --exec /usr/sbin/ModemManager [ $? = 0 ] && echo "OK" || echo "FAIL" } stop() { printf "Stopping ModemManager: " start-stop-daemon -K -q -p $PIDFILE [ $? = 0 ] && { echo "OK"; rm -f $PIDFILE; } || echo "FAIL" } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit $ret
shibajee/buildroot
package/modem-manager/S44modem-manager
none
mit
607
# Locally computed: sha256 a94f4657a8fa6835e2734fcc6edf20aa8c8d452f62299d7748541021c3eb2445 ModemManager-1.6.0.tar.xz
shibajee/buildroot
package/modem-manager/modem-manager.hash
hash
mit
120
################################################################################ # # modem-manager # ################################################################################ MODEM_MANAGER_VERSION = 1.6.0 MODEM_MANAGER_SOURCE = ModemManager-$(MODEM_MANAGER_VERSION).tar.xz MODEM_MANAGER_SITE = http://www.freedesktop.org/software/ModemManager MODEM_MANAGER_LICENSE = GPLv2+ (programs, plugins), LGPLv2+ (libmm-glib) MODEM_MANAGER_LICENSE_FILES = COPYING MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool libgudev MODEM_MANAGER_INSTALL_STAGING = YES ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y) MODEM_MANAGER_DEPENDENCIES += libqmi MODEM_MANAGER_CONF_OPTS += --with-qmi else MODEM_MANAGER_CONF_OPTS += --without-qmi endif ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBMBIM),y) MODEM_MANAGER_DEPENDENCIES += libmbim MODEM_MANAGER_CONF_OPTS += --with-mbim else MODEM_MANAGER_CONF_OPTS += --without-mbim endif define MODEM_MANAGER_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D package/modem-manager/S44modem-manager \ $(TARGET_DIR)/etc/init.d/S44modem-manager endef $(eval $(autotools-package))
shibajee/buildroot
package/modem-manager/modem-manager.mk
mk
mit
1,112
config BR2_PACKAGE_MODPLUGTOOLS bool "modplugtools" depends on BR2_INSTALL_LIBSTDCPP # libmodplug select BR2_PACKAGE_LIBAO select BR2_PACKAGE_LIBMODPLUG help This installs the 'modplug123' command line tool to play music files in the tracker formats supported by libmodplug: MOD, S3M, XM etc. Audio output is handled by libao. http://modplug-xmms.sourceforge.net/ comment "modplugtools needs a toolchain w/ C++" depends on !BR2_INSTALL_LIBSTDCPP
shibajee/buildroot
package/modplugtools/Config.in
in
mit
466
# Locally computed: sha256 0122d44ea0513b928cf9d463acc886d08a2664579aa96ddeeb270d5c81193a4e modplugtools-0.5.3.tar.gz
shibajee/buildroot
package/modplugtools/modplugtools.hash
hash
mit
120
################################################################################ # # modplugtools # ################################################################################ MODPLUGTOOLS_VERSION = 0.5.3 MODPLUGTOOLS_SITE = http://downloads.sourceforge.net/project/modplug-xmms/modplug-tools MODPLUGTOOLS_LICENSE = GPLv3 MODPLUGTOOLS_LICENSE_FILES = COPYING MODPLUGTOOLS_DEPENDENCIES = libao libmodplug # Only build the 'mp123' subdir, which contains 'modplug123' that plays through # various backends via libao. This excludes the 'mpplay' subdir, which contains # 'modplugplay' that can play only through the deprecated OSS interface. MODPLUGTOOLS_MAKE_OPTS = SUBDIRS=mp123 MODPLUGTOOLS_INSTALL_TARGET_OPTS = SUBDIRS=mp123 DESTDIR=$(TARGET_DIR) install $(eval $(autotools-package))
shibajee/buildroot
package/modplugtools/modplugtools.mk
mk
mit
793
# from src/mongo/platform/bits.h config BR2_PACKAGE_MONGODB_ARCH_SUPPORTS bool # ARM needs LDREX/STREX, so ARMv6+ default y if BR2_arm && !BR2_ARM_CPU_ARMV4 && !BR2_ARM_CPU_ARMV5 default y if BR2_aarch64 || BR2_i386 || BR2_powerpc64 || BR2_x86_64 config BR2_PACKAGE_MONGODB bool "mongodb" depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_USES_GLIBC # needs glibc malloc_usable_size depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11 help MongoDB is a cross-platform document-oriented database (NoSQL). It uses JSON-like documents with dynamic schemas (BSON), making the integration of data in certain types of applications easier and faster. https://www.mongodb.org/ comment "mongodb needs a glibc toolchain w/ wchar, threads, C++, gcc >= 4.8" depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC || \ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 depends on BR2_PACKAGE_MONGODB_ARCH_SUPPORTS
shibajee/buildroot
package/mongodb/Config.in
in
mit
1,091
# Locally computed: sha256 4764945631bca4ac5c2b239e04e91db00e39716915204349170c37cb7897c564 mongodb-r3.3.4.tar.gz
shibajee/buildroot
package/mongodb/mongodb.hash
hash
mit
115
################################################################################ # # mongodb # ################################################################################ MONGODB_VERSION_BASE = 3.3.4 MONGODB_VERSION = r$(MONGODB_VERSION_BASE) MONGODB_SITE = $(call github,mongodb,mongo,$(MONGODB_VERSION)) MONGODB_LICENSE = AGPLv3, Apache-2.0 MONGODB_LICENSE_FILES = GNU-AGPL-3.0.txt APACHE-2.0.txt MONGODB_DEPENDENCIES = host-scons MONGODB_SCONS_TARGETS = mongod mongos MONGODB_SCONS_ENV = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" \ -j"$(PARALLEL_JOBS)" MONGODB_SCONS_OPTS = --disable-warnings-as-errors # need to pass mongo version when not building from git repo MONGODB_SCONS_OPTS += MONGO_VERSION=$(MONGODB_VERSION_BASE)- # WiredTiger database storage engine only supported on 64 bits ifeq ($(BR2_ARCH_IS_64),y) MONGODB_SCONS_OPTS += --wiredtiger=on else MONGODB_SCONS_OPTS += --wiredtiger=off endif # JavaScript scripting engine and tcmalloc supported only on # x86/x86-64 systems. Mongo target is a shell interface that # depends on the javascript engine, so it will also only be # built on x86/x86-64 systems. ifeq ($(BR2_i386)$(BR2_x86_64),y) MONGODB_SCONS_OPTS += --js-engine=mozjs --allocator=tcmalloc MONGODB_SCONS_TARGETS += mongo else MONGODB_SCONS_OPTS += --js-engine=none --allocator=system endif ifeq ($(BR2_PACKAGE_OPENSSL),y) MONGODB_DEPENDENCIES += openssl MONGODB_SCONS_OPTS += --ssl=SSL endif define MONGODB_BUILD_CMDS (cd $(@D); \ $(SCONS) \ $(MONGODB_SCONS_ENV) \ $(MONGODB_SCONS_OPTS) \ $(MONGODB_SCONS_TARGETS)) endef define MONGODB_INSTALL_TARGET_CMDS (cd $(@D); \ $(SCONS) \ $(MONGODB_SCONS_ENV) \ $(MONGODB_SCONS_OPTS) \ --prefix=$(TARGET_DIR)/usr \ install) endef $(eval $(generic-package))
shibajee/buildroot
package/mongodb/mongodb.mk
mk
mit
1,757
config BR2_PACKAGE_MONGOOSE bool "mongoose" depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() help Mongoose is an embedded networking library, which can turn anything into a web server https://github.com/cesanta/mongoose comment "mongoose needs a toolchain w/ threads" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/mongoose/Config.in
in
mit
366
# Locally computed: sha256 94b934da083afe8abb1c0af5abb8f25294050011793f048166b12f000f9433a0 mongoose-6.2.tar.gz
shibajee/buildroot
package/mongoose/mongoose.hash
hash
mit
113
################################################################################ # # mongoose # ################################################################################ MONGOOSE_VERSION = 6.2 MONGOOSE_SITE = $(call github,cesanta,mongoose,$(MONGOOSE_VERSION)) MONGOOSE_LICENSE = GPLv2 MONGOOSE_LICENSE_FILES = LICENSE MONGOOSE_INSTALL_STAGING = YES MONGOOSE_CFLAGS = $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -DMONGOOSE_NO_DL ifeq ($(BR2_PACKAGE_OPENSSL),y) MONGOOSE_DEPENDENCIES += openssl # directly linked MONGOOSE_CFLAGS += -DNS_ENABLE_SSL -lssl -lcrypto -lz endif define MONGOOSE_BUILD_CMDS $(TARGET_CC) -c $(@D)/mongoose.c $(MONGOOSE_CFLAGS) -o $(@D)/mongoose.o $(TARGET_AR) rcs $(@D)/libmongoose.a $(@D)/mongoose.o endef define MONGOOSE_INSTALL_STAGING_CMDS $(INSTALL) -D -m 644 $(@D)/libmongoose.a \ $(STAGING_DIR)/usr/lib/libmongoose.a $(INSTALL) -D -m 644 $(@D)/mongoose.h \ $(STAGING_DIR)/usr/include/mongoose.h endef $(eval $(generic-package))
shibajee/buildroot
package/mongoose/mongoose.mk
mk
mit
971
From 3cbef2195533f357c8a80c2840108662461273b7 Mon Sep 17 00:00:00 2001 From: Lionel Orry <lionel.orry@gmail.com> Date: Wed, 27 Mar 2013 14:48:19 +0100 Subject: [PATCH 4/4] Do not run tests. This patch is specific to cross-compiled environments and avoids running the tests on the host. It is not meant to be applied upstream. Signed-off-by: Lionel Orry <lionel.orry@gmail.com> --- Makefile | 2 +- tools/m2sh/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7dc4089..ca72630 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ TEST_SRC=$(wildcard tests/*_tests.c) TESTS=$(patsubst %.c,%,${TEST_SRC}) MAKEOPTS=OPTFLAGS="${NOEXTCFLAGS} ${OPTFLAGS}" OPTLIBS="${OPTLIBS}" LIBS="${LIBS}" DESTDIR="${DESTDIR}" PREFIX="${PREFIX}" -all: bin/mongrel2 tests m2sh procer +all: bin/mongrel2 m2sh procer filters config_modules dev: CFLAGS=-g -Wall -Isrc -Wall -Wextra $(OPTFLAGS) -D_FILE_OFFSET_BITS=64 dev: all diff --git a/tools/m2sh/Makefile b/tools/m2sh/Makefile index b50d8a0..334e4da 100644 --- a/tools/m2sh/Makefile +++ b/tools/m2sh/Makefile @@ -9,7 +9,7 @@ TESTS=$(patsubst %.c,%,${TEST_SRC}) LIB_SRC=$(filter-out src/m2sh.c,${SOURCES}) LIB_OBJ=$(filter-out src/m2sh.o,${OBJECTS}) -all: ../lemon/lemon tests build/m2sh +all: ../lemon/lemon build/m2sh dev: CFLAGS=-g -Wall -Wextra -Isrc -I../../src $(OPTFLAGS) dev: all -- 1.8.1.4
shibajee/buildroot
package/mongrel2/0002-Do-not-run-tests.patch
patch
mit
1,417
From 298356c44a7df2b34c4e307c531d2010e2cb4b79 Mon Sep 17 00:00:00 2001 From: Lionel Orry <lionel.orry@gmail.com> Date: Wed, 27 Mar 2013 15:56:56 +0100 Subject: [PATCH 1/1] Fix Makefiles for cross-compilation The CFLAGS handling in mongrel2 is really messy and it is hard to make it behave correctly with cross-compiling environments. This patch restricts the Makefiles syntax to GNU Make, but help cross-compiling. This is not meant to be applied upstream. Signed-off-by: Lionel Orry <lionel.orry@gmail.com> --- Makefile | 2 +- tools/config_modules/Makefile | 2 +- tools/filters/Makefile | 2 +- tools/m2sh/Makefile | 2 +- tools/procer/Makefile | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 6dce4a6..d48e05e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS=-g -O2 -Wall -Wextra -Isrc -Isrc/polarssl/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64 +override CFLAGS += -g -O2 -Wall -Wextra -Isrc -Isrc/polarssl/include -pthread -rdynamic -DNDEBUG $(OPTFLAGS) -D_FILE_OFFSET_BITS=64 LIBS=-lzmq -ldl -lsqlite3 $(OPTLIBS) PREFIX?=/usr/local diff --git a/tools/config_modules/Makefile b/tools/config_modules/Makefile index 398490c..53f2255 100644 --- a/tools/config_modules/Makefile +++ b/tools/config_modules/Makefile @@ -1,5 +1,5 @@ PREFIX?=/usr/local -CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build +override CFLAGS += -I../../src -I../../src/polarssl/include $(OPTFLAGS) -fPIC -shared -nostartfiles -L../../build LDFLAGS=$(OPTLIBS) MONGO_SRC = mongo-c-driver/src/bson.c \ diff --git a/tools/filters/Makefile b/tools/filters/Makefile index f9f4556..6077b79 100644 --- a/tools/filters/Makefile +++ b/tools/filters/Makefile @@ -1,5 +1,5 @@ PREFIX?=/usr/local -CFLAGS=-I../../src -I../../src/polarssl/include $(OPTFLAGS) -g -fPIC -shared -nostartfiles -L../../build + override CFLAGS += -I../../src -I../../src/polarssl/include $(OPTFLAGS) -g -fPIC -shared -nostartfiles -L../../build LDFLAGS=$(OPTLIBS) all: null.so diff --git a/tools/m2sh/Makefile b/tools/m2sh/Makefile index b50d8a0..ba378c5 100644 --- a/tools/m2sh/Makefile +++ b/tools/m2sh/Makefile @@ -1,4 +1,4 @@ -CFLAGS=-DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS) +override CFLAGS += -DNDEBUG -DNO_LINENOS -pthread -g -I../../src -Isrc -Wall $(OPTFLAGS) LIBS=-lzmq -lsqlite3 ../../build/libm2.a $(OPTLIBS) PREFIX?=/usr/local diff --git a/tools/procer/Makefile b/tools/procer/Makefile index d0d7de0..629b2e9 100644 --- a/tools/procer/Makefile +++ b/tools/procer/Makefile @@ -1,4 +1,4 @@ -CFLAGS=-DNDEBUG -pthread -g -I../../src -Wall $(OPTFLAGS) +override CFLAGS += -DNDEBUG -pthread -g -I../../src -Wall $(OPTFLAGS) PREFIX?=/usr/local LIBS?=-lzmq SOURCES=$(wildcard *.c) -- 1.8.1.4
shibajee/buildroot
package/mongrel2/0003-Fix-Makefiles-for-cross-compilation.patch
patch
mit
2,878
From 8d0bc79f38913b1a55e7d151b32bbc9462c24b47 Mon Sep 17 00:00:00 2001 From: Jason Miller <jason@jasom.org> Date: Fri, 14 Aug 2015 19:03:09 -0700 Subject: [PATCH] Rename symbol to prevent conflict One of the standard headers defines max_align_t on some versions of linux. [Backported from upstream commit https://github.com/mongrel2/mongrel2/commit/563bac8c59b9b32205164d237cf1ec0cb48d189f.] Signed-off-by: Rodrigo Rebello <rprebello@gmail.com> --- src/mem/align.h | 2 +- src/mem/halloc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mem/align.h b/src/mem/align.h index 4c6e183..03a4999 100644 --- a/src/mem/align.h +++ b/src/mem/align.h @@ -30,7 +30,7 @@ union max_align void (*q)(void); }; -typedef union max_align max_align_t; +typedef union max_align h_max_align_t; #endif diff --git a/src/mem/halloc.c b/src/mem/halloc.c index b097d1f..40d0c09 100644 --- a/src/mem/halloc.c +++ b/src/mem/halloc.c @@ -34,7 +34,7 @@ typedef struct hblock #endif hlist_item_t siblings; /* 2 pointers */ hlist_head_t children; /* 1 pointer */ - max_align_t data[1]; /* not allocated, see below */ + h_max_align_t data[1]; /* not allocated, see below */ } hblock_t; -- 2.1.4
shibajee/buildroot
package/mongrel2/0004-Rename-symbol-to-prevent-conflict.patch
patch
mit
1,227
# mongrel2 uses {get,make,swap}context() functions, which are # available in glibc for all architectures and in uClibc only for a # subset of the architectures config BR2_PACKAGE_MONGREL2_LIBC_SUPPORTS bool default y if BR2_TOOLCHAIN_USES_GLIBC default y if BR2_TOOLCHAIN_USES_UCLIBC && \ (BR2_arm || BR2_armeb || BR2_i386 || BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || BR2_sparc || BR2_x86_64) comment "mongrel2 needs a uClibc or glibc toolchain w/ C++, threads, wchar, dynamic library" depends on !BR2_INSTALL_LIBSTDCPP || \ !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \ BR2_STATIC_LIBS || !BR2_PACKAGE_MONGREL2_LIBC_SUPPORTS config BR2_PACKAGE_MONGREL2 bool "mongrel2" select BR2_PACKAGE_SQLITE select BR2_PACKAGE_ZEROMQ depends on BR2_INSTALL_LIBSTDCPP # zeromq depends on BR2_TOOLCHAIN_HAS_THREADS # zeromq depends on BR2_USE_WCHAR # zeromq -> util-linux depends on !BR2_STATIC_LIBS # uses dlopen() depends on BR2_PACKAGE_MONGREL2_LIBC_SUPPORTS help Mongrel2 is an application, language, and network architecture agnostic web server that focuses on web applications using modern browser technologies. Mongrel2 supports 17 languages and platforms, HTTP, Flash sockets, WebSockets, Long Polling, and many ways to deploy and hack on it. http://www.mongrel2.org
shibajee/buildroot
package/mongrel2/Config.in
in
mit
1,323