Compare commits

..

33 Commits

Author SHA1 Message Date
Peter Korsgaard
dbc45b0369 Update for 2010.11
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-30 16:52:43 +01:00
Gustavo Zacarias
0dc940cdee Makefile: introduce KSTRIPCMD to strip kernel modules
When sstrip is selected it tries to strip kernel modules too.
Unfortunately this fails with a "unrecognized program segment header
size" error thus interrupting the build process.

We introduce a new $(KSTRIPCMD) strip command for this, being a regular
strip when sstrip is selected and an empty stub when not stripping.

At the same time get rid of the REMOVE_SECTION_* variables, as they are
only used once.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-30 16:28:41 +01:00
Heiko Zuerker
87683d7e9c boot/syslinux: allow build on x86_64
Signed-off-by: Heiko Zuerker <smiley73@users.sourceforge.net>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 21:47:48 +01:00
Peter Korsgaard
b32c8f23e5 squid: needs host-libcap for cf_gen
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 21:15:53 +01:00
Gustavo Zacarias
273c2accca toolchain targets: fix up c3 and winchip i386 variants, add c3-2
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 20:11:33 +01:00
Gustavo Zacarias
372d8f2ae4 linux kernel: bump to version 2.6.36.1
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 20:11:33 +01:00
Gustavo Zacarias
5cafae4f1a squid: bump to version 3.1.9
Closes #2773

Fixes several security issues and host-openssl dependency for cf_gen.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 20:11:21 +01:00
Gustavo Zacarias
e7fbeda801 sysstat: forcibly disable sensors to avoid build failures
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 19:55:41 +01:00
Gustavo Zacarias
cdd861ea46 uclibc: snapshot config fix, yet another stalling point
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 19:54:58 +01:00
Gustavo Zacarias
10af218da8 libgcrypt: bump to version 1.4.6 to fix MIPS build issues
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 19:54:34 +01:00
Mike Frysinger
3783d4a301 tcpdump: punt duplicate versioned binary
The tcpdump package likes to install two binaries into /usr/sbin --
one named "tcpdump" and one named "tcpdump.<ver>".  But it does this
by installing the file twice rather than using links.  Since the alt
name is useless to us, just punt it.

[Peter: Rework to use POST_INSTALL_TARGET_HOOKS instead]
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 10:33:47 +01:00
Yann E. MORIN
512bb3c6d4 toolchain/crosstool-NG: use HOST_PATH when building the toolchain
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-29 10:24:42 +01:00
Mike Frysinger
66254843a5 target-finalize: libtread_db: support nonstd toolchain setups
Certain toolchain configs (E.G. on blackfin), don't use symlinks, so the
file name to match is the actual SONAME (.so.*). Support these toolchains
as well.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-28 22:13:05 +01:00
Marcelo Roberto Jimenez
1fbd9ef813 package/Makefile.in: Add OBJDUMP=$(TARGET_OBJDUMP) to TARGET_CONFIGURE_OPTS
Closes #2857

The OBJDUMP was missing from TARGET_CONFIGURE_OPTS, this patch adds it
to the proper place in package/Makefile.in.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:36:28 +01:00
Yann E. MORIN
33da52a52b toolchain/crosstool-NG: use RPC option
Push the RPC option down to uClibc config

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:03 +01:00
Yann E. MORIN
f0e189dcaf toolchain/crosstool-NG: use IPv6 option
Push the IPv6 option down to uClibc config

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:03 +01:00
Yann E. MORIN
32dd477465 toolchain/crosstool-NG: use LFS option
Push the LFS option down to uClibc config

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:03 +01:00
Yann E. MORIN
421b5597f5 toolchain/crosstool-NG: use locales option
Push the locales option down to crosstool-NG config

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:03 +01:00
Yann E. MORIN
fba6c2d76b toolchain/crosstool-NG: use wide-char option
Push the wide-char options down to crosstool-NG config

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:03 +01:00
Yann E. MORIN
72568d543b toolchain/crosstool-NG: add C library config munging
For some C libraries, it can be necessary to push the BR settings
down to the libc configuration file. Prepare the infrastructure.

(Note: it will apply only to uClibc for now, and although eglibc
can also be configured, it is not currently supported)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:02 +01:00
Yann E. MORIN
8749f92188 toolchain/crosstool-NG: move munging functions
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:02 +01:00
Yann E. MORIN
6aec5c2c19 toolchain/crosstool-NG: use a copy of the uClibc .config
Before we can munge the uClibc .config file, we have to use a copy.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:02 +01:00
Yann E. MORIN
499f4cf22d toolchain/crosstool-NG: reorder sed expressions
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:02 +01:00
Yann E. MORIN
ee355233bb toolchain/crosstool-NG: add dependencies on host- tools
Depends on:
- GNU awk       --> host-gawk
- GNU automake  --> host-automake

Remove dependency on 'cvs'. cvs is used to retrieve newlib,
which is not supported under Buildroot.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:29:02 +01:00
Matt Johnson
936be892dd xserver-xorg: fix CFLAGS
Ensure we just append to TARGET_CFLAGS, instead of overriding it.

Signed-off-by: Matt Johnson <mj1856@hotmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 22:23:49 +01:00
Javier Viguera
69b2cc76b3 target-finalize: do not strip libthread_db
Fix previous commit not to strip libthread_db library. In the previous
commit the wildcard was incorrectly matching the symbolic link instead
of the real library file.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 21:41:20 +01:00
Peter Korsgaard
37f64ed015 Merge branch 'for-2010.11/faq' of git://git.busybox.net/~tpetazzoni/git/buildroot 2010-11-27 21:13:51 +01:00
Peter Korsgaard
13a51114c6 qt: tighten webkit dependencies
webkit needs shared library and gui support to build, so make that visible
in Config.in.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 21:09:59 +01:00
Will Newton
32b748086e package/qt: Remove selects of BR2_PACKAGE_QT_JAVASCRIPTCORE.
Building WebKit or Script engine support would select JIT support
in JavaScriptCore. Not all platforms support JIT, so remove the
selects to allow the option to be modified by users.

Signed-off-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-27 20:48:24 +01:00
Thomas Petazzoni
706683b8b9 documentation: add FAQ entry about glibc-static issue on Fedora
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-11-26 10:08:21 +01:00
Thomas Petazzoni
5a51a370f0 documentation: add FAQ entry concerning serial port configuration
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-11-26 10:08:20 +01:00
Thomas Petazzoni
42ddff55d4 documentation: introduce a FAQ section
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-11-26 09:59:21 +01:00
Peter Korsgaard
ee5ea7d9cb docs/news.html: announce 2010.11-rc2
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-11-25 12:14:11 +01:00
21 changed files with 322 additions and 142 deletions

12
CHANGES
View File

@@ -1,3 +1,15 @@
2010.11, Released November 30th, 2010:
Fixes all over the tree.
Updated/fixed packages: libgcrypt, qt, squid, sysstat, tcpdump,
xserver-xorg
Issues resolved (http://bugs.uclibc.org):
#2773: squid with openssl support needs openssl on the host
#2857: OBJDUMP definition is missing from TARGET_CONFIGURE_OPTS
2010.11-rc2, Released November 25th, 2010:
Fixes all over the tree.

View File

@@ -24,7 +24,7 @@
#--------------------------------------------------------------
# Set and export the version string
export BR2_VERSION:=2010.11-rc2
export BR2_VERSION:=2010.11
# This top-level Makefile can *not* be executed in parallel
.NOTPARALLEL:
@@ -418,10 +418,10 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y)
rm -rf $(TARGET_DIR)/usr/share/gtk-doc
-rmdir $(TARGET_DIR)/usr/share 2>/dev/null
endif
find $(TARGET_DIR) -type f -perm +111 '!' -name 'libthread_db.so*' | \
find $(TARGET_DIR) -type f -perm +111 '!' -name 'libthread_db*.so*' | \
xargs $(STRIPCMD) 2>/dev/null || true
find $(TARGET_DIR)/lib/modules -type f -name '*.ko' | \
xargs -r $(STRIPCMD) $(STRIP_STRIP_UNNEEDED)
xargs -r $(KSTRIPCMD) || true
mkdir -p $(TARGET_DIR)/etc
# Mandatory configuration file and auxilliary cache directory

View File

@@ -1,6 +1,6 @@
config BR2_TARGET_SYSLINUX
bool "syslinux"
depends on BR2_i386
depends on BR2_i386 || BR2_x86_64
help
The syslinux bootloader for x86 systems.
This includes: syslinux, pxelinux, extlinux.

View File

@@ -32,6 +32,7 @@
<li><a href="#downloaded_packages">Location of downloaded packages</a></li>
<li><a href="#add_packages">Adding new packages to Buildroot</a></li>
<li><a href="#board_support">Creating your own board support</a></li>
<li><a href="#faq">Frequently asked questions</a></li>
<li><a href="#links">Resources</a></li>
</ul>
@@ -1593,6 +1594,49 @@ LIBFOO_POST_PATCH_HOOKS += LIBFOO_POST_PATCH_FIXUP
<p>If you package software that might be useful for other people, don't
forget to send a patch to Buildroot developers!</p>
<h2 id="faq">Frequently asked questions</h2>
<ul>
<li><a href="#faq-boot-hangs">The boot hangs
after <code>Starting network...</code></a></li>
<li><a href="#module-init-tools-doesnt-build">module-init-tools
fails to build with <code>cannot find -lc</code></a></li>
</ul>
<h3 id="faq-boot-hangs">The boot hangs after <code>Starting
network...</code></h3>
<p>If the boot process seems to hang after the following messages
(messages not necessarly exactly similar, depending on the list of
packages selected):</p>
<pre>Freeing init memory: 3972K
Initializing random number generator... done.
Starting network...
Starting dropbear sshd: generating rsa key... generating dsa key... OK</pre>
<p>then it means that your system is running, but didn't start a
shell on the serial console. In order to have the system start a
shell on your serial console, you have to go in the Buildroot
configuration, <code>Target options</code>, enable <code>Generic
serial port config</code>, and select the serial port and speed
you would like to use for the shell. This will automatically tune
the <code>/etc/inittab</code> file of the generated system so that
a shell starts on the correct serial port.</p>
<h3 id="module-init-tools-doesnt-build">module-init-tools
fails to build with <code>cannot find -lc</code></h3>
<p>If the build of <i>module-init-tools</i> for the host fails
with:</p>
<pre>/usr/bin/ld: cannot find -lc </pre>
<p>then probably you are running a Fedora (or similar)
distribution, and you should install the <code>glibc-static</code>
package. This is because the <i>module-init-tools</i> build
process wants to link statically against the C library.</p>
<h2 id="links">Resources</h2>
<p>To learn more about Buildroot you can visit these websites:</p>

View File

@@ -6,14 +6,14 @@
<p>
The latest stable release is <b>2010.08</b>, which can be downloaded
The latest stable release is <b>2010.11</b>, which can be downloaded
here:<p>
<a href="/downloads/buildroot-2010.08.tar.gz">buildroot-2010.08.tar.gz</a>
<a href="/downloads/buildroot-2010.11.tar.gz">buildroot-2010.11.tar.gz</a>
or
<a href="/downloads/buildroot-2010.08.tar.bz2">buildroot-2010.08.tar.bz2</a>.
<a href="/downloads/buildroot-2010.11.tar.bz2">buildroot-2010.11.tar.bz2</a>.
<p>
<!--
The latest release candidate is <b>2010.11-rc2</b>, which can be
downloaded here:<p>
@@ -21,7 +21,7 @@ downloaded here:<p>
or
<a href="/downloads/buildroot-2010.11-rc2.tar.bz2">buildroot-2010.11-rc2.tar.bz2</a>.
<p>
-->
This and earlier releases can always be downloaded from
<a href="/downloads/">http://buildroot.net/downloads/</a>.

View File

@@ -5,6 +5,26 @@
<p>
<ul>
<li><b>30 November 2010 -- 2010.11 released</b>
<p>The stable 2010.11 release is out - Thanks to everyone
contributing and testing the release candidates. See the
<a href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2010.11">CHANGES</a>
file for more details,
and go to the <a href="/downloads/">downloads page</a> to pick up the
<a href="/downloads/buildroot-2010.11.tar.bz2">2010.11 release</a>.</p>
<li><b>25 November 2010 -- 2010.11-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.11_rc2">CHANGES</a>
file for details.</p>
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
<a href="/downloads/buildroot-2010.11-rc2.tar.bz2">2010.11-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>8 November 2010 -- 2010.11-rc1 released</b>

View File

@@ -22,7 +22,7 @@ choice
default BR2_LINUX_KERNEL_2_6_36
config BR2_LINUX_KERNEL_2_6_36
bool "2.6.36"
bool "2.6.36.1"
config BR2_LINUX_KERNEL_SAME_AS_HEADERS
bool "Same as toolchain kernel headers"
@@ -52,7 +52,7 @@ endchoice
config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
string "Kernel version"
depends on BR2_LINUX_KERNEL_CUSTOM_VERSION
default "2.6.36"
default "2.6.36.1"
config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
string "URL of custom kernel tarball"
@@ -60,7 +60,7 @@ config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
config BR2_LINUX_KERNEL_VERSION
string
default "2.6.36" if BR2_LINUX_KERNEL_2_6_36
default "2.6.36.1" if BR2_LINUX_KERNEL_2_6_36
default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL

View File

@@ -146,23 +146,22 @@ ifeq ($(BR2_STRIP_strip),y)
STRIP_DISCARD_ALL:=--discard-all
STRIP_STRIP_UNNEEDED:=--strip-unneeded
STRIP_STRIP_ALL:=--strip-all
REMOVE_SECTION_COMMENT:=--remove-section=.comment
REMOVE_SECTION_NOTE:=--remove-section=.note
TARGET_STRIP=$(TARGET_CROSS)strip
STRIPCMD=$(TARGET_CROSS)strip $(REMOVE_SECTION_COMMENT) $(REMOVE_SECTION_NOTE)
STRIPCMD=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
KSTRIPCMD=$(STRIPCMD) $(STRIP_STRIP_UNNEEDED)
endif
ifeq ($(BR2_STRIP_sstrip),y)
STRIP_DISCARD_ALL:=
STRIP_STRIP_UNNEEDED:=
STRIP_STRIP_ALL:=
REMOVE_SECTION_COMMENT:=
REMOVE_SECTION_NOTE:=
TARGET_STRIP=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-sstrip
STRIPCMD=$(TARGET_STRIP)
KSTRIPCMD=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note --strip-unneeded
endif
ifeq ($(BR2_STRIP_none),y)
TARGET_STRIP=true
STRIPCMD=$(TARGET_STRIP)
KSTRIPCMD=$(TARGET_STRIP)
endif
INSTALL:=$(shell which install || type -p install)
FLEX:=$(shell which flex || type -p flex)
@@ -192,6 +191,7 @@ TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
RANLIB="$(TARGET_RANLIB)" \
STRIP="$(TARGET_STRIP)" \
OBJCOPY="$(TARGET_OBJCOPY)" \
OBJDUMP="$(TARGET_OBJDUMP)" \
AR_FOR_BUILD="$(HOSTAR)" \
AS_FOR_BUILD="$(HOSTAS)" \
CC_FOR_BUILD="$(HOSTCC)" \

View File

@@ -3,11 +3,11 @@
# libgcrypt
#
#############################################################
LIBGCRYPT_VERSION:=1.4.5
LIBGCRYPT_SOURCE:=libgcrypt-$(LIBGCRYPT_VERSION).tar.bz2
LIBGCRYPT_SITE:=ftp://ftp.gnupg.org/gcrypt/libgcrypt
LIBGCRYPT_VERSION = 1.4.6
LIBGCRYPT_SOURCE = libgcrypt-$(LIBGCRYPT_VERSION).tar.bz2
LIBGCRYPT_SITE = ftp://ftp.gnupg.org/gcrypt/libgcrypt
LIBGCRYPT_INSTALL_STAGING = YES
LIBGCRYPT_INSTALL_TARGET = YES
LIBGCRYPT_CONF_ENV = \
ac_cv_sys_symbol_underscore=no

View File

@@ -335,12 +335,16 @@ config BR2_PACKAGE_QT_NETWORK
config BR2_PACKAGE_QT_WEBKIT
bool "WebKit Module"
depends on BR2_PACKAGE_QT_SHARED
depends on BR2_PACKAGE_QT_GUI_MODULE
depends on BR2_PACKAGE_QT_NETWORK
select BR2_PACKAGE_QT_JAVASCRIPTCORE
help
Build the WebKit module.
If unsure, say n.
comment "WebKit needs shared library/gui/network support"
depends on !(BR2_PACKAGE_QT_SHARED && BR2_PACKAGE_QT_GUI_MODULE && BR2_PACKAGE_QT_NETWORK)
config BR2_PACKAGE_QT_JAVASCRIPTCORE
bool "JavaScriptCore JIT compiler"
help
@@ -366,7 +370,6 @@ config BR2_PACKAGE_QT_OPENSSL
config BR2_PACKAGE_QT_SCRIPT
bool "Script Module"
default y
select BR2_PACKAGE_QT_JAVASCRIPTCORE
help
Build the Qt Script module.
if unsure, say y.

View File

@@ -1,9 +1,11 @@
comment "Squid requires a toolchain with C++ support enabled"
depends on !BR2_INSTALL_LIBSTDCPP
comment "Squid requires a toolchain with C++ and IPv6 support enabled"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_INET_IPV6
config BR2_PACKAGE_SQUID
bool "squid"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_INET_IPV6
select BR2_PACKAGE_LIBCAP
help
Caching proxy for the Web supporting HTTP, HTTPS, FTP, and more.

View File

@@ -1,31 +1,65 @@
diff -Nura squid-3.0.STABLE17/configure.in squid-3.0.STABLE17.cross/configure.in
--- squid-3.0.STABLE17/configure.in 2009-07-26 09:24:48.000000000 -0300
+++ squid-3.0.STABLE17.cross/configure.in 2009-07-30 11:54:28.000000000 -0300
@@ -1895,6 +1895,10 @@
diff -Nura squid-3.1.8.orig/configure.in squid-3.1.8/configure.in
--- squid-3.1.8.orig/configure.in 2010-09-04 00:26:52.000000000 -0300
+++ squid-3.1.8/configure.in 2010-09-06 10:12:09.036622139 -0300
@@ -366,7 +366,7 @@
dnl Nasty hack to get autoconf 2.64 on Linux to run.
dnl all other uses of RUN_IFELSE are wrapped inside CACHE_CHECK which breaks on 2.64
-AC_RUN_IFELSE([AC_LANG_SOURCE([[ int main(int argc, char **argv) { return 0; } ]])],[],[],[:])
+dnl AC_RUN_IFELSE([AC_LANG_SOURCE([[ int main(int argc, char **argv) { return 0; } ]])],[],[],[:])
dnl This is a developer only option.. developers know how to set defines
dnl
@@ -1802,7 +1802,7 @@
AC_MSG_NOTICE([Negotiate auth helpers built: $NEGOTIATE_AUTH_HELPERS])
fi
AC_SUBST(NEGOTIATE_AUTH_HELPERS)
-AC_CONFIG_SUBDIRS(helpers/negotiate_auth/squid_kerb_auth)
+dnl AC_CONFIG_SUBDIRS(helpers/negotiate_auth/squid_kerb_auth)
dnl Select digest auth scheme helpers to build
if test -n "$AUTH_MODULE_digest"; then
@@ -2115,6 +2115,18 @@
;;
esac
+dnl Define CXX_FOR_BUILD
+CXX_FOR_BUILD="$CXX_FOR_BUILD"
+AC_SUBST(CXX_FOR_BUILD)
+
+dnl Define CXXFLAGS_FOR_BUILD
+CXXFLAGS_FOR_BUILD="$CXXFLAGS_FOR_BUILD"
+AC_SUBST(CXXFLAGS_FOR_BUILD)
+
+dnl Define LDFLAGS_FOR_BUILD
+LDFLAGS_FOR_BUILD="$LDFLAGS_FOR_BUILD"
+AC_SUBST(LDFLAGS_FOR_BUILD)
+
dnl Check for programs
AC_PROG_CPP
AC_PROG_INSTALL
diff -Nura squid-3.0.STABLE17/src/Makefile.am squid-3.0.STABLE17.cross/src/Makefile.am
--- squid-3.0.STABLE17/src/Makefile.am 2009-07-26 09:24:46.000000000 -0300
+++ squid-3.0.STABLE17.cross/src/Makefile.am 2009-07-30 11:55:08.000000000 -0300
@@ -1034,6 +1034,13 @@
squid.conf.default: cf_parser.h
diff -Nura squid-3.1.8.orig/src/Makefile.am squid-3.1.8/src/Makefile.am
--- squid-3.1.8.orig/src/Makefile.am 2010-09-04 00:25:57.000000000 -0300
+++ squid-3.1.8/src/Makefile.am 2010-09-06 10:11:27.319774138 -0300
@@ -195,8 +195,6 @@
cf_gen_SOURCES = cf_gen.cc
nodist_cf_gen_HEADER = cf_gen_defines.cci
cf_gen_LDADD= \
- ../compat/libcompat.la \
- -L../lib -lmiscutil \
$(EPOLL_LIBS) \
$(MINGW_LIBS) \
$(XTRA_LIBS)
@@ -752,6 +750,12 @@
squid.conf.default squid.conf.documented: cf_parser.cci
true
+CXX_FOR_BUILD ?= @CXX_FOR_BUILD@
+cf_gen$(EXEEXT): $(cf_gen_OBJECTS) $(cf_gen_DEPENDENCIES)
+ $(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ $(srcdir)/cf_gen.cc \
+ $(top_srcdir)/lib/util.c \
+ $(top_srcdir)/compat/assert.cc \
+ $(cf_gen_LDADD) $(LIBS) ${INCLUDES}
+
+cf_gen$(EXEEXT): $(cf_gen_SOURCES) $(cf_gen_DEPENDENCIES)
+ $(CXX_FOR_BUILD) -o $@ $(srcdir)/cf_gen.cc \
+ $(top_srcdir)/lib/util.c $(top_srcdir)/lib/assert.c \
+ -DNDEBUG -DBUILD_HOST_TOOL ${INCLUDES}
+
cf_parser.h: cf.data cf_gen$(EXEEXT)
cf_parser.cci: cf.data cf_gen$(EXEEXT)
./cf_gen cf.data $(srcdir)/cf.data.depend

View File

@@ -1,49 +0,0 @@
[PATCH] replace susv3 legacy functions with modern equivalents
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
src/ESIVarState.cc | 6 +++---
src/HttpHeaderTools.cc | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
Index: squid-3.0.STABLE21/src/ESIVarState.cc
===================================================================
--- squid-3.0.STABLE21.orig/src/ESIVarState.cc
+++ squid-3.0.STABLE21/src/ESIVarState.cc
@@ -207,7 +207,7 @@ ESIVariableUserAgent::getProductVersion
{
char const *t;
int len;
- t = index (s,'/');
+ t = strchr (s,'/');
if (!t || !*(++t))
return xstrdup ("");
@@ -382,12 +382,12 @@ ESIVariableUserAgent::ESIVariableUserAge
if ((t = strstr (s, "MSIE"))) {
browser = ESI_BROWSER_MSIE;
- t = index (t, ' ');
+ t = strchr (t, ' ');
if (!t)
browserversion = xstrdup ("");
else {
- t1 = index (t, ';');
+ t1 = strchr (t, ';');
if (!t1)
browserversion = xstrdup (t + 1);
Index: squid-3.0.STABLE21/src/HttpHeaderTools.cc
===================================================================
--- squid-3.0.STABLE21.orig/src/HttpHeaderTools.cc
+++ squid-3.0.STABLE21/src/HttpHeaderTools.cc
@@ -357,7 +357,7 @@ httpHeaderParseQuotedString (const char
pos = start + 1;
while (1) {
- if (!(end = index (pos,'"'))) {
+ if (!(end = strchr (pos,'"'))) {
debugs(66, 2, "failed to parse a quoted-string header field near '" << start << "'");
return 0;
}

View File

@@ -4,20 +4,21 @@
#
#############################################################
SQUID_VERSION = 3.0.STABLE21
SQUID_SOURCE = squid-$(SQUID_VERSION).tar.bz2
SQUID_SITE = http://www.squid-cache.org/Versions/v3/3.0
SQUID_VERSION = 3.1.9
SQUID_SITE = http://www.squid-cache.org/Versions/v3/3.1
SQUID_DEPENDENCIES = libcap host-libcap
SQUID_AUTORECONF = YES
SQUID_LIBTOOL_PATCH = NO
SQUID_CONF_ENV = ac_cv_epoll_works=yes ac_cv_func_setresuid=yes \
ac_cv_func_va_copy=yes ac_cv_func___va_copy=yes \
ac_cv_func_strnstr=no
SQUID_CONF_OPT = --disable-wccp --disable-wccp2 \
--disable-htcp --disable-snmp \
--enable-linux-netfilter \
--enable-storeio=ufs,diskd,aufs,null \
SQUID_CONF_OPT = --enable-wccp --enable-wccpv2 --enable-async-io=8 \
--enable-htcp --enable-snmp --enable-linux-netfilter \
--enable-removal-policies="lru,heap" \
--with-aufs-threads=24 --with-filedescriptors=1024
--with-filedescriptors=1024 --disable-ident-lookups \
--enable-auth="digest" \
--enable-digest-auth-helpers="password" \
--enable-external-acl-helpers="ip_user"
ifeq ($(BR2_PACKAGE_OPENSSL),y)
SQUID_CONF_OPT += --enable-ssl
SQUID_DEPENDENCIES += openssl
@@ -28,8 +29,6 @@ define SQUID_CLEANUP_TARGET
RunCache RunAccel)
rm -f $(addprefix $(TARGET_DIR)/etc/, \
cachemgr.conf mime.conf.default squid.conf.default)
rm -f $(TARGET_DIR)/usr/libexec/cachemgr.cgi
rm -f $(TARGET_DIR)/usr/share/mib.txt
endef
SQUID_POST_INSTALL_TARGET_HOOKS += SQUID_CLEANUP_TARGET

View File

@@ -7,8 +7,8 @@
SYSSTAT_VERSION = 9.1.6
SYSSTAT_SOURCE = sysstat-$(SYSSTAT_VERSION).tar.bz2
SYSSTAT_SITE = http://pagesperso-orange.fr/sebastien.godard/
SYSSTAT_CONF_OPT = --disable-man-group --disable-sensors
SYSSTAT_CONF_OPT = --disable-man-group
ifneq ($(BR2_HAVE_DOCUMENTATION),y)
SYSSTAT_CONF_OPT += --disable-documentation
endif

View File

@@ -14,4 +14,11 @@ TCPDUMP_CONF_OPT:=--without-crypto \
$(if $(BR2_PACKAGE_TCPDUMP_SMB),--enable-smb,--disable-smb)
TCPDUMP_DEPENDENCIES:=zlib libpcap
# make install installs an unneeded extra copy of the tcpdump binary
define TCPDUMP_REMOVE_DUPLICATED_BINARY
rm -f $(TARGET_DIR)/usr/sbin/tcpdump.$(TCPDUMP_VERSION)
endef
TCPDUMP_POST_INSTALL_TARGET_HOOKS += TCPDUMP_REMOVE_DUPLICATED_BINARY
$(eval $(call AUTOTARGETS,package,tcpdump))

View File

@@ -60,7 +60,7 @@ XSERVER_XORG_SERVER_DEPENDENCIES = \
XSERVER_XORG_SERVER_CONF_OPT = --disable-config-hal \
--disable-xnest --disable-xephyr --disable-xvfb \
--with-builder-addr=buildroot@uclibc.org \
CFLAGS="-I$(STAGING_DIR)/usr/include/pixman-1" \
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/pixman-1" \
--with-fontdir=/usr/share/fonts/X11/
ifeq ($(BR2_PACKAGE_XSERVER_xorg),y)

View File

@@ -263,11 +263,13 @@ config BR2_x86_barcelona
config BR2_x86_geode
bool "geode"
config BR2_x86_c3
bool "cyrix 3 (MMX + 3dNOW!)"
bool "Via/Cyrix C3 (Samuel/Ezra cores)"
config BR2_x86_c32
bool "Via C3-2 (Nehemiah cores)"
config BR2_x86_winchip_c6
bool "IDT winchip C6 (i486 + slow MMX)"
bool "IDT Winchip C6"
config BR2_x86_winchip2
bool "IDT winchip2 (i486 +MMX +SSE)"
bool "IDT Winchip 2"
endchoice
choice
@@ -447,6 +449,10 @@ config BR2_ARCH
default "i586" if BR2_x86_i586
default "i586" if BR2_x86_pentium_mmx
default "i586" if BR2_x86_geode
default "i586" if BR2_x86_c3
default "i686" if BR2_x86_c32
default "i586" if BR2_x86_winchip_c6
default "i586" if BR2_x86_winchip2
default "i686" if BR2_x86_i686
default "i686" if BR2_x86_pentium2
default "i686" if BR2_x86_pentium3
@@ -510,6 +516,7 @@ config BR2_GCC_TARGET_TUNE
default winchip-c6 if BR2_x86_winchip_c6
default winchip2 if BR2_x86_winchip2
default c3 if BR2_x86_c3
default c3-2 if BR2_x86_c32
default geode if BR2_x86_geode
default generic if BR2_x86_64_generic
default nocona if BR2_x86_64_nocona
@@ -623,6 +630,7 @@ config BR2_GCC_TARGET_ARCH
default winchip-c6 if BR2_x86_winchip_c6
default winchip2 if BR2_x86_winchip2
default c3 if BR2_x86_c3
default c3-2 if BR2_x86_c32
default geode if BR2_x86_geode
default armv4t if BR2_arm7tdmi
default armv3 if BR2_arm610

View File

@@ -0,0 +1,15 @@
Remove dependency on cvs.
cvs is used to retrieve newlib, which is not supported
under Buildroot, so cvs is not required.
--- crosstool-ng-1.8.0/configure.orig 2010-11-27 15:43:52.000000000 +0000
+++ crosstool-ng-1.8.0/configure 2010-11-27 15:44:10.000000000 +0000
@@ -359,7 +359,6 @@
err="'libtool' 1.5.26 or above was not found"
has_or_abort prog=stat
has_or_abort prog="aria2c curl wget"
-has_or_abort prog=cvs
has_or_abort prog=patch
has_or_abort prog=tar
has_or_abort prog=gzip

View File

@@ -28,7 +28,7 @@ CTNG_UCLIBC_CONFIG_FILE := $(TOPDIR)/toolchain/toolchain-crosstool-ng/uClibc.con
# to calling ct-ng.
# $1: the set of arguments to pass to ct-ng
define ctng
$(CTNG_DIR)/ct-ng -C $(CTNG_DIR) --no-print-directory $(1)
PATH=$(HOST_PATH) $(CTNG_DIR)/ct-ng -C $(CTNG_DIR) --no-print-directory $(1)
endef
#-----------------------------------------------------------------------------
@@ -76,6 +76,8 @@ $(STAMP_DIR)/ct-ng-toolchain-installed: $(STAMP_DIR)/ct-ng-toolchain-built
#-----------------------------------------------------------------------------
# Building the toolchain
# Note: $(STAMP_DIR)/ct-ng-toolchain-built can have more dependencies,
# depending on the selected C library. Those deps are added later
$(STAMP_DIR)/ct-ng-toolchain-built: $(CTNG_DIR)/.config
$(Q)$(call ctng,build.$(BR2_JLEVEL))
@@ -85,15 +87,57 @@ $(STAMP_DIR)/ct-ng-toolchain-built: $(CTNG_DIR)/.config
#-----------------------------------------------------------------------------
# Configuring the toolchain
# Note: a lot of the following tricks would become unneeded if one day
# buildroot and crosstool-NG had matching options, especially for the
# target description: arch name, bitness, endianness...
#--------------
# We push BR options down to CT-NG, munging the default configuration
# with sed expressions.
# - first one for non-path options
# - second for path options (because they have no prompt, they
# always get set to the default value)
# - third for C library .config (if it has one, eg. uClibc)
CTNG_FIX_DOT_CONFIG_SED :=
CTNG_FIX_DOT_CONFIG_PATHS_SED :=
CTNG_FIX_DOT_CONFIG_LIBC_SED :=
# Note-2: missing conformity check between BR's .config and libc features.
# Use check_uclibc or check_glibc.
#--------------
# A few generic functions
# Munge a config file, given a sed expression
# $1: the .config file to munge
# $2: the sed expression to apply
define ctng-fix-dot-config
$(Q)sed -r -e '$(2)' $(1) >$(1).sed
$(Q)cmp $(1) $(1).sed >/dev/null 2>&1 && rm -f $(1).sed || mv -f $(1).sed $(1)
endef
# This function checks the .config did actually change
# If not changed, then current .config will be touched with reference to the
# stamp file. If the configuration did change, nothing is done.
# $1: the current .config to check
# $2: the time-stamped .config file
define ctng-check-config-changed
$(Q)old_md5="$$( grep -v -E '^(#|$$)' $(2) 2>/dev/null \
|md5sum \
|cut -d ' ' -f 1 \
)"; \
new_md5="$$( grep -v -E '^(#|$$)' $(1) 2>/dev/null \
|md5sum \
|cut -d ' ' -f 1 \
)"; \
if [ $${old_md5} = $${new_md5} -a -f $(2) ]; then \
touch -r $(2) $(1); \
fi
endef
#--------------
# Massage BR2_ARCH so that it matches CT-NG's ARCH
#
# Note: a lot of the following tricks would become unneeded if one day
# buildroot and crosstool-NG had matching options, especially for the
# target description: arch name, bitness, endianness...
#
# Note-2: missing conformity check between BR's .config and libc features.
# Use check_uclibc or check_glibc.
# Defaults:
CTNG_ARCH := $(CTNG_BR2_ARCH)
CTNG_ENDIAN :=
@@ -151,8 +195,6 @@ endif
# with BR2 config options.
# Known missing: arch variant & options, floating point (HW/SW), uClibc/eglibc config...
#
CTNG_FIX_DOT_CONFIG_SED :=
CTNG_FIX_DOT_CONFIG_SED += s:^(CT_INSTALL_DIR_RO)=y:\# \1 is not set:;
CTNG_FIX_DOT_CONFIG_SED += s:^(|\# )(CT_ARCH_[BL]E).*:\# \2 is not set:;
CTNG_FIX_DOT_CONFIG_SED += s:^\# (CT_ARCH_$(CTNG_ENDIAN)) is not set:\1=y:;
@@ -173,22 +215,70 @@ endif
#--------------
# And the specials for paths
CTNG_FIX_DOT_CONFIG_PATHS_SED :=
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_PREFIX_DIR)=.*:\1="$(TOOLCHAIN_DIR)":;
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_LOCAL_TARBALLS_DIR)=.*:\1="$(DL_DIR)":;
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_SYSROOT_DIR_PREFIX)=.*:\1="":;
#--------------
# uClibc specific options
ifeq ($(BR2_TOOLCHAIN_CTNG_uClibc),y)
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_LIBC_UCLIBC_CONFIG_FILE)=.*:\1="$(CTNG_UCLIBC_CONFIG_FILE)":;
# Handle the locales option
ifneq ($(call qstrip,$(BR2_ENABLE_LOCALE)),)
CTNG_FIX_DOT_CONFIG_SED += s:^\# (CT_LIBC_UCLIBC_LOCALES) is not set:\1=y\n\# CT_LIBC_UCLIBC_LOCALES_PREGEN_DATA is not set:;
CTNG_FIX_DOT_CONFIG_SED += s:^(CT_LIBC_UCLIBC_LOCALES_PREGEN_DATA)=.*:\# \1 is not set:;
else
CTNG_FIX_DOT_CONFIG_SED += s:^(CT_LIBC_UCLIBC_LOCALES)=.*:\# \1 is not set:;
endif
# Handle the wide-char option
ifneq ($(call qstrip,$(BR2_USE_WCHAR)),)
CTNG_FIX_DOT_CONFIG_SED += s:^\# (CT_LIBC_UCLIBC_WCHAR) is not set:\1=y:;
else
CTNG_FIX_DOT_CONFIG_SED += s:^(CT_LIBC_UCLIBC_WCHAR)=.*:\# \1 is not set:;
endif
# Handle the LFS option
ifneq ($(call qstrip,$(BR2_LARGEFILE)),)
CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^\# (UCLIBC_HAS_LFS) is not set:\1=y:;
else
CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^(UCLIBC_HAS_LFS)=.*:\# \1 is not set:;
endif
# Handle the IPv6 option
ifneq ($(call qstrip,$(BR2_INET_IPV6)),)
CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^\# (UCLIBC_HAS_IPV6) is not set:\1=y:;
else
CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^(UCLIBC_HAS_IPV6)=.*:\# \1 is not set:;
endif
# Handle the RPC option
ifneq ($(call qstrip,$(BR2_INET_RPC)),)
CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^\# (UCLIBC_HAS_RPC) is not set:\1=y\nUCLIBC_HAS_FULL_RPC=y\nUCLIBC_HAS_REENTRANT_RPC=y:;
CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^\# (UCLIBC_HAS_FULL_RPC) is not set:\1=y:;
CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^\# (UCLIBC_HAS_REENTRANT_RPC) is not set:\1=y:;
else
CTNG_FIX_DOT_CONFIG_LIBC_SED += s:^(UCLIBC_HAS_RPC)=.*:\# \1 is not set:;
endif
# Instruct CT-NG's .config where to find the uClibc's .config
CTNG_FIX_DOT_CONFIG_PATHS_SED += s:^(CT_LIBC_UCLIBC_CONFIG_FILE)=.*:\1="$(CTNG_DIR)/libc.config":;
# And add this to the toolchain build dependency
$(STAMP_DIR)/ct-ng-toolchain-built: $(CTNG_DIR)/libc.config
# And here is how we get this uClibc's .config
$(CTNG_DIR)/libc.config: $(CTNG_UCLIBC_CONFIG_FILE) $(CONFIG_DIR)/.config
-$(Q)cp -a $@ $@.timestamp
$(Q)cp -f $< $@
$(call ctng-fix-dot-config,$@,$(CTNG_FIX_DOT_CONFIG_LIBC_SED))
$(call ctng-check-config-changed,$@,$@.timestamp)
$(Q)rm -f $@.timestamp
endif # LIBC is uClibc
#--------------
# Small functions to shoe-horn the above into crosstool-NG's .config
# $1: the .config file to munge
# $2: the sed expression to apply
define ctng-fix-dot-config
$(Q)sed -r -e '$(2)' $(1) >$(1).sed
$(Q)cmp $(1) $(1).sed >/dev/null 2>&1 && rm -f $(1).sed || mv -f $(1).sed $(1)
endef
# Function to update the .config
# We first munge the .config to shoe-horn defaults, then we push that unto
@@ -207,32 +297,18 @@ define ctng-oldconfig
$(call ctng-fix-dot-config,$(1),$(CTNG_FIX_DOT_CONFIG_PATHS_SED))
endef
# This function checks the confguration of the toolchain did actually change
# If not changed, then current .config will be touched with reference to the
# stamp file. If the configuration did change, nothing is done.
# $1: the current .config to check
# $2: the time-stamped .config file
define ctng-check-config-changed
$(Q)old_md5="$$( grep -v -E '^(#|$$)' $(2) 2>/dev/null \
|md5sum \
|cut -d ' ' -f 1 \
)"; \
new_md5="$$( grep -v -E '^(#|$$)' $(1) 2>/dev/null \
|md5sum \
|cut -d ' ' -f 1 \
)"; \
if [ $${old_md5} = $${new_md5} -a -f $(2) ]; then \
touch -r $(2) $(1); \
fi
endef
# Default configuration
# Depends on top-level .config because it has options we have to shoe-horn
# into crosstool-NG's .config
# Only copy the original .config file if we don't have one already
# We need to call oldconfig twice in a row to ensure the options
# are correctly set ( eg. if an option is new, then the initial sed
# can't do anything about it ) Ideally, this should go in oldconfig
# itself, but it's much easier to handle here.
$(CTNG_DIR)/.config: $(CTNG_CONFIG_FILE) $(CTNG_DIR)/ct-ng $(CONFIG_DIR)/.config
$(Q)[ -f $@ ] && cp -a $@ $@.timestamp || cp -f $< $@
$(call ctng-oldconfig,$@)
$(call ctng-oldconfig,$@)
$(call ctng-check-config-changed,$@,$@.timestamp)
$(Q)rm -f $@.timestamp
@@ -267,8 +343,16 @@ $(CTNG_DIR)/.patched: $(CTNG_DIR)/.unpacked
\*.patch.$(ARCH)
$(Q)touch $@
# Use order-only dependencies on host-* as they
# are virtual targets with no rules, and so are
# considered always remade. But we do not want
# to reconfigure and rebuild ct-ng every time
# we need to run it...
$(CTNG_DIR)/.configured: | host-gawk \
host-automake
$(CTNG_DIR)/.configured: $(CTNG_DIR)/.patched
$(Q)cd $(CTNG_DIR) && ./configure --local
$(Q)cd $(CTNG_DIR) && PATH=$(HOST_PATH) ./configure --local
$(Q)touch $@
$(CTNG_DIR)/ct-ng: $(CTNG_DIR)/.configured

View File

@@ -183,6 +183,7 @@ UCLIBC_HAS_XLOCALE=y
UCLIBC_HAS_HEXADECIMAL_FLOATS=y
# UCLIBC_HAS_GLIBC_DIGIT_GROUPING is not set
UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y
# USE_OLD_VFPRINTF is not set
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
UCLIBC_HAS_SCANF_GLIBC_A_FLAG=y
# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set