code
string
repo_name
string
path
string
language
string
license
string
size
int64
config BR2_PACKAGE_EJABBERD bool "ejabberd" depends on BR2_PACKAGE_ERLANG depends on BR2_INSTALL_LIBSTDCPP # stringprep select BR2_PACKAGE_ERLANG_LAGER select BR2_PACKAGE_ERLANG_P1_CACHE_TAB select BR2_PACKAGE_ERLANG_P1_ICONV select BR2_PACKAGE_ERLANG_P1_SIP select BR2_PACKAGE_ERLANG_P1_STRINGPREP select BR2_PACKAGE_ERLANG_P1_XML select BR2_PACKAGE_ERLANG_P1_YAML select BR2_PACKAGE_ERLANG_P1_ZLIB select BR2_PACKAGE_GETENT select BR2_PACKAGE_OPENSSL help Ejabberd is a Jabber/XMPP instant messaging server, written in Erlang/OTP. Among other features, ejabberd is cross-platform, fault-tolerant, clusterable and modular. http://www.ejabberd.im comment "ejabberd needs erlang, toolchain w/ C++" depends on !BR2_PACKAGE_ERLANG || !BR2_INSTALL_LIBSTDCPP
shibajee/buildroot
package/ejabberd/Config.in
in
mit
783
#!/bin/sh # # Start/stop ejabberd # CTL=/usr/sbin/ejabberdctl DEFAULT=/etc/default/ejabberd INSTALLUSER=ejabberd RUNDIR=/var/run/ejabberd # Read default configuration file if present. [ -r "$DEFAULT" ] && . "$DEFAULT" # Create RUNDIR. mkrundir() { install -d -o "$INSTALLUSER" -g "$INSTALLUSER" "$RUNDIR" } case "$1" in start) mkrundir || exit 1 printf "Starting ejabberd... " "$CTL" start # Wait until ejabberd is up and running. if "$CTL" started; then echo "done" else echo "failed" fi ;; stop) printf "Stopping ejabberd... " "$CTL" stop > /dev/null if [ $? -eq 3 ] || "$CTL" stopped; then echo "OK" else echo "failed" fi ;; status) "$CTL" status ;; restart|force-reload) "$0" stop || true "$0" start ;; live) mkrundir || exit 1 "$CTL" live ;; *) echo "Usage: $0 {start|stop|status|restart|force-reload|live}" exit 1 esac
shibajee/buildroot
package/ejabberd/S50ejabberd
none
mit
1,097
#!/bin/sh -e # Helper to bypass AC_ERLANG_CHECK_LIB # # Ejabberd releases do not download specific versions of its erlang # dependencies. Instead, it clones the master branch of a git # repository and asks erl to provide the library version. However, # the target erl program cannot be called from the host. So, this # script aims at finding the library version installed on the target, # without calling erlang. usage() { cat <<EOF Usage: $0 library Look for Erlang's library in TARGET_DIR/usr/lib/erlang/lib. If the library is found, it returns the path to the latest version, relative to TARGET_DIR. Otherwise, it returns "not found". If there are several versions, it returns an error because it does not know which one Erlang uses. EOF } die () { echo "$@" >&2 exit 1 } if [ $# -ne 1 ]; then usage exit 0 else library="$1" fi target_dir="${TARGET_DIR:-output/target}" [ -d "$target_dir" ] || die "TARGET_DIR is not a directory. Please \ specify the TARGET_DIR environment variable." case "$(ls -1d -- "$target_dir/usr/lib/erlang/lib/$library-"* | wc -l)" in 0) echo "not found" ;; 1) echo "$target_dir/usr/lib/erlang/lib/$library-"* \ | sed -e "s,^$target_dir,," ;; *) die "Several versions of $library have been found. Please \ remove the unused ones." ;; esac
shibajee/buildroot
package/ejabberd/check-erlang-lib
none
mit
1,390
# From https://www.process-one.net/downloads/ejabberd/15.11/ejabberd-16.01.tgz.md5 md5 5e525c25c8f04287217b8a9522d7c942 ejabberd-16.01.tgz # Locally computed sha256 e2cc479d5870539b2e6756690b227969c88a541d464d1fc6e1cbf7270ad7d681 ejabberd-16.01.tgz
shibajee/buildroot
package/ejabberd/ejabberd.hash
hash
mit
249
################################################################################ # # ejabberd # ################################################################################ EJABBERD_VERSION = 16.01 EJABBERD_SOURCE = ejabberd-$(EJABBERD_VERSION).tgz EJABBERD_SITE = https://www.process-one.net/downloads/ejabberd/$(EJABBERD_VERSION) EJABBERD_LICENSE = GPLv2+ with OpenSSL exception EJABBERD_LICENSE_FILES = COPYING EJABBERD_DEPENDENCIES = getent openssl host-erlang-lager erlang-lager \ erlang-p1-cache-tab erlang-p1-iconv erlang-p1-sip \ erlang-p1-stringprep erlang-p1-xml erlang-p1-yaml erlang-p1-zlib # 0001-remove-make-targets-for-deps.patch updates Makefile.in EJABBERD_USE_AUTOCONF = YES EJABBERD_AUTORECONF = YES ifeq ($(BR2_PACKAGE_LINUX_PAM),y) EJABBERD_DEPENDENCIES += linux-pam endif EJABBERD_ERLANG_LIBS = sasl crypto public_key ssl mnesia inets compiler # Guess answers for these tests, configure will bail out otherwise # saying error: cannot run test program while cross compiling. EJABBERD_CONF_ENV = \ ac_cv_erlang_root_dir="$(HOST_DIR)/usr/lib/erlang" \ $(foreach lib,$(EJABBERD_ERLANG_LIBS), \ ac_cv_erlang_lib_dir_$(lib)="`package/ejabberd/check-erlang-lib $(lib)`") define EJABBERD_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) install -C $(@D) endef # Delete HOST_DIR prefix from ERL path in ejabberctl script. define EJABBERD_FIX_EJABBERDCTL $(SED) 's,ERL=$(HOST_DIR),ERL=,' '$(TARGET_DIR)/usr/sbin/ejabberdctl' endef EJABBERD_POST_INSTALL_TARGET_HOOKS += EJABBERD_FIX_EJABBERDCTL define EJABBERD_USERS ejabberd -1 ejabberd -1 * /var/lib/ejabberd /bin/sh - ejabberd daemon endef define EJABBERD_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/ejabberd/S50ejabberd \ $(TARGET_DIR)/etc/init.d/S50ejabberd endef $(eval $(rebar-package))
shibajee/buildroot
package/ejabberd/ejabberd.mk
mk
mit
1,806
From 2f6a65718a0992d0624836ce4b1416a7420782d2 Mon Sep 17 00:00:00 2001 From: Romain Naour <romain.naour@gmail.com> Date: Mon, 25 Jul 2016 22:52:41 +0200 Subject: [PATCH] lib: remove *.eo.h files from includesub_HEADERS Otherwise *.eo.h files will be installed twice, so it can break a parallel install on fast machines, whereby two make jobs may run concurrently, trying to install the same files. /usr/bin/install -c -m 644 elm_sys_notify.eo.h /usr/bin/install -c -m 644 elm_sys_notify.eo.h usr/bin/install: cannot create regular file 'elm_sys_notify.eo.h': File exists Fixes: http://autobuild.buildroot.net/results/7e9/7e9caffe442dcf40ee41da56fd3f55ffedf3a291 Signed-off-by: Romain Naour <romain.naour@gmail.com> --- src/lib/Makefile.am | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 40fb597..9df9424 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -351,8 +351,6 @@ elm_systray_eo.h \ elm_systray_common.h \ elm_systray_watcher.h \ elm_sys_notify.h \ -elm_sys_notify.eo.h \ -elm_sys_notify_dbus.eo.h \ elm_table.h \ elm_table_eo.h \ elm_table_legacy.h \ @@ -381,7 +379,6 @@ elm_win_common.h \ elm_win_eo.h \ elm_win_legacy.h \ elm_win_standard.h \ -elm_win_standard.eo.h \ elm_helper.h includesubdir = $(includedir)/elementary-@VMAJ@/ -- 2.5.5
shibajee/buildroot
package/elementary/0001-lib-remove-.eo.h-files-from-includesub_HEADERS.patch
patch
mit
1,335
config BR2_PACKAGE_ELEMENTARY bool "elementary" depends on BR2_PACKAGE_EFL depends on BR2_TOOLCHAIN_HAS_THREADS # elm_store.c depends on !BR2_STATIC_LIBS help Elementary is a widget toolkit and EFL wrapper and convenience library to make it easy to build applications and tools with UIs with less code. https://enlightenment.org comment "elementary needs a toolchain w/ threads, dynamic library" depends on BR2_PACKAGE_EFL depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
shibajee/buildroot
package/elementary/Config.in
in
mit
501
# From https://download.enlightenment.org/rel/libs/elementary/elementary-1.17.1.tar.xz.sha256 sha256 85e116a453a8ac23da878670534c6292832756d2f3a33603278486f309963d91 elementary-1.17.1.tar.xz
shibajee/buildroot
package/elementary/elementary.hash
hash
mit
191
################################################################################ # # elementary # ################################################################################ ELEMENTARY_VERSION = 1.17.1 ELEMENTARY_SOURCE = elementary-$(ELEMENTARY_VERSION).tar.xz ELEMENTARY_SITE = http://download.enlightenment.org/rel/libs/elementary ELEMENTARY_LICENSE = LGPLv2.1 ELEMENTARY_LICENSE_FILES = COPYING # 0001-lib-remove-.eo.h-files-from-includesub_HEADERS.patch ELEMENTARY_AUTORECONF = YES ELEMENTARY_GETTEXTIZE = YES ELEMENTARY_INSTALL_STAGING = YES ELEMENTARY_DEPENDENCIES = host-pkgconf host-efl host-elementary efl ELEMENTARY_CONF_OPTS = \ --with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \ --with-eet-eet=$(HOST_DIR)/usr/bin/eet \ --with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \ --with-eldbus_codegen=$(HOST_DIR)/usr/bin/eldbus-codegen \ --with-elementary-codegen=$(HOST_DIR)/usr/bin/elementary_codegen \ --with-elm-prefs-cc=$(HOST_DIR)/usr/bin/elm_prefs_cc \ --with-doxygen=no \ --disable-elementary-test # We need a host package in order to provide elm_prefs_cc and # elementary_codegen. HOST_ELEMENTARY_DEPENDENCIES = host-pkgconf host-efl HOST_ELEMENTARY_CONF_OPTS = \ --with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \ --with-eet-eet=$(HOST_DIR)/usr/bin/eet \ --with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \ --with-doxygen=no \ --disable-elementary-test # Use Eolian C++ parser only if enabled in the efl stack. ifeq ($(BR2_PACKAGE_EFL_EOLIAN_CPP),y) ELEMENTARY_CONF_OPTS += --with-eolian-cxx=$(HOST_DIR)/usr/bin/eolian_cxx HOST_ELEMENTARY_CONF_OPTS += --with-eolian-cxx=$(HOST_DIR)/usr/bin/eolian_cxx endif $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/elementary/elementary.mk
mk
mit
1,698
From dedce8765d203c1c162a57e6259375e0b457173f Mon Sep 17 00:00:00 2001 From: Greg Ungerer <gerg@linux-m68k.org> Date: Fri, 19 Aug 2016 23:49:51 +1000 Subject: [PATCH] elf2flt: fix relocation support for R_ARM_TARGET types R_ARM_TARGET1 (and I think R_ARM_TARGET2) relocation types should be treated in the same way as R_ARM_ABS32. Fix them to write out the addend to the flat binary in network byte order. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Tested-by: Waldemar Brodkorb <wbx@openadk.org> --- elf2flt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elf2flt.c b/elf2flt.c index 5ae7dd9..3f31569 100644 --- a/elf2flt.c +++ b/elf2flt.c @@ -1505,7 +1505,9 @@ DIS29_RELOCATION: (((*p)->howto->type != R_ARM_PC24) && ((*p)->howto->type != R_ARM_PLT32))) tmp.c[i3] = (hl >> 24) & 0xff; - if ((*p)->howto->type == R_ARM_ABS32) + if (((*p)->howto->type == R_ARM_ABS32) || + ((*p)->howto->type == R_ARM_TARGET1) || + ((*p)->howto->type == R_ARM_TARGET2)) *(uint32_t *)r_mem = htonl(hl); else *(uint32_t *)r_mem = tmp.l; -- 1.9.1
shibajee/buildroot
package/elf2flt/0001-elf2flt-fix-relocation-support-for-R_ARM_TARGET-type.patch
patch
mit
1,116
config BR2_PACKAGE_HOST_ELF2FLT bool "Enable elf2flt support?" depends on BR2_arm || BR2_sh || BR2_sparc || BR2_xtensa depends on !BR2_USE_MMU help uCLinux uses a Binary Flat format commonly known as BFLT. It is a relatively simple and lightweight executable format based on the original a.out format. This option compiles the required tools and makes the required modifications on your toolchain (linker).
shibajee/buildroot
package/elf2flt/Config.in.host
host
mit
427
# Locally calculated sha256 6a45a787a08da64f0f3036d3ae1865bc13f8f40d13f07511a2bf1b736acc4808 elf2flt-9dbc458c6122c495bbdec8dc975a15c9d39e5ff2.tar.gz
shibajee/buildroot
package/elf2flt/elf2flt.hash
hash
mit
149
################################################################################ # # elf2flt # ################################################################################ ELF2FLT_VERSION = 9dbc458c6122c495bbdec8dc975a15c9d39e5ff2 ELF2FLT_SITE = $(call github,uclinux-dev,elf2flt,$(ELF2FLT_VERSION)) ELF2FLT_LICENSE = GPLv2+ ELF2FLT_LICENSE_FILES = LICENSE.TXT HOST_ELF2FLT_DEPENDENCIES = host-binutils host-zlib # It is not exactly a host variant, but more a cross variant, which is # why we pass a special --target option. HOST_ELF2FLT_CONF_OPTS = \ --with-bfd-include-dir=$(HOST_BINUTILS_DIR)/bfd/ \ --with-binutils-include-dir=$(HOST_BINUTILS_DIR)/include/ \ --with-libbfd=$(HOST_BINUTILS_DIR)/bfd/libbfd.a \ --with-libiberty=$(HOST_BINUTILS_DIR)/libiberty/libiberty.a \ --target=$(GNU_TARGET_NAME) \ --disable-werror HOST_ELF2FLT_LIBS = -lz ifeq ($(BR2_GCC_ENABLE_LTO),y) HOST_ELF2FLT_LIBS += -ldl endif HOST_ELF2FLT_CONF_ENV = LIBS="$(HOST_ELF2FLT_LIBS)" $(eval $(host-autotools-package))
shibajee/buildroot
package/elf2flt/elf2flt.mk
mk
mit
1,012
This patch uses system include files instead of a hard coded system path to fixe potential compilation failure on systems that do not populate system header files in /usr/include/.. Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org> --- Index: host-elftosb-10.12.01/common/stdafx.h =================================================================== --- host-elftosb-10.12.01.orig/common/stdafx.h 2012-01-30 12:43:35.000000000 +0100 +++ host-elftosb-10.12.01/common/stdafx.h 2012-01-30 12:43:54.000000000 +0100 @@ -27,7 +27,7 @@ // For Linux systems only, types.h only defines the signed // integer types. This is not professional code. // Update: They are defined in the header files in the more recent version of redhat enterprise gcc. -#include "/usr/include/sys/types.h" +#include <sys/types.h> #include <stdint.h> //typedef unsigned long uint32_t; //typedef unsigned short uint16_t;
shibajee/buildroot
package/elftosb/0001-fixes-includes.patch
patch
mit
901
Subject: [PATCH 1/1] elftosb: force host C++ compiler Because Freescale provides *.cpp sources and elftosb links again libstdc++, force to use the host c++ compiler. This patch avoids the following error occurs: gcc AESKey.o Blob.o crc.o DataSource.o DataTarget.o ELFSourceFile.o EncoreBootImage.o EvalContext.o GHSSecInfo.o GlobMatcher.o HexValues.o Logging.o Operation.o OptionDictionary.o options.o OutputSection.o Random.o RijndaelCBCMAC.o rijndael.o SHA1.o SourceFile.o SRecordSourceFile.o stdafx.o StELFFile.o StExecutableImage.o StSRecordFile.o Value.o Version.o format_string.o ExcludesListMatcher.o SearchPath.o DataSourceImager.o IVTDataSource.o BootImageGenerator.o ConversionController.o ElftosbAST.o elftosb.o elftosb_lexer.o ElftosbLexer.o elftosb_parser.tab.o EncoreBootImageGenerator.o -lstdc++ -o elftosb /usr/bin/ld: ElftosbAST.o: undefined reference to symbol 'powf@@GLIBC_2.2.5' /usr/bin/ld: note: 'powf@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line /lib64/libm.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status When compiling with gcc and linking against libstdc++, ld uses libc instead of libstdc++. However, libc does not provide all functions libstdc++ does. Indeed, maths functions are provided by libm, not libc. Thus, elftosb should either: - use gcc and link against libc and libm; - or use g++ and link against libstdc++. Because elftosb is written in C++, this patch implement the sencond option, using g++ and linking against libstdc++. Signed-off-by: Samuel Martin <s.martin49@gmail.com> --- Index: host-elftosb-10.12.01/makefile.rules =================================================================== --- host-elftosb-10.12.01.orig/makefile.rules 2012-06-09 21:12:23.557526100 +0200 +++ host-elftosb-10.12.01/makefile.rules 2012-06-09 21:15:21.659894571 +0200 @@ -15,6 +15,8 @@ # UNAMES is going to be set to either "Linux" or "CYGWIN_NT-5.1" UNAMES = $(shell uname -s) +CXX ?= g++ + #******************************************************************************* # Directories @@ -37,9 +39,9 @@ #******************************************************************************* # Build flags -# gcc Compiler flags +# Compiler flags # -g : Produce debugging information. -CFLAGS = -g $(INC_PATH) -D${UNAMES} +CXXFLAGS = -g $(INC_PATH) -D${UNAMES} #******************************************************************************* # File lists @@ -137,13 +139,13 @@ clean: ${EXEC_FILE_ELFTOSB2} ${EXEC_FILE_SBTOOL} ${EXEC_FILE_KEYGEN} elftosb: ${OBJ_FILES_ELFTOSB2} - gcc ${OBJ_FILES_ELFTOSB2} ${LIBS} -o ${EXEC_FILE_ELFTOSB2} + $(CXX) ${OBJ_FILES_ELFTOSB2} ${LIBS} -o ${EXEC_FILE_ELFTOSB2} sbtool: ${OBJ_FILES_SBTOOL} - gcc ${OBJ_FILES_SBTOOL} ${LIBS} -o ${EXEC_FILE_SBTOOL} + $(CXX) ${OBJ_FILES_SBTOOL} ${LIBS} -o ${EXEC_FILE_SBTOOL} keygen: ${OBJ_FILES_KEYGEN} - gcc ${OBJ_FILES_KEYGEN} ${LIBS} -o ${EXEC_FILE_KEYGEN} + $(CXX) ${OBJ_FILES_KEYGEN} ${LIBS} -o ${EXEC_FILE_KEYGEN} #ifeq ("${UNAMES}", "Linux") @@ -153,10 +155,10 @@ keygen: ${OBJ_FILES_KEYGEN} .SUFFIXES : .c .cpp .c.o : - gcc ${CFLAGS} -c $< + $(CC) ${CXXFLAGS} -c $< .cpp.o : - gcc ${CFLAGS} -c $< + $(CXX) ${CXXFLAGS} -c $< #endif @@ -165,13 +167,13 @@ keygen: ${OBJ_FILES_KEYGEN} %.d: %.c @set -e; \ - $(CC) -MM $(CFLAGS) $< | \ + $(CC) -MM $(CXXFLAGS) $< | \ sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \ [ -s $@ ] || rm -f $@ %.d: %.cpp @set -e; \ - $(CC) -MM $(CFLAGS) $< | \ + $(CXX) -MM $(CXXFLAGS) $< | \ sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \ [ -s $@ ] || rm -f $@
shibajee/buildroot
package/elftosb/0002-force-cxx-compiler.patch
patch
mit
3,725
# From http://repository.timesys.com/buildsources/e/elftosb/elftosb-10.12.01/elftosb-10.12.01.tar.gz.md5sum md5 e8005d606c1e0bb3507c82f6eceb3056 elftosb-10.12.01.tar.gz
shibajee/buildroot
package/elftosb/elftosb.hash
hash
mit
169
################################################################################ # # elftosb # ################################################################################ ELFTOSB_VERSION = 10.12.01 ELFTOSB_SITE = http://repository.timesys.com/buildsources/e/elftosb/elftosb-$(ELFTOSB_VERSION) ELFTOSB_LICENSE = BSD-3c ELFTOSB_LICENSE_FILES = COPYING define HOST_ELFTOSB_BUILD_CMDS $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) all endef define HOST_ELFTOSB_INSTALL_CMDS $(INSTALL) -D -m 0755 $(@D)/bld/linux/elftosb $(HOST_DIR)/usr/bin/elftosb $(INSTALL) -D -m 0755 $(@D)/bld/linux/keygen $(HOST_DIR)/usr/bin/keygen $(INSTALL) -D -m 0755 $(@D)/bld/linux/sbtool $(HOST_DIR)/usr/bin/sbtool endef $(eval $(host-generic-package))
shibajee/buildroot
package/elftosb/elftosb.mk
mk
mit
733
Add a --{enable,disable}-progs configure option Add a --{enable,disable}-progs configuration option to elfutils. This allows to selectively disable the compilation of the elfutils programs (in which case only the libraries are built and installed). This is useful because the programs are often not needed, and also because building the programs against uClibc causes several issues (lack of obstack_printf() in uClibc for example). Based on the former patch by Thomas Petazzoni. [Vincent: tweak patch for 0.166] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> diff -rup a/configure.ac b/configure.ac --- a/configure.ac 2016-03-31 09:48:08.000000000 +0100 +++ b/configure.ac 2016-06-17 14:47:03.561704498 +0100 @@ -253,6 +253,12 @@ AC_SUBST([LIBEBL_SUBDIR]) AC_DEFINE_UNQUOTED(LIBEBL_SUBDIR, "$LIBEBL_SUBDIR") AH_TEMPLATE([LIBEBL_SUBDIR], [$libdir subdirectory containing libebl modules.]) +AC_ARG_ENABLE([progs], + AS_HELP_STRING([--enable-progs], [enable progs]), + enable_progs=$enableval, + enable_progs=yes) +AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes) + dnl zlib is mandatory. save_LIBS="$LIBS" LIBS= diff -rup a/Makefile.am b/Makefile.am --- a/Makefile.am 2016-01-12 12:49:19.000000000 +0000 +++ b/Makefile.am 2016-06-17 14:48:02.585861468 +0100 @@ -26,9 +26,13 @@ AM_MAKEFLAGS = --no-print-directory pkginclude_HEADERS = version.h +if ENABLE_PROGS +PROGS_SUBDIR = src +endif + # Add doc back when we have some real content. SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \ - backends src po tests + backends $(PROGS_SUBDIR) po tests EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \ COPYING COPYING-GPLV2 COPYING-LGPLV3
shibajee/buildroot
package/elfutils/0002-disable-progs.patch
patch
mit
1,794
Add an implementation of the fts_*() functions The fts_*() functions are optional in uClibc, and not compiled in our default configuration. The best option would be to migrate this elfutils code to the nftw family of functions, but it requires quite some work. So we have several options here: *) Enable fts_*() functions in our default uClibc configuration. Not nice since only one package needs them (the help text of uClibc for fts_*() functions explicitly mention that they have been added to be able to build elfutils). *) Use gnulib, but it is quite heavy to setup, requires modifications to configure.ac, and other things. *) Copy the fts function from uClibc into elfutils source code. This is the solution used below. uClibc is LGPL, and elfutils is LGPL/GPL, so there should not be any licensing issue. Of course, the fts_*() functions are only built if they are not already provided by the C library. Based on the former patch by Thomas Petazzoni. [Vincent: tweak patch for 0.166] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> diff -Nrup a/configure.ac b/configure.ac --- a/configure.ac 2016-06-17 14:47:03.561704498 +0100 +++ b/configure.ac 2016-06-17 14:52:35.038200412 +0100 @@ -259,6 +259,10 @@ AC_ARG_ENABLE([progs], enable_progs=yes) AM_CONDITIONAL(ENABLE_PROGS, test "$enable_progs" = yes) +AC_CHECK_HEADER([fts.h], + AC_DEFINE([HAVE_FTS_H], [], [Define if <fts.h> is available in C library])) +AM_CONDITIONAL(HAVE_FTS, test "$ac_cv_header_fts_h" = yes) + dnl zlib is mandatory. save_LIBS="$LIBS" LIBS= diff -Nrup a/libdwfl/fts.c b/libdwfl/fts.c --- a/libdwfl/fts.c 1970-01-01 01:00:00.000000000 +0100 +++ b/libdwfl/fts.c 2016-06-17 14:57:26.649912084 +0100 @@ -0,0 +1,1095 @@ +/*- + * Copyright (c) 1990, 1993, 1994 + * The Regents of the University of California. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include <sys/param.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <dirent.h> +#include <errno.h> +#include "fts_.h" +#include <stdlib.h> +#include <string.h> +#include <unistd.h> + +/* Largest alignment size needed, minus one. + Usually long double is the worst case. */ +#ifndef ALIGNBYTES +#define ALIGNBYTES (__alignof__ (long double) - 1) +#endif +/* Align P to that size. */ +#ifndef ALIGN +#define ALIGN(p) (((unsigned long int) (p) + ALIGNBYTES) & ~ALIGNBYTES) +#endif + + +static FTSENT *fts_alloc (FTS *, const char *, size_t); +static FTSENT *fts_build (FTS *, int); +static void fts_lfree (FTSENT *); +static void fts_load (FTS *, FTSENT *); +static size_t fts_maxarglen (char * const *); +static void fts_padjust (FTS *, FTSENT *); +static int fts_palloc (FTS *, size_t); +static FTSENT *fts_sort (FTS *, FTSENT *, int); +static u_short fts_stat (FTS *, FTSENT *, int); +static int fts_safe_changedir (FTS *, FTSENT *, int, const char *); + +#ifndef MAX +#define MAX(a, b) ({ __typeof__ (a) _a = (a); \ + __typeof__ (b) _b = (b); \ + _a > _b ? _a : _b; }) +#endif + +#define ISDOT(a) (a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2]))) + +#define CLR(opt) (sp->fts_options &= ~(opt)) +#define ISSET(opt) (sp->fts_options & (opt)) +#define SET(opt) (sp->fts_options |= (opt)) + +#define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd)) + +/* fts_build flags */ +#define BCHILD 1 /* fts_children */ +#define BNAMES 2 /* fts_children, names only */ +#define BREAD 3 /* fts_read */ + +FTS * +fts_open( char * const *argv, register int options, + int (*compar) (const FTSENT **, const FTSENT **)) +{ + register FTS *sp; + register FTSENT *p, *root; + register int nitems; + FTSENT *parent = NULL; + FTSENT *tmp = NULL; + + /* Options check. */ + if (options & ~FTS_OPTIONMASK) { + errno = EINVAL; + return (NULL); + } + + /* Allocate/initialize the stream */ + if ((sp = malloc((u_int)sizeof(FTS))) == NULL) + return (NULL); + memset(sp, 0, sizeof(FTS)); + sp->fts_compar = (int (*) (const void *, const void *)) compar; + sp->fts_options = options; + + /* Logical walks turn on NOCHDIR; symbolic links are too hard. */ + if (ISSET(FTS_LOGICAL)) + SET(FTS_NOCHDIR); + + /* + * Start out with 1K of path space, and enough, in any case, + * to hold the user's paths. + */ +#ifndef MAXPATHLEN +#define MAXPATHLEN 1024 +#endif + size_t maxarglen = fts_maxarglen(argv); + if (fts_palloc(sp, MAX(maxarglen, MAXPATHLEN))) + goto mem1; + + /* Allocate/initialize root's parent. */ + if (*argv != NULL) { + if ((parent = fts_alloc(sp, "", 0)) == NULL) + goto mem2; + parent->fts_level = FTS_ROOTPARENTLEVEL; + } + + /* Allocate/initialize root(s). */ + for (root = NULL, nitems = 0; *argv != NULL; ++argv, ++nitems) { + /* Don't allow zero-length paths. */ + size_t len = strlen(*argv); + if (len == 0) { + errno = ENOENT; + goto mem3; + } + + p = fts_alloc(sp, *argv, len); + p->fts_level = FTS_ROOTLEVEL; + p->fts_parent = parent; + p->fts_accpath = p->fts_name; + p->fts_info = fts_stat(sp, p, ISSET(FTS_COMFOLLOW)); + + /* Command-line "." and ".." are real directories. */ + if (p->fts_info == FTS_DOT) + p->fts_info = FTS_D; + + /* + * If comparison routine supplied, traverse in sorted + * order; otherwise traverse in the order specified. + */ + if (compar) { + p->fts_link = root; + root = p; + } else { + p->fts_link = NULL; + if (root == NULL) + tmp = root = p; + else { + tmp->fts_link = p; + tmp = p; + } + } + } + if (compar && nitems > 1) + root = fts_sort(sp, root, nitems); + + /* + * Allocate a dummy pointer and make fts_read think that we've just + * finished the node before the root(s); set p->fts_info to FTS_INIT + * so that everything about the "current" node is ignored. + */ + if ((sp->fts_cur = fts_alloc(sp, "", 0)) == NULL) + goto mem3; + sp->fts_cur->fts_link = root; + sp->fts_cur->fts_info = FTS_INIT; + + /* + * If using chdir(2), grab a file descriptor pointing to dot to ensure + * that we can get back here; this could be avoided for some paths, + * but almost certainly not worth the effort. Slashes, symbolic links, + * and ".." are all fairly nasty problems. Note, if we can't get the + * descriptor we run anyway, just more slowly. + */ + if (!ISSET(FTS_NOCHDIR) + && (sp->fts_rfd = open(".", O_RDONLY, 0)) < 0) + SET(FTS_NOCHDIR); + + return (sp); + +mem3: fts_lfree(root); + free(parent); +mem2: free(sp->fts_path); +mem1: free(sp); + return (NULL); +} + +static void +fts_load(FTS *sp, register FTSENT *p) +{ + register int len; + register char *cp; + + /* + * Load the stream structure for the next traversal. Since we don't + * actually enter the directory until after the preorder visit, set + * the fts_accpath field specially so the chdir gets done to the right + * place and the user can access the first node. From fts_open it's + * known that the path will fit. + */ + len = p->fts_pathlen = p->fts_namelen; + memmove(sp->fts_path, p->fts_name, len + 1); + if ((cp = strrchr(p->fts_name, '/')) && (cp != p->fts_name || cp[1])) { + len = strlen(++cp); + memmove(p->fts_name, cp, len + 1); + p->fts_namelen = len; + } + p->fts_accpath = p->fts_path = sp->fts_path; + sp->fts_dev = p->fts_dev; +} + +int +fts_close(FTS *sp) +{ + register FTSENT *freep, *p; + int saved_errno; + + /* + * This still works if we haven't read anything -- the dummy structure + * points to the root list, so we step through to the end of the root + * list which has a valid parent pointer. + */ + if (sp->fts_cur) { + for (p = sp->fts_cur; p->fts_level >= FTS_ROOTLEVEL;) { + freep = p; + p = p->fts_link != NULL ? p->fts_link : p->fts_parent; + free(freep); + } + free(p); + } + + /* Free up child linked list, sort array, path buffer. */ + if (sp->fts_child) + fts_lfree(sp->fts_child); + free(sp->fts_array); + free(sp->fts_path); + + /* Return to original directory, save errno if necessary. */ + if (!ISSET(FTS_NOCHDIR)) { + saved_errno = fchdir(sp->fts_rfd) ? errno : 0; + (void)close(sp->fts_rfd); + + /* Set errno and return. */ + if (saved_errno != 0) { + /* Free up the stream pointer. */ + free(sp); + errno = saved_errno; + return (-1); + } + } + + /* Free up the stream pointer. */ + free(sp); + return (0); +} + +/* + * Special case of "/" at the end of the path so that slashes aren't + * appended which would cause paths to be written as "....//foo". + */ +#define NAPPEND(p) \ + (p->fts_path[p->fts_pathlen - 1] == '/' \ + ? p->fts_pathlen - 1 : p->fts_pathlen) + +FTSENT * +fts_read(register FTS *sp) +{ + register FTSENT *p, *tmp; + register int instr; + register char *t; + int saved_errno; + + /* If finished or unrecoverable error, return NULL. */ + if (sp->fts_cur == NULL || ISSET(FTS_STOP)) + return (NULL); + + /* Set current node pointer. */ + p = sp->fts_cur; + + /* Save and zero out user instructions. */ + instr = p->fts_instr; + p->fts_instr = FTS_NOINSTR; + + /* Any type of file may be re-visited; re-stat and re-turn. */ + if (instr == FTS_AGAIN) { + p->fts_info = fts_stat(sp, p, 0); + return (p); + } + + /* + * Following a symlink -- SLNONE test allows application to see + * SLNONE and recover. If indirecting through a symlink, have + * keep a pointer to current location. If unable to get that + * pointer, follow fails. + */ + if (instr == FTS_FOLLOW && + (p->fts_info == FTS_SL || p->fts_info == FTS_SLNONE)) { + p->fts_info = fts_stat(sp, p, 1); + if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { + if ((p->fts_symfd = open(".", O_RDONLY, 0)) < 0) { + p->fts_errno = errno; + p->fts_info = FTS_ERR; + } else + p->fts_flags |= FTS_SYMFOLLOW; + } + return (p); + } + + /* Directory in pre-order. */ + if (p->fts_info == FTS_D) { + /* If skipped or crossed mount point, do post-order visit. */ + if (instr == FTS_SKIP || + (ISSET(FTS_XDEV) && p->fts_dev != sp->fts_dev)) { + if (p->fts_flags & FTS_SYMFOLLOW) + (void)close(p->fts_symfd); + if (sp->fts_child) { + fts_lfree(sp->fts_child); + sp->fts_child = NULL; + } + p->fts_info = FTS_DP; + return (p); + } + + /* Rebuild if only read the names and now traversing. */ + if (sp->fts_child != NULL && ISSET(FTS_NAMEONLY)) { + CLR(FTS_NAMEONLY); + fts_lfree(sp->fts_child); + sp->fts_child = NULL; + } + + /* + * Cd to the subdirectory. + * + * If have already read and now fail to chdir, whack the list + * to make the names come out right, and set the parent errno + * so the application will eventually get an error condition. + * Set the FTS_DONTCHDIR flag so that when we logically change + * directories back to the parent we don't do a chdir. + * + * If haven't read do so. If the read fails, fts_build sets + * FTS_STOP or the fts_info field of the node. + */ + if (sp->fts_child != NULL) { + if (fts_safe_changedir(sp, p, -1, p->fts_accpath)) { + p->fts_errno = errno; + p->fts_flags |= FTS_DONTCHDIR; + for (p = sp->fts_child; p != NULL; + p = p->fts_link) + p->fts_accpath = + p->fts_parent->fts_accpath; + } + } else if ((sp->fts_child = fts_build(sp, BREAD)) == NULL) { + if (ISSET(FTS_STOP)) + return (NULL); + return (p); + } + p = sp->fts_child; + sp->fts_child = NULL; + sp->fts_cur = p; + goto name; + } + + /* Move to the next node on this level. */ +next: tmp = p; + if ((p = p->fts_link) != NULL) { + sp->fts_cur = p; + free(tmp); + + /* + * If reached the top, return to the original directory (or + * the root of the tree), and load the paths for the next root. + */ + if (p->fts_level == FTS_ROOTLEVEL) { + if (FCHDIR(sp, sp->fts_rfd)) { + SET(FTS_STOP); + return (NULL); + } + fts_load(sp, p); + return p; + } + + /* + * User may have called fts_set on the node. If skipped, + * ignore. If followed, get a file descriptor so we can + * get back if necessary. + */ + if (p->fts_instr == FTS_SKIP) + goto next; + if (p->fts_instr == FTS_FOLLOW) { + p->fts_info = fts_stat(sp, p, 1); + if (p->fts_info == FTS_D && !ISSET(FTS_NOCHDIR)) { + if ((p->fts_symfd = + open(".", O_RDONLY, 0)) < 0) { + p->fts_errno = errno; + p->fts_info = FTS_ERR; + } else + p->fts_flags |= FTS_SYMFOLLOW; + } + p->fts_instr = FTS_NOINSTR; + } + +name: t = sp->fts_path + NAPPEND(p->fts_parent); + *t++ = '/'; + memmove(t, p->fts_name, p->fts_namelen + 1); + return p; + } + + /* Move up to the parent node. */ + p = tmp->fts_parent; + sp->fts_cur = p; + free(tmp); + + if (p->fts_level == FTS_ROOTPARENTLEVEL) { + /* + * Done; free everything up and set errno to 0 so the user + * can distinguish between error and EOF. + */ + free(p); + errno = 0; + return (sp->fts_cur = NULL); + } + + /* NUL terminate the pathname. */ + sp->fts_path[p->fts_pathlen] = '\0'; + + /* + * Return to the parent directory. If at a root node or came through + * a symlink, go back through the file descriptor. Otherwise, cd up + * one directory. + */ + if (p->fts_level == FTS_ROOTLEVEL) { + if (FCHDIR(sp, sp->fts_rfd)) { + SET(FTS_STOP); + return (NULL); + } + } else if (p->fts_flags & FTS_SYMFOLLOW) { + if (FCHDIR(sp, p->fts_symfd)) { + saved_errno = errno; + (void)close(p->fts_symfd); + errno = saved_errno; + SET(FTS_STOP); + return (NULL); + } + (void)close(p->fts_symfd); + } else if (!(p->fts_flags & FTS_DONTCHDIR) && + fts_safe_changedir(sp, p->fts_parent, -1, "..")) { + SET(FTS_STOP); + return (NULL); + } + p->fts_info = p->fts_errno ? FTS_ERR : FTS_DP; + return p; +} + +/* + * Fts_set takes the stream as an argument although it's not used in this + * implementation; it would be necessary if anyone wanted to add global + * semantics to fts using fts_set. An error return is allowed for similar + * reasons. + */ +/* ARGSUSED */ +int +fts_set(FTS *sp, FTSENT *p, int instr) +{ + if (instr != 0 && instr != FTS_AGAIN && instr != FTS_FOLLOW && + instr != FTS_NOINSTR && instr != FTS_SKIP) { + errno = EINVAL; + return (1); + } + p->fts_instr = instr; + return (0); +} + +FTSENT * +fts_children(register FTS *sp, int instr) +{ + register FTSENT *p; + int fd; + + if (instr != 0 && instr != FTS_NAMEONLY) { + errno = EINVAL; + return (NULL); + } + + /* Set current node pointer. */ + p = sp->fts_cur; + + /* + * Errno set to 0 so user can distinguish empty directory from + * an error. + */ + errno = 0; + + /* Fatal errors stop here. */ + if (ISSET(FTS_STOP)) + return (NULL); + + /* Return logical hierarchy of user's arguments. */ + if (p->fts_info == FTS_INIT) + return (p->fts_link); + + /* + * If not a directory being visited in pre-order, stop here. Could + * allow FTS_DNR, assuming the user has fixed the problem, but the + * same effect is available with FTS_AGAIN. + */ + if (p->fts_info != FTS_D /* && p->fts_info != FTS_DNR */) + return (NULL); + + /* Free up any previous child list. */ + if (sp->fts_child != NULL) + fts_lfree(sp->fts_child); + + if (instr == FTS_NAMEONLY) { + SET(FTS_NAMEONLY); + instr = BNAMES; + } else + instr = BCHILD; + + /* + * If using chdir on a relative path and called BEFORE fts_read does + * its chdir to the root of a traversal, we can lose -- we need to + * chdir into the subdirectory, and we don't know where the current + * directory is, so we can't get back so that the upcoming chdir by + * fts_read will work. + */ + if (p->fts_level != FTS_ROOTLEVEL || p->fts_accpath[0] == '/' || + ISSET(FTS_NOCHDIR)) + return (sp->fts_child = fts_build(sp, instr)); + + if ((fd = open(".", O_RDONLY, 0)) < 0) + return (NULL); + sp->fts_child = fts_build(sp, instr); + if (fchdir(fd)) + return (NULL); + (void)close(fd); + return (sp->fts_child); +} + +/* + * This is the tricky part -- do not casually change *anything* in here. The + * idea is to build the linked list of entries that are used by fts_children + * and fts_read. There are lots of special cases. + * + * The real slowdown in walking the tree is the stat calls. If FTS_NOSTAT is + * set and it's a physical walk (so that symbolic links can't be directories), + * we can do things quickly. First, if it's a 4.4BSD file system, the type + * of the file is in the directory entry. Otherwise, we assume that the number + * of subdirectories in a node is equal to the number of links to the parent. + * The former skips all stat calls. The latter skips stat calls in any leaf + * directories and for any files after the subdirectories in the directory have + * been found, cutting the stat calls by about 2/3. + */ +static FTSENT * +fts_build(register FTS *sp, int type) +{ + register struct dirent *dp; + register FTSENT *p, *head; + register int nitems; + FTSENT *cur, *tail; + DIR *dirp; + void *oldaddr; + int cderrno, descend, len, level, nlinks, saved_errno, + nostat, doadjust; + size_t maxlen; + char *cp; + + /* Set current node pointer. */ + cur = sp->fts_cur; + + /* + * Open the directory for reading. If this fails, we're done. + * If being called from fts_read, set the fts_info field. + */ +#if defined FTS_WHITEOUT && 0 + if (ISSET(FTS_WHITEOUT)) + oflag = DTF_NODUP|DTF_REWIND; + else + oflag = DTF_HIDEW|DTF_NODUP|DTF_REWIND; +#else +# define opendir2(path, flag) opendir(path) +#endif + if ((dirp = opendir2(cur->fts_accpath, oflag)) == NULL) { + if (type == BREAD) { + cur->fts_info = FTS_DNR; + cur->fts_errno = errno; + } + return (NULL); + } + + /* + * Nlinks is the number of possible entries of type directory in the + * directory if we're cheating on stat calls, 0 if we're not doing + * any stat calls at all, -1 if we're doing stats on everything. + */ + if (type == BNAMES) { + nlinks = 0; + /* Be quiet about nostat, GCC. */ + nostat = 0; + } else if (ISSET(FTS_NOSTAT) && ISSET(FTS_PHYSICAL)) { + nlinks = cur->fts_nlink - (ISSET(FTS_SEEDOT) ? 0 : 2); + nostat = 1; + } else { + nlinks = -1; + nostat = 0; + } + +#ifdef notdef + (void)printf("nlinks == %d (cur: %d)\n", nlinks, cur->fts_nlink); + (void)printf("NOSTAT %d PHYSICAL %d SEEDOT %d\n", + ISSET(FTS_NOSTAT), ISSET(FTS_PHYSICAL), ISSET(FTS_SEEDOT)); +#endif + /* + * If we're going to need to stat anything or we want to descend + * and stay in the directory, chdir. If this fails we keep going, + * but set a flag so we don't chdir after the post-order visit. + * We won't be able to stat anything, but we can still return the + * names themselves. Note, that since fts_read won't be able to + * chdir into the directory, it will have to return different path + * names than before, i.e. "a/b" instead of "b". Since the node + * has already been visited in pre-order, have to wait until the + * post-order visit to return the error. There is a special case + * here, if there was nothing to stat then it's not an error to + * not be able to stat. This is all fairly nasty. If a program + * needed sorted entries or stat information, they had better be + * checking FTS_NS on the returned nodes. + */ + cderrno = 0; + if (nlinks || type == BREAD) { + if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) { + if (nlinks && type == BREAD) + cur->fts_errno = errno; + cur->fts_flags |= FTS_DONTCHDIR; + descend = 0; + cderrno = errno; + (void)closedir(dirp); + dirp = NULL; + } else + descend = 1; + } else + descend = 0; + + /* + * Figure out the max file name length that can be stored in the + * current path -- the inner loop allocates more path as necessary. + * We really wouldn't have to do the maxlen calculations here, we + * could do them in fts_read before returning the path, but it's a + * lot easier here since the length is part of the dirent structure. + * + * If not changing directories set a pointer so that can just append + * each new name into the path. + */ + len = NAPPEND(cur); + if (ISSET(FTS_NOCHDIR)) { + cp = sp->fts_path + len; + *cp++ = '/'; + } else { + /* GCC, you're too verbose. */ + cp = NULL; + } + len++; + maxlen = sp->fts_pathlen - len; + + level = cur->fts_level + 1; + + /* Read the directory, attaching each entry to the `link' pointer. */ + doadjust = 0; + for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { + if (!ISSET(FTS_SEEDOT) && ISDOT(dp->d_name)) + continue; + + if ((p = fts_alloc(sp, dp->d_name, _D_EXACT_NAMLEN (dp))) == NULL) + goto mem1; + if (_D_EXACT_NAMLEN (dp) >= maxlen) {/* include space for NUL */ + oldaddr = sp->fts_path; + if (fts_palloc(sp, _D_EXACT_NAMLEN (dp) + len + 1)) { + /* + * No more memory for path or structures. Save + * errno, free up the current structure and the + * structures already allocated. + */ +mem1: saved_errno = errno; + free(p); + fts_lfree(head); + (void)closedir(dirp); + cur->fts_info = FTS_ERR; + SET(FTS_STOP); + errno = saved_errno; + return (NULL); + } + /* Did realloc() change the pointer? */ + if (oldaddr != sp->fts_path) { + doadjust = 1; + if (ISSET(FTS_NOCHDIR)) + cp = sp->fts_path + len; + } + maxlen = sp->fts_pathlen - len; + } + + if (len + _D_EXACT_NAMLEN (dp) >= USHRT_MAX) { + /* + * In an FTSENT, fts_pathlen is a u_short so it is + * possible to wraparound here. If we do, free up + * the current structure and the structures already + * allocated, then error out with ENAMETOOLONG. + */ + free(p); + fts_lfree(head); + (void)closedir(dirp); + cur->fts_info = FTS_ERR; + SET(FTS_STOP); + errno = ENAMETOOLONG; + return (NULL); + } + p->fts_level = level; + p->fts_parent = sp->fts_cur; + p->fts_pathlen = len + _D_EXACT_NAMLEN (dp); + +#if defined FTS_WHITEOUT && 0 + if (dp->d_type == DT_WHT) + p->fts_flags |= FTS_ISW; +#endif + +#if 0 + /* Unreachable code. cderrno is only ever set to a nonnull + value if dirp is closed at the same time. But then we + cannot enter this loop. */ + if (cderrno) { + if (nlinks) { + p->fts_info = FTS_NS; + p->fts_errno = cderrno; + } else + p->fts_info = FTS_NSOK; + p->fts_accpath = cur->fts_accpath; + } else +#endif + if (nlinks == 0 +#if defined DT_DIR && defined _DIRENT_HAVE_D_TYPE + || (nostat && + dp->d_type != DT_DIR && dp->d_type != DT_UNKNOWN) +#endif + ) { + p->fts_accpath = + ISSET(FTS_NOCHDIR) ? p->fts_path : p->fts_name; + p->fts_info = FTS_NSOK; + } else { + /* Build a file name for fts_stat to stat. */ + if (ISSET(FTS_NOCHDIR)) { + p->fts_accpath = p->fts_path; + memmove(cp, p->fts_name, p->fts_namelen + 1); + } else + p->fts_accpath = p->fts_name; + /* Stat it. */ + p->fts_info = fts_stat(sp, p, 0); + + /* Decrement link count if applicable. */ + if (nlinks > 0 && (p->fts_info == FTS_D || + p->fts_info == FTS_DC || p->fts_info == FTS_DOT)) + --nlinks; + } + + /* We walk in directory order so "ls -f" doesn't get upset. */ + p->fts_link = NULL; + if (head == NULL) + head = tail = p; + else { + tail->fts_link = p; + tail = p; + } + ++nitems; + } + if (dirp) + (void)closedir(dirp); + + /* + * If realloc() changed the address of the path, adjust the + * addresses for the rest of the tree and the dir list. + */ + if (doadjust) + fts_padjust(sp, head); + + /* + * If not changing directories, reset the path back to original + * state. + */ + if (ISSET(FTS_NOCHDIR)) { + if (len == sp->fts_pathlen || nitems == 0) + --cp; + *cp = '\0'; + } + + /* + * If descended after called from fts_children or after called from + * fts_read and nothing found, get back. At the root level we use + * the saved fd; if one of fts_open()'s arguments is a relative path + * to an empty directory, we wind up here with no other way back. If + * can't get back, we're done. + */ + if (descend && (type == BCHILD || !nitems) && + (cur->fts_level == FTS_ROOTLEVEL ? + FCHDIR(sp, sp->fts_rfd) : + fts_safe_changedir(sp, cur->fts_parent, -1, ".."))) { + cur->fts_info = FTS_ERR; + SET(FTS_STOP); + fts_lfree(head); + return (NULL); + } + + /* If didn't find anything, return NULL. */ + if (!nitems) { + if (type == BREAD) + cur->fts_info = FTS_DP; + fts_lfree(head); + return (NULL); + } + + /* Sort the entries. */ + if (sp->fts_compar && nitems > 1) + head = fts_sort(sp, head, nitems); + return (head); +} + +static u_short +fts_stat(FTS *sp, register FTSENT *p, int follow) +{ + register FTSENT *t; + register dev_t dev; + register ino_t ino; + struct stat *sbp, sb; + int saved_errno; + + /* If user needs stat info, stat buffer already allocated. */ + sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp; + +#if defined FTS_WHITEOUT && 0 + /* check for whiteout */ + if (p->fts_flags & FTS_ISW) { + if (sbp != &sb) { + memset(sbp, '\0', sizeof (*sbp)); + sbp->st_mode = S_IFWHT; + } + return (FTS_W); + } +#endif + + /* + * If doing a logical walk, or application requested FTS_FOLLOW, do + * a stat(2). If that fails, check for a non-existent symlink. If + * fail, set the errno from the stat call. + */ + if (ISSET(FTS_LOGICAL) || follow) { + if (stat(p->fts_accpath, sbp)) { + saved_errno = errno; + if (!lstat(p->fts_accpath, sbp)) { + errno = 0; + return (FTS_SLNONE); + } + p->fts_errno = saved_errno; + goto err; + } + } else if (lstat(p->fts_accpath, sbp)) { + p->fts_errno = errno; +err: memset(sbp, 0, sizeof(struct stat)); + return (FTS_NS); + } + + if (S_ISDIR(sbp->st_mode)) { + /* + * Set the device/inode. Used to find cycles and check for + * crossing mount points. Also remember the link count, used + * in fts_build to limit the number of stat calls. It is + * understood that these fields are only referenced if fts_info + * is set to FTS_D. + */ + dev = p->fts_dev = sbp->st_dev; + ino = p->fts_ino = sbp->st_ino; + p->fts_nlink = sbp->st_nlink; + + if (ISDOT(p->fts_name)) + return (FTS_DOT); + + /* + * Cycle detection is done by brute force when the directory + * is first encountered. If the tree gets deep enough or the + * number of symbolic links to directories is high enough, + * something faster might be worthwhile. + */ + for (t = p->fts_parent; + t->fts_level >= FTS_ROOTLEVEL; t = t->fts_parent) + if (ino == t->fts_ino && dev == t->fts_dev) { + p->fts_cycle = t; + return (FTS_DC); + } + return (FTS_D); + } + if (S_ISLNK(sbp->st_mode)) + return (FTS_SL); + if (S_ISREG(sbp->st_mode)) + return (FTS_F); + return (FTS_DEFAULT); +} + +static FTSENT * +fts_sort(FTS *sp, FTSENT *head, register int nitems) +{ + register FTSENT **ap, *p; + + /* + * Construct an array of pointers to the structures and call qsort(3). + * Reassemble the array in the order returned by qsort. If unable to + * sort for memory reasons, return the directory entries in their + * current order. Allocate enough space for the current needs plus + * 40 so don't realloc one entry at a time. + */ + if (nitems > sp->fts_nitems) { + struct _ftsent **a; + + sp->fts_nitems = nitems + 40; + if ((a = realloc(sp->fts_array, + (size_t)(sp->fts_nitems * sizeof(FTSENT *)))) == NULL) { + free(sp->fts_array); + sp->fts_array = NULL; + sp->fts_nitems = 0; + return (head); + } + sp->fts_array = a; + } + for (ap = sp->fts_array, p = head; p; p = p->fts_link) + *ap++ = p; + qsort((void *)sp->fts_array, nitems, sizeof(FTSENT *), sp->fts_compar); + for (head = *(ap = sp->fts_array); --nitems; ++ap) + ap[0]->fts_link = ap[1]; + ap[0]->fts_link = NULL; + return (head); +} + +static FTSENT * +fts_alloc(FTS *sp, const char *name, size_t namelen) +{ + register FTSENT *p; + size_t len; + + /* + * The file name is a variable length array and no stat structure is + * necessary if the user has set the nostat bit. Allocate the FTSENT + * structure, the file name and the stat structure in one chunk, but + * be careful that the stat structure is reasonably aligned. Since the + * fts_name field is declared to be of size 1, the fts_name pointer is + * namelen + 2 before the first possible address of the stat structure. + */ + len = sizeof(FTSENT) + namelen; + if (!ISSET(FTS_NOSTAT)) + len += sizeof(struct stat) + ALIGNBYTES; + if ((p = malloc(len)) == NULL) + return (NULL); + + /* Copy the name and guarantee NUL termination. */ + memmove(p->fts_name, name, namelen); + p->fts_name[namelen] = '\0'; + + if (!ISSET(FTS_NOSTAT)) + p->fts_statp = (struct stat *)ALIGN(p->fts_name + namelen + 2); + p->fts_namelen = namelen; + p->fts_path = sp->fts_path; + p->fts_errno = 0; + p->fts_flags = 0; + p->fts_instr = FTS_NOINSTR; + p->fts_number = 0; + p->fts_pointer = NULL; + return (p); +} + +static void +fts_lfree(register FTSENT *head) +{ + register FTSENT *p; + + /* Free a linked list of structures. */ + while ((p = head)) { + head = head->fts_link; + free(p); + } +} + +/* + * Allow essentially unlimited paths; find, rm, ls should all work on any tree. + * Most systems will allow creation of paths much longer than MAXPATHLEN, even + * though the kernel won't resolve them. Add the size (not just what's needed) + * plus 256 bytes so don't realloc the path 2 bytes at a time. + */ +static int +fts_palloc(FTS *sp, size_t more) +{ + char *p; + + sp->fts_pathlen += more + 256; + /* + * Check for possible wraparound. In an FTS, fts_pathlen is + * a signed int but in an FTSENT it is an unsigned short. + * We limit fts_pathlen to USHRT_MAX to be safe in both cases. + */ + if (sp->fts_pathlen < 0 || sp->fts_pathlen >= USHRT_MAX) { + free(sp->fts_path); + sp->fts_path = NULL; + errno = ENAMETOOLONG; + return (1); + } + p = realloc(sp->fts_path, sp->fts_pathlen); + if (p == NULL) { + free(sp->fts_path); + sp->fts_path = NULL; + return 1; + } + sp->fts_path = p; + return 0; +} + +/* + * When the path is realloc'd, have to fix all of the pointers in structures + * already returned. + */ +static void +fts_padjust(FTS *sp, FTSENT *head) +{ + FTSENT *p; + char *addr = sp->fts_path; + +#define ADJUST(p) do { \ + if ((p)->fts_accpath != (p)->fts_name) { \ + (p)->fts_accpath = \ + (char *)addr + ((p)->fts_accpath - (p)->fts_path); \ + } \ + (p)->fts_path = addr; \ +} while (0) + /* Adjust the current set of children. */ + for (p = sp->fts_child; p; p = p->fts_link) + ADJUST(p); + + /* Adjust the rest of the tree, including the current level. */ + for (p = head; p->fts_level >= FTS_ROOTLEVEL;) { + ADJUST(p); + p = p->fts_link ? p->fts_link : p->fts_parent; + } +} + +static size_t +fts_maxarglen(char * const *argv) +{ + size_t len, max; + + for (max = 0; *argv; ++argv) + if ((len = strlen(*argv)) > max) + max = len; + return (max + 1); +} + +/* + * Change to dir specified by fd or p->fts_accpath without getting + * tricked by someone changing the world out from underneath us. + * Assumes p->fts_dev and p->fts_ino are filled in. + */ +static int +fts_safe_changedir(FTS *sp, FTSENT *p, int fd, const char *path) +{ + int ret, oerrno, newfd; + struct stat64 sb; + + newfd = fd; + if (ISSET(FTS_NOCHDIR)) + return (0); + if (fd < 0 && (newfd = open(path, O_RDONLY, 0)) < 0) + return (-1); + if (fstat64(newfd, &sb)) { + ret = -1; + goto bail; + } + if (p->fts_dev != sb.st_dev || p->fts_ino != sb.st_ino) { + errno = ENOENT; /* disinformation */ + ret = -1; + goto bail; + } + ret = fchdir(newfd); +bail: + oerrno = errno; + if (fd < 0) + (void)close(newfd); + errno = oerrno; + return (ret); +} diff -Nrup a/libdwfl/fts_.h b/libdwfl/fts_.h --- a/libdwfl/fts_.h 1970-01-01 01:00:00.000000000 +0100 +++ b/libdwfl/fts_.h 2016-06-17 14:58:42.003387566 +0100 @@ -0,0 +1,131 @@ +/* + * Copyright (c) 1989, 1993 + * The Regents of the University of California. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * @(#)fts.h 8.3 (Berkeley) 8/14/94 + */ + +#ifndef _FTS_H +#define _FTS_H 1 + +#include <features.h> +#include <sys/types.h> + +/* The fts interface is incompatible with the LFS interface which + transparently uses the 64-bit file access functions. */ +#ifdef __USE_FILE_OFFSET64 +# error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64" +#endif + + +typedef struct { + struct _ftsent *fts_cur; /* current node */ + struct _ftsent *fts_child; /* linked list of children */ + struct _ftsent **fts_array; /* sort array */ + dev_t fts_dev; /* starting device # */ + char *fts_path; /* path for this descent */ + int fts_rfd; /* fd for root */ + int fts_pathlen; /* sizeof(path) */ + int fts_nitems; /* elements in the sort array */ + int (*fts_compar) (const void *, const void *); /* compare fn */ + +#define FTS_COMFOLLOW 0x0001 /* follow command line symlinks */ +#define FTS_LOGICAL 0x0002 /* logical walk */ +#define FTS_NOCHDIR 0x0004 /* don't change directories */ +#define FTS_NOSTAT 0x0008 /* don't get stat info */ +#define FTS_PHYSICAL 0x0010 /* physical walk */ +#define FTS_SEEDOT 0x0020 /* return dot and dot-dot */ +#define FTS_XDEV 0x0040 /* don't cross devices */ +#define FTS_WHITEOUT 0x0080 /* return whiteout information */ +#define FTS_OPTIONMASK 0x00ff /* valid user option mask */ + +#define FTS_NAMEONLY 0x0100 /* (private) child names only */ +#define FTS_STOP 0x0200 /* (private) unrecoverable error */ + int fts_options; /* fts_open options, global flags */ +} FTS; + +typedef struct _ftsent { + struct _ftsent *fts_cycle; /* cycle node */ + struct _ftsent *fts_parent; /* parent directory */ + struct _ftsent *fts_link; /* next file in directory */ + long fts_number; /* local numeric value */ + void *fts_pointer; /* local address value */ + char *fts_accpath; /* access path */ + char *fts_path; /* root path */ + int fts_errno; /* errno for this node */ + int fts_symfd; /* fd for symlink */ + u_short fts_pathlen; /* strlen(fts_path) */ + u_short fts_namelen; /* strlen(fts_name) */ + + ino_t fts_ino; /* inode */ + dev_t fts_dev; /* device */ + nlink_t fts_nlink; /* link count */ + +#define FTS_ROOTPARENTLEVEL -1 +#define FTS_ROOTLEVEL 0 + short fts_level; /* depth (-1 to N) */ + +#define FTS_D 1 /* preorder directory */ +#define FTS_DC 2 /* directory that causes cycles */ +#define FTS_DEFAULT 3 /* none of the above */ +#define FTS_DNR 4 /* unreadable directory */ +#define FTS_DOT 5 /* dot or dot-dot */ +#define FTS_DP 6 /* postorder directory */ +#define FTS_ERR 7 /* error; errno is set */ +#define FTS_F 8 /* regular file */ +#define FTS_INIT 9 /* initialized only */ +#define FTS_NS 10 /* stat(2) failed */ +#define FTS_NSOK 11 /* no stat(2) requested */ +#define FTS_SL 12 /* symbolic link */ +#define FTS_SLNONE 13 /* symbolic link without target */ +#define FTS_W 14 /* whiteout object */ + u_short fts_info; /* user flags for FTSENT structure */ + +#define FTS_DONTCHDIR 0x01 /* don't chdir .. to the parent */ +#define FTS_SYMFOLLOW 0x02 /* followed a symlink to get here */ + u_short fts_flags; /* private flags for FTSENT structure */ + +#define FTS_AGAIN 1 /* read node again */ +#define FTS_FOLLOW 2 /* follow symbolic link */ +#define FTS_NOINSTR 3 /* no instructions */ +#define FTS_SKIP 4 /* discard node */ + u_short fts_instr; /* fts_set() instructions */ + + struct stat *fts_statp; /* stat(2) information */ + char fts_name[1]; /* file name */ +} FTSENT; + +__BEGIN_DECLS +FTSENT *fts_children (FTS *, int); +int fts_close (FTS *); +FTS *fts_open (char * const *, int, + int (*)(const FTSENT **, const FTSENT **)); +FTSENT *fts_read (FTS *); +int fts_set (FTS *, FTSENT *, int) __THROW; +__END_DECLS + +#endif /* fts.h */ diff -Nrup a/libdwfl/linux-kernel-modules.c b/libdwfl/linux-kernel-modules.c --- a/libdwfl/linux-kernel-modules.c 2016-03-02 16:25:38.000000000 +0000 +++ b/libdwfl/linux-kernel-modules.c 2016-06-17 14:59:50.267724089 +0100 @@ -29,7 +29,11 @@ /* We include this before config.h because it can't handle _FILE_OFFSET_BITS. Everything we need here is fine if its declarations just come first. */ +#ifdef HAVE_FTS_H #include <fts.h> +#else +#include <fts_.h> +#endif #include <config.h> diff -Nrup a/libdwfl/Makefile.am b/libdwfl/Makefile.am --- a/libdwfl/Makefile.am 2016-01-12 12:49:19.000000000 +0000 +++ b/libdwfl/Makefile.am 2016-06-17 15:01:03.492157569 +0100 @@ -77,6 +77,9 @@ endif if LZMA libdwfl_a_SOURCES += lzma.c endif +if !HAVE_FTS +libdwfl_a_SOURCES += fts.c +endif libdwfl = $(libdw) libdw = ../libdw/libdw.so
shibajee/buildroot
package/elfutils/0003-fts.patch
patch
mit
39,317
Disable the build of the po/ directory Building the po/ directory complains that the scripts in there have been generated with gettext 0.17, while we use gettext 0.18 in Buildroot. Since we don't care that much about po files anyway, just disable the build of this directory. Based on the former patch by Thomas Petazzoni. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> diff -rup a/Makefile.am b/Makefile.am --- a/Makefile.am 2014-11-07 15:14:39.018060884 +0000 +++ b/Makefile.am 2014-11-07 15:30:02.864918229 +0000 @@ -28,7 +28,7 @@ endif # Add doc back when we have some real content. SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \ - backends $(PROGS_SUBDIR) po tests + backends $(PROGS_SUBDIR) tests EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \ COPYING COPYING-GPLV2 COPYING-LGPLV3
shibajee/buildroot
package/elfutils/0004-disable-po.patch
patch
mit
932
Really make -Werror conditional to BUILD_WERROR Otherwise it will fail with an error message like this one: elf_getarsym.c:290:9: error: 'n' may be used uninitialized in this function [-Werror=maybe-uninitialized] arsym[n].as_name = NULL; ^ cc1: all warnings being treated as errors [Vincent: tweak patch for 0.166] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> diff -rup a/config/eu.am b/config/eu.am --- a/config/eu.am 2016-03-02 16:25:38.000000000 +0000 +++ b/config/eu.am 2016-06-17 15:05:08.270974835 +0100 @@ -65,7 +65,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -W -Wold-style-definition -Wstrict-prototypes \ $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \ $(NULL_DEREFERENCE_WARNING) \ - $(if $($(*F)_no_Werror),,-Werror) \ $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \ $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \ $($(*F)_CFLAGS)
shibajee/buildroot
package/elfutils/0005-really-make-werror-conditional-to-build-werror.patch
patch
mit
980
Provide a compatibility alias __memcpy For some reason, libelf uses the internal glibc alias __memcpy, which doesn't exist in uClibc. Add a manual alias so that the build can proceed with uClibc. Based on the former patch by Thomas Petazzoni. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> diff -rup a/libelf/libelf.h b/libelf/libelf.h --- a/libelf/libelf.h 2014-08-27 10:25:17.000000000 +0100 +++ b/libelf/libelf.h 2014-11-07 15:13:08.743508221 +0000 @@ -34,6 +34,11 @@ /* Get the ELF types. */ #include <elf.h> +#ifndef _LIBC +#ifndef __mempcpy +#define __mempcpy mempcpy +#endif +#endif /* Known translation types. */ typedef enum
shibajee/buildroot
package/elfutils/0006-memcpy-def.patch
patch
mit
733
comment "elfutils needs a uClibc or glibc toolchain w/ wchar, dynamic library" depends on !BR2_bfin depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS \ || !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC) config BR2_PACKAGE_ELFUTILS bool "elfutils" select BR2_PACKAGE_ZLIB select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT depends on BR2_USE_WCHAR depends on !BR2_STATIC_LIBS # Only glibc and uClibc implement the myriad of required GNUisms depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # build issue caused by the _ prefix used on blackfin for # assembly symbols depends on !BR2_bfin help Libraries/utilities to handle ELF objects (drop in replacement for libelf). Note that this option only installs the libraries, and not the programs. https://fedorahosted.org/elfutils if BR2_PACKAGE_ELFUTILS config BR2_PACKAGE_ELFUTILS_PROGS bool "Install programs" depends on BR2_TOOLCHAIN_USES_GLIBC help This option tells elfutils to not only install the libelf libraries, but also the elfutils programs. endif
shibajee/buildroot
package/elfutils/Config.in
in
mit
1,132
# Locally calculated sha256 3c056914c8a438b210be0d790463b960fc79d234c3f05ce707cbff80e94cba30 elfutils-0.166.tar.bz2
shibajee/buildroot
package/elfutils/elfutils.hash
hash
mit
117
################################################################################ # # elfutils # ################################################################################ ELFUTILS_VERSION = 0.166 ELFUTILS_SOURCE = elfutils-$(ELFUTILS_VERSION).tar.bz2 ELFUTILS_SITE = https://fedorahosted.org/releases/e/l/elfutils/$(ELFUTILS_VERSION) ELFUTILS_INSTALL_STAGING = YES ELFUTILS_LICENSE = GPLv3, GPLv2, LGPLv3 ELFUTILS_LICENSE_FILES = COPYING COPYING-GPLV2 COPYING-LGPLV3 ELFUTILS_DEPENDENCIES = zlib # We patch configure.ac ELFUTILS_AUTORECONF = YES ELFUTILS_CONF_OPTS += --disable-werror # elfutils gets confused when lfs mode is forced, so don't ELFUTILS_CFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CFLAGS)) ELFUTILS_CPPFLAGS = $(filter-out -D_FILE_OFFSET_BITS=64,$(TARGET_CPPFLAGS)) # sparc64 needs -fPIC instead of -fpic ifeq ($(BR2_sparc64),y) ELFUTILS_CFLAGS += -fPIC endif ELFUTILS_CONF_ENV += \ CFLAGS="$(ELFUTILS_CFLAGS)" \ CPPFLAGS="$(ELFUTILS_CPPFLAGS)" ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) # Unconditionnally requires gettext. ifeq ($(BR2_NEEDS_GETTEXT),y) ELFUTILS_DEPENDENCIES += gettext ELFUTILS_LDFLAGS += -lintl endif ELFUTILS_CONF_ENV += \ LDFLAGS="$(ELFUTILS_LDFLAGS)" ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) ELFUTILS_DEPENDENCIES += argp-standalone ELFUTILS_CONF_OPTS += --disable-symbol-versioning endif ifeq ($(BR2_PACKAGE_BZIP2),y) ELFUTILS_DEPENDENCIES += bzip2 ELFUTILS_CONF_OPTS += --with-bzlib else ELFUTILS_CONF_OPTS += --without-bzlib endif ifeq ($(BR2_PACKAGE_XZ),y) ELFUTILS_DEPENDENCIES += xz ELFUTILS_CONF_OPTS += --with-lzma else ELFUTILS_CONF_OPTS += --without-lzma endif ifeq ($(BR2_PACKAGE_ELFUTILS_PROGS),y) ELFUTILS_CONF_OPTS += --enable-progs else ELFUTILS_CONF_OPTS += --disable-progs endif $(eval $(autotools-package))
shibajee/buildroot
package/elfutils/elfutils.mk
mk
mit
1,787
config BR2_PACKAGE_EMLOG bool "emlog" depends on BR2_LINUX_KERNEL help emlog is a Linux kernel module that makes it easy to access the most recent (and only the most recent) output from a process. It works just like "tail -f" on a log file, except that the storage required never grows. This can be useful in embedded systems where there isn't enough memory or disk space for keeping complete log files, but the most recent debugging messages are sometimes needed (e.g., after an error is observed). https://github.com/nicupavel/emlog comment "emlog needs a Linux kernel to be built" depends on !BR2_LINUX_KERNEL
shibajee/buildroot
package/emlog/Config.in
in
mit
646
# Locally calculated sha256 0d82f06301b8486c54e5e36f304d5a83c2347c23b93c1344eacb0b5b3044485a emlog-576a6c0fcf76dfeff48124b2f5fc0b4207d88ca1.tar.gz
shibajee/buildroot
package/emlog/emlog.hash
hash
mit
148
################################################################################ # # emlog # ################################################################################ EMLOG_VERSION = 576a6c0fcf76dfeff48124b2f5fc0b4207d88ca1 EMLOG_SITE = $(call github,nicupavel,emlog,$(EMLOG_VERSION)) EMLOG_LICENSE = GPLv2 EMLOG_LICENSE_FILES = COPYING define EMLOG_BUILD_CMDS $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) nbcat endef # make install tries to strip, so install manually. define EMLOG_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0755 $(@D)/nbcat $(TARGET_DIR)/usr/bin/nbcat endef $(eval $(kernel-module)) $(eval $(generic-package))
shibajee/buildroot
package/emlog/emlog.mk
mk
mit
633
downloaded from http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-misc/empty/files/empty-respect-LDFLAGS.patch?view=markup Reported on the Gentoo bug tracker https://bugs.gentoo.org/show_bug.cgi?id=429664 and reported upstream https://sourceforge.net/tracker/?func=detail&aid=3554236&group_id=136798&atid=736886 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> --- empty-0.6.18b/Makefile +++ empty-0.6.18b/Makefile @@ -16,7 +16,7 @@ PREFIX = /usr/local all: - ${CC} ${CFLAGS} -Wall ${LIBS} -o empty empty.c + ${CC} ${CFLAGS} ${LDFLAGS} empty.c ${LIBS} -o empty FreeBSD: all NetBSD: all
shibajee/buildroot
package/empty/0001-respect-LDFLAGS.patch
patch
mit
613
empty uses SysV semaphores, so the ifdef is wrong here. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> --- empty-0.6.19b.orig/empty.c 2012-09-19 13:24:05.000000000 +0200 +++ empty-0.6.19b/empty.c 2015-07-09 02:00:09.000000000 +0200 @@ -179,25 +179,23 @@ int main (int argc, char *argv[]) { 2 - unknown */ /* semaphores */ -#ifdef _POSIX_SEMAPHORES - #if defined(__linux__) && defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) - /* union semun is defined by including <sys/sem.h> */ - #else - union semun { - int val; - struct semid_ds *buf; - #ifdef __SVR4 - ushort_t *array; - #endif - #ifdef __hpux__ - ushort *array; - #endif - #ifdef __linux__ - unsigned short *array; - struct seminfo *__buf; /* buffer for IPC_INFO */ - #endif - }; - #endif +#if defined(__linux__) && defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) + /* union semun is defined by including <sys/sem.h> */ +#else + union semun { + int val; + struct semid_ds *buf; + #ifdef __SVR4 + ushort_t *array; + #endif + #ifdef __hpux__ + ushort *array; + #endif + #ifdef __linux__ + unsigned short *array; + struct seminfo *__buf; /* buffer for IPC_INFO */ + #endif + }; #endif union semun semu;
shibajee/buildroot
package/empty/0002-fix-non-thread-build.patch
patch
mit
1,236
config BR2_PACKAGE_EMPTY bool "empty" depends on BR2_USE_MMU # uses fork() help Run processes and applications under pseudo-terminal (PTY) sessions. http://empty.sourceforge.net/
shibajee/buildroot
package/empty/Config.in
in
mit
189
# Locally computed: sha256 05b7cb361ef815774abda325c09c573f8c9039ccbb71eedc743439e4637c314a empty-0.6.19b.tgz
shibajee/buildroot
package/empty/empty.hash
hash
mit
112
################################################################################ # # empty # ################################################################################ EMPTY_VERSION = 0.6.19b EMPTY_SOURCE = empty-$(EMPTY_VERSION).tgz EMPTY_SITE = http://downloads.sourceforge.net/project/empty/empty/empty-$(EMPTY_VERSION) EMPTY_LICENSE = BSD-3c EMPTY_LICENSE_FILES = COPYRIGHT define EMPTY_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all endef define EMPTY_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 -D $(@D)/empty $(TARGET_DIR)/usr/bin/empty endef $(eval $(generic-package))
shibajee/buildroot
package/empty/empty.mk
mk
mit
594
config BR2_PACKAGE_ENCHANT bool "enchant" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_WCHAR # glib2 depends on BR2_TOOLCHAIN_HAS_THREADS # glib2 depends on BR2_USE_MMU # glib2 select BR2_PACKAGE_LIBGLIB2 help Enchant is a spell-checking library that provides a consistent API across a number of spell-checking system backends. http://www.abisource.com/projects/enchant/ comment "enchant needs a toolchain w/ C++, threads, wchar" depends on BR2_USE_MMU depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/enchant/Config.in
in
mit
566
# From http://www.abisource.com/downloads/enchant/1.6.0/MD5SUM md5 de11011aff801dc61042828041fb59c7 enchant-1.6.0.tar.gz
shibajee/buildroot
package/enchant/enchant.hash
hash
mit
121
################################################################################ # # enchant # ################################################################################ ENCHANT_VERSION = 1.6.0 ENCHANT_SITE = http://www.abisource.com/downloads/enchant/$(ENCHANT_VERSION) ENCHANT_INSTALL_STAGING = YES ENCHANT_DEPENDENCIES = libglib2 host-pkgconf ENCHANT_LICENSE = LGPLv2.1+ ENCHANT_LICENSE_FILES = COPYING.LIB $(eval $(autotools-package))
shibajee/buildroot
package/enchant/enchant.mk
mk
mit
447
From 368c4c7cc5722b2edfe98fb3a8999f8f01bc9b56 Mon Sep 17 00:00:00 2001 From: Romain Naour <romain.naour@gmail.com> Date: Fri, 5 Aug 2016 21:14:46 +0200 Subject: [PATCH] E: include uuid.h only when Wayland support is enabled. libuuid is checked only when Wayland support is enabled and uuid_t uuid is guarded by HAVE_WAYLAND. So move include uuid.h below a HAVE_WAYLAND. Signed-off-by: Romain Naour <romain.naour@gmail.com> --- src/bin/e_pixmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index 2bd94a7..0b01473 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -2,6 +2,7 @@ #ifdef HAVE_WAYLAND # include "e_comp_wl.h" +# include <uuid.h> # ifndef EGL_TEXTURE_FORMAT # define EGL_TEXTURE_FORMAT 0x3080 # endif @@ -13,8 +14,6 @@ # include "e_comp_x.h" #endif -#include <uuid.h> - static Eina_Hash *pixmaps[2] = {NULL}; static Eina_Hash *aliases[2] = {NULL}; -- 2.5.5
shibajee/buildroot
package/enlightenment/0001-E-include-uuid.h-only-when-Wayland-support-is-enable.patch
patch
mit
966
config BR2_PACKAGE_ENLIGHTENMENT bool "enlightenment" # libevas-generic-loaders-svg -> librsvg -> glib2 / pango depends on BR2_USE_WCHAR depends on BR2_INSTALL_LIBSTDCPP # libedbus -> dbus # libedbus -> glib2, libevas depends on BR2_TOOLCHAIN_HAS_THREADS # libedbus -> dbus, efl libraries depends on BR2_USE_MMU depends on BR2_PACKAGE_EFL depends on BR2_PACKAGE_XORG7 # libevas-generic-loaders-svg -> librsvg -> pango -> harfbuzz depends on BR2_TOOLCHAIN_HAS_SYNC_4 select BR2_PACKAGE_EFL_X_XLIB select BR2_PACKAGE_EFL_JPEG # needed at runtime by enlightenment_start select BR2_PACKAGE_EFL_PNG # needed at runtime by enlightenment_start select BR2_PACKAGE_ELEMENTARY select BR2_PACKAGE_LIBEVAS_GENERIC_LOADERS select BR2_PACKAGE_LIBEVAS_GENERIC_LOADERS_SVG select BR2_PACKAGE_XCB_UTIL_KEYSYMS help Enlightenment, also known simply as E, is a stacking window manager for the X Window System which can be used alone or in conjunction with a desktop environment such as GNOME or KDE. Enlightenment can be used as a substitute for a full desktop environment. http://www.enlightenment.org/ comment "enlightenment needs a toolchain w/ wchar, C++, threads" depends on BR2_PACKAGE_EFL && BR2_PACKAGE_XORG7 && BR2_USE_MMU depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_SYNC_4
shibajee/buildroot
package/enlightenment/Config.in
in
mit
1,375
# From https://www.enlightenment.org/news/e-0.20.10-release sha256 59fd447d120d91d18958a31a5827f97842cc472f2e22f132b2c7d4d208944baf enlightenment-0.20.10.tar.xz
shibajee/buildroot
package/enlightenment/enlightenment.hash
hash
mit
162
################################################################################ # # enlightenment # ################################################################################ ENLIGHTENMENT_VERSION = 0.20.10 ENLIGHTENMENT_SOURCE = enlightenment-$(ENLIGHTENMENT_VERSION).tar.xz ENLIGHTENMENT_SITE = http://download.enlightenment.org/rel/apps/enlightenment ENLIGHTENMENT_LICENSE = BSD-2c ENLIGHTENMENT_LICENSE_FILES = COPYING ENLIGHTENMENT_DEPENDENCIES = \ host-pkgconf \ host-efl \ efl \ elementary \ libevas-generic-loaders \ xcb-util-keysyms ENLIGHTENMENT_CONF_OPTS = \ --with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \ --with-eet-eet=$(HOST_DIR)/usr/bin/eet \ --disable-pam \ --disable-rpath ifeq ($(BR2_PACKAGE_SYSTEMD),y) ENLIGHTENMENT_CONF_OPTS += --enable-systemd ENLIGHTENMENT_DEPENDENCIES += systemd else ENLIGHTENMENT_CONF_OPTS += --disable-systemd endif # uClibc has an old incomplete sys/ptrace.h for powerpc & sparc ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC)$(BR2_powerpc)$(BR2_sparc),yy) ENLIGHTENMENT_CONF_ENV += ac_cv_header_sys_ptrace_h=no endif # alsa backend needs mixer support ifeq ($(BR2_PACKAGE_ALSA_LIB)$(BR2_PACKAGE_ALSA_LIB_MIXER),yy) ENLIGHTENMENT_DEPENDENCIES += alsa-lib else ENLIGHTENMENT_CONF_ENV += enable_alsa=no endif define ENLIGHTENMENT_REMOVE_DOCUMENTATION rm -rf $(TARGET_DIR)/usr/share/enlightenment/doc/ rm -f $(TARGET_DIR)/usr/share/enlightenment/COPYING rm -f $(TARGET_DIR)/usr/share/enlightenment/AUTHORS endef ENLIGHTENMENT_POST_INSTALL_TARGET_HOOKS += ENLIGHTENMENT_REMOVE_DOCUMENTATION $(eval $(autotools-package))
shibajee/buildroot
package/enlightenment/enlightenment.mk
mk
mit
1,574
config BR2_PACKAGE_ENSCRIPT bool "enscript" help GNU Enscript is a free replacement for Adobe's enscript program. GNU Enscript converts ASCII files to PostScript, HTML, or RTF and stores generated output to a file or sends it directly to the printer. It includes features for `pretty-printing' (language- sensitive code highlighting) in several programming languages. http://www.gnu.org/software/enscript
shibajee/buildroot
package/enscript/Config.in
in
mit
427
# Locally calculated after checking pgp signature sha256 6d56bada6934d055b34b6c90399aa85975e66457ac5bf513427ae7fc77f5c0bb enscript-1.6.6.tar.gz
shibajee/buildroot
package/enscript/enscript.hash
hash
mit
144
################################################################################ # # enscript # ################################################################################ ENSCRIPT_VERSION = 1.6.6 ENSCRIPT_SITE = $(BR2_GNU_MIRROR)/enscript ENSCRIPT_LICENSE = GPLv3+ ENSCRIPT_LICENSE_FILES = COPYING # Enable pthread threads if toolchain supports threads ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) ENSCRIPT_CONF_OPTS += --enable-threads=pth else ENSCRIPT_CONF_OPTS += --disable-threads endif $(eval $(autotools-package))
shibajee/buildroot
package/enscript/enscript.mk
mk
mit
523
config BR2_PACKAGE_ERLANG_GOLDRUSH bool "erlang-goldrush" help Goldrush is a small Erlang app that provides fast event stream processing. https://github.com/DeadZen/goldrush
shibajee/buildroot
package/erlang-goldrush/Config.in
in
mit
186
# Locally calculated sha256 739d8ce15049c54f7e00528edbf536f63a24fdb9dfa053d176e6f97a9832b834 erlang-goldrush-0.1.8.tar.gz
shibajee/buildroot
package/erlang-goldrush/erlang-goldrush.hash
hash
mit
122
################################################################################ # # erlang-goldrush # ################################################################################ ERLANG_GOLDRUSH_VERSION = 0.1.8 ERLANG_GOLDRUSH_SITE = $(call github,DeadZen,goldrush,$(ERLANG_GOLDRUSH_VERSION)) ERLANG_GOLDRUSH_LICENSE = ISC ERLANG_GOLDRUSH_LICENSE_FILES = LICENSE ERLANG_GOLDRUSH_INSTALL_STAGING = YES $(eval $(rebar-package)) $(eval $(host-rebar-package))
shibajee/buildroot
package/erlang-goldrush/erlang-goldrush.mk
mk
mit
463
config BR2_PACKAGE_ERLANG_LAGER bool "erlang-lager" select BR2_PACKAGE_ERLANG_GOLDRUSH help Lager (as in the beer) is a logging framework for Erlang. Its purpose is to provide a more traditional way to perform logging in an erlang application that plays nicely with traditional UNIX logging tools like logrotate and syslog. https://github.com/basho/lager
shibajee/buildroot
package/erlang-lager/Config.in
in
mit
377
# Locally calculated sha256 168a8e48646b04bcee1ab0c97c1ff63563bd7fd25638f1504b8d8f674d2ddd1b erlang-lager-2.2.0.tar.gz
shibajee/buildroot
package/erlang-lager/erlang-lager.hash
hash
mit
119
################################################################################ # # erlang-lager # ################################################################################ ERLANG_LAGER_VERSION = 2.2.0 ERLANG_LAGER_SITE = $(call github,basho,lager,$(ERLANG_LAGER_VERSION)) ERLANG_LAGER_LICENSE = Apache-2.0 ERLANG_LAGER_LICENSE_FILES = LICENSE ERLANG_LAGER_DEPENDENCIES = erlang-goldrush HOST_ERLANG_LAGER_DEPENDENCIES = host-erlang-goldrush $(eval $(rebar-package)) $(eval $(host-rebar-package))
shibajee/buildroot
package/erlang-lager/erlang-lager.mk
mk
mit
507
config BR2_PACKAGE_ERLANG_P1_CACHE_TAB bool "erlang-p1-cache-tab" select BR2_PACKAGE_ERLANG_P1_UTILS help Erlang library implementing cache tables https://github.com/processone/cache_tab
shibajee/buildroot
package/erlang-p1-cache-tab/Config.in
in
mit
197
# Locally calculated sha256 752b649f695e9f2777efd6b2d8dfdcc1f435104b4e363f5f0454b99fd009015c erlang-p1-cache-tab-1.0.1.tar.gz
shibajee/buildroot
package/erlang-p1-cache-tab/erlang-p1-cache-tab.hash
hash
mit
126
################################################################################ # # erlang-p1-cache-tab # ################################################################################ ERLANG_P1_CACHE_TAB_VERSION = 1.0.1 ERLANG_P1_CACHE_TAB_SITE = $(call github,processone,cache_tab,$(ERLANG_P1_CACHE_TAB_VERSION)) ERLANG_P1_CACHE_TAB_LICENSE = Apache-2.0 ERLANG_P1_CACHE_TAB_LICENSE_FILES = LICENSE.txt ERLANG_P1_CACHE_TAB_DEPENDENCIES = erlang-p1-utils $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-cache-tab/erlang-p1-cache-tab.mk
mk
mit
485
config BR2_PACKAGE_ERLANG_P1_ICONV bool "erlang-p1-iconv" select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help Erlang interface to libiconv https://github.com/processone/eiconv
shibajee/buildroot
package/erlang-p1-iconv/Config.in
in
mit
189
# Locally calculated sha256 3ef1fb814fdf23e8ad8a210efb66681fa67cd42753be536521bf9686158880d3 erlang-p1-iconv-0.9.0.tar.gz
shibajee/buildroot
package/erlang-p1-iconv/erlang-p1-iconv.hash
hash
mit
122
################################################################################ # # erlang-p1-iconv # ################################################################################ ERLANG_P1_ICONV_VERSION = 0.9.0 ERLANG_P1_ICONV_SITE = $(call github,processone,eiconv,$(ERLANG_P1_ICONV_VERSION)) ERLANG_P1_ICONV_LICENSE = GPLv2+ ERLANG_P1_ICONV_LICENSE_FILES = COPYING ifeq ($(BR2_PACKAGE_LIBICONV),y) ERLANG_P1_ICONV_DEPENDENCIES += libiconv endif ERLANG_P1_ICONV_USE_AUTOCONF = YES $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-iconv/erlang-p1-iconv.mk
mk
mit
516
Description: correct include This part of the code was moved into it's own project and was packaged separately by me. To make the build process work, this small fix is necessary. Author: Philipp Huebner <debalance@debian.org> Index: erlang-p1-sip/src/esip_socket.erl =================================================================== --- erlang-p1-sip.orig/src/esip_socket.erl +++ erlang-p1-sip/src/esip_socket.erl @@ -22,7 +22,7 @@ -include("esip.hrl"). -include("esip_lib.hrl"). --include("stun.hrl"). +-include_lib("p1_stun/include/stun.hrl"). -define(TCP_SEND_TIMEOUT, 15000). -define(CONNECT_TIMEOUT, 20000).
shibajee/buildroot
package/erlang-p1-sip/0001-fix-includes.patch
patch
mit
627
config BR2_PACKAGE_ERLANG_P1_SIP bool "erlang-p1-sip" select BR2_PACKAGE_ERLANG_P1_STUN select BR2_PACKAGE_ERLANG_P1_TLS select BR2_PACKAGE_ERLANG_P1_UTILS help SIP library for Erlang https://github.com/processone/p1_sip
shibajee/buildroot
package/erlang-p1-sip/Config.in
in
mit
233
# Locally calculated sha256 2d6dfad997931668eb83a0cb127ccca8c51f8a383d76f9dea393c0b3a4eabae7 erlang-p1-sip-1.0.0.tar.gz
shibajee/buildroot
package/erlang-p1-sip/erlang-p1-sip.hash
hash
mit
120
################################################################################ # # erlang-p1-sip # ################################################################################ ERLANG_P1_SIP_VERSION = 1.0.0 ERLANG_P1_SIP_SITE = $(call github,processone,p1_sip,$(ERLANG_P1_SIP_VERSION)) ERLANG_P1_SIP_LICENSE = GPLv2 with OpenSSL exception ERLANG_P1_SIP_LICENSE_FILES = COPYING ERLANG_P1_SIP_DEPENDENCIES = erlang-p1-stun erlang-p1-tls erlang-p1-utils ERLANG_P1_SIP_INSTALL_STAGING = YES $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-sip/erlang-p1-sip.mk
mk
mit
519
From f5a2b8b78afb253630ee8833f16f131b3b52701e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= <pchmielowski@process-one.net> Date: Mon, 29 Feb 2016 10:56:32 +0100 Subject: [PATCH] Stdint is required on windows [Backport from upstream commit 4fc5cae81122540fff983e40dda1fa905c329fd0, which happens to not only fix the build on Windows, but also with the musl C library.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- c_src/stringprep.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/c_src/stringprep.cpp b/c_src/stringprep.cpp index 461cf09..26215cf 100644 --- a/c_src/stringprep.cpp +++ b/c_src/stringprep.cpp @@ -19,6 +19,7 @@ */ #include <string.h> +#include <stdint.h> #include <erl_nif.h> #include "uni_data.c" -- 2.7.4
shibajee/buildroot
package/erlang-p1-stringprep/0001-Stdint-is-required-on-windows.patch
patch
mit
792
comment "erlang-p1-stringprep needs a toolchain w/ C++" depends on !BR2_INSTALL_LIBSTDCPP config BR2_PACKAGE_ERLANG_P1_STRINGPREP bool "erlang-p1-stringprep" depends on BR2_INSTALL_LIBSTDCPP select BR2_PACKAGE_ERLANG_P1_UTILS help Erlang interface to stringprep https://github.com/processone/stringprep
shibajee/buildroot
package/erlang-p1-stringprep/Config.in
in
mit
316
# Locally calculated sha256 5a74277e7bfb18b8f35838fa78fcde83f0acdb5b2a5b90c4b6d2470a33f7911e erlang-p1-stringprep-1.0.0.tar.gz
shibajee/buildroot
package/erlang-p1-stringprep/erlang-p1-stringprep.hash
hash
mit
127
################################################################################ # # erlang-p1-stringprep # ################################################################################ ERLANG_P1_STRINGPREP_VERSION = 1.0.0 ERLANG_P1_STRINGPREP_SITE = $(call github,processone,stringprep,$(ERLANG_P1_STRINGPREP_VERSION)) ERLANG_P1_STRINGPREP_LICENSE = TCL (tools/*.tcl), Apache-2.0 (rest) ERLANG_P1_STRINGPREP_LICENSE_FILES = LICENSE.ALL LICENSE.TCL LICENSE.txt ERLANG_P1_STRINGPREP_DEPENDENCIES = erlang-p1-utils $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-stringprep/erlang-p1-stringprep.mk
mk
mit
543
config BR2_PACKAGE_ERLANG_P1_STUN bool "erlang-p1-stun" select BR2_PACKAGE_ERLANG_P1_TLS select BR2_PACKAGE_ERLANG_P1_UTILS help STUN library for Erlang https://github.com/processone/stun
shibajee/buildroot
package/erlang-p1-stun/Config.in
in
mit
199
# Locally calculated sha256 ca33833f4b6ef70a7628e6f3697d15cb4e26d32ef4e5a31bbddee86cabe19c50 erlang-p1-stun-0.9.0.tar.gz
shibajee/buildroot
package/erlang-p1-stun/erlang-p1-stun.hash
hash
mit
121
################################################################################ # # erlang-p1-stun # ################################################################################ ERLANG_P1_STUN_VERSION = 0.9.0 ERLANG_P1_STUN_SITE = $(call github,processone,stun,$(ERLANG_P1_STUN_VERSION)) ERLANG_P1_STUN_LICENSE = GPLv2+ ERLANG_P1_STUN_LICENSE_FILES = COPYING ERLANG_P1_STUN_DEPENDENCIES = erlang-p1-tls erlang-p1-utils ERLANG_P1_STUN_INSTALL_STAGING = YES $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-stun/erlang-p1-stun.mk
mk
mit
488
config BR2_PACKAGE_ERLANG_P1_TLS bool "erlang-p1-tls" select BR2_PACKAGE_OPENSSL help Erlang interface to OpenSSL https://github.com/processone/tls
shibajee/buildroot
package/erlang-p1-tls/Config.in
in
mit
158
# Locally calculated sha256 8e8b848a112ff6bf146df34b4f6bc50160a8858a18499a7a6124193b37237a40 erlang-p1-tls-1.0.0.tar.gz
shibajee/buildroot
package/erlang-p1-tls/erlang-p1-tls.hash
hash
mit
120
################################################################################ # # erlang-p1-tls # ################################################################################ ERLANG_P1_TLS_VERSION = 1.0.0 ERLANG_P1_TLS_SITE = $(call github,processone,tls,$(ERLANG_P1_TLS_VERSION)) ERLANG_P1_TLS_LICENSE = GPLv2+ with OpenSSL exception ERLANG_P1_TLS_LICENSE_FILES = COPYING ERLANG_P1_TLS_INSTALL_STAGING = YES ERLANG_P1_TLS_DEPENDENCIES = openssl $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-tls/erlang-p1-tls.mk
mk
mit
480
config BR2_PACKAGE_ERLANG_P1_UTILS bool "erlang-p1-utils" help Set of small Erlang libraries https://github.com/processone/p1_utils
shibajee/buildroot
package/erlang-p1-utils/Config.in
in
mit
141
# Locally calculated sha256 9c7e9fa2990edd419953a6ae609ffed0b90e671b57c468d97c0d85d866d80210 erlang-p1-utils-1.0.3.tar.gz
shibajee/buildroot
package/erlang-p1-utils/erlang-p1-utils.hash
hash
mit
122
################################################################################ # # erlang-p1-utils # ################################################################################ ERLANG_P1_UTILS_VERSION = 1.0.3 ERLANG_P1_UTILS_SITE = $(call github,processone,p1_utils,$(ERLANG_P1_UTILS_VERSION)) ERLANG_P1_UTILS_LICENSE = GPLv2+ ERLANG_P1_UTILS_LICENSE_FILES = LICENSE.txt ERLANG_P1_UTILS_INSTALL_STAGING = YES $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-utils/erlang-p1-utils.mk
mk
mit
443
config BR2_PACKAGE_ERLANG_P1_XML bool "erlang-p1-xml" select BR2_PACKAGE_ERLANG_P1_UTILS select BR2_PACKAGE_EXPAT help XML utilities for Erlang https://github.com/processone/xml
shibajee/buildroot
package/erlang-p1-xml/Config.in
in
mit
189
# Locally calculated sha256 4c163c5b9572baa93eb97e03544db57dc751c7995a5279081a0d56f5fdaa2521 erlang-p1-xml-1.1.1.tar.gz
shibajee/buildroot
package/erlang-p1-xml/erlang-p1-xml.hash
hash
mit
120
################################################################################ # # erlang-p1-xml # ################################################################################ ERLANG_P1_XML_VERSION = 1.1.1 ERLANG_P1_XML_SITE = $(call github,processone,xml,$(ERLANG_P1_XML_VERSION)) ERLANG_P1_XML_LICENSE = Apache-2.0 ERLANG_P1_XML_LICENSE_FILES = LICENSE.txt ERLANG_P1_XML_DEPENDENCIES = expat erlang-p1-utils ERLANG_P1_XML_INSTALL_STAGING = YES ERLANG_P1_XML_USE_AUTOCONF = YES $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-xml/erlang-p1-xml.mk
mk
mit
513
config BR2_PACKAGE_ERLANG_P1_YAML bool "erlang-p1-yaml" select BR2_PACKAGE_ERLANG_P1_UTILS select BR2_PACKAGE_LIBYAML help Erlang wrapper for libyaml C library https://github.com/processone/p1_yaml
shibajee/buildroot
package/erlang-p1-yaml/Config.in
in
mit
209
# Locally calculated sha256 8eaaddda056f1ebb515a5456ba2be855e5b71b9b6eb35788527f39c6600ac6b4 erlang-p1-yaml-1.0.0.tar.gz
shibajee/buildroot
package/erlang-p1-yaml/erlang-p1-yaml.hash
hash
mit
121
################################################################################ # # erlang-p1-yaml # ################################################################################ ERLANG_P1_YAML_VERSION = 1.0.0 ERLANG_P1_YAML_SITE = $(call github,processone,p1_yaml,$(ERLANG_P1_YAML_VERSION)) ERLANG_P1_YAML_LICENSE = Apache-2.0 ERLANG_P1_YAML_LICENSE_FILES = COPYING ERLANG_P1_YAML_DEPENDENCIES = libyaml erlang-p1-utils $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-yaml/erlang-p1-yaml.mk
mk
mit
452
config BR2_PACKAGE_ERLANG_P1_ZLIB bool "erlang-p1-zlib" select BR2_PACKAGE_ZLIB help Erlang interface to zlib https://github.com/processone/zlib
shibajee/buildroot
package/erlang-p1-zlib/Config.in
in
mit
155
# Locally calculated sha256 cb534ee8d8746e38027ada0ccd7e910daa025c74461286ded60ffaa933e3cf7b erlang-p1-zlib-1.0.0.tar.gz
shibajee/buildroot
package/erlang-p1-zlib/erlang-p1-zlib.hash
hash
mit
121
################################################################################ # # erlang-p1-zlib # ################################################################################ ERLANG_P1_ZLIB_VERSION = 1.0.0 ERLANG_P1_ZLIB_SITE = $(call github,processone,zlib,$(ERLANG_P1_ZLIB_VERSION)) ERLANG_P1_ZLIB_LICENSE = GPLv2+ ERLANG_P1_ZLIB_LICENSE_FILES = COPYING ERLANG_P1_ZLIB_DEPENDENCIES = zlib $(eval $(rebar-package))
shibajee/buildroot
package/erlang-p1-zlib/erlang-p1-zlib.mk
mk
mit
426
# Locally calculated sha256 aed933d4e60c4f11e0771ccdb4434cccdb9a71cf8b1363d17aaf863988b3ff60 erlang-rebar-2.6.1.tar.gz
shibajee/buildroot
package/erlang-rebar/erlang-rebar.hash
hash
mit
119
################################################################################ # # erlang-rebar # ################################################################################ ERLANG_REBAR_VERSION = 2.6.1 # Upstream publishes a release, but we can not use it as it is a release of # a generated rebar script, when we want the sources. So we have to use the # gihub helper in this case. ERLANG_REBAR_SITE = $(call github,rebar,rebar,$(ERLANG_REBAR_VERSION)) # Although the file LICENSE state Apache-2.0, a lot (if not all) the files # in src/ bear the MIT licence. ERLANG_REBAR_LICENSE = Apache-2.0, MIT ERLANG_REBAR_LICENSE_FILES = LICENSE # We do not have a target variant, so just define the dependencies, # configure and build commands for the host variant. HOST_ERLANG_REBAR_DEPENDENCIES = host-erlang define HOST_ERLANG_REBAR_BUILD_CMDS cd $(@D) && $(HOST_MAKE_ENV) $(MAKE) endef define HOST_ERLANG_REBAR_INSTALL_CMDS $(INSTALL) -m 0755 -D $(@D)/rebar $(HOST_DIR)/usr/bin/rebar endef $(eval $(host-generic-package))
shibajee/buildroot
package/erlang-rebar/erlang-rebar.mk
mk
mit
1,035
apply-patches.sh deletes this file from the source directory. --- erlang-R15B01.old/lib/tools/emacs/Makefile 2012-04-04 +++ erlang-R15B01/lib/tools/emacs/Makefile 2012-04-04 15:55:16.978957307 +0100 @@ -51,7 +51,7 @@ ELC_FILES = $(EMACS_FILES:%=%.elc) -TEST_FILES = test.erl.indented test.erl.orig +TEST_FILES = test.erl.indented # ---------------------------------------------------- # Targets
shibajee/buildroot
package/erlang/0001-build-fix.patch
patch
mit
402
From 439fa2eae78a8900bda120072335be19d626498c Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" <yann.morin.1998@free.fr> Date: Sun, 28 Dec 2014 23:39:40 +0100 Subject: [PATCH] erts/ethread: instruct libatomic_ops we do require CAS We do require compare-and-swap (CAS), so we must instruct libatomic_ops to provide it, even if the architecture does not have instructions for it. For example, on ARM, LDREX is required for fast CAS. But LDREX is only available on ARMv6, so by default libatomic_ops will not have CAS for anything below, like ARMv5. But ARMv5 is always UP, so using an emulated CAS (that is signal-asyn-safe) is still possible (albeit much slower). Tell libatomic_ops to provide CAS, even if the hardware is not capable of it, by using emulated CAS, as per libatomic_ops dosc: https://github.com/ivmai/libatomic_ops/blob/master/doc/README.txt#L28 If this is included after defining AO_REQUIRE_CAS, then the package will make an attempt to emulate compare-and-swap in a way that (at least on Linux) should still be async-signal-safe. Thanks go to Thomas for all this insight! :-) Thanks go to Frank for reporting the issue! :-) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Frank Hunleth <fhunleth@troodon-software.com> --- erts/include/internal/libatomic_ops/ethread.h | 1 + 1 file changed, 1 insertion(+) diff --git a/erts/include/internal/libatomic_ops/ethread.h b/erts/include/internal/libatomic_ops/ethread.h index d65ee19..71d3598 100644 --- a/erts/include/internal/libatomic_ops/ethread.h +++ b/erts/include/internal/libatomic_ops/ethread.h @@ -35,6 +35,7 @@ #define ETHR_NATIVE_IMPL__ "libatomic_ops" +#define AO_REQUIRE_CAS #include "atomic_ops.h" #include "ethr_membar.h" #include "ethr_atomic.h" diff --git a/erts/aclocal.m4 b/erts/aclocal.m4 index d65ee19..71d3598 100644 --- a/erts/aclocal.m4 +++ b/erts/aclocal.m4 @@ -1414,7 +1414,8 @@ fi;; esac ethr_have_libatomic_ops=no - AC_TRY_LINK([#include "atomic_ops.h"], + AC_TRY_LINK([#define AO_REQUIRE_CAS + #include "atomic_ops.h"], [ volatile AO_t x; AO_t y; @@ -1455,6 +1455,7 @@ AC_CHECK_SIZEOF(AO_t, , [ #include <stdio.h> + #define AO_REQUIRE_CAS #include "atomic_ops.h" ]) AC_DEFINE_UNQUOTED(ETHR_SIZEOF_AO_T, $ac_cv_sizeof_AO_t, [Define to the size of AO_t if libatomic_ops is used]) -- 1.9.1
shibajee/buildroot
package/erlang/0002-erts-ethread-instruct-libatomic_ops-we-do-require-CA.patch
patch
mit
2,599
From 85a3e5b4f65e5284e59dcdd90e92ea7d50ef6907 Mon Sep 17 00:00:00 2001 From: Romain Naour <romain.naour@openwide.fr> Date: Sun, 8 Feb 2015 17:23:13 +0100 Subject: [PATCH] erts/emulator: reorder inclued headers paths If the Perl Compatible Regular Expressions is installed on the host and the path to the headers is added to the CFLAGS, the pcre.h from the host is used instead of the one provided by erlang. Erlang use an old version of this file which is incompatible with the upstream one. Move INCLUDES before CFLAGS to use pcre.h from erlang. http://autobuild.buildroot.net/results/cbd/cbd8b54eef535f19d7d400fd269af1b3571d6143/build-end.log Signed-off-by: Romain Naour <romain.naour@openwide.fr> --- erts/emulator/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erts/emulator/Makefile.in b/erts/emulator/Makefile.in index 7145824..d079487 100644 --- a/erts/emulator/Makefile.in +++ b/erts/emulator/Makefile.in @@ -678,11 +678,11 @@ else # Usually the same as the default rule, but certain platforms (e.g. win32) mix # different compilers $(OBJDIR)/beam_emu.o: beam/beam_emu.c - $(V_EMU_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@ + $(V_EMU_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@ endif $(OBJDIR)/%.o: beam/%.c - $(V_CC) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) $(INCLUDES) -c $< -o $@ + $(V_CC) $(INCLUDES) $(subst -O2, $(GEN_OPT_FLGS), $(CFLAGS)) -c $< -o $@ $(OBJDIR)/%.o: $(TARGET)/%.c $(V_CC) $(CFLAGS) $(INCLUDES) -Idrivers/common -c $< -o $@ -- 1.9.3
shibajee/buildroot
package/erlang/0003-erts-emulator-reorder-inclued-headers-paths.patch
patch
mit
1,571
config BR2_PACKAGE_ERLANG_ARCH_SUPPORTS bool # see HOWTO/INSTALL.md for Erlang's supported platforms # when using its native atomic ops implementation default y if BR2_i386 || BR2_x86_64 || BR2_powerpc || \ BR2_sparc_v9 || BR2_arm || BR2_aarch64 || BR2_mipsel comment "erlang needs a toolchain w/ dynamic library" depends on BR2_USE_MMU # fork() depends on BR2_PACKAGE_ERLANG_ARCH_SUPPORTS depends on BR2_STATIC_LIBS config BR2_PACKAGE_ERLANG bool "erlang" depends on BR2_USE_MMU # fork() depends on !BR2_STATIC_LIBS depends on BR2_PACKAGE_ERLANG_ARCH_SUPPORTS help Erlang is a programming language used to build massively scalable soft real-time systems with requirements on high availability. Some of its uses are in telecoms, banking, e-commerce, computer telephony and instant messaging. Erlang's runtime system has built-in support for concurrency, distribution and fault tolerance. http://www.erlang.org if BR2_PACKAGE_ERLANG config BR2_PACKAGE_ERLANG_SMP bool "enable SMP support" help Erlang provides both a UP and an SMP emulator. The UP emulator is always built, and this option enables compilation of the SMP emulator. The choice of which emulator to use is made at runtime. If you do not need SMP support, turning this option off reduces compile time and the size of the Erlang installation. config BR2_PACKAGE_ERLANG_MEGACO bool "install megaco application" help The Megaco application is a framework for building applications on top of the Megaco/H.248 protocol. It is approximately 14MB in size so if you do not need it then it is recommended not to enable it. endif # BR2_PACKAGE_ERLANG
shibajee/buildroot
package/erlang/Config.in
in
mit
1,673
# md5 from http://www.erlang.org/download/MD5, sha256 locally computed md5 7e4ff32f97c36fb3dab736f8d481830b otp_src_18.3.tar.gz sha256 fdab8129a1cb935db09f1832e3a7d511a4aeb2b9bb3602ca6a7ccb9730d5c9c3 otp_src_18.3.tar.gz
shibajee/buildroot
package/erlang/erlang.hash
hash
mit
220
################################################################################ # # erlang # ################################################################################ # See note below when updating Erlang ERLANG_VERSION = 18.3 ERLANG_SITE = http://www.erlang.org/download ERLANG_SOURCE = otp_src_$(ERLANG_VERSION).tar.gz ERLANG_DEPENDENCIES = host-erlang ERLANG_LICENSE = Apache-2.0 ERLANG_LICENSE_FILES = LICENSE.txt ERLANG_INSTALL_STAGING = YES # Patched erts/aclocal.m4 ERLANG_AUTORECONF = YES # Whenever updating Erlang, this value should be updated as well, to the # value of EI_VSN in the file lib/erl_interface/vsn.mk ERLANG_EI_VSN = 3.8.2 # The configure checks for these functions fail incorrectly ERLANG_CONF_ENV = ac_cv_func_isnan=yes ac_cv_func_isinf=yes # Set erl_xcomp variables. See xcomp/erl-xcomp.conf.template # for documentation. ERLANG_CONF_ENV += erl_xcomp_sysroot=$(STAGING_DIR) ERLANG_CONF_OPTS = --without-javac # erlang uses openssl for all things crypto. Since the host tools (such as # rebar) uses crypto, we need to build host-erlang with support for openssl. HOST_ERLANG_DEPENDENCIES = host-openssl HOST_ERLANG_CONF_OPTS = --without-javac --with-ssl=$(HOST_DIR)/usr HOST_ERLANG_CONF_OPTS += --without-termcap ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),) ERLANG_CONF_OPTS += --disable-threads endif ifeq ($(BR2_PACKAGE_NCURSES),y) ERLANG_CONF_OPTS += --with-termcap ERLANG_DEPENDENCIES += ncurses else ERLANG_CONF_OPTS += --without-termcap endif ifeq ($(BR2_PACKAGE_OPENSSL),y) ERLANG_CONF_OPTS += --with-ssl ERLANG_DEPENDENCIES += openssl else ERLANG_CONF_OPTS += --without-ssl endif ifeq ($(BR2_PACKAGE_ZLIB),y) ERLANG_CONF_OPTS += --enable-shared-zlib ERLANG_DEPENDENCIES += zlib endif ifeq ($(BR2_PACKAGE_ERLANG_SMP),) ERLANG_CONF_OPTS += --disable-smp-support endif # Remove source, example, gs and wx files from staging and target. ERLANG_REMOVE_PACKAGES = gs wx ifneq ($(BR2_PACKAGE_ERLANG_MEGACO),y) ERLANG_REMOVE_PACKAGES += megaco endif define ERLANG_REMOVE_STAGING_UNUSED for package in $(ERLANG_REMOVE_PACKAGES); do \ rm -rf $(STAGING_DIR)/usr/lib/erlang/lib/$${package}-*; \ done endef define ERLANG_REMOVE_TARGET_UNUSED find $(TARGET_DIR)/usr/lib/erlang -type d -name src -prune -exec rm -rf {} \; find $(TARGET_DIR)/usr/lib/erlang -type d -name examples -prune -exec rm -rf {} \; for package in $(ERLANG_REMOVE_PACKAGES); do \ rm -rf $(TARGET_DIR)/usr/lib/erlang/lib/$${package}-*; \ done endef ERLANG_POST_INSTALL_STAGING_HOOKS += ERLANG_REMOVE_STAGING_UNUSED ERLANG_POST_INSTALL_TARGET_HOOKS += ERLANG_REMOVE_TARGET_UNUSED $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/erlang/erlang.mk
mk
mit
2,661
From 08a464e2b6bd31bb2bf4e258ebfa9b9d65805abf Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Fri, 27 Nov 2015 15:17:02 +0100 Subject: [PATCH] Fix build of shared library on architectures needing -fPIC Certain architectures, like Sparc and Sparc64 require objects to be built with -fPIC (and not just -fpic) to be usable in shared libraries. On other architectures, -fPIC is the same as -fpic so this patch doesn't affect such architectures. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 95fe549..c293611 100755 --- a/src/Makefile +++ b/src/Makefile @@ -110,7 +110,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME) x_%.o: %.cpp - $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -fvisibility=hidden -pedantic \ + $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fPIC -fvisibility=hidden -pedantic \ -I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o $(LIB_NAME): $(OBJS2) -- 2.6.3
shibajee/buildroot
package/espeak/0001-Fix-build-of-shared-library-on-architectures-needing.patch
patch
mit
1,126
comment "espeak needs a toolchain w/ C++, wchar, threads, dynamic library" depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || BR2_STATIC_LIBS depends on BR2_USE_MMU config BR2_PACKAGE_ESPEAK bool "espeak" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU # fork() # does not properly support building only a static version depends on !BR2_STATIC_LIBS help espeak is a speech synthesizer software for English and other languages. http://espeak.sourceforge.net/ if BR2_PACKAGE_ESPEAK choice prompt "choose audio backend" default BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE bool "No sound backend, only produce wav files" config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA bool "alsa via portaudio" select BR2_PACKAGE_PORTAUDIO select BR2_PACKAGE_PORTAUDIO_CXX config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO bool "pulseaudio" depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c select BR2_PACKAGE_PULSEAUDIO endchoice endif # BR2_PACKAGE_ESPEAK
shibajee/buildroot
package/espeak/Config.in
in
mit
1,125
# Locally computed: sha256 bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659 espeak-1.48.04-source.zip
shibajee/buildroot
package/espeak/espeak.hash
hash
mit
120
################################################################################ # # espeak # ################################################################################ ESPEAK_VERSION_MAJOR = 1.48 ESPEAK_VERSION = $(ESPEAK_VERSION_MAJOR).04 ESPEAK_SOURCE = espeak-$(ESPEAK_VERSION)-source.zip ESPEAK_SITE = http://downloads.sourceforge.net/project/espeak/espeak/espeak-$(ESPEAK_VERSION_MAJOR) ESPEAK_LICENSE = GPLv3+ ESPEAK_LICENSE_FILES = License.txt ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA),y) ESPEAK_AUDIO_BACKEND = portaudio ESPEAK_DEPENDENCIES = portaudio endif ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO),y) ESPEAK_AUDIO_BACKEND = pulseaudio ESPEAK_DEPENDENCIES = pulseaudio endif define ESPEAK_EXTRACT_CMDS $(UNZIP) -d $(@D) $(DL_DIR)/$(ESPEAK_SOURCE) mv $(@D)/espeak-$(ESPEAK_VERSION)-source/* $(@D) $(RM) -r $(@D)/espeak-$(ESPEAK_VERSION)-source endef define ESPEAK_CONFIGURE_CMDS # Buildroot provides portaudio V19, see ReadMe file for more details. cp $(@D)/src/portaudio19.h $(@D)/src/portaudio.h endef define ESPEAK_BUILD_CMDS $(MAKE) -C $(@D)/src $(TARGET_CONFIGURE_OPTS) \ AUDIO="$(ESPEAK_AUDIO_BACKEND)" all endef define ESPEAK_INSTALL_TARGET_CMDS $(MAKE) -C $(@D)/src DESTDIR="$(TARGET_DIR)" install endef $(eval $(generic-package))
shibajee/buildroot
package/espeak/espeak.mk
mk
mit
1,288
config BR2_PACKAGE_ETHTOOL bool "ethtool" help ethtool is a small utility for examining and tuning your ethernet-based network interface. http://sourceforge.net/projects/gkernel/
shibajee/buildroot
package/ethtool/Config.in
in
mit
191
# From https://www.kernel.org/pub/software/network/ethtool/sha256sums.asc sha256 e90589a9349d008cce8c0510ac4e8878efdc0ddb1b732a9a4cc333b101313415 ethtool-4.6.tar.xz
shibajee/buildroot
package/ethtool/ethtool.hash
hash
mit
165
################################################################################ # # ethtool # ################################################################################ ETHTOOL_VERSION = 4.6 ETHTOOL_SOURCE = ethtool-$(ETHTOOL_VERSION).tar.xz ETHTOOL_SITE = $(BR2_KERNEL_MIRROR)/software/network/ethtool ETHTOOL_LICENSE = GPLv2 ETHTOOL_LICENSE_FILES = COPYING $(eval $(autotools-package))
shibajee/buildroot
package/ethtool/ethtool.mk
mk
mit
397
From dc8aa43b7b6d0cead7d8a0c1a151d289a5233a10 Mon Sep 17 00:00:00 2001 From: Eric Le Bihan <eric.le.bihan.dev@free.fr> Date: Wed, 2 Apr 2014 12:36:52 +0200 Subject: [PATCH] libudev: Only use #pragma for ignoring diagnostics if GCC version supports it. [Peter: update for 2.1.1, fix shared_assert issue] Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> --- src/shared/macro.h | 8 +++++ 1 file changed, 8 insertions(+) diff --git a/src/shared/macro.h b/src/shared/macro.h --- a/src/shared/macro.h +++ b/src/shared/macro.h @@ -38,6 +38,7 @@ #define _cleanup_(x) __attribute__((cleanup(x))) /* Temporarily disable some warnings */ +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) #define DISABLE_WARNING_DECLARATION_AFTER_STATEMENT \ _Pragma("GCC diagnostic push"); \ _Pragma("GCC diagnostic ignored \"-Wdeclaration-after-statement\"") @@ -48,6 +49,13 @@ #define REENABLE_WARNING \ _Pragma("GCC diagnostic pop") +#else +#define DISABLE_WARNING_DECLARATION_AFTER_STATEMENT +#define DISABLE_WARNING_FORMAT_NONLITERAL +#define REENABLE_WARNING +/* glibc unconditionally defines this, but it needs GCC 4.6+ */ +#undef static_assert +#endif #define XCONCATENATE(x, y) x ## y #define CONCATENATE(x, y) XCONCATENATE(x, y) -- 1.7.9.5
shibajee/buildroot
package/eudev/0001-Only-use-pragma-for-ignoring-diagnostics-if-.patch
patch
mit
1,388
From f80fe0e68686060e861338cf7b3b32e0637b3e0b Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Thu, 4 Aug 2016 10:13:09 +0200 Subject: [PATCH] src/shared/missing.h: fix getrandom system call number on ARM64 The getrandom() system call number is indeed 384 on ARM, but it is not the same on ARM64. ARM64 uses the asm-generic headers, including for system call numbers, so the getrandom() system call number on ARM64 is 278. This fixes runtime issues of eudev on ARM64, such as: Populating /dev using udev: [ 6.186817] udevd[1204]: starting version 3.1.5 [ 6.191662] udevd[1204]: syscall 384 [ 6.195217] Code: aa0503e4 aa0603e5 aa0703e6 d4000001 (b13ffc1f) [ 6.201291] CPU: 4 PID: 1204 Comm: udevd Not tainted 4.7.0+ #1 [ 6.207079] Hardware name: ARM Juno development board (r2) (DT) [ 6.212954] task: ffff800976421900 task.stack: ffff800975610000 [ 6.218825] PC is at 0xffff97f12234 [ 6.222281] LR is at 0x41b15c [ 6.225214] pc : [<0000ffff97f12234>] lr : [<000000000041b15c>] pstate: 80000000 [ 6.232544] sp : 0000ffffcf9b3870 [ 6.235828] x29: 0000ffffcf9b3870 x28: 0000000000428218 [ 6.241110] x27: 0000000000000000 x26: 000000000042a7e3 [ 6.246395] x25: 0000ffffcf9b39c8 x24: 0000000000428000 [ 6.251670] x23: 0000000000449000 x22: 0000000000449678 [ 6.256946] x21: 0000000000000010 x20: 0000000000449000 [ 6.262233] x19: 0000000000449678 x18: 0000000000000000 [ 6.267507] x17: 0000ffff97f12210 x16: 0000000000449440 [ 6.272779] x15: 0000ffff97e4f730 x14: 0000ffff98050cb8 [ 6.278060] x13: 000000000000033c x12: 00000000000004b4 [ 6.283331] x11: 0000000000000000 x10: 0101010101010101 [ 6.288604] x9 : 0000000000001010 x8 : 0000000000000180 [ 6.293882] x7 : ffffffffffffffff x6 : ffffffffffffffff [ 6.299154] x5 : 00000000271e36c0 x4 : 0007061c00190d07 [ 6.304426] x3 : 00000000271e36d0 x2 : 0000000000000001 [ 6.309705] x1 : 0000000000000010 x0 : 0000000000449678 [ 6.314976] [ 6.398734] sky2 0000:08:00.0 enp8s0: renamed from eth0 Reported-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- src/shared/missing.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/missing.h b/src/shared/missing.h index 9031119..5ad5997 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -47,8 +47,10 @@ # define __NR_getrandom 318 # elif defined(__i386__) # define __NR_getrandom 355 -# elif defined(__arm__) || defined(__aarch64__) +# elif defined(__arm__) # define __NR_getrandom 384 +# elif defined(__aarch64__) +# define __NR_getrandom 278 # elif defined(__ia64__) # define __NR_getrandom 1339 # elif defined(__m68k__) -- 2.7.4
shibajee/buildroot
package/eudev/0002-src-shared-missing.h-fix-getrandom-system-call-numbe.patch
patch
mit
2,785
config BR2_PACKAGE_EUDEV bool "eudev" depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV depends on BR2_USE_MMU # uses fork() depends on BR2_USE_WCHAR # util-linux depends on !BR2_STATIC_LIBS # kmod select BR2_PACKAGE_HAS_UDEV select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBBLKID select BR2_PACKAGE_KMOD help eudev is a fork of systemd-udev with the goal of obtaining better compatibility with existing software such as OpenRC and Upstart, older kernels, various toolchains and anything else required by users and various distributions. https://wiki.gentoo.org/wiki/Project:Eudev if BR2_PACKAGE_EUDEV config BR2_PACKAGE_PROVIDES_UDEV default "eudev" config BR2_PACKAGE_EUDEV_RULES_GEN bool "enable rules generator" help Enable persistent rules generator config BR2_PACKAGE_EUDEV_ENABLE_HWDB bool "enable hwdb installation" default y help Enables hardware database installation to /etc/udev/hwdb.d endif comment "eudev needs eudev /dev management" depends on BR2_USE_MMU depends on !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV comment "eudev needs a toolchain w/ wchar, dynamic library" depends on BR2_USE_MMU depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
shibajee/buildroot
package/eudev/Config.in
in
mit
1,217
#!/bin/sh # # udev This is a minimal non-LSB version of a UDEV startup script. It # was derived by stripping down the udev-058 LSB version for use # with buildroot on embedded hardware using Linux 2.6.34+ kernels. # # You may need to customize this for your system's resource limits # (including startup time!) and administration. For example, if # your early userspace has a custom initramfs or initrd you might # need /dev much earlier; or without hotpluggable busses (like USB, # PCMCIA, MMC/SD, and so on) your /dev might be static after boot. # # This script assumes your system boots right into the eventual root # filesystem, and that init runs this udev script before any programs # needing more device nodes than the bare-bones set -- /dev/console, # /dev/zero, /dev/null -- that's needed to boot and run this script. # # Check for missing binaries UDEV_BIN=/sbin/udevd test -x $UDEV_BIN || exit 5 # Check for config file and read it UDEV_CONFIG=/etc/udev/udev.conf test -r $UDEV_CONFIG || exit 6 . $UDEV_CONFIG case "$1" in start) printf "Populating ${udev_root:-/dev} using udev: " printf '\000\000\000\000' > /proc/sys/kernel/hotplug $UDEV_BIN -d || (echo "FAIL" && exit 1) udevadm trigger --type=subsystems --action=add udevadm trigger --type=devices --action=add udevadm settle --timeout=30 || echo "udevadm settle failed" echo "done" ;; stop) # Stop execution of events udevadm control --stop-exec-queue killall udevd ;; *) echo "Usage: $0 {start|stop}" exit 1 ;; esac exit 0
shibajee/buildroot
package/eudev/S10udev
none
mit
1,630