Compare commits
75 Commits
2010.02_rc
...
2010.02_rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7bd8125edc | ||
|
|
c1c171acbe | ||
|
|
89fd720866 | ||
|
|
4f05a61b33 | ||
|
|
52fcd86f2b | ||
|
|
598334166d | ||
|
|
5239be04c9 | ||
|
|
f08e9eea1b | ||
|
|
58a45bf66b | ||
|
|
596bcb63fb | ||
|
|
ca2293b364 | ||
|
|
a3efb3a3bf | ||
|
|
09216ec22b | ||
|
|
1cd56dc514 | ||
|
|
3b5d95be8d | ||
|
|
e83529882b | ||
|
|
520dd9fbe5 | ||
|
|
ec5ab1dbd7 | ||
|
|
b5e742a642 | ||
|
|
fbcedeab9d | ||
|
|
d5ffabd4c3 | ||
|
|
b7ea597dd2 | ||
|
|
cf04b9e0c5 | ||
|
|
253f240cc5 | ||
|
|
1844bd8941 | ||
|
|
3502bb056f | ||
|
|
364555d9ff | ||
|
|
496078a0a0 | ||
|
|
570e1b77c2 | ||
|
|
405a7ecaa1 | ||
|
|
c13460f769 | ||
|
|
ce1f459b8b | ||
|
|
a47ce9d3df | ||
|
|
7452b4edfa | ||
|
|
3422dc5efe | ||
|
|
988b4d8d1c | ||
|
|
c1b6242fdc | ||
|
|
abc1479ea7 | ||
|
|
a55cd51b85 | ||
|
|
d65e627432 | ||
|
|
d61ed6f322 | ||
|
|
1786b39f0b | ||
|
|
dc88b05c33 | ||
|
|
43ffd946ad | ||
|
|
e5d1244a74 | ||
|
|
73c937229b | ||
|
|
e81149c543 | ||
|
|
53f670ac06 | ||
|
|
f03faaf3ab | ||
|
|
c8ff60c828 | ||
|
|
5f30c29b93 | ||
|
|
161afc1862 | ||
|
|
3df93063da | ||
|
|
ac8329cff0 | ||
|
|
1072cf190c | ||
|
|
d6bcd43dd7 | ||
|
|
68d2f4564e | ||
|
|
909fb5be4b | ||
|
|
6c9d3873c0 | ||
|
|
4da199db88 | ||
|
|
0c6ef230f3 | ||
|
|
a6febebded | ||
|
|
4180d4a3bb | ||
|
|
a3609f3539 | ||
|
|
fb1c82ad88 | ||
|
|
e777294fd6 | ||
|
|
23c8c8800a | ||
|
|
94e172c8e7 | ||
|
|
155667c237 | ||
|
|
60ff66d807 | ||
|
|
61f677cb06 | ||
|
|
2bf5840e57 | ||
|
|
93df31e404 | ||
|
|
5f41cfe3cd | ||
|
|
a05c337de5 |
30
CHANGES
30
CHANGES
@@ -1,3 +1,33 @@
|
||||
2010.02-rc2, Released February 23th, 2010:
|
||||
|
||||
Fixes all over the tree and new features.
|
||||
|
||||
New packages: intltool
|
||||
|
||||
Updated/fixed packages: ace_of_penguins, alsa-lib, alsa-utils, argus,
|
||||
at, automake, ccache, dosfstools, e2fsprogs, flex, gob2, gmpc,
|
||||
gst-plugins-good, imagemagick, iw, kexec, libeXosip, libgtk2,
|
||||
libpcap, libpng, libsoup, libxcb, libxml-parser-perl, libxml2,
|
||||
libxslt, lvm2, matchbox, mplayer, rsync, rubix, shared-mime-info,
|
||||
tcl, webkit, xapp_mkfontscale, xfont_encodings, xfont_font-util,
|
||||
xlib_libfontenc, xproto_trapproto, zlib
|
||||
|
||||
Removed package: xboard
|
||||
|
||||
Issues resolved (http://bugs.uclibc.org):
|
||||
|
||||
#335: atk looks for the path to the gnome library on the host
|
||||
#355: Please update WebKit - it doesn't compile!
|
||||
#453: libglib2 autoreconf
|
||||
#457: e2fsprogs link problem
|
||||
#459: libgtk2 autoreconf
|
||||
#469: build of libgtk2 for host incorrectly assumes that X.org ...
|
||||
#671: Bash fails to build when building buildront on Ubuntu 9.04
|
||||
#711: WebKit host dependencies problems
|
||||
#821: cp: illegal operation
|
||||
#1039: Not compiled on ubuntu karmic
|
||||
#1069: [PATCH] The AT91BOOTSTRAP makefile contains a typo
|
||||
|
||||
2010.02-rc1, Released February 9th, 2010:
|
||||
|
||||
Fixes all over the tree and new features.
|
||||
|
||||
@@ -8,7 +8,7 @@ config BR2_HAVE_DOT_CONFIG
|
||||
|
||||
config BR2_VERSION
|
||||
string
|
||||
default "2010.02-rc1"
|
||||
default "2010.02-rc2"
|
||||
|
||||
source "target/Config.in.arch"
|
||||
source "target/device/Config.in"
|
||||
|
||||
1
Makefile
1
Makefile
@@ -371,6 +371,7 @@ ifneq ($(BR2_TOOLCHAIN_EXTERNAL),y)
|
||||
endif
|
||||
endif
|
||||
@mkdir -p $(STAGING_DIR)/usr/include
|
||||
@mkdir -p $(STAGING_DIR)/usr/bin
|
||||
|
||||
$(BUILD_DIR)/.root:
|
||||
mkdir -p $(TARGET_DIR)
|
||||
|
||||
@@ -58,7 +58,7 @@ BR2_SVN="svn co"
|
||||
BR2_ZCAT="gzip -d -c"
|
||||
BR2_BZCAT="bzcat"
|
||||
BR2_TAR_OPTIONS=""
|
||||
BR2_DL_DIR="/usr/local/install/downloads"
|
||||
BR2_DL_DIR="$(TOPDIR)/dl"
|
||||
|
||||
#
|
||||
# Mirrors and Download locations
|
||||
|
||||
@@ -14,12 +14,12 @@ or
|
||||
<a href="/downloads/buildroot-2009.11.tar.bz2">buildroot-2009.11.tar.bz2</a>.
|
||||
<p>
|
||||
|
||||
The latest release candidate is <b>2010.02-rc1</b>, which can be
|
||||
The latest release candidate is <b>2010.02-rc2</b>, which can be
|
||||
downloaded here:<p>
|
||||
|
||||
<a href="/downloads/buildroot-2010.02-rc1.tar.gz">buildroot-2010.02-rc1.tar.gz</a>
|
||||
<a href="/downloads/buildroot-2010.02-rc2.tar.gz">buildroot-2010.02-rc2.tar.gz</a>
|
||||
or
|
||||
<a href="/downloads/buildroot-2010.02-rc1.tar.bz2">buildroot-2010.02-rc1.tar.bz2</a>.
|
||||
<a href="/downloads/buildroot-2010.02-rc2.tar.bz2">buildroot-2010.02-rc2.tar.bz2</a>.
|
||||
<p>
|
||||
|
||||
This and earlier releases can always be downloaded from
|
||||
|
||||
@@ -5,6 +5,18 @@
|
||||
<p>
|
||||
|
||||
<ul>
|
||||
<li><b>23 February 2010 -- 2010.02-rc2 released</b>
|
||||
|
||||
<p>RC2 is out with more cleanups and bugfixes, see the <a
|
||||
href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2010.02_rc2">CHANGES</a>
|
||||
file for details.
|
||||
|
||||
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
<a href="/downloads/buildroot-2010.02-rc2.tar.bz2">2010.02-rc2
|
||||
release candidate</a>, and report any problems found to the <a
|
||||
href="lists.html">mailing list</a> or <a
|
||||
href="https://bugs.uclibc.org">bug tracker</a>.</p>
|
||||
|
||||
<li><b>9 February 2010 -- 2010.02-rc1 released</b>
|
||||
|
||||
<p>We have a new release candidate! Lots of changes all over the
|
||||
|
||||
@@ -46,6 +46,7 @@ source "package/pkg-config/Config.in"
|
||||
source "package/readline/Config.in"
|
||||
source "package/valgrind/Config.in"
|
||||
source "package/pcre/Config.in"
|
||||
source "package/intltool/Config.in"
|
||||
|
||||
comment "Other stuff"
|
||||
source "package/at/Config.in"
|
||||
@@ -412,6 +413,7 @@ source "package/ezxml/Config.in"
|
||||
source "package/libxml2/Config.in"
|
||||
source "package/libxslt/Config.in"
|
||||
source "package/xerces/Config.in"
|
||||
source "package/libxml-parser-perl/Config.in"
|
||||
endmenu
|
||||
|
||||
# java support
|
||||
|
||||
@@ -228,6 +228,8 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
|
||||
PKG_CONFIG_SYSROOT_DIR="$(STAGING_DIR)" \
|
||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
|
||||
PERLLIB="$(HOST_DIR)/usr/lib/perl" \
|
||||
LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib" \
|
||||
STAGING_DIR="$(STAGING_DIR)"
|
||||
|
||||
TARGET_CONFIGURE_ENV=\
|
||||
@@ -236,7 +238,9 @@ TARGET_CONFIGURE_ENV=\
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
FCFLAGS="$(TARGET_FCFLAGS)" \
|
||||
|
||||
TARGET_MAKE_ENV=PATH=$(TARGET_PATH)
|
||||
TARGET_MAKE_ENV=PATH=$(TARGET_PATH) \
|
||||
LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
|
||||
PERLLIB="$(HOST_DIR)/usr/lib/perl"
|
||||
|
||||
HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
|
||||
AR="$(HOSTAR)" \
|
||||
@@ -274,11 +278,14 @@ HOST_CONFIGURE_OPTS=PATH=$(HOST_PATH) \
|
||||
ORIGINAL_NM_FOR_TARGET="$(TARGET_NM)" \
|
||||
ORIGINAL_OBJDUMP_FOR_TARGET="$(TARGET_OBJDUMP)" \
|
||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||
PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig"
|
||||
PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" \
|
||||
PERLLIB="$(HOST_DIR)/usr/lib/perl"
|
||||
|
||||
HOST_MAKE_ENV=PATH=$(HOST_PATH) \
|
||||
LD_LIBRARY_PATH="$(HOST_DIR)/usr/lib:$(LD_LIBRARY_PATH)" \
|
||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||
PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig"
|
||||
PKG_CONFIG_LIBDIR="$(HOST_DIR)/usr/lib/pkgconfig" \
|
||||
PERLLIB="$(HOST_DIR)/usr/lib/perl"
|
||||
|
||||
|
||||
#######################################################################
|
||||
|
||||
27
package/argus/argus-3.0.0.rc.34-01-use-pcap-header.patch
Normal file
27
package/argus/argus-3.0.0.rc.34-01-use-pcap-header.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
Instead of hardcoding a wrong prototype for a libcap function, include
|
||||
the correct header.
|
||||
|
||||
Index: argus-3.0.0.rc.34/argus/ArgusSource.c
|
||||
===================================================================
|
||||
--- argus-3.0.0.rc.34.orig/argus/ArgusSource.c 2010-02-09 22:57:21.000000000 +0100
|
||||
+++ argus-3.0.0.rc.34/argus/ArgusSource.c 2010-02-09 22:57:29.000000000 +0100
|
||||
@@ -53,6 +53,7 @@
|
||||
#define PPP_HDRLEN 4 /* length of PPP header */
|
||||
#endif
|
||||
|
||||
+#include <pcap.h>
|
||||
|
||||
void ArgusGetInterfaceStatus (struct ArgusSourceStruct *src);
|
||||
|
||||
Index: argus-3.0.0.rc.34/argus/ArgusSource.h
|
||||
===================================================================
|
||||
--- argus-3.0.0.rc.34.orig/argus/ArgusSource.h 2010-02-09 22:57:35.000000000 +0100
|
||||
+++ argus-3.0.0.rc.34/argus/ArgusSource.h 2010-02-09 22:57:54.000000000 +0100
|
||||
@@ -381,7 +381,6 @@
|
||||
|
||||
int ArgusCreatePktFromFddi(const struct fddi_header *, struct ether_header *, int);
|
||||
|
||||
-extern char *bpf_image(struct bpf_insn *, int);
|
||||
|
||||
|
||||
#else /* defined(ArgusSource) */
|
||||
16
package/at/at-3.1.12-0007-include-config-h.patch
Normal file
16
package/at/at-3.1.12-0007-include-config-h.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
Make sure to include config.h so that NEEDS_* macros are properly
|
||||
taken into account. This was a problem for NEEDS_YYWRAP, which was set
|
||||
to 1 in config.h, but the corresponding code wasn't compiled in.
|
||||
|
||||
Index: at-3.1.12/parsetime.l
|
||||
===================================================================
|
||||
--- at-3.1.12.orig/parsetime.l 2010-02-10 00:17:46.000000000 +0100
|
||||
+++ at-3.1.12/parsetime.l 2010-02-10 00:18:07.000000000 +0100
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <time.h>
|
||||
#include "y.tab.h"
|
||||
#include "parsetime.h"
|
||||
+#include "config.h"
|
||||
|
||||
char *last_token = NULL;
|
||||
char **my_argv;
|
||||
@@ -11,10 +11,16 @@ ifeq ($(BR2_ENABLE_DEBUG),y) # install-exec doesn't install aclocal stuff
|
||||
AUTOMAKE_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
||||
endif
|
||||
|
||||
AUTOMAKE_DEPENDENCIES = autoconf microperl
|
||||
AUTOMAKE_DEPENDENCIES = host-autoconf autoconf microperl
|
||||
|
||||
HOST_AUTOMAKE_DEPENDENCIES = host-autoconf
|
||||
|
||||
define GTK_DOC_M4_INSTALL
|
||||
$(INSTALL) -m 0644 package/automake/gtk-doc.m4 $(STAGING_DIR)/usr/share/aclocal/
|
||||
endef
|
||||
|
||||
HOST_AUTOMAKE_POST_INSTALL_HOOKS += GTK_DOC_M4_INSTALL
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,automake))
|
||||
$(eval $(call AUTOTARGETS,package,automake,host))
|
||||
|
||||
|
||||
61
package/automake/gtk-doc.m4
Normal file
61
package/automake/gtk-doc.m4
Normal file
@@ -0,0 +1,61 @@
|
||||
dnl -*- mode: autoconf -*-
|
||||
|
||||
# serial 1
|
||||
|
||||
dnl Usage:
|
||||
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
|
||||
AC_DEFUN([GTK_DOC_CHECK],
|
||||
[
|
||||
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
|
||||
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
|
||||
|
||||
dnl check for tools we added during development
|
||||
AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
|
||||
AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
|
||||
AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
|
||||
|
||||
dnl for overriding the documentation installation directory
|
||||
AC_ARG_WITH([html-dir],
|
||||
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
|
||||
[with_html_dir='${datadir}/gtk-doc/html'])
|
||||
HTML_DIR="$with_html_dir"
|
||||
AC_SUBST([HTML_DIR])
|
||||
|
||||
dnl enable/disable documentation building
|
||||
AC_ARG_ENABLE([gtk-doc],
|
||||
AS_HELP_STRING([--enable-gtk-doc],
|
||||
[use gtk-doc to build documentation [[default=no]]]),,
|
||||
[enable_gtk_doc=no])
|
||||
|
||||
if test x$enable_gtk_doc = xyes; then
|
||||
ifelse([$1],[],
|
||||
[PKG_CHECK_EXISTS([gtk-doc],,
|
||||
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
|
||||
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
|
||||
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([whether to build gtk-doc documentation])
|
||||
AC_MSG_RESULT($enable_gtk_doc)
|
||||
|
||||
dnl enable/disable output formats
|
||||
AC_ARG_ENABLE([gtk-doc-html],
|
||||
AS_HELP_STRING([--enable-gtk-doc-html],
|
||||
[build documentation in html format [[default=yes]]]),,
|
||||
[enable_gtk_doc_html=yes])
|
||||
AC_ARG_ENABLE([gtk-doc-pdf],
|
||||
AS_HELP_STRING([--enable-gtk-doc-pdf],
|
||||
[build documentation in pdf format [[default=no]]]),,
|
||||
[enable_gtk_doc_pdf=no])
|
||||
|
||||
if test -z "$GTKDOC_MKPDF"; then
|
||||
enable_gtk_doc_pdf=no
|
||||
fi
|
||||
|
||||
|
||||
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
|
||||
AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
|
||||
AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
|
||||
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
|
||||
AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
|
||||
])
|
||||
@@ -32,7 +32,8 @@ $(DOSFSTOOLS_DIR)/.built : $(DOSFSTOOLS_DIR)/.unpacked
|
||||
$(STRIPCMD) $(DOSFSTOOLS_DIR)/$(DOSFSLABEL_BINARY)
|
||||
touch $@
|
||||
|
||||
$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY): $(DOSFSTOOLS_DIR)/.built
|
||||
$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY): # $(DOSFSTOOLS_DIR)/.built
|
||||
echo foo
|
||||
cp -a $(DOSFSTOOLS_DIR)/$(MKDOSFS_BINARY) $@
|
||||
touch -c $@
|
||||
|
||||
@@ -44,7 +45,20 @@ $(TARGET_DIR)/$(DOSFSLABEL_TARGET_BINARY): $(DOSFSTOOLS_DIR)/.built
|
||||
cp -a $(DOSFSTOOLS_DIR)/$(DOSFSLABEL_BINARY) $@
|
||||
touch -c $@
|
||||
|
||||
dosfstools: $(TARGET_DIR)/$(DOSFSTOOLS_TARGET_BINARY) $(TARGET_DIR)/$(DOSFSCK_TARGET_BINARY)
|
||||
DOSFSTOOLS=
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKDOSFS),y)
|
||||
DOSFSTOOLS+=$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_DOSFSCK),y)
|
||||
DOSFSTOOLS+=$(TARGET_DIR)/$(DOSFSCK_TARGET_BINARY)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL),y)
|
||||
DOSFSTOOLS+=$(TARGET_DIR)/$(DOSFSLABEL_TARGET_BINARY)
|
||||
endif
|
||||
|
||||
dosfstools: $(DOSFSTOOLS)
|
||||
|
||||
dosfstools-clean:
|
||||
rm -f $(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
|
||||
@@ -60,14 +74,6 @@ dosfstools-dirclean:
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_MKDOSFS),y)
|
||||
TARGETS+=$(TARGET_DIR)/$(MKDOSFS_TARGET_BINARY)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_DOSFSCK),y)
|
||||
TARGETS+=$(TARGET_DIR)/$(DOSFSCK_TARGET_BINARY)
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS_DOSFSLABEL),y)
|
||||
TARGETS+=$(TARGET_DIR)/$(DOSFSLABEL_TARGET_BINARY)
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_DOSFSTOOLS),y)
|
||||
TARGETS+=dosfstools
|
||||
endif
|
||||
@@ -54,7 +54,7 @@ config BR2_PACKAGE_E2FSPROGS_E2LABEL
|
||||
select BR2_PACKAGE_E2FSPROGS_LIBBLKID
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_E2UNDO
|
||||
bool "e2label"
|
||||
bool "e2undo"
|
||||
default y
|
||||
depends on BR2_PACKAGE_E2FSPROGS
|
||||
|
||||
@@ -81,7 +81,7 @@ config BR2_PACKAGE_E2FSPROGS_LOGSAVE
|
||||
depends on BR2_PACKAGE_E2FSPROGS
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_LSATTR
|
||||
bool "chattr"
|
||||
bool "lsattr"
|
||||
default y
|
||||
depends on BR2_PACKAGE_E2FSPROGS
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ FLEX_SOURCE:=flex_$(FLEX_VERSION).orig.tar.gz
|
||||
FLEX_PATCH:=flex_$(FLEX_VERSION)-$(FLEX_PATCH_VERSION).diff.gz
|
||||
FLEX_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/f/flex
|
||||
FLEX_DIR:=$(BUILD_DIR)/flex-$(FLEX_VERSION)
|
||||
FLEX_INSTALL_STAGING=YES
|
||||
|
||||
# lex -> flex
|
||||
define FLEX_INSTALL_LEX
|
||||
|
||||
@@ -7,5 +7,4 @@ source "package/games/magiccube4d/Config.in"
|
||||
source "package/games/prboom/Config.in"
|
||||
source "package/games/rubix/Config.in"
|
||||
source "package/games/vice/Config.in"
|
||||
source "package/games/xboard/Config.in"
|
||||
endmenu
|
||||
|
||||
@@ -2,6 +2,10 @@ config BR2_PACKAGE_ACE_OF_PENGUINS
|
||||
bool "ace_of_penguins"
|
||||
select BR2_PACKAGE_LIBPNG
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on BR2_PACKAGE_XLIB_LIBXPM
|
||||
# Build system is broken for tools that need to be compiled
|
||||
# on the host
|
||||
depends on BROKEN
|
||||
help
|
||||
The Ace of Penguins is a set of Unix/X solitaire games based
|
||||
on the ones available for Windows but with a number of
|
||||
|
||||
@@ -10,6 +10,6 @@ ACE_OF_PENGUINS_AUTORECONF = YES
|
||||
ACE_OF_PENGUINS_STAGING = NO
|
||||
ACE_OF_PENGUINS_TARGET = YES
|
||||
|
||||
ACE_OF_PENGUINS_DEPENDENCIES = libpng xserver_xorg-server
|
||||
ACE_OF_PENGUINS_DEPENDENCIES = libpng host-libpng xserver_xorg-server xlib_libXpm
|
||||
|
||||
$(eval $(call AUTOTARGETS,package/games,ace_of_penguins))
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
Use strstr() instead of index(), since index() is a legacy function
|
||||
and it may not be available in uClibc, depending on the configuration.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: rubix-1.0.5/cube.c
|
||||
===================================================================
|
||||
--- rubix-1.0.5.orig/cube.c 2010-02-14 14:19:05.000000000 +0100
|
||||
+++ rubix-1.0.5/cube.c 2010-02-14 14:19:14.000000000 +0100
|
||||
@@ -257,7 +257,7 @@
|
||||
if (i==-1) goto finish;
|
||||
if (buffer[0]=='%') goto new_section;
|
||||
buffer[0]=toupper(buffer[0]);
|
||||
- ptr = index(buffer, '=');
|
||||
+ ptr = strstr(buffer, '=');
|
||||
if (ptr) {
|
||||
++ptr;
|
||||
while (isspace(*ptr)) ++ptr;
|
||||
@@ -1,8 +0,0 @@
|
||||
config BR2_PACKAGE_XBOARD
|
||||
bool "xboard"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_GNUCHESS
|
||||
help
|
||||
XBoard and WinBoard are graphical user interfaces for chess.
|
||||
|
||||
http://ftp.gnu.org/gnu/xboard
|
||||
@@ -1,55 +0,0 @@
|
||||
--- a/Makefile.in 2003-11-28 16:12:57.000000000 -0500
|
||||
+++ b/Makefile.in 2008-02-13 13:18:34.000000000 -0500
|
||||
@@ -63,27 +63,27 @@ default: xboard zic2xpm
|
||||
all: default pseudosource info FAQ html dvi ps
|
||||
|
||||
install: installdirs default
|
||||
- $(INSTALL_PROGRAM) -s xboard $(bindir)/xboard
|
||||
- $(INSTALL_PROGRAM) -s zic2xpm $(bindir)/zic2xpm
|
||||
- $(INSTALL_PROGRAM) cmail $(bindir)/cmail
|
||||
- $(INSTALL_PROGRAM) $(srcdir)/pxboard $(bindir)/pxboard
|
||||
- $(INSTALL_DATA) $(srcdir)/xboard.man $(man6dir)/xboard$(man6ext)
|
||||
- $(INSTALL_DATA) $(srcdir)/zic2xpm.man $(man6dir)/zic2xpm$(man6ext)
|
||||
- $(INSTALL_DATA) xboard.info $(infodir)/xboard.info
|
||||
+ $(INSTALL_PROGRAM) xboard $(DESTDIR)$(bindir)/xboard
|
||||
+ $(INSTALL_PROGRAM) zic2xpm $(DESTDIR)$(bindir)/zic2xpm
|
||||
+ $(INSTALL_PROGRAM) cmail $(DESTDIR)$(bindir)/cmail
|
||||
+ $(INSTALL_PROGRAM) $(srcdir)/pxboard $(DESTDIR)$(bindir)/pxboard
|
||||
+ $(INSTALL_DATA) $(srcdir)/xboard.man $(DESTDIR)$(man6dir)/xboard$(man6ext)
|
||||
+ $(INSTALL_DATA) $(srcdir)/zic2xpm.man $(DESTDIR)$(man6dir)/zic2xpm$(man6ext)
|
||||
+ $(INSTALL_DATA) xboard.info $(DESTDIR)$(infodir)/xboard.info
|
||||
-PATH=$$PATH:/sbin:/usr/sbin install-info \
|
||||
- $(infodir)/xboard.info $(infodir)/dir
|
||||
+ $(infodir)/xboard.info $(DESTDIR)$(infodir)/dir
|
||||
|
||||
installdirs: mkinstalldirs
|
||||
$(srcdir)/mkinstalldirs $(bindir) $(mandir) $(man6dir) $(infodir)
|
||||
|
||||
uninstall:
|
||||
- rm -f $(bindir)/xboard $(bindir)/cmail $(bindir)/pxboard
|
||||
- rm -f $(bindir)/zic2xpm
|
||||
- rm -f $(man6dir)/xboard$(man6ext) $(man6dir)/cmail$(man6ext)
|
||||
- rm -f $(man6dir)/zic2xpm$(man6ext)
|
||||
- rm -f $(infodir)/xboard.info
|
||||
+ rm -f $(DESTDIR)$(bindir)/xboard $(DESTDIR)$(bindir)/cmail $(DESTDIR)$(bindir)/pxboard
|
||||
+ rm -f $(DESTDIR)$(bindir)/zic2xpm
|
||||
+ rm -f $(DESTDIR)$(man6dir)/xboard$(man6ext) $(DESTDIR)$(man6dir)/cmail$(man6ext)
|
||||
+ rm -f $(DESTDIR)$(man6dir)/zic2xpm$(man6ext)
|
||||
+ rm -f $(DESTDIR)$(infodir)/xboard.info
|
||||
-PATH=$$PATH:/sbin:/usr/sbin install-info --delete \
|
||||
- $(infodir)/xboard.info $(infodir)/dir
|
||||
+ $(DESTDIR)$(infodir)/xboard.info $(DESTDIR)$(infodir)/dir
|
||||
|
||||
clean:
|
||||
rm -f xboard zic2xpm *.o xboard.txt zic2xpm.txt $(LEX_OUTPUT_ROOT).c
|
||||
--- a/Makefile.in 2008-02-13 13:20:14.000000000 -0500
|
||||
+++ b/Makefile.in 2008-02-13 13:21:25.000000000 -0500
|
||||
@@ -74,7 +74,7 @@ install: installdirs default
|
||||
$(infodir)/xboard.info $(DESTDIR)/$(infodir)/dir
|
||||
|
||||
installdirs: mkinstalldirs
|
||||
- $(srcdir)/mkinstalldirs $(bindir) $(mandir) $(man6dir) $(infodir)
|
||||
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(mandir) $(DESTDIR)$(man6dir) $(DESTDIR)$(infodir)
|
||||
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)/$(bindir)/xboard $(DESTDIR)/$(bindir)/cmail $(DESTDIR)/$(bindir)/pxboard
|
||||
@@ -1,16 +0,0 @@
|
||||
#############################################################
|
||||
#
|
||||
# xboard
|
||||
#
|
||||
#############################################################
|
||||
XBOARD_VERSION = 4.2.7
|
||||
XBOARD_SOURCE = xboard-$(XBOARD_VERSION).tar.gz
|
||||
XBOARD_SITE = $(BR2_GNU_MIRROR)/xboard
|
||||
XBOARD_INSTALL_STAGING = NO
|
||||
XBOARD_INSTALL_TARGET = YES
|
||||
XBOARD_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
||||
|
||||
XBOARD_DEPENDENCIES = gnuchess xserver_xorg-server
|
||||
|
||||
$(eval $(call AUTOTARGETS,package/games,xboard))
|
||||
|
||||
@@ -11,7 +11,7 @@ GMPC_CONF_ENV = ac_cv_lib_curl_curl_global_init=yes \
|
||||
ac_cv_path_GOB2=$(GOB2_HOST_BINARY)
|
||||
GMPC_CONF_OPT = --disable-mmkeys
|
||||
|
||||
GMPC_DEPENDENCIES = libglib2 libgtk2 libglade libcurl libmpd host-gob2
|
||||
GMPC_DEPENDENCIES = libglib2 libgtk2 libglade libcurl libmpd host-gob2 host-intltool
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBSM),y)
|
||||
GMPC_DEPENENCIES += xlib_libSM
|
||||
|
||||
@@ -2,6 +2,7 @@ config BR2_PACKAGE_GOB2
|
||||
bool "gob2"
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_FLEX
|
||||
select BR2_PACKAGE_FLEX_LIBFL
|
||||
select BR2_PACKAGE_BISON
|
||||
help
|
||||
GOB (GTK+ Object Builder) is a preprocessor which simplifies
|
||||
|
||||
@@ -7,7 +7,7 @@ GOB2_VERSION = 2.0.15
|
||||
GOB2_SOURCE = gob2-$(GOB2_VERSION).tar.gz
|
||||
GOB2_SITE = http://ftp.5z.com/pub/gob/
|
||||
|
||||
GOB2_DEPENDENCIES = libglib2 flex bison host-pkg-config
|
||||
GOB2_DEPENDENCIES = libglib2 flex bison host-pkg-config host-flex
|
||||
|
||||
HOST_GOB2_DEPENDENCIES = host-libglib2
|
||||
|
||||
|
||||
@@ -31,6 +31,12 @@ $(IMAGEMAGICK_DIR)/.unpacked: $(DL_DIR)/$(IMAGEMAGICK_SOURCE)
|
||||
$(CONFIG_UPDATE) $(IMAGEMAGICK_DIR)/config
|
||||
touch $@
|
||||
|
||||
ifeq ($(BR2_LARGEFILE),y)
|
||||
IMAGEMAGICK_CONF_OPTS = ac_cv_sys_file_offset_bits=64
|
||||
else
|
||||
IMAGEMAGICK_CONF_OPTS = ac_cv_sys_file_offset_bits=32
|
||||
endif
|
||||
|
||||
$(IMAGEMAGICK_DIR)/.configured: $(IMAGEMAGICK_DIR)/.unpacked
|
||||
(cd $(IMAGEMAGICK_DIR); rm -f config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
@@ -55,6 +61,7 @@ $(IMAGEMAGICK_DIR)/.configured: $(IMAGEMAGICK_DIR)/.unpacked
|
||||
--without-fpx \
|
||||
--without-freetype \
|
||||
--without-x \
|
||||
$(IMAGEMAGICK_CONF_OPTS) \
|
||||
)
|
||||
touch $@
|
||||
|
||||
@@ -76,8 +83,8 @@ $(IMAGEMAGICK_LIB): $(STAGING_DIR)/usr/lib/libMagickCore.a
|
||||
touch -c $@
|
||||
|
||||
$(IMAGEMAGICK_DIR)/.libinstall: $(IMAGEMAGICK_LIB)
|
||||
libtool --finish $(TARGET_DIR)/usr/lib/ImageMagick-$(IMAGEMAGICK_MAJOR)/modules-Q16/coders
|
||||
libtool --finish $(TARGET_DIR)/usr/lib/ImageMagick-$(IMAGEMAGICK_MAJOR)/modules-Q16/filters
|
||||
$(IMAGEMAGICK_DIR)/libtool --finish $(TARGET_DIR)/usr/lib/ImageMagick-$(IMAGEMAGICK_MAJOR)/modules-Q16/coders
|
||||
$(IMAGEMAGICK_DIR)/libtool --finish $(TARGET_DIR)/usr/lib/ImageMagick-$(IMAGEMAGICK_MAJOR)/modules-Q16/filters
|
||||
touch $@
|
||||
|
||||
$(TARGET_DIR)/usr/bin/animate: $(IMAGEMAGICK_LIB)
|
||||
|
||||
6
package/intltool/Config.in
Normal file
6
package/intltool/Config.in
Normal file
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_INTLTOOL
|
||||
bool "intltool"
|
||||
help
|
||||
Utility scripts for internationalizing XML
|
||||
|
||||
http://www.freedesktop.org/wiki/Software/intltool
|
||||
16
package/intltool/intltook.mk
Normal file
16
package/intltool/intltook.mk
Normal file
@@ -0,0 +1,16 @@
|
||||
#############################################################
|
||||
#
|
||||
# intltool
|
||||
#
|
||||
#############################################################
|
||||
INTLTOOL_VERSION:=0.40.6
|
||||
INTLTOOL_SOURCE:=intltool-$(INTLTOOL_VERSION).tar.bz2
|
||||
INTLTOOL_SITE:=http://ftp.acc.umu.se/pub/GNOME/sources/intltool/0.40/
|
||||
|
||||
HOST_INTLTOOL_DEPENDENCIES = host-libxml-parser-perl
|
||||
HOST_INTLTOOL_CONF_OPT = \
|
||||
PERLLIB=$(HOST_DIR)/usr/lib/perl
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,intltool))
|
||||
$(eval $(call AUTOTARGETS,package,intltool,host))
|
||||
|
||||
@@ -11,6 +11,7 @@ IW_DEPENDENCIES = libnl
|
||||
IW_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
|
||||
IW_CONFIG = $(IW_DIR)/.config
|
||||
IW_MAKE_ENV = PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
||||
PKG_CONFIG="$(HOST_DIR)/usr/bin/pkg-config" \
|
||||
GIT_DIR=$(IW_DIR)
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,iw))
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# kexec
|
||||
#
|
||||
#############################################################
|
||||
KEXEC_VERSION = 2.0.0
|
||||
KEXEC_VERSION = 2.0.1
|
||||
KEXEC_SOURCE = kexec-tools-$(KEXEC_VERSION).tar.bz2
|
||||
KEXEC_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/horms/kexec-tools/
|
||||
# no install-strip/install-exec
|
||||
|
||||
@@ -43,27 +43,33 @@ $(LIBEXOSIP2_DIR)/.compiled: $(LIBEXOSIP2_DIR)/.configured
|
||||
|
||||
$(STAGING_DIR)/usr/lib/libeXosip2.so: $(LIBEXOSIP2_DIR)/.compiled
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/src/.libs/libeXosip2.so* $(STAGING_DIR)/usr/lib
|
||||
touch $@
|
||||
|
||||
$(STAGING_DIR)/usr/lib/libeXosip2.a: $(LIBEXOSIP2_DIR)/.compiled
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/src/.libs/libeXosip2.a $(STAGING_DIR)/usr/lib
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/include/*.h $(STAGING_DIR)/usr/include
|
||||
touch $@
|
||||
|
||||
$(STAGING_DIR)/usr/lib/libeXosip2.la: $(LIBEXOSIP2_DIR)/.compiled
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/src/libeXosip2.la $(STAGING_DIR)/usr/lib
|
||||
$(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libeXosip2.la
|
||||
touch $@
|
||||
|
||||
$(STAGING_DIR)/usr/bin/sip_reg: $(LIBEXOSIP2_DIR)/.compiled
|
||||
cp -dpf $(LIBEXOSIP2_DIR)/tools/.libs/sip_reg $(STAGING_DIR)/usr/bin
|
||||
touch $@
|
||||
|
||||
|
||||
$(TARGET_DIR)/usr/lib/libeXosip2.so: $(STAGING_DIR)/usr/lib/libeXosip2.so
|
||||
mkdir -p $(TARGET_DIR)/usr/lib
|
||||
cp -dpf $(STAGING_DIR)/usr/lib/libeXosip2.so* $(TARGET_DIR)/usr/lib/
|
||||
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libeXosip2.so*
|
||||
touch $@
|
||||
|
||||
$(TARGET_DIR)/usr/bin/sip_reg: $(STAGING_DIR)/usr/bin/sip_reg
|
||||
mkdir -p $(TARGET_DIR)/usr/bin
|
||||
cp -dpf $(STAGING_DIR)/usr/bin/sip_reg $(TARGET_DIR)/usr/bin
|
||||
touch $@
|
||||
|
||||
|
||||
|
||||
|
||||
200
package/libgtk2/host-libgtk2-2.12.12-reduce-dependencies.patch
Normal file
200
package/libgtk2/host-libgtk2-2.12.12-reduce-dependencies.patch
Normal file
@@ -0,0 +1,200 @@
|
||||
Index: gtk+-2.12.12/configure.in
|
||||
===================================================================
|
||||
--- gtk+-2.12.12.orig/configure.in 2008-09-13 02:01:07.000000000 +0200
|
||||
+++ gtk+-2.12.12/configure.in 2010-02-21 10:42:40.000000000 +0100
|
||||
@@ -32,9 +32,6 @@
|
||||
|
||||
# required versions of other packages
|
||||
m4_define([glib_required_version], [2.13.5])
|
||||
-m4_define([pango_required_version], [1.17.3])
|
||||
-m4_define([atk_required_version], [1.9.0])
|
||||
-m4_define([cairo_required_version], [1.2.0])
|
||||
|
||||
|
||||
AC_INIT([gtk+], [gtk_version],
|
||||
@@ -239,12 +236,12 @@
|
||||
gdktarget=x11
|
||||
fi
|
||||
|
||||
-AC_ARG_WITH(gdktarget, [ --with-gdktarget=[[x11/win32/quartz/directfb]] select non-default GDK target],
|
||||
+AC_ARG_WITH(gdktarget, [ --with-gdktarget=[[x11/win32/quartz/directfb/none]] select non-default GDK target],
|
||||
gdktarget=$with_gdktarget)
|
||||
|
||||
AC_SUBST(gdktarget)
|
||||
case $gdktarget in
|
||||
- x11|win32|quartz|directfb) ;;
|
||||
+ x11|win32|quartz|directfb|none) ;;
|
||||
*) AC_MSG_ERROR([Invalid target for GDK: use x11, quartz, directfb or win32.]);;
|
||||
esac
|
||||
|
||||
@@ -349,10 +346,7 @@
|
||||
## the version requirements since those make the module lists
|
||||
## annoying to construct
|
||||
PKG_CHECK_MODULES(BASE_DEPENDENCIES,
|
||||
- [glib-2.0 >= glib_required_version dnl
|
||||
- atk >= atk_required_version dnl
|
||||
- pango >= pango_required_version dnl
|
||||
- cairo >= cairo_required_version])
|
||||
+ [glib-2.0 >= glib_required_version])
|
||||
|
||||
if test "$os_win32" != yes; then
|
||||
# libtool option to control which symbols are exported
|
||||
@@ -1061,7 +1055,7 @@
|
||||
GDK_PIXBUF_XLIB_EXTRA_CFLAGS=
|
||||
GDK_PIXBUF_XLIB_EXTRA_LIBS=
|
||||
|
||||
-X_PACKAGES=fontconfig
|
||||
+X_PACKAGES=
|
||||
GDK_EXTRA_LIBS="$GDK_WLIBS"
|
||||
GDK_EXTRA_CFLAGS=
|
||||
|
||||
@@ -1070,14 +1064,6 @@
|
||||
GTK_DEP_LIBS_FOR_X=
|
||||
|
||||
if test "x$gdktarget" = "xx11"; then
|
||||
- #
|
||||
- # We use fontconfig very peripherally when decoding the default
|
||||
- # settings.
|
||||
- #
|
||||
- if $PKG_CONFIG --exists fontconfig; then : ; else
|
||||
- AC_MSG_ERROR([
|
||||
-*** fontconfig (http://www.fontconfig.org) is required by the X11 backend.])
|
||||
- fi
|
||||
|
||||
#
|
||||
# Check for basic X packages; we use pkg-config if available
|
||||
@@ -1124,16 +1110,6 @@
|
||||
gtk_save_LIBS=$LIBS
|
||||
LIBS="$x_libs_for_checks $LIBS"
|
||||
|
||||
- # Sanity check for the X11 and Xext libraries. While everything we need from
|
||||
- # Xext is optional, the chances a system has *none* of these things is so
|
||||
- # small that we just unconditionally require it.
|
||||
- AC_CHECK_FUNC(XOpenDisplay, :,
|
||||
- AC_MSG_ERROR([*** libX11 not found. Check 'config.log' for more details.]))
|
||||
- AC_CHECK_FUNC(XextFindDisplay, :,
|
||||
- AC_MSG_ERROR([*** libXext not found. Check 'config.log' for more details.]))
|
||||
- AC_CHECK_FUNC(XRenderQueryExtension, :,
|
||||
- AC_MSG_ERROR([*** libXrender not found. Check 'config.log' for more details.]))
|
||||
-
|
||||
# Check for xReply
|
||||
|
||||
AC_MSG_CHECKING([if <X11/extensions/XIproto.h> is needed for xReply])
|
||||
@@ -1418,48 +1394,6 @@
|
||||
AM_CONDITIONAL(USE_DIRECTFB, false)
|
||||
fi
|
||||
|
||||
-
|
||||
-# Check for Pango flags
|
||||
-
|
||||
-if test "x$gdktarget" = "xwin32"; then
|
||||
- PANGO_PACKAGES="pangowin32 pangocairo"
|
||||
-else
|
||||
- PANGO_PACKAGES="pango pangocairo"
|
||||
-fi
|
||||
-
|
||||
-AC_MSG_CHECKING(Pango flags)
|
||||
-if $PKG_CONFIG --exists $PANGO_PACKAGES ; then
|
||||
- PANGO_CFLAGS=`$PKG_CONFIG --cflags $PANGO_PACKAGES`
|
||||
- PANGO_LIBS=`$PKG_CONFIG --libs $PANGO_PACKAGES`
|
||||
-
|
||||
- AC_MSG_RESULT($PANGO_CFLAGS $PANGO_LIBS)
|
||||
-else
|
||||
- AC_MSG_ERROR([
|
||||
-*** Pango not found. Pango built with Cairo support is required
|
||||
-*** to build GTK+. See http://www.pango.org for Pango information.
|
||||
-])
|
||||
-fi
|
||||
-
|
||||
-CFLAGS="$CFLAGS $PANGO_CFLAGS"
|
||||
-
|
||||
-if $PKG_CONFIG --uninstalled $PANGO_PACKAGES; then
|
||||
- :
|
||||
-else
|
||||
- gtk_save_LIBS="$LIBS"
|
||||
- LIBS="$PANGO_LIBS $LIBS"
|
||||
- AC_TRY_LINK_FUNC(pango_context_new, :, AC_MSG_ERROR([
|
||||
-*** Can't link to Pango. Pango is required to build
|
||||
-*** GTK+. For more information see http://www.pango.org]))
|
||||
- LIBS="$gtk_save_LIBS"
|
||||
-fi
|
||||
-
|
||||
-CFLAGS="$saved_cflags"
|
||||
-LDFLAGS="$saved_ldflags"
|
||||
-
|
||||
-GDK_PACKAGES="$PANGO_PACKAGES"
|
||||
-if test "x$gdktarget" = "xx11"; then
|
||||
- GDK_PACKAGES="$GDK_PACKAGES $X_PACKAGES"
|
||||
-fi
|
||||
GDK_DEP_LIBS="$GDK_EXTRA_LIBS `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_LIBS"
|
||||
GDK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS"
|
||||
|
||||
@@ -1468,7 +1402,7 @@
|
||||
# into the pkg-config files
|
||||
#
|
||||
if test $enable_explicit_deps != yes ; then
|
||||
- GDK_PACKAGES="$PANGO_PACKAGES"
|
||||
+ GDK_PACKAGES=
|
||||
GDK_EXTRA_LIBS=
|
||||
fi
|
||||
|
||||
@@ -1479,39 +1413,10 @@
|
||||
AC_SUBST(GDK_DEP_CFLAGS)
|
||||
|
||||
|
||||
-########################################
|
||||
-# Check for Accessibility Toolkit flags
|
||||
-########################################
|
||||
-
|
||||
-ATK_PACKAGES=atk
|
||||
-AC_MSG_CHECKING(ATK flags)
|
||||
-if $PKG_CONFIG --exists $ATK_PACKAGES ; then
|
||||
- ATK_CFLAGS=`$PKG_CONFIG --cflags $ATK_PACKAGES`
|
||||
- ATK_LIBS=`$PKG_CONFIG --libs $ATK_PACKAGES`
|
||||
-
|
||||
- AC_MSG_RESULT($ATK_CFLAGS $ATK_LIBS)
|
||||
-else
|
||||
- AC_MSG_ERROR([
|
||||
-*** Accessibility Toolkit not found. Accessibility Toolkit is required
|
||||
-*** to build GTK+.
|
||||
-])
|
||||
-fi
|
||||
-
|
||||
-if $PKG_CONFIG --uninstalled $ATK_PACKAGES; then
|
||||
- :
|
||||
-else
|
||||
- gtk_save_LIBS="$LIBS"
|
||||
- LIBS="$ATK_LIBS $LIBS"
|
||||
- AC_TRY_LINK_FUNC(atk_object_get_type, : , AC_MSG_ERROR([
|
||||
- *** Cannot link to Accessibility Toolkit. Accessibility Toolkit is required
|
||||
- *** to build GTK+]))
|
||||
- LIBS="$gtk_save_LIBS"
|
||||
-fi
|
||||
-
|
||||
-GTK_PACKAGES="atk cairo"
|
||||
+GTK_PACKAGES=
|
||||
GTK_EXTRA_LIBS=
|
||||
GTK_EXTRA_CFLAGS=
|
||||
-GTK_DEP_LIBS="$GDK_EXTRA_LIBS $GTK_DEP_LIBS_FOR_X `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $PANGO_PACKAGES $GTK_PACKAGES_FOR_X $GTK_PACKAGES` $GTK_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS"
|
||||
+GTK_DEP_LIBS="$GDK_EXTRA_LIBS $GTK_DEP_LIBS_FOR_X `$PKG_CONFIG --libs $GDK_PIXBUF_PACKAGES $GTK_PACKAGES_FOR_X $GTK_PACKAGES` $GTK_EXTRA_LIBS $GDK_PIXBUF_EXTRA_LIBS"
|
||||
GTK_DEP_CFLAGS="`$PKG_CONFIG --cflags gthread-2.0 $GDK_PIXBUF_PACKAGES $GDK_PACKAGES $GTK_PACKAGES` $GDK_PIXBUF_EXTRA_CFLAGS $GDK_EXTRA_CFLAGS $GTK_EXTRA_CFLAGS"
|
||||
|
||||
if test x"$os_win32" = xyes; then
|
||||
@@ -1601,17 +1506,6 @@
|
||||
|
||||
gtk_save_cppflags="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $GTK_DEP_CFLAGS"
|
||||
-
|
||||
-AC_CHECK_HEADER(cairo-pdf.h,,AC_MSG_ERROR([
|
||||
-*** Can't find cairo-pdf.h. You must build Cairo with the pdf
|
||||
-*** backend enabled.]))
|
||||
-
|
||||
-if test "$os_win32" != "yes"; then
|
||||
- AC_CHECK_HEADER(cairo-ps.h,,AC_MSG_ERROR([
|
||||
-*** Can't find cairo-ps.h. You must build Cairo with the
|
||||
-*** postscript backend enabled.]))
|
||||
-fi
|
||||
-
|
||||
CPPFLAGS="$gtk_save_cppflags"
|
||||
|
||||
|
||||
@@ -119,17 +119,40 @@ else
|
||||
LIBGTK2_CONF_OPT += --disable-cups
|
||||
endif
|
||||
|
||||
HOST_LIBGTK2_DEPENDENCIES = host-cairo host-libglib2 host-pango host-atk
|
||||
# We do not build a full version of libgtk2 for the host, because that
|
||||
# requires compiling Cairo, Pango, ATK and X.org for the
|
||||
# host. Therefore, we patch it to remove dependencies, and we hack the
|
||||
# build to only build gdk-pixbuf-from-source and
|
||||
# gtk-update-icon-cache, which are the host tools needed to build Gtk
|
||||
# for the target.
|
||||
|
||||
HOST_LIBGTK2_DEPENDENCIES = host-libglib2
|
||||
HOST_LIBGTK2_AUTORECONF = YES
|
||||
HOST_LIBGTK2_CONF_OPT = \
|
||||
--disable-static \
|
||||
--disable-glibtest \
|
||||
--without-libtiff \
|
||||
--without-libjpeg \
|
||||
--with-x \
|
||||
--with-gdktarget=x11 \
|
||||
--with-gdktarget=none \
|
||||
--disable-cups \
|
||||
--disable-debug
|
||||
|
||||
define HOST_LIBGTK2_PATCH_REDUCE_DEPENDENCIES_HOOK
|
||||
toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$($(NOHOSTPKG)_NAME) host-*.patch
|
||||
endef
|
||||
|
||||
HOST_LIBGTK2_POST_PATCH_HOOKS += HOST_LIBGTK2_PATCH_REDUCE_DEPENDENCIES_HOOK
|
||||
|
||||
define HOST_LIBGTK2_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) make -C $(@D)/gdk-pixbuf
|
||||
$(HOST_MAKE_ENV) make -C $(@D)/gtk gtk-update-icon-cache
|
||||
endef
|
||||
|
||||
define HOST_LIBGTK2_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) make -C $(@D)/gdk-pixbuf install
|
||||
cp $(@D)/gtk/gtk-update-icon-cache $(HOST_DIR)/usr/bin
|
||||
endef
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,libgtk2))
|
||||
$(eval $(call AUTOTARGETS,package,libgtk2,host))
|
||||
|
||||
|
||||
@@ -11,7 +11,12 @@ LIBPNG_INSTALL_STAGING = YES
|
||||
LIBPNG_CONF_OPT = --without-libpng-compat
|
||||
LIBPNG_DEPENDENCIES = host-pkg-config zlib
|
||||
|
||||
HOST_LIBPNG_LIBTOOL_PATCH = NO
|
||||
HOST_LIBPNG_CONF_OPT = --without-libpng-compat
|
||||
HOST_LIBPNG_DEPENDENCIES = host-pkg-config host-zlib
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,libpng))
|
||||
$(eval $(call AUTOTARGETS,package,libpng,host))
|
||||
|
||||
$(LIBPNG_HOOK_POST_INSTALL):
|
||||
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
|
||||
|
||||
@@ -24,7 +24,7 @@ LIBSOUP_CONF_OPT = \
|
||||
--disable-explicit-deps \
|
||||
--disable-glibtest \
|
||||
--without-gnome \
|
||||
--disable-gtk-doc --without-html-dir
|
||||
--disable-gtk-doc
|
||||
|
||||
LIBSOUP_DEPENDENCIES = gettext libintl host-pkg-config host-libglib2 libglib2 libxml2
|
||||
|
||||
|
||||
8
package/libxml-parser-perl/Config.in
Normal file
8
package/libxml-parser-perl/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_LIBXML_PARSER_PERL
|
||||
bool "libxml-parser-perl"
|
||||
select BR2_PACKAGE_EXPAT
|
||||
help
|
||||
The Perl XML::Parser module.
|
||||
|
||||
http://www.cpan.org/modules/by-module/XML/
|
||||
|
||||
34
package/libxml-parser-perl/libxml-parser-perl.mk
Normal file
34
package/libxml-parser-perl/libxml-parser-perl.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
#############################################################
|
||||
#
|
||||
# libxml-parser-perl
|
||||
#
|
||||
#############################################################
|
||||
LIBXML_PARSER_PERL_VERSION:=2.36
|
||||
LIBXML_PARSER_PERL_SOURCE:=XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz
|
||||
LIBXML_PARSER_PERL_SITE:=http://www.cpan.org/modules/by-module/XML/
|
||||
|
||||
LIBXML_PARSER_PERL_DEPENDENCIES = expat
|
||||
HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat
|
||||
|
||||
define HOST_LIBXML_PARSER_PERL_CONFIGURE_CMDS
|
||||
(cd $(@D) ; \
|
||||
perl Makefile.PL \
|
||||
PREFIX=$(HOST_DIR)/usr \
|
||||
EXPATLIBPATH=$(HOST_DIR)/usr/lib \
|
||||
EXPATINCPATH=$(HOST_DIR)/usr/include \
|
||||
INSTALLDIRS=site \
|
||||
INSTALLSITELIB=$(HOST_DIR)/usr/lib/perl \
|
||||
)
|
||||
endef
|
||||
|
||||
define HOST_LIBXML_PARSER_PERL_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define HOST_LIBXML_PARSER_PERL_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
|
||||
endef
|
||||
|
||||
$(eval $(call GENTARGETS,package,libxml-parser-perl))
|
||||
$(eval $(call GENTARGETS,package,libxml-parser-perl,host))
|
||||
|
||||
@@ -28,6 +28,8 @@ HOST_LIBXML2_CONF_OPT = \
|
||||
--enable-shared --without-debugging --without-python \
|
||||
--without-threads
|
||||
|
||||
HOST_LIBXML2_LIBTOOL_PATCH = NO
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,libxml2))
|
||||
$(eval $(call AUTOTARGETS,package,libxml2,host))
|
||||
|
||||
|
||||
@@ -25,7 +25,15 @@ LIBXSLT_CONF_OPT = --with-gnu-ld --enable-shared \
|
||||
|
||||
LIBXSLT_DEPENDENCIES = libxml2 $(LIBXSLT_DEPENDENCIES_EXTRA)
|
||||
|
||||
HOST_LIBXSLT_CONF_OPT = --enable-shared \
|
||||
--without-debugging \
|
||||
--without-python \
|
||||
--without-threads
|
||||
|
||||
HOST_LIBXSLT_DEPENDENCIES = host-libxml2
|
||||
|
||||
$(eval $(call AUTOTARGETS,package,libxslt))
|
||||
$(eval $(call AUTOTARGETS,package,libxslt,host))
|
||||
|
||||
$(LIBXSLT_HOOK_POST_INSTALL):
|
||||
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xslt-config
|
||||
|
||||
@@ -86,9 +86,11 @@ $(LVM2_DIR)/.built: $(LVM2_DIR)/.configured
|
||||
|
||||
$(LVM2_TARGET_SBINS) $(LVM2_TARGET_DMSETUP_SBINS): $(LVM2_DIR)/.built
|
||||
cp -a $(STAGING_DIR)/sbin/$(notdir $@) $@
|
||||
touch $@
|
||||
|
||||
$(LVM2_TARGET_LIBS): $(LVM2_DIR)/.built
|
||||
cp -a $(STAGING_DIR)/lib/$(notdir $@) $@
|
||||
touch $@
|
||||
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LVM2_DMSETUP_ONLY),y)
|
||||
|
||||
@@ -141,6 +141,7 @@ $(MATCHBOX_PL_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_PL_SOURCE)
|
||||
$(MATCHBOX_DP_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_DP_SOURCE)
|
||||
$(MATCHBOX_CAT) $(DL_DIR)/$(MATCHBOX_DP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
$(SED) 's:mbfolder\.png:mbtasks\.png:g' $(MATCHBOX_DP_DIR)/modules/tasks.c
|
||||
toolchain/patch-kernel.sh $(MATCHBOX_DP_DIR) package/ buildroot-libtool.patch
|
||||
touch $(MATCHBOX_DP_DIR)/.unpacked
|
||||
|
||||
$(MATCHBOX_FK_DIR)/.unpacked: $(DL_DIR)/$(MATCHBOX_FK_SOURCE)
|
||||
@@ -218,7 +219,7 @@ else
|
||||
endif
|
||||
|
||||
|
||||
$(MATCHBOX_LIB_DIR)/.configured: $(MATCHBOX_LIB_DIR)/.unpacked xlib_libXext-install-staging
|
||||
$(MATCHBOX_LIB_DIR)/.configured: $(MATCHBOX_LIB_DIR)/.unpacked
|
||||
(cd $(MATCHBOX_LIB_DIR); rm -f config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
./configure $(QUIET) \
|
||||
@@ -609,7 +610,7 @@ $(TARGET_DIR)/usr/bin/$(MATCHBOX_KB_BIN): $(STAGING_DIR)/usr/bin/$(MATCHBOX_KB_B
|
||||
cp -af $(STAGING_DIR)/usr/share/matchbox/matchbox-keyboard $(TARGET_DIR)/usr/share/matchbox/
|
||||
cp -dpf ./package/matchbox/mb-applet-kbd-wrapper.sh $(TARGET_DIR)/usr/bin/
|
||||
|
||||
matchbox: host-pkg-config expat $(MATCHBOX_WM_DEPS) $(MATCHBOX_SNOTIFY_DEPS) $(MATCHBOX_LIB_DEPS) $(TARGET_DIR)/usr/lib/libmb.so $(TARGET_DIR)/usr/bin/$(MATCHBOX_WM_BIN)
|
||||
matchbox: host-pkg-config expat xlib_libXext $(MATCHBOX_WM_DEPS) $(MATCHBOX_SNOTIFY_DEPS) $(MATCHBOX_LIB_DEPS) $(TARGET_DIR)/usr/lib/libmb.so $(TARGET_DIR)/usr/bin/$(MATCHBOX_WM_BIN)
|
||||
|
||||
matchbox-panel: matchbox $(TARGET_DIR)/usr/bin/$(MATCHBOX_PL_BIN) $(TARGET_DIR)/usr/bin/matchbox-session $(MATCHBOX_PANEL_DEPS)
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
config BR2_PACKAGE_ALSA_LIB
|
||||
bool "alsa-lib"
|
||||
# Temporary until
|
||||
# https://bugtrack.alsa-project.org/alsa-bug/view.php?id=4913
|
||||
# is fixed
|
||||
select BR2_PACKAGE_ALSA_LIB_PCM
|
||||
help
|
||||
The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI
|
||||
functionality to the Linux operating system.
|
||||
|
||||
@@ -24,6 +24,9 @@ config BR2_PACKAGE_ALSA_UTILS_ALSACTL
|
||||
config BR2_PACKAGE_ALSA_UTILS_ALSAMIXER
|
||||
bool "alsamixer"
|
||||
select BR2_PACKAGE_NCURSES
|
||||
select BR2_PACKAGE_NCURSES_TARGET_PANEL
|
||||
select BR2_PACKAGE_NCURSES_TARGET_FORM
|
||||
select BR2_PACKAGE_NCURSES_TARGET_MENU
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_ALSA_UTILS_AMIDI
|
||||
|
||||
@@ -39,6 +39,7 @@ $(ALSA_UTILS_DIR)/.configured: $(ALSA_UTILS_DIR)/.unpacked
|
||||
--prefix=/usr \
|
||||
$(ALSA_UTILS_CONFIGURE_OPTS) \
|
||||
--disable-xmlto \
|
||||
--with-curses=ncurses \
|
||||
)
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -172,4 +172,8 @@ config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_SOUPHTTPSRC
|
||||
bool "souphttpsrc (http client)"
|
||||
select BR2_PACKAGE_LIBSOUP
|
||||
|
||||
config BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_SPEEX
|
||||
bool "speex"
|
||||
select BR2_PACKAGE_SPEEX
|
||||
|
||||
endif
|
||||
|
||||
@@ -318,4 +318,11 @@ else
|
||||
GST_PLUGINS_GOOD_CONF_OPT += --disable-soup
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GST_PLUGINS_GOOD_PLUGIN_SPEEX),y)
|
||||
GST_PLUGINS_GOOD_CONF_OPT += --enable-speex
|
||||
GST_PLUGINS_GOOD_DEPENDENCIES += speex
|
||||
else
|
||||
GST_PLUGINS_GOOD_CONF_OPT += --disable-speex
|
||||
endif
|
||||
|
||||
$(eval $(call AUTOTARGETS,package/multimedia,gst-plugins-good))
|
||||
|
||||
@@ -54,7 +54,7 @@ $(MPLAYER_DIR)/.configured: $(MPLAYER_DIR)/.unpacked
|
||||
--as=$(TARGET_CROSS)as \
|
||||
--with-extraincdir=$(STAGING_DIR)/usr/include \
|
||||
--with-extralibdir=$(STAGING_DIR)/lib \
|
||||
--charset=US-ASCII \
|
||||
--charset=UTF-8 \
|
||||
--enable-mad \
|
||||
--enable-fbdev \
|
||||
$(MPLAYER_ENDIAN) \
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
#
|
||||
#############################################################
|
||||
|
||||
RSYNC_VERSION:=3.0.6
|
||||
RSYNC_VERSION:=3.0.7
|
||||
RSYNC_SOURCE:=rsync-$(RSYNC_VERSION).tar.gz
|
||||
RSYNC_SITE:=http://rsync.samba.org/ftp/rsync
|
||||
RSYNC_SITE:=http://rsync.samba.org/ftp/rsync/src
|
||||
RSYNC_INSTALL_STAGING:=NO
|
||||
RSYNC_INSTALL_TARGET:=YES
|
||||
RSYNC_CONF_OPT=$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
|
||||
|
||||
@@ -12,7 +12,7 @@ SHARED_MIME_INFO_INSTALL_TARGET = NO
|
||||
|
||||
SHARED_MIME_INFO_AUTORECONF = NO
|
||||
SHARED_MIME_INFO_CONF_ENV = XMLLINT=$(HOST_DIR)/usr/bin/xmllint
|
||||
SHARED_MIME_INFO_DEPENDENCIES = host-pkg-config host-libglib2 host-libxml2 libxml2 libglib2
|
||||
SHARED_MIME_INFO_DEPENDENCIES = host-pkg-config host-libglib2 host-libxml2 host-shared-mime-info libxml2 libglib2
|
||||
|
||||
SHARED_MIME_INFO_CONF_OPT = --disable-update-mimedb
|
||||
|
||||
@@ -28,7 +28,7 @@ $(eval $(call AUTOTARGETS,package,shared-mime-info,host))
|
||||
SHARED_MIME_INFO_HOST_BINARY:=$(HOST_DIR)/usr/bin/update-mime-database
|
||||
|
||||
# update the shared-mime-info database in the target
|
||||
$(SHARED_MIME_INFO_HOOK_POST_INSTALL): host-shared-mime-info
|
||||
$(SHARED_MIME_INFO_HOST_BINARY) $(STAGING_DIR)/usr/share/mime
|
||||
$(SHARED_MIME_INFO_HOOK_POST_INSTALL):
|
||||
$(HOST_MAKE_ENV) $(SHARED_MIME_INFO_HOST_BINARY) $(STAGING_DIR)/usr/share/mime
|
||||
$(INSTALL) -D $(STAGING_DIR)/usr/share/mime/mime.cache $(TARGET_DIR)/usr/share/mime/mime.cache
|
||||
touch $@
|
||||
|
||||
@@ -1,42 +0,0 @@
|
||||
diff -ur tcl8.4.9/unix/configure tcl8.4.9-patched/unix/configure
|
||||
--- tcl8.4.9/unix/configure 2004-12-06 18:23:45.000000000 -0600
|
||||
+++ tcl8.4.9-patched/unix/configure 2006-07-06 21:02:18.884355250 -0500
|
||||
@@ -2131,7 +2131,7 @@
|
||||
# results, and the version is kept in special file).
|
||||
|
||||
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
|
||||
- system=MP-RAS-`awk '{print }' /etc/.relid'`
|
||||
+ system=MP-RAS-`awk '{print }' /etc/.relid`
|
||||
fi
|
||||
if test "`uname -s`" = "AIX" ; then
|
||||
system=AIX-`uname -v`.`uname -r`
|
||||
@@ -7322,7 +7322,7 @@
|
||||
# results, and the version is kept in special file).
|
||||
|
||||
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
|
||||
- system=MP-RAS-`awk '{print }' /etc/.relid'`
|
||||
+ system=MP-RAS-`awk '{print }' /etc/.relid`
|
||||
fi
|
||||
if test "`uname -s`" = "AIX" ; then
|
||||
system=AIX-`uname -v`.`uname -r`
|
||||
diff -ur tcl8.4.9/unix/tcl.m4 tcl8.4.9-patched/unix/tcl.m4
|
||||
--- tcl8.4.9/unix/tcl.m4 2004-12-06 18:23:45.000000000 -0600
|
||||
+++ tcl8.4.9-patched/unix/tcl.m4 2006-07-06 21:02:35.653403250 -0500
|
||||
@@ -844,7 +844,7 @@
|
||||
# results, and the version is kept in special file).
|
||||
|
||||
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
|
||||
- system=MP-RAS-`awk '{print $3}' /etc/.relid'`
|
||||
+ system=MP-RAS-`awk '{print $3}' /etc/.relid`
|
||||
fi
|
||||
if test "`uname -s`" = "AIX" ; then
|
||||
system=AIX-`uname -v`.`uname -r`
|
||||
@@ -2190,7 +2190,7 @@
|
||||
# results, and the version is kept in special file).
|
||||
|
||||
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
|
||||
- system=MP-RAS-`awk '{print $3}' /etc/.relid'`
|
||||
+ system=MP-RAS-`awk '{print $3}' /etc/.relid`
|
||||
fi
|
||||
if test "`uname -s`" = "AIX" ; then
|
||||
system=AIX-`uname -v`.`uname -r`
|
||||
@@ -1,11 +0,0 @@
|
||||
--- tcl8.4.9/compat/strstr.c 2002-01-26 03:10:08.000000000 +0200
|
||||
+++ tcl8.4.9/compat/strstr.c 2005-05-30 06:53:40.000000000 +0300
|
||||
@@ -33,6 +33,8 @@
|
||||
*----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
+#include <unistd.h>
|
||||
+
|
||||
char *
|
||||
strstr(string, substring)
|
||||
register char *string; /* String to search. */
|
||||
@@ -3,66 +3,26 @@
|
||||
# TCL8.4
|
||||
#
|
||||
#############################################################
|
||||
TCL_VERSION:=8.4.9
|
||||
TCL_VERSION:=8.4.19
|
||||
TCL_SOURCE:=tcl$(TCL_VERSION)-src.tar.gz
|
||||
TCL_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/tcl
|
||||
TCL_DIR:=$(BUILD_DIR)/tcl$(TCL_VERSION)
|
||||
|
||||
$(DL_DIR)/$(TCL_SOURCE):
|
||||
$(call DOWNLOAD,$(TCL_SITE),$(TCL_SOURCE))
|
||||
|
||||
$(TCL_DIR)/.source: $(DL_DIR)/$(TCL_SOURCE)
|
||||
$(ZCAT) $(DL_DIR)/$(TCL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
toolchain/patch-kernel.sh $(TCL_DIR) package/tcl/ tcl\*.patch
|
||||
touch $(TCL_DIR)/.source
|
||||
|
||||
$(TCL_DIR)/.configured: $(TCL_DIR)/.source
|
||||
(cd $(TCL_DIR)/unix; rm -f config.cache; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
./configure $(QUIET) \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
TCL_SUBDIR = unix
|
||||
TCL_CONF_OPT = \
|
||||
--enable-shared \
|
||||
--disable-symbols \
|
||||
--disable-langinfo \
|
||||
--disable-framework \
|
||||
)
|
||||
touch $(TCL_DIR)/.configured
|
||||
--disable-framework
|
||||
|
||||
$(TCL_DIR)/unix/libtcl8.4.so: $(TCL_DIR)/.configured
|
||||
$(MAKE) CC=$(TARGET_CC) -C $(TCL_DIR)/unix
|
||||
|
||||
$(TARGET_DIR)/usr/lib/libtcl8.4.so: $(TCL_DIR)/unix/libtcl8.4.so
|
||||
$(MAKE) INSTALL_ROOT=$(TARGET_DIR) -C $(TCL_DIR)/unix install
|
||||
define TCL_POST_INSTALL_CLEANUP
|
||||
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libtcl8.4.so
|
||||
rm -Rf $(TARGET_DIR)/usr/man
|
||||
-if [ "$(BR2_PACKAGE_TCL_DEL_ENCODINGS)" == "y" ]; then \
|
||||
rm -Rf $(TARGET_DIR)/usr/lib/tcl8.4/encoding/*; \
|
||||
fi
|
||||
-if [ "$(BR2_PACKAGE_TCL_SHLIB_ONLY)" == "y" ]; then \
|
||||
rm -f $(TARGET_DIR)/usr/bin/tclsh8.4; \
|
||||
fi
|
||||
endef
|
||||
|
||||
tcl: $(TARGET_DIR)/usr/lib/libtcl8.4.so
|
||||
TCL_POST_INSTALL_TARGET_HOOKS += TCL_POST_INSTALL_CLEANUP
|
||||
|
||||
tcl-source: $(DL_DIR)/$(TCL_SOURCE)
|
||||
|
||||
tcl-clean:
|
||||
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(TCL_DIR)/unix uninstall
|
||||
-$(MAKE) -C $(TCL_DIR)/unix clean
|
||||
|
||||
tcl-dirclean:
|
||||
rm -rf $(TCL_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(BR2_PACKAGE_TCL),y)
|
||||
TARGETS+=tcl
|
||||
endif
|
||||
$(eval $(call AUTOTARGETS,package,tcl))
|
||||
|
||||
@@ -14,6 +14,9 @@ config BR2_PACKAGE_WEBKIT
|
||||
help
|
||||
WebKit is an open source, standards compliant web browser engine.
|
||||
|
||||
Note that WebKit does not build with a toolchain using the
|
||||
old linuxthreads library.
|
||||
|
||||
http://webkit.org/
|
||||
|
||||
comment "webkit requires a toolchain with C++ support and WCHAR enabled"
|
||||
|
||||
173
package/webkit/gtk-doc.make
Normal file
173
package/webkit/gtk-doc.make
Normal file
@@ -0,0 +1,173 @@
|
||||
# -*- mode: makefile -*-
|
||||
|
||||
####################################
|
||||
# Everything below here is generic #
|
||||
####################################
|
||||
|
||||
if GTK_DOC_USE_LIBTOOL
|
||||
GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
|
||||
else
|
||||
GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
|
||||
endif
|
||||
|
||||
# We set GPATH here; this gives us semantics for GNU make
|
||||
# which are more like other make's VPATH, when it comes to
|
||||
# whether a source that is a target of one rule is then
|
||||
# searched for in VPATH/GPATH.
|
||||
#
|
||||
GPATH = $(srcdir)
|
||||
|
||||
TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(content_files) \
|
||||
$(HTML_IMAGES) \
|
||||
$(DOC_MAIN_SGML_FILE) \
|
||||
$(DOC_MODULE)-sections.txt \
|
||||
$(DOC_MODULE)-overrides.txt
|
||||
|
||||
DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \
|
||||
$(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp
|
||||
|
||||
SCANOBJ_FILES = \
|
||||
$(DOC_MODULE).args \
|
||||
$(DOC_MODULE).hierarchy \
|
||||
$(DOC_MODULE).interfaces \
|
||||
$(DOC_MODULE).prerequisites \
|
||||
$(DOC_MODULE).signals
|
||||
|
||||
REPORT_FILES = \
|
||||
$(DOC_MODULE)-undocumented.txt \
|
||||
$(DOC_MODULE)-undeclared.txt \
|
||||
$(DOC_MODULE)-unused.txt
|
||||
|
||||
CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
|
||||
|
||||
if ENABLE_GTK_DOC
|
||||
all-local: html-build.stamp
|
||||
else
|
||||
all-local:
|
||||
endif
|
||||
|
||||
docs: html-build.stamp
|
||||
|
||||
#### scan ####
|
||||
|
||||
scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
|
||||
@echo 'gtk-doc: Scanning header files'
|
||||
@-chmod -R u+w $(srcdir)
|
||||
cd $(srcdir) && \
|
||||
gtkdoc-scan --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="$(IGNORE_HFILES)" $(SCAN_OPTIONS) $(EXTRA_HFILES)
|
||||
if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \
|
||||
CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" CFLAGS="$(GTKDOC_CFLAGS)" LDFLAGS="$(GTKDOC_LIBS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \
|
||||
else \
|
||||
cd $(srcdir) ; \
|
||||
for i in $(SCANOBJ_FILES) ; do \
|
||||
test -f $$i || touch $$i ; \
|
||||
done \
|
||||
fi
|
||||
touch scan-build.stamp
|
||||
|
||||
$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
|
||||
@true
|
||||
|
||||
#### templates ####
|
||||
|
||||
tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt
|
||||
@echo 'gtk-doc: Rebuilding template files'
|
||||
@-chmod -R u+w $(srcdir)
|
||||
cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS)
|
||||
touch tmpl-build.stamp
|
||||
|
||||
tmpl.stamp: tmpl-build.stamp
|
||||
@true
|
||||
|
||||
tmpl/*.sgml:
|
||||
@true
|
||||
|
||||
|
||||
#### xml ####
|
||||
|
||||
sgml-build.stamp: tmpl.stamp $(HFILE_GLOB) $(CFILE_GLOB) $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files)
|
||||
@echo 'gtk-doc: Building XML'
|
||||
@-chmod -R u+w $(srcdir)
|
||||
cd $(srcdir) && \
|
||||
gtkdoc-mkdb --module=$(DOC_MODULE) --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $(MKDB_OPTIONS)
|
||||
touch sgml-build.stamp
|
||||
|
||||
sgml.stamp: sgml-build.stamp
|
||||
@true
|
||||
|
||||
#### html ####
|
||||
|
||||
html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
|
||||
@echo 'gtk-doc: Building HTML'
|
||||
@-chmod -R u+w $(srcdir)
|
||||
rm -rf $(srcdir)/html
|
||||
mkdir $(srcdir)/html
|
||||
cd $(srcdir)/html && gtkdoc-mkhtml $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
|
||||
test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html )
|
||||
@echo 'gtk-doc: Fixing cross-references'
|
||||
cd $(srcdir) && gtkdoc-fixxref --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
|
||||
touch html-build.stamp
|
||||
|
||||
##############
|
||||
|
||||
clean-local:
|
||||
rm -f *~ *.bak
|
||||
rm -rf .libs
|
||||
|
||||
distclean-local:
|
||||
cd $(srcdir) && \
|
||||
rm -rf xml $(REPORT_FILES) \
|
||||
$(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
|
||||
|
||||
maintainer-clean-local: clean
|
||||
cd $(srcdir) && rm -rf xml html
|
||||
|
||||
install-data-local:
|
||||
-installfiles=`echo $(srcdir)/html/*`; \
|
||||
if test "$$installfiles" = '$(srcdir)/html/*'; \
|
||||
then echo '-- Nothing to install' ; \
|
||||
else \
|
||||
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \
|
||||
for i in $$installfiles; do \
|
||||
echo '-- Installing '$$i ; \
|
||||
$(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \
|
||||
done; \
|
||||
echo '-- Installing $(srcdir)/html/index.sgml' ; \
|
||||
$(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \
|
||||
which gtkdoc-rebase >/dev/null && \
|
||||
gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \
|
||||
fi
|
||||
|
||||
|
||||
uninstall-local:
|
||||
rm -f $(DESTDIR)$(TARGET_DIR)/*
|
||||
|
||||
#
|
||||
# Require gtk-doc when making dist
|
||||
#
|
||||
if ENABLE_GTK_DOC
|
||||
dist-check-gtkdoc:
|
||||
else
|
||||
dist-check-gtkdoc:
|
||||
@echo "*** gtk-doc must be installed and enabled in order to make dist"
|
||||
@false
|
||||
endif
|
||||
|
||||
dist-hook: dist-check-gtkdoc dist-hook-local
|
||||
mkdir $(distdir)/tmpl
|
||||
mkdir $(distdir)/xml
|
||||
mkdir $(distdir)/html
|
||||
-cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
|
||||
-cp $(srcdir)/xml/*.xml $(distdir)/xml
|
||||
cp $(srcdir)/html/* $(distdir)/html
|
||||
-cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
|
||||
-cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
|
||||
cd $(distdir) && rm -f $(DISTCLEANFILES)
|
||||
-gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
|
||||
|
||||
.PHONY : dist-hook-local docs
|
||||
@@ -25,10 +25,12 @@ endif
|
||||
WEBKIT_CONF_OPT += --disable-video
|
||||
|
||||
define WEBKIT_AUTOGEN_PATCH
|
||||
$(SED) 's%ACLOCAL_FLAGS=.*%ACLOCAL_FLAGS="-I autotools -I $(STAGING_DIR)/usr/share/aclocal"%' $(WEBKIT_DIR)/autogen.sh
|
||||
$(SED) 's/AUTOMAKE_FLAGS=.*/AUTOMAKE_FLAGS="--foreign --add-missing --copy"/' $(WEBKIT_DIR)/autogen.sh
|
||||
$(SED) 's/LIBTOOLIZE_FLAGS=.*/LIBTOOLIZE_FLAGS="--force --automake --copy"/' $(WEBKIT_DIR)/autogen.sh
|
||||
cp package/webkit/gtk-doc.make $(WEBKIT_DIR)/
|
||||
# Don't run the configure step yet
|
||||
cd $(WEBKIT_DIR); AUTOGEN_CONFIGURE_ARGS=--version ./autogen.sh
|
||||
cd $(WEBKIT_DIR); $(HOST_CONFIGURE_OPTS) AUTOGEN_CONFIGURE_ARGS=--version ./autogen.sh
|
||||
endef
|
||||
|
||||
WEBKIT_POST_EXTRACT_HOOKS += WEBKIT_AUTOGEN_PATCH
|
||||
|
||||
@@ -10,9 +10,9 @@ LIBXCB_SITE = http://xcb.freedesktop.org/dist/
|
||||
LIBXCB_INSTALL_STAGING = YES
|
||||
|
||||
LIBXCB_AUTORECONF = NO
|
||||
LIBXCB_DEPENDENCIES = pthread-stubs xcb-proto xlib_libXdmcp xlib_libXau
|
||||
LIBXCB_DEPENDENCIES = host-libxslt pthread-stubs xcb-proto xlib_libXdmcp xlib_libXau
|
||||
LIBXCB_CONF_ENV = STAGING_DIR="$(STAGING_DIR)"
|
||||
LIBXCB_MAKE_OPT = XCBPROTO_XCBINCLUDEDIR=$(STAGING_DIR)/usr/share/xcb XSLTPROC=/usr/bin/xsltproc
|
||||
LIBXCB_MAKE_OPT = XCBPROTO_XCBINCLUDEDIR=$(STAGING_DIR)/usr/share/xcb
|
||||
|
||||
$(eval $(call AUTOTARGETS,package/x11r7,libxcb))
|
||||
|
||||
|
||||
@@ -8,6 +8,8 @@ XAPP_MKFONTSCALE_VERSION = 1.0.5
|
||||
XAPP_MKFONTSCALE_SOURCE = mkfontscale-$(XAPP_MKFONTSCALE_VERSION).tar.bz2
|
||||
XAPP_MKFONTSCALE_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_MKFONTSCALE_AUTORECONF = NO
|
||||
XAPP_MKFONTSCALE_DEPENDENCIES = freetype xlib_libX11 xlib_libfontenc
|
||||
XAPP_MKFONTSCALE_DEPENDENCIES = zlib freetype xlib_libfontenc xproto_xproto
|
||||
HOST_XAPP_MKFONTSCALE_DEPENDENCIES = host-zlib host-freetype host-xlib_libfontenc host-xproto_xproto
|
||||
|
||||
$(eval $(call AUTOTARGETS,package/x11r7,xapp_mkfontscale))
|
||||
$(eval $(call AUTOTARGETS,package/x11r7,xapp_mkfontscale,host))
|
||||
|
||||
@@ -9,5 +9,6 @@ XFONT_ENCODINGS_SOURCE = encodings-$(XFONT_ENCODINGS_VERSION).tar.bz2
|
||||
XFONT_ENCODINGS_SITE = http://xorg.freedesktop.org/releases/individual/font
|
||||
XFONT_ENCODINGS_AUTORECONF = NO
|
||||
XFONT_ENCODINGS_MAKE_OPT =
|
||||
XFONT_ENCODINGS_DEPENDENCIES = host-xapp_mkfontscale
|
||||
|
||||
$(eval $(call AUTOTARGETS,package/x11r7,xfont_encodings))
|
||||
|
||||
@@ -5,76 +5,14 @@
|
||||
################################################################################
|
||||
|
||||
XFONT_FONT_UTIL_VERSION = 1.0.1
|
||||
XFONT_FONT_UTIL_NAME = font-util-$(XFONT_FONT_UTIL_VERSION)
|
||||
XFONT_FONT_UTIL_SOURCE = font-util-$(XFONT_FONT_UTIL_VERSION).tar.bz2
|
||||
XFONT_FONT_UTIL_SITE = http://xorg.freedesktop.org/releases/individual/font
|
||||
XFONT_FONT_UTIL_AUTORECONF = NO
|
||||
XFONT_FONT_UTIL_DIR=$(BUILD_DIR)/$(XFONT_FONT_UTIL_NAME)
|
||||
XFONT_FONT_UTIL_CAT:=$(BZCAT)
|
||||
XFONT_FONT_UTIL_DEPENDENCIES = host-pkg-config
|
||||
|
||||
$(DL_DIR)/$(XFONT_FONT_UTIL_SOURCE):
|
||||
$(call DOWNLOAD,$(XFONT_FONT_UTIL_SITE),$(XFONT_FONT_UTIL_SOURCE))
|
||||
define XFONT_FONT_UTIL_POST_INSTALL_FIXES
|
||||
$(@D)/post-install.sh $(STAGING_DIR)
|
||||
endef
|
||||
|
||||
xfont_font-util-source: $(DL_DIR)/$(XFONT_FONT_UTIL_SOURCE)
|
||||
|
||||
$(XFONT_FONT_UTIL_DIR)/.unpacked: $(DL_DIR)/$(XFONT_FONT_UTIL_SOURCE)
|
||||
$(XFONT_FONT_UTIL_CAT) $(DL_DIR)/$(XFONT_FONT_UTIL_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||
toolchain/patch-kernel.sh $(XFONT_FONT_UTIL_DIR) package/x11r7/xfont_font-util/ \*.patch
|
||||
$(CONFIG_UPDATE) $(XFONT_FONT_UTIL_DIR)
|
||||
touch $@
|
||||
|
||||
$(XFONT_FONT_UTIL_DIR)/.configured: $(XFONT_FONT_UTIL_DIR)/.unpacked
|
||||
(cd $(XFONT_FONT_UTIL_DIR) && rm -rf config.cache)
|
||||
(cd $(XFONT_FONT_UTIL_DIR) && \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
./configure $(QUIET) \
|
||||
--target=$(GNU_TARGET_NAME) \
|
||||
--host=$(GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--exec-prefix=/usr \
|
||||
--bindir=/usr/bin \
|
||||
--sbindir=/usr/sbin \
|
||||
--libdir=/usr/lib \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--datadir=/usr/share \
|
||||
--localstatedir=/var \
|
||||
--includedir=/usr/include \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info \
|
||||
)
|
||||
touch $@
|
||||
|
||||
$(XFONT_FONT_UTIL_DIR)/.compiled: $(XFONT_FONT_UTIL_DIR)/.configured
|
||||
$(MAKE) -C $(XFONT_FONT_UTIL_DIR)
|
||||
touch $@
|
||||
|
||||
$(XFONT_FONT_UTIL_DIR)/.installed: $(XFONT_FONT_UTIL_DIR)/.compiled
|
||||
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(XFONT_FONT_UTIL_DIR) install
|
||||
touch $@
|
||||
|
||||
$(XFONT_FONT_UTIL_DIR)/.hacked: $(XFONT_FONT_UTIL_DIR)/.installed
|
||||
( package/x11r7/xfont_font-util/post-install.sh $(STAGING_DIR) )
|
||||
touch $@
|
||||
|
||||
xfont_font-util: host-pkg-config $(XFONT_FONT_UTIL_DIR)/.hacked
|
||||
|
||||
xfont_font-util-unpacked: $(XFONT_FONT_UTIL_DIR)/.unpacked
|
||||
|
||||
xfont_font-util-clean:
|
||||
-$(MAKE) -C $(XFONT_FONT_UTIL_DIR) clean
|
||||
|
||||
xfont_font-util-dirclean:
|
||||
rm -rf $(XFONT_FONT_UTIL_DIR)
|
||||
|
||||
#############################################################
|
||||
#
|
||||
# Toplevel Makefile options
|
||||
#
|
||||
#############################################################
|
||||
ifeq ($(BR2_PACKAGE_XFONT_FONT_UTIL),y)
|
||||
TARGETS+=xfont_font-util
|
||||
endif
|
||||
XFONT_FONT_UTIL_POST_INSTALL_STAGING_HOOKS += XFONT_FONT_UTIL_POST_INSTALL_FIXES
|
||||
|
||||
$(eval $(call AUTOTARGETS,package/x11r7,xfont_font-util))
|
||||
@@ -12,4 +12,7 @@ XLIB_LIBFONTENC_INSTALL_STAGING = YES
|
||||
XLIB_LIBFONTENC_DEPENDENCIES = zlib xproto_xproto
|
||||
XLIB_LIBFONTENC_CONF_OPT = --enable-shared --disable-static
|
||||
|
||||
HOST_XLIB_LIBFONTENC_DEPENDENCIES = host-zlib host-xproto_xproto
|
||||
|
||||
$(eval $(call AUTOTARGETS,package/x11r7,xlib_libfontenc))
|
||||
$(eval $(call AUTOTARGETS,package/x11r7,xlib_libfontenc,host))
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
config BR2_PACKAGE_XPROTO_TRAPPROTO
|
||||
bool "trapproto"
|
||||
select BR2_PACKAGE_XLIB_LIBXT
|
||||
help
|
||||
trapproto 3.4.3
|
||||
X.Org Trap protocol headers
|
||||
|
||||
@@ -10,5 +10,6 @@ XPROTO_TRAPPROTO_SITE = http://xorg.freedesktop.org/releases/individual/proto
|
||||
XPROTO_TRAPPROTO_AUTORECONF = NO
|
||||
XPROTO_TRAPPROTO_INSTALL_STAGING = YES
|
||||
XPROTO_TRAPPROTO_INSTALL_TARGET = NO
|
||||
XPROTO_TRAPPROTO_DEPENDENCIES = xlib_libXt
|
||||
|
||||
$(eval $(call AUTOTARGETS,package/x11r7,xproto_trapproto))
|
||||
|
||||
@@ -30,10 +30,26 @@ define ZLIB_CONFIGURE_CMDS
|
||||
)
|
||||
endef
|
||||
|
||||
define HOST_ZLIB_CONFIGURE_CMDS
|
||||
(cd $(@D); rm -rf config.cache; \
|
||||
$(HOST_CONFIGURE_ARGS) \
|
||||
$(HOST_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(ZLIB_PIC)" \
|
||||
./configure \
|
||||
$(ZLIB_SHARED) \
|
||||
--prefix="$(HOST_DIR)/usr" \
|
||||
--sysconfdir="$(HOST_DIR)/etc" \
|
||||
)
|
||||
endef
|
||||
|
||||
define ZLIB_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) all libz.a
|
||||
endef
|
||||
|
||||
define HOST_ZLIB_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) all libz.a
|
||||
endef
|
||||
|
||||
define ZLIB_INSTALL_STAGING_CMDS
|
||||
$(INSTALL) -D $(@D)/libz.a $(STAGING_DIR)/usr/lib/libz.a
|
||||
$(INSTALL) -D $(@D)/zlib.h $(STAGING_DIR)/usr/include/zlib.h
|
||||
@@ -41,6 +57,13 @@ define ZLIB_INSTALL_STAGING_CMDS
|
||||
cp -dpf $(@D)/libz.so* $(STAGING_DIR)/usr/lib/
|
||||
endef
|
||||
|
||||
define HOST_ZLIB_INSTALL_CMDS
|
||||
$(INSTALL) -D $(@D)/libz.a $(HOST_DIR)/usr/lib/libz.a
|
||||
$(INSTALL) -D $(@D)/zlib.h $(HOST_DIR)/usr/include/zlib.h
|
||||
$(INSTALL) $(@D)/zconf.h $(HOST_DIR)/usr/include/
|
||||
cp -dpf $(@D)/libz.so* $(HOST_DIR)/usr/lib/
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_HAVE_DEVFILES),y)
|
||||
define ZLIB_INSTALL_TARGET_HEADERS
|
||||
$(INSTALL) -D $(@D)/zlib.h $(TARGET_DIR)/usr/include/zlib.h
|
||||
@@ -57,3 +80,5 @@ define ZLIB_INSTALL_TARGET_CMDS
|
||||
endef
|
||||
|
||||
$(eval $(call GENTARGETS,package,zlib))
|
||||
$(eval $(call GENTARGETS,package,zlib,host))
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ function linux_version()
|
||||
KERNEL=`echo ${KCONFIG} | sed s/.*linux-2.6./linux-2.6./g -`
|
||||
THIS_MAJOR=${KERNEL:10:2}
|
||||
THIS_MINOR=${KERNEL:13}
|
||||
THIS_MINOR=${THIS_MINOR:=0}
|
||||
}
|
||||
|
||||
# Try to be careful...
|
||||
|
||||
@@ -68,7 +68,7 @@ else
|
||||
make MEMORY=$(AT91BOOTSTRAP_MEMORY) \
|
||||
CROSS_COMPILE=$(TARGET_CROSS) \
|
||||
-C $(AT91BOOTSTRAP_DIR) boot
|
||||
make DESTDIR=$(BINARIES_DIR) -C $(AT91BOOTSTRAP_DIR) install || ±
|
||||
make DESTDIR=$(BINARIES_DIR) -C $(AT91BOOTSTRAP_DIR) install || \
|
||||
echo "Could not copy bootstrap to BINARIES_DIR"
|
||||
ifneq ($(BR2_TARGET_ATMEL_COPYTO),)
|
||||
make DESTDIR=$(BR2_TARGET_ATMEL_COPYTO) -C $(AT91BOOTSTRAP_DIR) install || \
|
||||
|
||||
@@ -33,6 +33,8 @@ source "target/linux/Config.in.versions"
|
||||
|
||||
config BR2_KERNEL_PATCH_LEVEL
|
||||
string
|
||||
default $(BR2_KERNEL_LATEST_2_6_32) if BR2_LINUX_2_6_32 && BR2_KERNEL_ADD_LATEST_MINORPATCH
|
||||
default $(BR2_KERNEL_LATEST_2_6_31) if BR2_LINUX_2_6_31 && BR2_KERNEL_ADD_LATEST_MINORPATCH
|
||||
default $(BR2_KERNEL_LATEST_2_6_30) if BR2_LINUX_2_6_30 && BR2_KERNEL_ADD_LATEST_MINORPATCH
|
||||
default $(BR2_KERNEL_LATEST_2_6_29) if BR2_LINUX_2_6_29 && BR2_KERNEL_ADD_LATEST_MINORPATCH
|
||||
default $(BR2_KERNEL_LATEST_2_6_28) if BR2_LINUX_2_6_28 && BR2_KERNEL_ADD_LATEST_MINORPATCH
|
||||
@@ -44,6 +46,8 @@ config BR2_KERNEL_PATCH_LEVEL
|
||||
|
||||
config BR2_KERNEL_NEXT_VERSION
|
||||
string
|
||||
default "2.6.33" if BR2_LINUX_2_6_32
|
||||
default "2.6.32" if BR2_LINUX_2_6_31
|
||||
default "2.6.31" if BR2_LINUX_2_6_30
|
||||
default "2.6.30" if BR2_LINUX_2_6_29
|
||||
default "2.6.29" if BR2_LINUX_2_6_28
|
||||
@@ -54,6 +58,7 @@ config BR2_KERNEL_NEXT_VERSION
|
||||
|
||||
config BR2_KERNEL_THIS_VERSION
|
||||
string
|
||||
default "2.6.32" if BR2_LINUX_2_6_32
|
||||
default "2.6.31" if BR2_LINUX_2_6_31
|
||||
default "2.6.30" if BR2_LINUX_2_6_30
|
||||
default "2.6.29" if BR2_LINUX_2_6_29
|
||||
@@ -121,7 +126,15 @@ choice
|
||||
Select the specific Linux version you want to use
|
||||
|
||||
config BR2_LINUX_2_6_STABLE
|
||||
bool "The latest stable Linux kernel (2.6.30.2)"
|
||||
bool "The latest stable Linux kernel (2.6.32.8)"
|
||||
|
||||
config BR2_LINUX_2_6_32
|
||||
bool "Linux 2.6.32"
|
||||
select BR2_KERNEL_BASE
|
||||
|
||||
config BR2_LINUX_2_6_31
|
||||
bool "Linux 2.6.31"
|
||||
select BR2_KERNEL_BASE
|
||||
|
||||
config BR2_LINUX_2_6_30
|
||||
bool "Linux 2.6.30"
|
||||
@@ -151,10 +164,6 @@ config BR2_LINUX_2_6_24
|
||||
bool "Linux 2.6.24"
|
||||
select BR2_KERNEL_BASE
|
||||
|
||||
config BR2_LINUX_2_6_31
|
||||
bool "Linux 2.6.31"
|
||||
select BR2_KERNEL_BASE
|
||||
|
||||
config BR2_LINUX26_CUSTOM
|
||||
bool "Linux <custom> version"
|
||||
|
||||
|
||||
@@ -19,10 +19,18 @@ config LINUX26_LATEST_MM_VERSION
|
||||
|
||||
config BR2_KERNEL_CURRENT_VERSION
|
||||
string
|
||||
default "2.6.30.2"
|
||||
default "2.6.32.8"
|
||||
help
|
||||
This is the latest stable kernel (including minor version)
|
||||
|
||||
config BR2_KERNEL_LATEST_2_6_32
|
||||
string
|
||||
default "8"
|
||||
|
||||
config BR2_KERNEL_LATEST_2_6_31
|
||||
string
|
||||
default "12"
|
||||
|
||||
config BR2_KERNEL_LATEST_2_6_30
|
||||
string
|
||||
default "2"
|
||||
|
||||
@@ -41,7 +41,7 @@ endif
|
||||
endif
|
||||
|
||||
# Ask the kernel what version number it will use when installing modules
|
||||
LINUX26_VERSION_PROBED = `$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) -s kernelrelease`
|
||||
LINUX26_VERSION_PROBED = `$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) --no-print-directory -s kernelrelease`
|
||||
|
||||
ifeq ($(BOARD_PATH),)
|
||||
BOARD_PATH:=$(call qstrip,$(BR2_BOARD_PATH))
|
||||
|
||||
@@ -120,6 +120,7 @@ choice
|
||||
|
||||
config BR2_PTHREADS_NATIVE
|
||||
bool "Native POSIX Threading (NPTL)"
|
||||
depends on BR2_UCLIBC_VERSION_SNAPSHOT
|
||||
endchoice
|
||||
|
||||
config BR2_PROGRAM_INVOCATION
|
||||
|
||||
@@ -163,9 +163,6 @@ $(CCACHE_DIR2)/$(CCACHE_BINARY): $(CCACHE_DIR2)/.configured
|
||||
|
||||
$(TARGET_DIR)/$(CCACHE_TARGET_BINARY): $(CCACHE_DIR2)/$(CCACHE_BINARY)
|
||||
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(CCACHE_DIR2) install
|
||||
ifneq ($(BR2_HAVE_MANPAGES),y)
|
||||
rm -rf $(TARGET_DIR)/usr/man
|
||||
endif
|
||||
# put a bunch of symlinks into /bin, since that is earlier
|
||||
# in the default PATH than /usr/bin where gcc lives
|
||||
(cd $(TARGET_DIR)/bin; \
|
||||
|
||||
@@ -122,7 +122,7 @@ if ! $SHELL --version 2>&1 | grep -q '^GNU bash'; then
|
||||
fi;
|
||||
|
||||
# Check that a few mandatory programs are installed
|
||||
for prog in awk bison flex msgfmt makeinfo patch ; do
|
||||
for prog in awk bison flex msgfmt makeinfo patch gzip bzip2 perl ; do
|
||||
if ! which $prog > /dev/null ; then
|
||||
/bin/echo -e "\nYou must install '$prog' on your build machine";
|
||||
if test $prog = "makeinfo" ; then
|
||||
|
||||
@@ -71,6 +71,6 @@ config BR2_DEFAULT_KERNEL_HEADERS
|
||||
default "2.6.29.6" if BR2_KERNEL_HEADERS_2_6_29
|
||||
default "2.6.30.10" if BR2_KERNEL_HEADERS_2_6_30
|
||||
default "2.6.31.12" if BR2_KERNEL_HEADERS_2_6_31
|
||||
default "2.6.32.7" if BR2_KERNEL_HEADERS_2_6_32
|
||||
default "2.6.32.8" if BR2_KERNEL_HEADERS_2_6_32
|
||||
default "2.6" if BR2_KERNEL_HEADERS_SNAP
|
||||
default $BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
From a05c4380c5aaa6e107a4c7e1e5a139ec4cc43f0c Mon Sep 17 00:00:00 2001
|
||||
From: Henning Heinold <heinold@inf.fu-berlin.de>
|
||||
Date: Sun, 21 Feb 2010 11:55:32 +0100
|
||||
Subject: [PATCH 14/15] LT pthread_atfork: unhide
|
||||
|
||||
Trying to compile perl with uClibc new linuxthreads on arm.
|
||||
I run into the problem that pthread_atfork is not available.
|
||||
The problem was that it was synced with the glibc version, which has
|
||||
compat ifdefs we do not need in uClibc. The inital checked in version
|
||||
is right and works. So either revert the commit 2 years ago
|
||||
or patch it with the patch attached I made for openembedded.
|
||||
|
||||
Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
libpthread/linuxthreads/Makefile.in | 2 +-
|
||||
libpthread/linuxthreads/pthread_atfork.c | 13 +++----------
|
||||
2 files changed, 4 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/libpthread/linuxthreads/Makefile.in b/libpthread/linuxthreads/Makefile.in
|
||||
index 947dea9..d53b5fa 100644
|
||||
--- a/libpthread/linuxthreads/Makefile.in
|
||||
+++ b/libpthread/linuxthreads/Makefile.in
|
||||
@@ -45,7 +45,7 @@ pthread_sysdep_SRC := $(patsubst %,$(libpthread_DIR)/sysdeps/pthread/%.c,$(pthre
|
||||
pthread_SRC := \
|
||||
attr barrier cancel condvar errno events join pthread \
|
||||
lockfile manager mutex pt-machine ptcleanup \
|
||||
- ptclock_gettime ptclock_settime ptfork pthandles \
|
||||
+ ptclock_gettime ptclock_settime ptfork pthandles pthread_atfork \
|
||||
pthread_setegid pthread_seteuid pthread_setgid pthread_setregid \
|
||||
pthread_setresgid pthread_setresuid pthread_setreuid pthread_setuid \
|
||||
rwlock semaphore sighandler signals specific spinlock
|
||||
diff --git a/libpthread/linuxthreads/pthread_atfork.c b/libpthread/linuxthreads/pthread_atfork.c
|
||||
index 2464acb..4c83dd0 100644
|
||||
--- a/libpthread/linuxthreads/pthread_atfork.c
|
||||
+++ b/libpthread/linuxthreads/pthread_atfork.c
|
||||
@@ -43,12 +43,8 @@ extern void *__dso_handle __attribute__ ((__weak__));
|
||||
|
||||
/* Hide the symbol so that no definition but the one locally in the
|
||||
executable or DSO is used. */
|
||||
-int
|
||||
-#ifndef __pthread_atfork
|
||||
-/* Don't mark the compatibility function as hidden. */
|
||||
-attribute_hidden
|
||||
-#endif
|
||||
-__pthread_atfork (prepare, parent, child)
|
||||
+
|
||||
+int attribute_hidden __pthread_atfork (prepare, parent, child)
|
||||
void (*prepare) (void);
|
||||
void (*parent) (void);
|
||||
void (*child) (void);
|
||||
@@ -56,8 +52,5 @@ __pthread_atfork (prepare, parent, child)
|
||||
return __register_atfork (prepare, parent, child,
|
||||
&__dso_handle == NULL ? NULL : __dso_handle);
|
||||
}
|
||||
-#ifndef __pthread_atfork
|
||||
-extern int pthread_atfork (void (*prepare) (void), void (*parent) (void),
|
||||
- void (*child) (void)) attribute_hidden;
|
||||
+
|
||||
strong_alias (__pthread_atfork, pthread_atfork)
|
||||
-#endif
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
From 2911103dd4a03bbd3aad11eddfce524a5c9ba9b3 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 22 Jan 2010 13:00:20 +0100
|
||||
Subject: [PATCH 03/15] Make use of macros from sys/asm.h in crt1.S
|
||||
|
||||
Needed for mips nptl to boot once again.
|
||||
(cherry picked from commit 9c343fd4030dcd7a52616f365893177dded50346)
|
||||
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
libc/sysdeps/linux/mips/crt1.S | 46 +++++++++++----------------------------
|
||||
1 files changed, 13 insertions(+), 33 deletions(-)
|
||||
|
||||
diff --git a/libc/sysdeps/linux/mips/crt1.S b/libc/sysdeps/linux/mips/crt1.S
|
||||
index e851d52..6a80412 100644
|
||||
--- a/libc/sysdeps/linux/mips/crt1.S
|
||||
+++ b/libc/sysdeps/linux/mips/crt1.S
|
||||
@@ -85,29 +85,10 @@
|
||||
|
||||
__start:
|
||||
#ifdef __PIC__
|
||||
-#if _MIPS_SIM == _MIPS_SIM_ABI32
|
||||
- .frame sp, 24, sp
|
||||
- .set noreorder
|
||||
- move $0, $31 /* Save old ra. */
|
||||
- bal 10f /* Find addr of cpload. */
|
||||
- nop
|
||||
-10:
|
||||
- .cpload $31
|
||||
- move $31, $0
|
||||
- .set reorder
|
||||
- .cprestore 16
|
||||
-#else
|
||||
- move $0, $31; /* Save old ra. */
|
||||
- .set noreorder
|
||||
- bal 10f /* Find addr of .cpsetup. */
|
||||
- nop
|
||||
-10:
|
||||
- .set reorder
|
||||
- .cpsetup $31, $25, 10b
|
||||
- move $31, $0
|
||||
-#endif
|
||||
+ SETUP_GPX($0)
|
||||
+ SETUP_GPX64($25,$0)
|
||||
#else
|
||||
- la $28, _gp /* Setup GP correctly if we're non-PIC. */
|
||||
+ PTR_LA $28, _gp /* Setup GP correctly if we're non-PIC. */
|
||||
move $31, $0
|
||||
#endif
|
||||
|
||||
@@ -118,18 +99,18 @@ __start:
|
||||
/* Allocate space on the stack for seven arguments and
|
||||
* make sure the stack is aligned to double words (8 bytes) */
|
||||
|
||||
+ and $29, -2 * SZREG
|
||||
+
|
||||
#if _MIPS_SIM == _MIPS_SIM_ABI32
|
||||
- and $29, -2 * 4
|
||||
- subu $29, 32
|
||||
- la $7, _init /* init */
|
||||
- la $8, _fini
|
||||
- sw $8, 16($29) /* fini */
|
||||
- sw $2, 20($29) /* rtld_fini */
|
||||
- sw $29, 24($29) /* stack_end */
|
||||
-#else
|
||||
- and $29, -2 * PTRSIZE
|
||||
+ PTR_SUBIU $29, 32
|
||||
+#endif
|
||||
PTR_LA $7, _init /* init */
|
||||
- PTR_LA $8, _fini /* fini */
|
||||
+ PTR_LA $8, _fini
|
||||
+#if _MIPS_SIM == _MIPS_SIM_ABI32
|
||||
+ PTR_S $8, 16($29) /* fini */
|
||||
+ PTR_S $2, 20($29) /* rtld_fini */
|
||||
+ PTR_S $29, 24($29) /* stack_end */
|
||||
+#else
|
||||
move $9, $2 /* rtld_fini */
|
||||
move $10, $29 /* stack_end */
|
||||
#endif
|
||||
@@ -148,4 +129,3 @@ __data_start:
|
||||
.weak data_start
|
||||
data_start = __data_start
|
||||
|
||||
-
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
From 323453d85ed29ccba7a81d884479188869cd64b7 Mon Sep 17 00:00:00 2001
|
||||
From: Henning Heinold <heinold@inf.fu-berlin.de>
|
||||
Date: Sat, 23 Jan 2010 21:29:42 -0800
|
||||
Subject: [PATCH 13/15] Makefile.in: Make install_dev depend on install_runtime.
|
||||
|
||||
* Helps in parallel build.
|
||||
|
||||
Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
Makefile.in | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index ec4c28e..a889838 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -370,7 +370,7 @@ ifneq ($(UCLIBC_SUPPORT_AI_ADDRCONFIG),y)
|
||||
endif
|
||||
|
||||
# Installs development library links.
|
||||
-install_dev: install_headers all
|
||||
+install_dev: install_headers install_runtime
|
||||
$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
|
||||
-$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
|
||||
ifeq ($(HAVE_SHARED),y)
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
From 7b964170536951a260f7d552db99b428d1ea5026 Mon Sep 17 00:00:00 2001
|
||||
From: Austin Foxley <austinf@cetoncorp.com>
|
||||
Date: Wed, 3 Feb 2010 12:12:10 -0800
|
||||
Subject: [PATCH 08/15] Unbreak build for sparc on some config's
|
||||
|
||||
Thanks to rob@landley.net
|
||||
|
||||
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
||||
---
|
||||
libc/sysdeps/linux/sparc/sigaction.c | 9 ++++-----
|
||||
1 files changed, 4 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/libc/sysdeps/linux/sparc/sigaction.c b/libc/sysdeps/linux/sparc/sigaction.c
|
||||
index a22ac40..7140fd3 100644
|
||||
--- a/libc/sysdeps/linux/sparc/sigaction.c
|
||||
+++ b/libc/sysdeps/linux/sparc/sigaction.c
|
||||
@@ -34,7 +34,8 @@ _syscall5(int, rt_sigaction, int, a, int, b, int, c, int, d, int, e);
|
||||
static void __rt_sigreturn_stub(void);
|
||||
static void __sigreturn_stub(void);
|
||||
|
||||
-int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
|
||||
+libc_hidden_proto(sigaction)
|
||||
+int sigaction(int sig, const struct sigaction *act, struct sigaction *oact)
|
||||
{
|
||||
int ret;
|
||||
struct sigaction kact, koact;
|
||||
@@ -65,10 +66,8 @@ int __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oac
|
||||
return ret;
|
||||
}
|
||||
|
||||
-#ifndef LIBC_SIGACTION
|
||||
-weak_alias(__libc_sigaction,sigaction)
|
||||
-libc_hidden_weak(sigaction)
|
||||
-#endif
|
||||
+libc_hidden_def(sigaction)
|
||||
+weak_alias(sigaction,__libc_sigaction)
|
||||
|
||||
static void
|
||||
__rt_sigreturn_stub(void)
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
From 85bc04d5436ca6c8a30a1ad28862260a04b8b3d5 Mon Sep 17 00:00:00 2001
|
||||
From: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
|
||||
Date: Wed, 16 Dec 2009 13:16:08 +0100
|
||||
Subject: [PATCH 02/15] avr32: add varargs handling of prctl syscall
|
||||
|
||||
prctl is defined to use varargs in the header file, hence it needs varargs
|
||||
specific handling in the source. This patch properly handles the variodic
|
||||
argument before the syscall is passed to the kernel for the AVR32 architecture.
|
||||
|
||||
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
|
||||
---
|
||||
libc/sysdeps/linux/avr32/Makefile.arch | 2 +-
|
||||
libc/sysdeps/linux/avr32/prctl.c | 36 ++++++++++++++++++++++++++++++++
|
||||
2 files changed, 37 insertions(+), 1 deletions(-)
|
||||
create mode 100644 libc/sysdeps/linux/avr32/prctl.c
|
||||
|
||||
diff --git a/libc/sysdeps/linux/avr32/Makefile.arch b/libc/sysdeps/linux/avr32/Makefile.arch
|
||||
index bc5f625..98b85a7 100644
|
||||
--- a/libc/sysdeps/linux/avr32/Makefile.arch
|
||||
+++ b/libc/sysdeps/linux/avr32/Makefile.arch
|
||||
@@ -5,7 +5,7 @@
|
||||
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
|
||||
#
|
||||
|
||||
-CSRC := brk.c clone.c mmap.c sigaction.c
|
||||
+CSRC := brk.c clone.c mmap.c prctl.c sigaction.c
|
||||
|
||||
SSRC := __longjmp.S setjmp.S bsd-setjmp.S bsd-_setjmp.S \
|
||||
sigrestorer.S syscall.S vfork.S
|
||||
diff --git a/libc/sysdeps/linux/avr32/prctl.c b/libc/sysdeps/linux/avr32/prctl.c
|
||||
new file mode 100644
|
||||
index 0000000..4e146e3
|
||||
--- /dev/null
|
||||
+++ b/libc/sysdeps/linux/avr32/prctl.c
|
||||
@@ -0,0 +1,36 @@
|
||||
+/*
|
||||
+ * prctl syscall for AVR32 Linux.
|
||||
+ *
|
||||
+ * Copyright (C) 2010 Atmel Corporation
|
||||
+ *
|
||||
+ * This file is subject to the terms and conditions of the GNU Lesser General
|
||||
+ * Public License. See the file "COPYING.LIB" in the main directory of this
|
||||
+ * archive for more details.
|
||||
+ */
|
||||
+#include <sys/syscall.h>
|
||||
+#include <sys/prctl.h>
|
||||
+#include <stdarg.h>
|
||||
+
|
||||
+#ifdef __NR_prctl
|
||||
+#define __NR___syscall_prctl __NR_prctl
|
||||
+static inline _syscall5(int, __syscall_prctl, int, option, long, arg2,
|
||||
+ long, arg3, long, arg4, long, arg5);
|
||||
+
|
||||
+int prctl(int __option, ...)
|
||||
+{
|
||||
+ long arg2;
|
||||
+ long arg3;
|
||||
+ long arg4;
|
||||
+ long arg5;
|
||||
+ va_list ap;
|
||||
+
|
||||
+ va_start(ap, __option);
|
||||
+ arg2 = va_arg(ap, long);
|
||||
+ arg3 = va_arg(ap, long);
|
||||
+ arg4 = va_arg(ap, long);
|
||||
+ arg5 = va_arg(ap, long);
|
||||
+ va_end(ap);
|
||||
+
|
||||
+ return INLINE_SYSCALL(prctl, 5, __option, arg2, arg3, arg4, arg5);
|
||||
+}
|
||||
+#endif
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,297 @@
|
||||
From 74ca5695cd9913691192e075449b8be5794d50f0 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Thu, 8 Oct 2009 02:51:55 +0000
|
||||
Subject: [PATCH 12/15] clean up O_CLOEXEC handling
|
||||
|
||||
Drop the "#ifndef O_CLOEXEC" cruft, enable O_CLOEXEC in most fcntl.h
|
||||
headers, and import __ASSUME_O_CLOEXEC from glibc.
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
libc/pwd_grp/lckpwdf.c | 8 +++++++-
|
||||
libc/sysdeps/linux/alpha/bits/fcntl.h | 2 --
|
||||
libc/sysdeps/linux/arm/bits/fcntl.h | 2 --
|
||||
libc/sysdeps/linux/avr32/bits/fcntl.h | 1 +
|
||||
libc/sysdeps/linux/bfin/bits/fcntl.h | 2 ++
|
||||
libc/sysdeps/linux/cris/bits/fcntl.h | 1 +
|
||||
libc/sysdeps/linux/frv/bits/fcntl.h | 2 ++
|
||||
libc/sysdeps/linux/hppa/bits/fcntl.h | 1 +
|
||||
libc/sysdeps/linux/i386/bits/fcntl.h | 2 --
|
||||
libc/sysdeps/linux/ia64/bits/fcntl.h | 2 --
|
||||
libc/sysdeps/linux/m68k/bits/fcntl.h | 1 +
|
||||
libc/sysdeps/linux/microblaze/bits/fcntl.h | 2 ++
|
||||
libc/sysdeps/linux/mips/bits/fcntl.h | 1 +
|
||||
libc/sysdeps/linux/powerpc/bits/fcntl.h | 2 --
|
||||
libc/sysdeps/linux/sh/bits/fcntl.h | 2 --
|
||||
libc/sysdeps/linux/sh64/bits/fcntl.h | 2 ++
|
||||
libc/sysdeps/linux/sparc/bits/fcntl.h | 2 --
|
||||
libc/sysdeps/linux/x86_64/bits/fcntl.h | 2 --
|
||||
libc/sysdeps/linux/xtensa/bits/fcntl.h | 1 +
|
||||
19 files changed, 21 insertions(+), 17 deletions(-)
|
||||
|
||||
diff --git a/libc/pwd_grp/lckpwdf.c b/libc/pwd_grp/lckpwdf.c
|
||||
index 0b0fb47..aec6283 100644
|
||||
--- a/libc/pwd_grp/lckpwdf.c
|
||||
+++ b/libc/pwd_grp/lckpwdf.c
|
||||
@@ -75,7 +75,7 @@ lckpwdf (void)
|
||||
/* Prevent problems caused by multiple threads. */
|
||||
__UCLIBC_MUTEX_LOCK(mylock);
|
||||
|
||||
- lock_fd = open (_PATH_PASSWD, O_WRONLY);
|
||||
+ lock_fd = open (_PATH_PASSWD, O_WRONLY | O_CLOEXEC);
|
||||
if (lock_fd == -1) {
|
||||
/* Cannot create lock file. */
|
||||
goto DONE;
|
||||
@@ -97,6 +97,12 @@ lckpwdf (void)
|
||||
goto DONE;
|
||||
}
|
||||
|
||||
+#ifndef __ASSUME_O_CLOEXEC
|
||||
+ /* Make sure file gets correctly closed when process finished. */
|
||||
+ fcntl (lock_fd, F_SETFD, FD_CLOEXEC);
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
/* Now we have to get exclusive write access. Since multiple
|
||||
process could try this we won't stop when it first fails.
|
||||
Instead we set a timeout for the system call. Once the timer
|
||||
diff --git a/libc/sysdeps/linux/alpha/bits/fcntl.h b/libc/sysdeps/linux/alpha/bits/fcntl.h
|
||||
index 2a6b9ea..649c563 100644
|
||||
--- a/libc/sysdeps/linux/alpha/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/alpha/bits/fcntl.h
|
||||
@@ -50,9 +50,7 @@
|
||||
# define O_NOFOLLOW 0200000 /* Do not follow links. */
|
||||
# define O_DIRECT 02000000 /* Direct disk access. */
|
||||
# define O_NOATIME 04000000 /* Do not set atime. */
|
||||
-# if 0
|
||||
# define O_CLOEXEC 010000000 /* Set close_on_exec. */
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
diff --git a/libc/sysdeps/linux/arm/bits/fcntl.h b/libc/sysdeps/linux/arm/bits/fcntl.h
|
||||
index 86cea4b..7cc5a9d 100644
|
||||
--- a/libc/sysdeps/linux/arm/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/arm/bits/fcntl.h
|
||||
@@ -50,9 +50,7 @@
|
||||
# define O_NOFOLLOW 0100000 /* Do not follow links. */
|
||||
# define O_DIRECT 0200000 /* Direct disk access. */
|
||||
# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
-# if 0
|
||||
# define O_CLOEXEC 02000000 /* Set close_on_exec. */
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/avr32/bits/fcntl.h b/libc/sysdeps/linux/avr32/bits/fcntl.h
|
||||
index 2301e22..767243e 100644
|
||||
--- a/libc/sysdeps/linux/avr32/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/avr32/bits/fcntl.h
|
||||
@@ -30,6 +30,7 @@
|
||||
# define O_DIRECTORY 00200000 /* direct disk access */
|
||||
# define O_NOFOLLOW 00400000 /* don't follow links */
|
||||
# define O_NOATIME 01000000 /* don't set atime */
|
||||
+# define O_CLOEXEC 02000000 /* set close_on_exec */
|
||||
#endif
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
diff --git a/libc/sysdeps/linux/bfin/bits/fcntl.h b/libc/sysdeps/linux/bfin/bits/fcntl.h
|
||||
index 7d0bcf9..aabf94d 100644
|
||||
--- a/libc/sysdeps/linux/bfin/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/bfin/bits/fcntl.h
|
||||
@@ -48,6 +48,8 @@
|
||||
# define O_DIRECTORY 040000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0100000 /* Do not follow links. */
|
||||
# define O_DIRECT 0200000 /* Direct disk access. */
|
||||
+# define O_NOATIME 01000000 /* don't set atime */
|
||||
+# define O_CLOEXEC 02000000 /* set close_on_exec *
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/cris/bits/fcntl.h b/libc/sysdeps/linux/cris/bits/fcntl.h
|
||||
index a2106ef..29443ba 100644
|
||||
--- a/libc/sysdeps/linux/cris/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/cris/bits/fcntl.h
|
||||
@@ -50,6 +50,7 @@
|
||||
# define O_DIRECTORY 0200000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0400000 /* Do not follow links. */
|
||||
# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
+# define O_CLOEXEC 02000000 /* set close_on_exec */
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/frv/bits/fcntl.h b/libc/sysdeps/linux/frv/bits/fcntl.h
|
||||
index 06e8860..5bff4d3 100644
|
||||
--- a/libc/sysdeps/linux/frv/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/frv/bits/fcntl.h
|
||||
@@ -45,6 +45,8 @@
|
||||
# define O_DIRECT 040000 /* Direct disk access. */
|
||||
# define O_DIRECTORY 0200000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0400000 /* Do not follow links. */
|
||||
+# define O_NOATIME 01000000 /* don't set atime */
|
||||
+# define O_CLOEXEC 02000000 /* set close_on_exec */
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/hppa/bits/fcntl.h b/libc/sysdeps/linux/hppa/bits/fcntl.h
|
||||
index cc23bf8..86e3b6f 100644
|
||||
--- a/libc/sysdeps/linux/hppa/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/hppa/bits/fcntl.h
|
||||
@@ -50,6 +50,7 @@
|
||||
# define O_DIRECTORY 00010000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 00000200 /* Do not follow links. */
|
||||
# define O_NOATIME 04000000 /* Do not set atime. */
|
||||
+# define O_CLOEXEC 010000000 /* set close_on_exec */
|
||||
#endif
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
diff --git a/libc/sysdeps/linux/i386/bits/fcntl.h b/libc/sysdeps/linux/i386/bits/fcntl.h
|
||||
index 7f0b552..22e073b 100644
|
||||
--- a/libc/sysdeps/linux/i386/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/i386/bits/fcntl.h
|
||||
@@ -50,9 +50,7 @@
|
||||
# define O_DIRECTORY 0200000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0400000 /* Do not follow links. */
|
||||
# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
-# if 0
|
||||
# define O_CLOEXEC 02000000 /* Set close_on_exec. */
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/ia64/bits/fcntl.h b/libc/sysdeps/linux/ia64/bits/fcntl.h
|
||||
index d134c4b..85a55f6 100644
|
||||
--- a/libc/sysdeps/linux/ia64/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/ia64/bits/fcntl.h
|
||||
@@ -49,9 +49,7 @@
|
||||
# define O_DIRECTORY 0200000 /* must be a directory */
|
||||
# define O_NOFOLLOW 0400000 /* don't follow links */
|
||||
# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
-# if 0
|
||||
# define O_CLOEXEC 02000000 /* Set close_on_exec. */
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
diff --git a/libc/sysdeps/linux/m68k/bits/fcntl.h b/libc/sysdeps/linux/m68k/bits/fcntl.h
|
||||
index d36198d..e564b42 100644
|
||||
--- a/libc/sysdeps/linux/m68k/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/m68k/bits/fcntl.h
|
||||
@@ -49,6 +49,7 @@
|
||||
# define O_NOFOLLOW 0100000 /* Do not follow links. */
|
||||
# define O_DIRECT 0200000 /* Direct disk access. */
|
||||
# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
+# define O_CLOEXEC 02000000 /* set close_on_exec */
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/microblaze/bits/fcntl.h b/libc/sysdeps/linux/microblaze/bits/fcntl.h
|
||||
index c8aeb91..da35209 100644
|
||||
--- a/libc/sysdeps/linux/microblaze/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/microblaze/bits/fcntl.h
|
||||
@@ -45,6 +45,8 @@
|
||||
# define O_DIRECTORY 040000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0100000 /* Do not follow links. */
|
||||
# define O_DIRECT 0200000 /* Direct disk access. */
|
||||
+# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
+# define O_CLOEXEC 02000000 /* set close_on_exec */
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/mips/bits/fcntl.h b/libc/sysdeps/linux/mips/bits/fcntl.h
|
||||
index ef015a4..f0072fd 100644
|
||||
--- a/libc/sysdeps/linux/mips/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/mips/bits/fcntl.h
|
||||
@@ -51,6 +51,7 @@
|
||||
# define O_DIRECT 0x8000 /* Direct disk access hint. */
|
||||
# define O_DIRECTORY 0x10000 /* Must be a directory. */
|
||||
# define O_NOATIME 0x40000 /* Do not set atime. */
|
||||
+# define O_CLOEXEC 02000000 /* set close_on_exec */
|
||||
#endif
|
||||
|
||||
/* For now Linux has no synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/powerpc/bits/fcntl.h b/libc/sysdeps/linux/powerpc/bits/fcntl.h
|
||||
index ceb75b4..0759c6a 100644
|
||||
--- a/libc/sysdeps/linux/powerpc/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/powerpc/bits/fcntl.h
|
||||
@@ -50,9 +50,7 @@
|
||||
# define O_DIRECTORY 040000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0100000 /* Do not follow links. */
|
||||
# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
-# if 0
|
||||
# define O_CLOEXEC 02000000 /* Set close_on_exec. */
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
diff --git a/libc/sysdeps/linux/sh/bits/fcntl.h b/libc/sysdeps/linux/sh/bits/fcntl.h
|
||||
index 570484c..adb7377 100644
|
||||
--- a/libc/sysdeps/linux/sh/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/sh/bits/fcntl.h
|
||||
@@ -50,9 +50,7 @@
|
||||
# define O_DIRECTORY 0200000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0400000 /* Do not follow links. */
|
||||
# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
-# if 0
|
||||
# define O_CLOEXEC 02000000 /* Set close_on_exec. */
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/sh64/bits/fcntl.h b/libc/sysdeps/linux/sh64/bits/fcntl.h
|
||||
index 06e8860..245d35a 100644
|
||||
--- a/libc/sysdeps/linux/sh64/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/sh64/bits/fcntl.h
|
||||
@@ -45,6 +45,8 @@
|
||||
# define O_DIRECT 040000 /* Direct disk access. */
|
||||
# define O_DIRECTORY 0200000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0400000 /* Do not follow links. */
|
||||
+# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
+# define O_CLOEXEC 02000000 /* set close_on_exec */
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/sparc/bits/fcntl.h b/libc/sysdeps/linux/sparc/bits/fcntl.h
|
||||
index 29c09a9..31a6d9b 100644
|
||||
--- a/libc/sysdeps/linux/sparc/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/sparc/bits/fcntl.h
|
||||
@@ -49,9 +49,7 @@
|
||||
# define O_NOFOLLOW 0x20000 /* don't follow links */
|
||||
# define O_DIRECT 0x100000 /* direct disk access hint */
|
||||
# define O_NOATIME 0x200000 /* Do not set atime. */
|
||||
-# if 0
|
||||
# define O_CLOEXEC 0x400000 /* Set close_on_exit. */
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
#ifdef __USE_LARGEFILE64
|
||||
diff --git a/libc/sysdeps/linux/x86_64/bits/fcntl.h b/libc/sysdeps/linux/x86_64/bits/fcntl.h
|
||||
index be00e4a..f1cf388 100644
|
||||
--- a/libc/sysdeps/linux/x86_64/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/x86_64/bits/fcntl.h
|
||||
@@ -50,9 +50,7 @@
|
||||
# define O_DIRECTORY 0200000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0400000 /* Do not follow links. */
|
||||
# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
-# if 0
|
||||
# define O_CLOEXEC 02000000 /* Set close_on_exec. */
|
||||
-# endif
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
diff --git a/libc/sysdeps/linux/xtensa/bits/fcntl.h b/libc/sysdeps/linux/xtensa/bits/fcntl.h
|
||||
index a89362e..921a626 100644
|
||||
--- a/libc/sysdeps/linux/xtensa/bits/fcntl.h
|
||||
+++ b/libc/sysdeps/linux/xtensa/bits/fcntl.h
|
||||
@@ -50,6 +50,7 @@
|
||||
# define O_DIRECTORY 0200000 /* Must be a directory. */
|
||||
# define O_NOFOLLOW 0400000 /* Do not follow links. */
|
||||
# define O_NOATIME 01000000 /* Do not set atime. */
|
||||
+# define O_CLOEXEC 02000000 /* set close_on_exec */
|
||||
#endif
|
||||
|
||||
/* For now Linux has synchronisity options for data and read operations.
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,153 @@
|
||||
From d75ad2e129b3f22296cead3db53c784527deab60 Mon Sep 17 00:00:00 2001
|
||||
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
Date: Fri, 18 Sep 2009 14:07:31 +0000
|
||||
Subject: fix make {,install_}{,host}utils
|
||||
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
diff --git a/extra/locale/programs/locale.c b/extra/locale/programs/locale.c
|
||||
index 462a579..dfd2029 100644
|
||||
--- a/extra/locale/programs/locale.c
|
||||
+++ b/extra/locale/programs/locale.c
|
||||
@@ -10,10 +10,9 @@
|
||||
*
|
||||
*/
|
||||
|
||||
-
|
||||
+#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
-#include <string.h>
|
||||
#include <langinfo.h>
|
||||
#include <unistd.h>
|
||||
#ifdef __UCLIBC_HAS_GETOPT_LONG__
|
||||
diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c
|
||||
index 290e680..3ce884d 100644
|
||||
--- a/libc/misc/wchar/wchar.c
|
||||
+++ b/libc/misc/wchar/wchar.c
|
||||
@@ -171,7 +171,6 @@ extern size_t _wchar_utf8sntowcs(wchar_t *__restrict pwc, size_t wn,
|
||||
|
||||
extern size_t _wchar_wcsntoutf8s(char *__restrict s, size_t n,
|
||||
const wchar_t **__restrict src, size_t wn) attribute_hidden;
|
||||
-
|
||||
#endif /* _LIBC */
|
||||
/**********************************************************************/
|
||||
#ifdef L_btowc
|
||||
@@ -1201,45 +1200,6 @@ typedef struct {
|
||||
int skip_invalid_input; /* To support iconv -c option. */
|
||||
} _UC_iconv_t;
|
||||
|
||||
-
|
||||
-
|
||||
-#ifdef L_iconv
|
||||
-
|
||||
-#include <iconv.h>
|
||||
-#include <string.h>
|
||||
-#include <endian.h>
|
||||
-#include <byteswap.h>
|
||||
-
|
||||
-#if (__BYTE_ORDER != __BIG_ENDIAN) && (__BYTE_ORDER != __LITTLE_ENDIAN)
|
||||
-#error unsupported endianness for iconv
|
||||
-#endif
|
||||
-
|
||||
-#ifndef __CTYPE_HAS_8_BIT_LOCALES
|
||||
-#error currently iconv requires 8 bit locales
|
||||
-#endif
|
||||
-#ifndef __CTYPE_HAS_UTF_8_LOCALES
|
||||
-#error currently iconv requires UTF-8 locales
|
||||
-#endif
|
||||
-
|
||||
-
|
||||
-enum {
|
||||
- IC_WCHAR_T = 0xe0,
|
||||
- IC_MULTIBYTE = 0xe0,
|
||||
-#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
- IC_UCS_4 = 0xec,
|
||||
- IC_UTF_32 = 0xe4,
|
||||
- IC_UCS_2 = 0xe2,
|
||||
- IC_UTF_16 = 0xea,
|
||||
-#else
|
||||
- IC_UCS_4 = 0xed,
|
||||
- IC_UTF_32 = 0xe5,
|
||||
- IC_UCS_2 = 0xe3,
|
||||
- IC_UTF_16 = 0xeb,
|
||||
-#endif
|
||||
- IC_UTF_8 = 2,
|
||||
- IC_ASCII = 1
|
||||
-};
|
||||
-
|
||||
/* For the multibyte
|
||||
* bit 0 means swap endian
|
||||
* bit 1 means 2 byte
|
||||
@@ -1247,8 +1207,13 @@ enum {
|
||||
*
|
||||
*/
|
||||
|
||||
+#if defined L_iconv && defined _LIBC
|
||||
+/* Used externally only by iconv utility */
|
||||
extern const unsigned char __iconv_codesets[];
|
||||
libc_hidden_proto(__iconv_codesets)
|
||||
+#endif
|
||||
+
|
||||
+#if defined L_iconv || defined L_iconv_main
|
||||
const unsigned char __iconv_codesets[] =
|
||||
"\x0a\xe0""WCHAR_T\x00" /* superset of UCS-4 but platform-endian */
|
||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
@@ -1281,7 +1246,48 @@ const unsigned char __iconv_codesets[] =
|
||||
"\x08\x02""UTF-8\x00"
|
||||
"\x0b\x01""US-ASCII\x00"
|
||||
"\x07\x01""ASCII"; /* Must be last! (special case to save a nul) */
|
||||
+#endif
|
||||
+#if defined L_iconv && defined _LIBC
|
||||
libc_hidden_data_def(__iconv_codesets)
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
+#ifdef L_iconv
|
||||
+
|
||||
+#include <iconv.h>
|
||||
+#include <string.h>
|
||||
+#include <endian.h>
|
||||
+#include <byteswap.h>
|
||||
+
|
||||
+#if (__BYTE_ORDER != __BIG_ENDIAN) && (__BYTE_ORDER != __LITTLE_ENDIAN)
|
||||
+#error unsupported endianness for iconv
|
||||
+#endif
|
||||
+
|
||||
+#ifndef __CTYPE_HAS_8_BIT_LOCALES
|
||||
+#error currently iconv requires 8 bit locales
|
||||
+#endif
|
||||
+#ifndef __CTYPE_HAS_UTF_8_LOCALES
|
||||
+#error currently iconv requires UTF-8 locales
|
||||
+#endif
|
||||
+
|
||||
+
|
||||
+enum {
|
||||
+ IC_WCHAR_T = 0xe0,
|
||||
+ IC_MULTIBYTE = 0xe0,
|
||||
+#if __BYTE_ORDER == __BIG_ENDIAN
|
||||
+ IC_UCS_4 = 0xec,
|
||||
+ IC_UTF_32 = 0xe4,
|
||||
+ IC_UCS_2 = 0xe2,
|
||||
+ IC_UTF_16 = 0xea,
|
||||
+#else
|
||||
+ IC_UCS_4 = 0xed,
|
||||
+ IC_UTF_32 = 0xe5,
|
||||
+ IC_UCS_2 = 0xe3,
|
||||
+ IC_UTF_16 = 0xeb,
|
||||
+#endif
|
||||
+ IC_UTF_8 = 2,
|
||||
+ IC_ASCII = 1
|
||||
+};
|
||||
|
||||
/* Experimentally off - libc_hidden_proto(strcasecmp) */
|
||||
|
||||
@@ -1575,6 +1581,4 @@ size_t weak_function iconv(iconv_t cd, char **__restrict inbuf,
|
||||
}
|
||||
return nrcount;
|
||||
}
|
||||
-
|
||||
#endif
|
||||
-
|
||||
--
|
||||
cgit v0.8.2.1
|
||||
@@ -0,0 +1,113 @@
|
||||
From d43f068e84513ed88392df4ca27d49ad01145fd2 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Sun, 6 Sep 2009 12:12:12 -0400
|
||||
Subject: [PATCH 07/15] fstatat: fix up behavior on 32/64 bit hosts
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The fstatat() syscall is a little funky in that it sometimes changes name
|
||||
between 32 and 64 bit hosts, but it should always operate on a 64bit stat
|
||||
structure. So for the fstatat() function, make sure we convert it from a
|
||||
64bit kstat to a 32bit stat.
|
||||
|
||||
Along these lines, we need to restore the __xstat32_conv() function.
|
||||
|
||||
Reported-by: Timo Teräs <timo.teras@iki.fi>
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
libc/sysdeps/linux/common/fstatat.c | 9 +++++++--
|
||||
libc/sysdeps/linux/common/fstatat64.c | 5 +++++
|
||||
libc/sysdeps/linux/common/xstatconv.c | 19 +++++++++++++++++++
|
||||
libc/sysdeps/linux/common/xstatconv.h | 1 +
|
||||
4 files changed, 32 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/libc/sysdeps/linux/common/fstatat.c b/libc/sysdeps/linux/common/fstatat.c
|
||||
index 149c189..33daa7c 100644
|
||||
--- a/libc/sysdeps/linux/common/fstatat.c
|
||||
+++ b/libc/sysdeps/linux/common/fstatat.c
|
||||
@@ -10,15 +10,20 @@
|
||||
#include <sys/stat.h>
|
||||
#include "xstatconv.h"
|
||||
|
||||
+/* 64bit ports tend to favor newfstatat() */
|
||||
+#ifdef __NR_newfstatat
|
||||
+# define __NR_fstatat64 __NR_newfstatat
|
||||
+#endif
|
||||
+
|
||||
#ifdef __NR_fstatat64
|
||||
int fstatat(int fd, const char *file, struct stat *buf, int flag)
|
||||
{
|
||||
int ret;
|
||||
- struct kernel_stat kbuf;
|
||||
+ struct kernel_stat64 kbuf;
|
||||
|
||||
ret = INLINE_SYSCALL(fstatat64, 4, fd, file, &kbuf, flag);
|
||||
if (ret == 0)
|
||||
- __xstat_conv(&kbuf, buf);
|
||||
+ __xstat32_conv(&kbuf, buf);
|
||||
|
||||
return ret;
|
||||
}
|
||||
diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64.c
|
||||
index 5ae1fad..95627af 100644
|
||||
--- a/libc/sysdeps/linux/common/fstatat64.c
|
||||
+++ b/libc/sysdeps/linux/common/fstatat64.c
|
||||
@@ -12,6 +12,11 @@
|
||||
|
||||
#ifdef __UCLIBC_HAS_LFS__
|
||||
|
||||
+/* 64bit ports tend to favor newfstatat() */
|
||||
+#ifdef __NR_newfstatat
|
||||
+# define __NR_fstatat64 __NR_newfstatat
|
||||
+#endif
|
||||
+
|
||||
#ifdef __NR_fstatat64
|
||||
int fstatat64(int fd, const char *file, struct stat64 *buf, int flag)
|
||||
{
|
||||
diff --git a/libc/sysdeps/linux/common/xstatconv.c b/libc/sysdeps/linux/common/xstatconv.c
|
||||
index e575b26..50455c6 100644
|
||||
--- a/libc/sysdeps/linux/common/xstatconv.c
|
||||
+++ b/libc/sysdeps/linux/common/xstatconv.c
|
||||
@@ -46,6 +46,25 @@ void attribute_hidden __xstat_conv(struct kernel_stat *kbuf, struct stat *buf)
|
||||
buf->st_ctim = kbuf->st_ctim;
|
||||
}
|
||||
|
||||
+void __xstat32_conv(struct kernel_stat64 *kbuf, struct stat *buf)
|
||||
+{
|
||||
+ /* Convert to current kernel version of `struct stat64'. */
|
||||
+ memset(buf, 0x00, sizeof(*buf));
|
||||
+ buf->st_dev = kbuf->st_dev;
|
||||
+ buf->st_ino = kbuf->st_ino;
|
||||
+ buf->st_mode = kbuf->st_mode;
|
||||
+ buf->st_nlink = kbuf->st_nlink;
|
||||
+ buf->st_uid = kbuf->st_uid;
|
||||
+ buf->st_gid = kbuf->st_gid;
|
||||
+ buf->st_rdev = kbuf->st_rdev;
|
||||
+ buf->st_size = kbuf->st_size;
|
||||
+ buf->st_blksize = kbuf->st_blksize;
|
||||
+ buf->st_blocks = kbuf->st_blocks;
|
||||
+ buf->st_atim = kbuf->st_atim;
|
||||
+ buf->st_mtim = kbuf->st_mtim;
|
||||
+ buf->st_ctim = kbuf->st_ctim;
|
||||
+}
|
||||
+
|
||||
#ifdef __UCLIBC_HAS_LFS__
|
||||
|
||||
void attribute_hidden __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf)
|
||||
diff --git a/libc/sysdeps/linux/common/xstatconv.h b/libc/sysdeps/linux/common/xstatconv.h
|
||||
index 57c8bcb..7568da8 100644
|
||||
--- a/libc/sysdeps/linux/common/xstatconv.h
|
||||
+++ b/libc/sysdeps/linux/common/xstatconv.h
|
||||
@@ -26,6 +26,7 @@
|
||||
#include <bits/kernel_stat.h>
|
||||
|
||||
extern void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf) attribute_hidden;
|
||||
+extern void __xstat32_conv(struct kernel_stat64 *kbuf, struct stat *buf) attribute_hidden;
|
||||
#if defined __UCLIBC_HAS_LFS__
|
||||
extern void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf) attribute_hidden;
|
||||
#endif
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
From 13545bce877b33e30155fc412ad44cc118d83f77 Mon Sep 17 00:00:00 2001
|
||||
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
|
||||
Date: Sat, 30 Jan 2010 00:24:37 +0900
|
||||
Subject: [PATCH 15/15] getdents: Fix mips64 build
|
||||
|
||||
On Wed, 27 Jan 2010 07:14:08 +0100, Carmelo AMOROSO <carmelo.amoroso@st.com> wrote:
|
||||
> I would re-write your patch in a simpler way.
|
||||
>
|
||||
> We already have the following
|
||||
>
|
||||
> 136 #if defined __UCLIBC_HAS_LFS__ && ! defined __NR_getdents64
|
||||
> 137 attribute_hidden strong_alias(__getdents,__getdents64)
|
||||
> 138 #endif
|
||||
>
|
||||
> I think that it's simpler to move in the proper place this statement.
|
||||
|
||||
Thanks, indeed. If we came into "#elif WORDSIZE == 32" block, above
|
||||
condition never be true. So we can just move this statement out of
|
||||
"#if...#elif...#elif...#endif" block. Here is a revised patch.
|
||||
|
||||
------------------------------------------------------
|
||||
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
|
||||
Subject: [PATCH] getdents: Fix mips64 build
|
||||
|
||||
Some archs (such as mips64) do not have getdents64 syscall but have
|
||||
getdents syscall. Define alias for it.
|
||||
|
||||
This fixes regression from 0.9.30.1.
|
||||
|
||||
Backgrounds:
|
||||
This is once done by commit e8b1c674. But after the commit 33bcf733
|
||||
("Use getdents syscall if kernel provide supports for this instead of
|
||||
relying upon getdents64."), if __ASSUME_GETDENTS32_D_TYPE was defined
|
||||
the alias for getdents64 is not defined. The macro
|
||||
__ASSUME_GETDENTS32_D_TYPE had been effectively ignored until 0.9.30.1
|
||||
but the commit 0f0f20ab ("Move kernel-features.h header from the
|
||||
linuxthread directory to a common one...") really enables it.
|
||||
|
||||
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
libc/sysdeps/linux/common/getdents.c | 8 ++++----
|
||||
1 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c
|
||||
index b518cc0..66a03b3 100644
|
||||
--- a/libc/sysdeps/linux/common/getdents.c
|
||||
+++ b/libc/sysdeps/linux/common/getdents.c
|
||||
@@ -136,10 +136,6 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes)
|
||||
return (char *) dp - buf;
|
||||
}
|
||||
|
||||
-#if defined __UCLIBC_HAS_LFS__ && ! defined __NR_getdents64
|
||||
-attribute_hidden strong_alias(__getdents,__getdents64)
|
||||
-#endif
|
||||
-
|
||||
#elif __WORDSIZE == 32
|
||||
|
||||
/* Experimentally off - libc_hidden_proto(memmove) */
|
||||
@@ -171,4 +167,8 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes)
|
||||
}
|
||||
#endif
|
||||
|
||||
+#if defined __UCLIBC_HAS_LFS__ && ! defined __NR_getdents64
|
||||
+attribute_hidden strong_alias(__getdents,__getdents64)
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From 47e88c04e01299f975ff23f33035d0f34a8f6787 Mon Sep 17 00:00:00 2001
|
||||
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
Date: Fri, 22 Jan 2010 13:32:44 +0100
|
||||
Subject: [PATCH 06/15] {,host}utils depend on headers
|
||||
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
Makefile.in | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 4c5aecb..ec4c28e 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -436,7 +436,7 @@ ifeq ($(HAVE_SHARED),y)
|
||||
fi
|
||||
endif
|
||||
|
||||
-utils:
|
||||
+utils: headers
|
||||
$(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" -C utils $@
|
||||
|
||||
# Installs helper applications, such as 'ldd' and 'ldconfig'
|
||||
@@ -445,7 +445,7 @@ install_utils: utils
|
||||
|
||||
endif # ifeq ($(HAVE_DOT_CONFIG),y)
|
||||
|
||||
-hostutils:
|
||||
+hostutils: headers
|
||||
$(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" HOSTCC="$(HOSTCC)" DOTHOST=.host -C utils $@
|
||||
|
||||
install_hostutils: hostutils
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
From b4d6a6e94d87ff2b4ae687a21048833f19b9dd48 Mon Sep 17 00:00:00 2001
|
||||
From: Carmelo Amoroso <carmelo.amoroso@st.com>
|
||||
Date: Mon, 8 Feb 2010 16:24:06 +0100
|
||||
Subject: [PATCH 11/15] libc: Fix typo in include/rpc
|
||||
|
||||
s/GNU_SOUCE/GNU_SOURCE/ in include/rcp/
|
||||
|
||||
Signed-off-by: Jason Woodward <jason.woodward@timesys.com>
|
||||
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
|
||||
---
|
||||
include/rpc/auth.h | 4 ++--
|
||||
include/rpc/rpc.h | 4 ++--
|
||||
include/rpc/types.h | 4 ++--
|
||||
3 files changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/include/rpc/auth.h b/include/rpc/auth.h
|
||||
index 17eb59f..12297e6 100644
|
||||
--- a/include/rpc/auth.h
|
||||
+++ b/include/rpc/auth.h
|
||||
@@ -47,8 +47,8 @@
|
||||
#ifndef __FORCE_GLIBC
|
||||
#define __FORCE_GLIBC
|
||||
#endif
|
||||
-#ifndef _GNU_SOUCE
|
||||
-#define _GNU_SOUCE
|
||||
+#ifndef _GNU_SOURCE
|
||||
+#define _GNU_SOURCE
|
||||
#endif
|
||||
#define _(X) X
|
||||
#endif
|
||||
diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h
|
||||
index 8194ffe..219910e 100644
|
||||
--- a/include/rpc/rpc.h
|
||||
+++ b/include/rpc/rpc.h
|
||||
@@ -44,8 +44,8 @@
|
||||
#ifndef __FORCE_GLIBC
|
||||
#define __FORCE_GLIBC
|
||||
#endif
|
||||
-#ifndef _GNU_SOUCE
|
||||
-#define _GNU_SOUCE
|
||||
+#ifndef _GNU_SOURCE
|
||||
+#define _GNU_SOURCE
|
||||
#endif
|
||||
#define _(X) X
|
||||
#include <features.h>
|
||||
diff --git a/include/rpc/types.h b/include/rpc/types.h
|
||||
index 469576e..05f49c3 100644
|
||||
--- a/include/rpc/types.h
|
||||
+++ b/include/rpc/types.h
|
||||
@@ -39,8 +39,8 @@
|
||||
#ifndef __FORCE_GLIBC
|
||||
#define __FORCE_GLIBC
|
||||
#endif
|
||||
-#ifndef _GNU_SOUCE
|
||||
-#define _GNU_SOUCE
|
||||
+#ifndef _GNU_SOURCE
|
||||
+#define _GNU_SOURCE
|
||||
#endif
|
||||
#define _(X) X
|
||||
#endif
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
From 956a0087e282e53ba9c085dbbc469391f7234944 Mon Sep 17 00:00:00 2001
|
||||
From: Aurelien Jacobs <aurel@gnuage.org>
|
||||
Date: Thu, 4 Feb 2010 09:31:40 -0800
|
||||
Subject: [PATCH 10/15] libm: enable log2f and exp2f
|
||||
|
||||
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
|
||||
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
||||
---
|
||||
libm/float_wrappers.c | 4 ++--
|
||||
test/math/compile_test.c | 4 ++--
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/libm/float_wrappers.c b/libm/float_wrappers.c
|
||||
index dc315e7..b7317a1 100644
|
||||
--- a/libm/float_wrappers.c
|
||||
+++ b/libm/float_wrappers.c
|
||||
@@ -15,12 +15,10 @@
|
||||
|
||||
/* For the time being, do _NOT_ implement these functions
|
||||
* that are defined by SuSv3 */
|
||||
-#undef L_exp2f /*float exp2f(float);*/
|
||||
#undef L_fdimf /*float fdimf(float, float);*/
|
||||
#undef L_fmaf /*float fmaf(float, float, float);*/
|
||||
#undef L_fmaxf /*float fmaxf(float, float);*/
|
||||
#undef L_fminf /*float fminf(float, float);*/
|
||||
-#undef L_log2f /*float log2f(float);*/
|
||||
#undef L_nearbyintf /*float nearbyintf(float);*/
|
||||
#undef L_nexttowardf /*float nexttowardf(float, long double);*/
|
||||
#undef L_remquof /*float remquof(float, float, int *);*/
|
||||
@@ -43,6 +41,7 @@ float cosf(float);
|
||||
float coshf(float);
|
||||
float erfcf(float);
|
||||
float erff(float);
|
||||
+float exp2f(float);
|
||||
float expf(float);
|
||||
float expm1f(float);
|
||||
float fabsf(float);
|
||||
@@ -56,6 +55,7 @@ float lgammaf(float);
|
||||
long long llroundf(float);
|
||||
float log10f(float);
|
||||
float log1pf(float);
|
||||
+float log2f(float);
|
||||
float logbf(float);
|
||||
float logf(float);
|
||||
long lroundf(float);
|
||||
diff --git a/test/math/compile_test.c b/test/math/compile_test.c
|
||||
index 9990520..ee5e2e3 100644
|
||||
--- a/test/math/compile_test.c
|
||||
+++ b/test/math/compile_test.c
|
||||
@@ -18,7 +18,7 @@ r += cosf(float_x);
|
||||
r += coshf(float_x);
|
||||
r += erfcf(float_x);
|
||||
r += erff(float_x);
|
||||
-/*r += exp2f(float_x); - uclibc does not have it (yet?) */
|
||||
+r += exp2f(float_x);
|
||||
r += expf(float_x);
|
||||
r += expm1f(float_x);
|
||||
r += fabsf(float_x);
|
||||
@@ -38,7 +38,7 @@ r += llrintf(float_x);
|
||||
r += llroundf(float_x);
|
||||
r += log10f(float_x);
|
||||
r += log1pf(float_x);
|
||||
-/*r += log2f(float_x); - uclibc does not have it (yet?) */
|
||||
+r += log2f(float_x);
|
||||
r += logbf(float_x);
|
||||
r += logf(float_x);
|
||||
r += lrintf(float_x);
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
From fa476d01f1c1990a92ee49d1f1c557b83805d0e9 Mon Sep 17 00:00:00 2001
|
||||
From: Freeman Wang <xwang@ubicom.com>
|
||||
Date: Sat, 19 Dec 2009 13:43:00 -0800
|
||||
Subject: [PATCH 09/15] malloc: fix race condition and other bugs in the no-mmu malloc
|
||||
|
||||
Fixes multiple race conditions on mmb list. This was done by
|
||||
making the mmb_heap_lock into a recursive lock and making the
|
||||
regular heap_lock extend to cover the mmb heap handling.
|
||||
|
||||
Also move the new_mmb allocation up to before the mmb list is
|
||||
iterated through to find the insertion point. When the mmb_heap
|
||||
also runs out and needs to be extended when the regular heap is
|
||||
just extended, the mmb list could be messed up.
|
||||
|
||||
Signed-off-by: Freeman Wang <xwang@ubicom.com>
|
||||
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
|
||||
---
|
||||
libc/stdlib/malloc/free.c | 6 +++---
|
||||
libc/stdlib/malloc/malloc.c | 7 ++++---
|
||||
2 files changed, 7 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/libc/stdlib/malloc/free.c b/libc/stdlib/malloc/free.c
|
||||
index 90e18f4..741248a 100644
|
||||
--- a/libc/stdlib/malloc/free.c
|
||||
+++ b/libc/stdlib/malloc/free.c
|
||||
@@ -179,14 +179,14 @@ __free_to_heap (void *mem, struct heap_free_area **heap
|
||||
/* Start searching again from the end of this block. */
|
||||
start = mmb_end;
|
||||
|
||||
+ /* Release the descriptor block we used. */
|
||||
+ free_to_heap (mmb, &__malloc_mmb_heap, &__malloc_mmb_heap_lock);
|
||||
+
|
||||
/* We have to unlock the heap before we recurse to free the mmb
|
||||
descriptor, because we might be unmapping from the mmb
|
||||
heap. */
|
||||
__heap_unlock (heap_lock);
|
||||
|
||||
- /* Release the descriptor block we used. */
|
||||
- free_to_heap (mmb, &__malloc_mmb_heap, &__malloc_mmb_heap_lock);
|
||||
-
|
||||
/* Do the actual munmap. */
|
||||
munmap ((void *)mmb_start, mmb_end - mmb_start);
|
||||
|
||||
diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c
|
||||
index 71f9e58..84a6acd 100644
|
||||
--- a/libc/stdlib/malloc/malloc.c
|
||||
+++ b/libc/stdlib/malloc/malloc.c
|
||||
@@ -48,7 +48,7 @@ struct malloc_mmb *__malloc_mmapped_blocks = 0;
|
||||
HEAP_DECLARE_STATIC_FREE_AREA (initial_mmb_fa, 48); /* enough for 3 mmbs */
|
||||
struct heap_free_area *__malloc_mmb_heap = HEAP_INIT_WITH_FA (initial_mmb_fa);
|
||||
#ifdef HEAP_USE_LOCKING
|
||||
-pthread_mutex_t __malloc_mmb_heap_lock = PTHREAD_MUTEX_INITIALIZER;
|
||||
+pthread_mutex_t __malloc_mmb_heap_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
||||
#endif
|
||||
#endif /* __UCLIBC_UCLINUX_BROKEN_MUNMAP__ */
|
||||
|
||||
@@ -151,19 +151,19 @@ __malloc_from_heap (size_t size, struct heap_free_area **heap
|
||||
/* Try again to allocate. */
|
||||
mem = __heap_alloc (heap, &size);
|
||||
|
||||
- __heap_unlock (heap_lock);
|
||||
|
||||
#if !defined(MALLOC_USE_SBRK) && defined(__UCLIBC_UCLINUX_BROKEN_MUNMAP__)
|
||||
/* Insert a record of BLOCK in sorted order into the
|
||||
__malloc_mmapped_blocks list. */
|
||||
|
||||
+ new_mmb = malloc_from_heap (sizeof *new_mmb, &__malloc_mmb_heap, &__malloc_mmb_heap_lock);
|
||||
+
|
||||
for (prev_mmb = 0, mmb = __malloc_mmapped_blocks;
|
||||
mmb;
|
||||
prev_mmb = mmb, mmb = mmb->next)
|
||||
if (block < mmb->mem)
|
||||
break;
|
||||
|
||||
- new_mmb = malloc_from_heap (sizeof *new_mmb, &__malloc_mmb_heap, &__malloc_mmb_heap_lock);
|
||||
new_mmb->next = mmb;
|
||||
new_mmb->mem = block;
|
||||
new_mmb->size = block_size;
|
||||
@@ -177,6 +177,7 @@ __malloc_from_heap (size_t size, struct heap_free_area **heap
|
||||
(unsigned)new_mmb,
|
||||
(unsigned)new_mmb->mem, block_size);
|
||||
#endif /* !MALLOC_USE_SBRK && __UCLIBC_UCLINUX_BROKEN_MUNMAP__ */
|
||||
+ __heap_unlock (heap_lock);
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From 83a09cd5c9ed9afd87a7d1d17319c2fd2203ad0f Mon Sep 17 00:00:00 2001
|
||||
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
Date: Thu, 21 Jan 2010 10:36:13 +0100
|
||||
Subject: [PATCH 04/15] rpc: fix typo in version mismatch msg
|
||||
|
||||
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
|
||||
---
|
||||
libc/inet/rpc/rpc_prot.c | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/libc/inet/rpc/rpc_prot.c b/libc/inet/rpc/rpc_prot.c
|
||||
index 74658e6..229f988 100644
|
||||
--- a/libc/inet/rpc/rpc_prot.c
|
||||
+++ b/libc/inet/rpc/rpc_prot.c
|
||||
@@ -229,7 +229,7 @@ rejected (enum reject_stat rjct_stat,
|
||||
{
|
||||
switch (rjct_stat)
|
||||
{
|
||||
- case RPC_VERSMISMATCH:
|
||||
+ case RPC_MISMATCH:
|
||||
error->re_status = RPC_VERSMISMATCH;
|
||||
return;
|
||||
case AUTH_ERROR:
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
Reference in New Issue
Block a user