Compare commits

...

31 Commits

Author SHA1 Message Date
Peter Korsgaard
ac1dfc84da Update for 2010.02
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-26 15:52:48 +01:00
Peter Korsgaard
88075cc4c6 Revert "busybox: add upstream 1.16 fix"
This reverts commit 1d7b6f65c6.

The fsync patch tries to add the same lines already added by
busybox-1.16.0-compat.patch, so skip it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-26 15:27:54 +01:00
Peter Korsgaard
b209f22798 CHANGES: add avahi/cramfs/libcgicc/libraw1394/squashfs
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-26 10:42:26 +01:00
Peter Korsgaard
51a5b44461 Merge branch 'misc-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot 2010-02-26 10:31:41 +01:00
Thomas Petazzoni
1d7b6f65c6 busybox: add upstream 1.16 fix
Fixes https://bugs.busybox.net/show_bug.cgi?id=1177, available at
http://busybox.net/downloads/fixes-1.16.0/busybox-1.16.0-fsync.patch.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-26 08:59:16 +01:00
Thomas Petazzoni
be8a104c3c squashfs: pass CFLAGS/LDFLAGS and add host-zlib dependency
Squashfs depends on host-zlib, so we add this as a dependency. As
host-zlib is installed in $(HOST_DIR), we must pass $(HOST_CFLAGS) and
$(HOST_LDFLAGS).

Unfortunately, if we pass CFLAGS=$(HOST_CFLAGS), we override the
CFLAGS defined in the Makefile, and the build fails. Therefore, we
borrow a patch from OpenEmbedded to fix this problem.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-26 08:52:22 +01:00
Thomas Petazzoni
c4ba3fdae5 cramfs: add CFLAGS/LDFLAGS and host-zlib dependency
cramfs depends on host-zlib, so it must be built prior to cramfs.

Moreover, we need to pass the HOST_CFLAGS and HOST_LDFLAGS variables,
otherwise it doesn't find zlib in $(HOST_DIR).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-26 08:52:22 +01:00
Thomas Petazzoni
c789fbddf4 libraw1394: fix tarball URL
The website of libraw1394 isn't anymore on http://www.linux1394.org.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-26 08:52:22 +01:00
Thomas Petazzoni
85e611804b libcgicc: fix build breakage and bump version
First, the build was failing with:

cd .. && /bin/sh /home/test/brbuild/build/cgicc-3.2.7/support/missing --run autoheader
/home/test/brbuild/build/cgicc-3.2.7/support/missing: line 52: autoheader: command not found
WARNING: `autoheader' is missing on your system.  You should only need it if
         you modified `acconfig.h' or `configure.ac'.  You might want
         to install the `Autoconf' and `GNU m4' packages.  Grab them
         from any GNU archive site.

That was because the PATH doesn't contain $(HOST_DIR)/usr/bin. So we
pass $(TARGET_MAKE_ENV) when calling make.

Then, the build was failing because of the crappy configure.ac and
doc/Makefile.am this project has. configure.ac checks if doxygen is
available, and if it isn't, it sets DOXYGEN to /bin/echo. Then,
doc/Makefile.am does:

        DATE=`date '+%-d %b %Y'` VERSION=$(VERSION) $(DOXYGEN) Doxyfile
        cp $(IMAGES) cgicc-doc.css html
        mv html/index.html html/index.html.bak

When DOXYGEN=/bin/echo, then the first line does not generate anything
in html/, and the third line fails.

Therefore, we add a patch that allows to pass a --disable-doc option,
which removes the check for Doxygen. If --enable-doc is passed, then
the configure script fails if Doxygen isn't found (but in the
Buildroot case, we always pass --disable-doc to avoid the doxygen
dependency).

We also take this opportunity to bump the version of libcgicc, and to
remove a patch that is no longer needed due to this version bump.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-26 08:52:21 +01:00
Gustavo Zacarias
0f40a46a54 Remove obsolete hostap package
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-25 20:18:25 +01:00
Will Wagner
a2e0614d91 xfont_font-util: fix call of post-install-sh
Signed-off-by: Will Wagner <will_wagner@carallon.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-25 20:07:24 +01:00
Peter Korsgaard
f561763e91 gmp/mpfr: make sure host builds add source targets to HOST_SOURCE
Closes #1183.

When gmp/mpfr is needed for the host (E.G. when using an internal toolchain),
the host-lib{gmp,mpfr}-source targets weren't added to HOST_SOURCE, so
make source / external-deps didn't handle them.

Notice that we have the same issue with the new host package support,
there we should probably use HOST_<package>_DEPENDENCIES for -source
dependencies.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-25 17:27:50 +01:00
Thomas Petazzoni
7ba5e38629 avahi: add dependency on host-intltool
Without intltool, configuration fails with:

checking for intltool >= 0.35.0... ./configure: line 28714: intltool-update: command not found
 found

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-25 14:56:39 +01:00
Peter Korsgaard
f389a9ce2f Merge branch 'gcc-target-fix' of git://git.busybox.net/~tpetazzoni/git/buildroot 2010-02-25 10:27:44 +01:00
Thomas Petazzoni
a35d48f984 gcc on target: add missing definitions for gcc 4.4
Depending on the gcc version, the gcc include and lib directories have
changed. We include support for gcc 4.4 by copy/pasting the support
for gcc 4.3. Locations don't seem to have changed between 4.3 and
4.4. This allows the syslimits.h fixup to succeed.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-25 09:47:01 +01:00
Thomas Petazzoni
39d38a08a1 xfont_font-util: install in staging as it used to be
Before the autotools conversion, xfont_font-util was installed in
staging, so keep this.

However, the current way of handling xfont_font-util is ugly. The
post-install.sh script removes the binaries compiled for the target
from the staging directory and replaces them by symbolic links to
utils installed on the host (making the incorrect assumption that they
are available).

It looks like xfont_font-util needs to be built for the host (using
the new infrastructure for host autotools package). This is certainly
post-2010.02 though.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-25 09:19:30 +01:00
Peter Korsgaard
ba50538cfa CHANGES: add ipsec-tools/libgtk2/madplay/netsnmp/pango/sylpheed/openmotif/xpdf
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-24 22:59:32 +01:00
Thomas Petazzoni
97b392b984 madplay: add patch to switch to the new ALSA API
madplay was failing to build with errors such as :

audio_alsa.o: In function `config':
audio_alsa.c:(.text+0x200): undefined reference to `snd_pcm_hw_params_set_rate_near@ALSA_0.9'
audio_alsa.c:(.text+0x25c): undefined reference to `snd_pcm_hw_params_set_buffer_time_near@ALSA_0.9'
audio_alsa.c:(.text+0x284): undefined reference to `snd_pcm_hw_params_get_buffer_size@ALSA_0.9'
audio_alsa.c:(.text+0x2a4): undefined reference to `snd_pcm_hw_params_set_period_time_near@ALSA_0.9'
audio_alsa.c:(.text+0x2d4): undefined reference to `snd_pcm_hw_params_get_period_size@ALSA_0.9'

The ALSA library uses symbol versioning by default, to handle ABI
changes. However, since uClibc doesn't seem to support symbol
versioning, we disable this when building the ALSA library by passing
--without-versioned.

However, madplay relies on the old ALSA ABI, so even without symbol
versioning, references to versioned symbols are generated (functions
with the same name, but different API, exist in the old and new API).

The easiest solution is to switch madplay to the new API. This is done
thanks to a patch written by Micha Nelissen <micha@neli.hopto.org> and
available at http://article.gmane.org/gmane.comp.audio.mad.devel/729.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-24 22:45:30 +01:00
Thomas Petazzoni
ae6a7222ea sylpheed: add dependency on libgtk2
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-24 22:45:29 +01:00
Thomas Petazzoni
9f19a96360 pango: re-enable thai module
This module got disabled when pango was upgraded to 1.19.3. But now,
the module builds fine. And even more: disabling it breaks the build
when modules are compiled statically into pango.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-24 22:45:29 +01:00
Thomas Petazzoni
71697ac6cc pango: remove gtk-doc patch
The gtk-doc.m4 file is now installed globally (see the automake
package), so there's no point in including a pango-specific patch.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-24 22:45:29 +01:00
Thomas Petazzoni
2edfc313c0 libgtk2: host version needs host-libpng
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-24 22:45:29 +01:00
Thomas Petazzoni
67d238bf0d xpdf: remove package
This package depends on openmotif, which has been removed.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-24 22:45:28 +01:00
Thomas Petazzoni
3bd6881717 openmotif: remove package
This is an old package. It is currently broken, and probably nobody
uses it. So let's get rid of it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-24 22:45:28 +01:00
Thomas Petazzoni
088a04041e ipsec-tools: add host-flex dependency
This fixes the following build failure:

checking lex output file root...
configure: error: cannot find output from flex; giving up

Caused by the fact that a host version of flex is missing
in $(HOST_DIR).

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-24 22:45:28 +01:00
Thomas Petazzoni
1ab9bb250c netsnmp: use the autoconf built by Buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-02-24 22:45:28 +01:00
H Hartley Sweeten
c9ad8be527 bump linux kernel versions
Bump all the linux kernel version to the latest available and add a
help note for all of them with the release data and status.

The long-term stable 2.6.27 kernel is really out of date (.27 -> .45).

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-24 21:46:35 +01:00
Peter Korsgaard
3c7e344c1b kernel-headers: bump 2.6.32.x version
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-24 20:22:25 +01:00
Peter Korsgaard
eb05757510 buildroot: we're in 2010 now
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-24 09:42:30 +01:00
Peter Korsgaard
a080cc0ff4 busybox: add 1.16.0 fixes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-24 09:13:43 +01:00
Francisco Gonzalez Morell
f4f157041e qt: fix the patch name for qt-4.5.3 version
Signed-off-by: Francisco Gonzalez Morell <gzmorell@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-02-24 00:40:20 +01:00
54 changed files with 2388 additions and 2064 deletions

16
CHANGES
View File

@@ -1,3 +1,19 @@
2010.02, Release February 26th, 2010:
Fixes all over the tree.
Updated/fixed packages: avahi, busybox, cramfs, ipsec-tools, libcgicc,
libgtk2, libraw1394, madplay, netsnmp, pango, squashfs, sylpheed, qt,
xfont_font-util
Removed packages: hostap, openmotif, xpdf
Issues resolved (http://bugs.uclibc.org):
#165: openmotif does not build
#1147: Remove obsolete hostap package
#1183: make source fails to download gmp, mpfr and patches
2010.02-rc2, Released February 23th, 2010:
Fixes all over the tree and new features.

View File

@@ -8,7 +8,7 @@ config BR2_HAVE_DOT_CONFIG
config BR2_VERSION
string
default "2010.02-rc2"
default "2010.02"
source "target/Config.in.arch"
source "target/device/Config.in"

View File

@@ -1,7 +1,7 @@
# Makefile for buildroot2
#
# Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org>
# Copyright (C) 2006-2009 by the Buildroot developers <buildroot@uclibc.org>
# Copyright (C) 2006-2010 by the Buildroot developers <buildroot@uclibc.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

View File

@@ -1,6 +1,6 @@
The code and graphics on this website (and it's mirror sites, if any) are
Copyright (c) 1999-2005 by Erik Andersen, 2006-2009 The Buildroot
Copyright (c) 1999-2005 by Erik Andersen, 2006-2010 The Buildroot
developers. All rights reserved.
Documents on this Web site including their graphical elements, design, and

View File

@@ -6,14 +6,14 @@
<p>
The latest stable release is <b>2009.11</b>, which can be downloaded
The latest stable release is <b>2010.02</b>, which can be downloaded
here:<p>
<a href="/downloads/buildroot-2009.11.tar.gz">buildroot-2009.11.tar.gz</a>
<a href="/downloads/buildroot-2010.02.tar.gz">buildroot-2010.02.tar.gz</a>
or
<a href="/downloads/buildroot-2009.11.tar.bz2">buildroot-2009.11.tar.bz2</a>.
<a href="/downloads/buildroot-2010.02.tar.bz2">buildroot-2010.02.tar.bz2</a>.
<p>
<!--
The latest release candidate is <b>2010.02-rc2</b>, which can be
downloaded here:<p>
@@ -21,7 +21,7 @@ downloaded here:<p>
or
<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
<a href="/downloads/">http://buildroot.net/downloads/</a>.

View File

@@ -9,7 +9,8 @@
<p>
<font face="arial, helvetica, sans-serif" size="-1">
<a HREF="/copyright.txt">Copyright &copy; 1999-2009 Erik Andersen</a>
<a HREF="/copyright.txt">Copyright &copy; 1999-2005 Erik Andersen,
2006-2010 The Buildroot developers</a>
<br>
Mail all comments, insults, suggestions and bribes to
<br>

View File

@@ -5,6 +5,15 @@
<p>
<ul>
<li><b>26 February 2010 -- 2010.02 released</b>
<p>The stable 2010.02 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.02">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.02.tar.bz2">2010.02
release</a>.</p>
<li><b>23 February 2010 -- 2010.02-rc2 released</b>
<p>RC2 is out with more cleanups and bugfixes, see the <a

View File

@@ -138,7 +138,6 @@ source "package/dnsmasq/Config.in"
source "package/dropbear/Config.in"
source "package/ethtool/Config.in"
source "package/haserl/Config.in"
source "package/hostap/Config.in"
source "package/hostapd/Config.in"
source "package/ifplugd/Config.in"
source "package/iperf/Config.in"
@@ -342,7 +341,6 @@ source "package/gtk2-engines/Config.in"
source "package/gtk2-themes/Config.in"
source "package/libsexy/Config.in"
source "package/fltk/Config.in"
source "package/openmotif/Config.in"
source "package/fontconfig/Config.in"
source "package/freetype/Config.in"
source "package/tslib/Config.in"
@@ -370,7 +368,6 @@ source "package/sylpheed/Config.in"
source "package/synergy/Config.in"
source "package/torsmo/Config.in"
source "package/x11vnc/Config.in"
source "package/xpdf/Config.in"
source "package/xstroke/Config.in"
source "package/xvkbd/Config.in"
endmenu

View File

@@ -82,7 +82,7 @@ AVAHI_CONF_OPT = --localstatedir=/var \
--with-autoipd-user=default \
--with-autoipd-group=default
AVAHI_DEPENDENCIES = $(if $(BR2_PACKAGE_GETTEXT),gettext)
AVAHI_DEPENDENCIES = $(if $(BR2_PACKAGE_GETTEXT),gettext) host-intltool
ifneq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_AVAHI_AUTOIPD),)
AVAHI_DEPENDENCIES += libdaemon

View File

@@ -0,0 +1,35 @@
diff -urpN busybox-1.16.0/shell/ash.c busybox-1.16.0-ash/shell/ash.c
--- busybox-1.16.0/shell/ash.c 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-ash/shell/ash.c 2010-02-21 01:52:22.000000000 +0100
@@ -4539,7 +4539,7 @@ forkchild(struct job *jp, union node *n,
if (mode == FORK_NOJOB /* is it `xxx` ? */
&& n && n->type == NCMD /* is it single cmd? */
/* && n->ncmd.args->type == NARG - always true? */
- && strcmp(n->ncmd.args->narg.text, "trap") == 0
+ && n->ncmd.args && strcmp(n->ncmd.args->narg.text, "trap") == 0
&& n->ncmd.args->narg.next == NULL /* "trap" with no arguments */
/* && n->ncmd.args->narg.backquote == NULL - do we need to check this? */
) {
@@ -4627,7 +4627,7 @@ forkchild(struct job *jp, union node *n,
}
#if JOBS
if (n && n->type == NCMD
- && strcmp(n->ncmd.args->narg.text, "jobs") == 0
+ && n->ncmd.args && strcmp(n->ncmd.args->narg.text, "jobs") == 0
) {
TRACE(("Job hack\n"));
/* "jobs": we do not want to clear job list for it,
diff -urpN busybox-1.16.0/shell/ash_test/ash-misc/nulltick1.right busybox-1.16.0-ash/shell/ash_test/ash-misc/nulltick1.right
--- busybox-1.16.0/shell/ash_test/ash-misc/nulltick1.right 1970-01-01 01:00:00.000000000 +0100
+++ busybox-1.16.0-ash/shell/ash_test/ash-misc/nulltick1.right 2010-02-21 01:52:22.000000000 +0100
@@ -0,0 +1,3 @@
+Test 1
+Test 2
+Done
diff -urpN busybox-1.16.0/shell/ash_test/ash-misc/nulltick1.tests busybox-1.16.0-ash/shell/ash_test/ash-misc/nulltick1.tests
--- busybox-1.16.0/shell/ash_test/ash-misc/nulltick1.tests 1970-01-01 01:00:00.000000000 +0100
+++ busybox-1.16.0-ash/shell/ash_test/ash-misc/nulltick1.tests 2010-02-21 01:52:22.000000000 +0100
@@ -0,0 +1,3 @@
+echo Test ` ` 1
+echo Test `</dev/null` 2
+echo Done

View File

@@ -0,0 +1,317 @@
diff -urpN busybox-1.16.0/coreutils/fsync.c busybox-1.16.0-compat/coreutils/fsync.c
--- busybox-1.16.0/coreutils/fsync.c 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-compat/coreutils/fsync.c 2010-02-21 01:54:07.000000000 +0100
@@ -7,6 +7,9 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
#include "libbb.h"
+#ifndef O_NOATIME
+# define O_NOATIME 0
+#endif
/* This is a NOFORK applet. Be very careful! */
diff -urpN busybox-1.16.0/editors/diff.c busybox-1.16.0-compat/editors/diff.c
--- busybox-1.16.0/editors/diff.c 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-compat/editors/diff.c 2010-02-21 01:54:07.000000000 +0100
@@ -227,10 +227,12 @@ struct cand {
static int search(const int *c, int k, int y, const struct cand *list)
{
+ int i, j;
+
if (list[c[k]].y < y) /* quick look for typical case */
return k + 1;
- for (int i = 0, j = k + 1;;) {
+ for (i = 0, j = k + 1;;) {
const int l = (i + j) >> 1;
if (l > i) {
const int t = list[c[l]].y;
@@ -265,11 +267,13 @@ static void stone(const int *a, int n, c
int clistlen = 100;
int k = 0;
struct cand *clist = xzalloc(clistlen * sizeof(clist[0]));
+ struct cand cand;
+ struct cand *q;
int *klist = xzalloc((n + 2) * sizeof(klist[0]));
/*clist[0] = (struct cand){0}; - xzalloc did it */
/*klist[0] = 0; */
- for (struct cand cand = {1}; cand.x <= n; cand.x++) {
+ for (cand.x = 1; cand.x <= n; cand.x++) {
int j = a[cand.x], oldl = 0;
unsigned numtries = 0;
if (j == 0)
@@ -303,7 +307,7 @@ static void stone(const int *a, int n, c
} while ((cand.y = b[++j]) > 0 && numtries < bound);
}
/* Unravel */
- for (struct cand *q = clist + klist[k]; q->y; q = clist + q->pred)
+ for (q = clist + klist[k]; q->y; q = clist + q->pred)
J[q->x + pref] = q->y + pref;
free(klist);
free(clist);
@@ -348,10 +352,11 @@ static void equiv(struct line *a, int n,
static void unsort(const struct line *f, int l, int *b)
{
+ int i;
int *a = xmalloc((l + 1) * sizeof(a[0]));
- for (int i = 1; i <= l; i++)
+ for (i = 1; i <= l; i++)
a[f[i].serial] = f[i].value;
- for (int i = 1; i <= l; i++)
+ for (i = 1; i <= l; i++)
b[i] = a[i];
free(a);
}
@@ -370,12 +375,13 @@ static int line_compar(const void *a, co
static void fetch(FILE_and_pos_t *ft, const off_t *ix, int a, int b, int ch)
{
- for (int i = a; i <= b; i++) {
+ int i, j, col;
+ for (i = a; i <= b; i++) {
seek_ft(ft, ix[i - 1]);
putchar(ch);
if (option_mask32 & FLAG(T))
putchar('\t');
- for (int j = 0, col = 0; j < ix[i] - ix[i - 1]; j++) {
+ for (j = 0, col = 0; j < ix[i] - ix[i - 1]; j++) {
int c = fgetc(ft->ft_fp);
if (c == EOF) {
printf("\n\\ No newline at end of file\n");
@@ -410,19 +416,20 @@ static NOINLINE int *create_J(FILE_and_p
{
int *J, slen[2], *class, *member;
struct line *nfile[2], *sfile[2];
- int pref = 0, suff = 0;
+ int pref = 0, suff = 0, i, j, delta;
/* Lines of both files are hashed, and in the process
* their offsets are stored in the array ix[fileno]
* where fileno == 0 points to the old file, and
* fileno == 1 points to the new one.
*/
- for (int i = 0; i < 2; i++) {
+ for (i = 0; i < 2; i++) {
unsigned hash;
token_t tok;
size_t sz = 100;
nfile[i] = xmalloc((sz + 3) * sizeof(nfile[i][0]));
/* ft gets here without the correct position, cant use seek_ft */
+ ft[i].ft_pos = 0;
fseeko(ft[i].ft_fp, 0, SEEK_SET);
nlen[i] = 0;
@@ -460,11 +467,11 @@ start:
nlen[i]--;
/* Now we copy the line offsets into ix */
ix[i] = xmalloc((nlen[i] + 2) * sizeof(ix[i][0]));
- for (int j = 0; j < nlen[i] + 1; j++)
+ for (j = 0; j < nlen[i] + 1; j++)
ix[i][j] = nfile[i][j].offset;
}
- /* lenght of prefix and suffix is calculated */
+ /* length of prefix and suffix is calculated */
for (; pref < nlen[0] && pref < nlen[1] &&
nfile[0][pref + 1].value == nfile[1][pref + 1].value;
pref++);
@@ -475,10 +482,10 @@ start:
* the result being sorted and stored in sfile[fileno],
* and their sizes are stored in slen[fileno]
*/
- for (int j = 0; j < 2; j++) {
+ for (j = 0; j < 2; j++) {
sfile[j] = nfile[j] + pref;
slen[j] = nlen[j] - pref - suff;
- for (int i = 0; i <= slen[j]; i++)
+ for (i = 0; i <= slen[j]; i++)
sfile[j][i].serial = i;
qsort(sfile[j] + 1, slen[j], sizeof(*sfile[j]), line_compar);
}
@@ -494,7 +501,7 @@ start:
free(nfile[1]);
class = xmalloc((slen[0] + 1) * sizeof(class[0]));
- for (int i = 1; i <= slen[0]; i++) /* Unsorting */
+ for (i = 1; i <= slen[0]; i++) /* Unsorting */
class[sfile[0][i].serial] = sfile[0][i].value;
free(nfile[0]);
#else
@@ -512,7 +519,7 @@ start:
* are initialized with 0 (no matches), so that function stone can
* then assign them their right values
*/
- for (int i = 0, delta = nlen[1] - nlen[0]; i <= nlen[0]; i++)
+ for (i = 0, delta = nlen[1] - nlen[0]; i <= nlen[0]; i++)
J[i] = i <= pref ? i :
i > (nlen[0] - suff) ? (i + delta) : 0;
/* Here the magic is performed */
@@ -526,14 +533,14 @@ start:
* which, due to limitations intrinsic to any hashing algorithm,
* are different but ended up confounded as the same
*/
- for (int i = 1; i <= nlen[0]; i++) {
+ for (i = 1; i <= nlen[0]; i++) {
if (!J[i])
continue;
seek_ft(&ft[0], ix[0][i - 1]);
seek_ft(&ft[1], ix[1][J[i] - 1]);
- for (int j = J[i]; i <= nlen[0] && J[i] == j; i++, j++) {
+ for (j = J[i]; i <= nlen[0] && J[i] == j; i++, j++) {
token_t tok0 = 0, tok1 = 0;
do {
tok0 = read_token(&ft[0], tok0);
@@ -555,13 +562,18 @@ static bool diff(FILE* fp[2], char *file
{
int nlen[2];
off_t *ix[2];
- FILE_and_pos_t ft[2] = { { fp[0] }, { fp[1] } };
- int *J = create_J(ft, nlen, ix);
-
- bool anychange = false;
+ FILE_and_pos_t ft[2];
typedef struct { int a, b; } vec_t[2];
vec_t *vec = NULL;
- int i = 1, idx = -1;
+ int i = 1, j, k, idx = -1;
+ bool anychange = false;
+ int *J;
+
+ ft[0].ft_fp = fp[0];
+ ft[1].ft_fp = fp[1];
+ /* note that ft[i].ft_pos is unintitalized, create_J()
+ * must not assume otherwise */
+ J = create_J(ft, nlen, ix);
do {
bool nonempty = false;
@@ -596,8 +608,8 @@ static bool diff(FILE* fp[2], char *file
break;
}
- for (int j = 0; j < 2; j++)
- for (int k = v[j].a; k < v[j].b; k++)
+ for (j = 0; j < 2; j++)
+ for (k = v[j].a; k < v[j].b; k++)
nonempty |= (ix[j][k+1] - ix[j][k] != 1);
vec = xrealloc_vector(vec, 6, ++idx);
@@ -612,6 +624,7 @@ static bool diff(FILE* fp[2], char *file
if (idx < 0 || ((option_mask32 & FLAG(B)) && !nonempty))
goto cont;
if (!(option_mask32 & FLAG(q))) {
+ int lowa;
vec_t span, *cvp = vec;
if (!anychange) {
@@ -621,7 +634,7 @@ static bool diff(FILE* fp[2], char *file
}
printf("@@");
- for (int j = 0; j < 2; j++) {
+ for (j = 0; j < 2; j++) {
int a = span[j].a = MAX(1, (*cvp)[j].a - opt_U_context);
int b = span[j].b = MIN(nlen[j], vec[idx][j].b + opt_U_context);
@@ -635,12 +648,12 @@ static bool diff(FILE* fp[2], char *file
* Output changes in "unified" diff format--the old and new lines
* are printed together.
*/
- for (int lowa = span[0].a; ; lowa = (*cvp++)[0].b + 1) {
+ for (lowa = span[0].a; ; lowa = (*cvp++)[0].b + 1) {
bool end = cvp > &vec[idx];
fetch(&ft[0], ix[0], lowa, end ? span[0].b : (*cvp)[0].a - 1, ' ');
if (end)
break;
- for (int j = 0; j < 2; j++)
+ for (j = 0; j < 2; j++)
fetch(&ft[j], ix[j], (*cvp)[j].a, (*cvp)[j].b, j ? '+' : '-');
}
}
@@ -660,9 +673,9 @@ static int diffreg(char *file[2])
{
FILE *fp[2] = { stdin, stdin };
bool binary = false, differ = false;
- int status = STATUS_SAME;
+ int status = STATUS_SAME, i;
- for (int i = 0; i < 2; i++) {
+ for (i = 0; i < 2; i++) {
int fd = open_or_warn_stdin(file[i]);
if (fd == -1)
goto out;
@@ -688,7 +701,7 @@ static int diffreg(char *file[2])
const size_t sz = COMMON_BUFSIZE / 2;
char *const buf0 = bb_common_bufsiz1;
char *const buf1 = buf0 + sz;
- int i, j;
+ int j, k;
i = fread(buf0, 1, sz, fp[0]);
j = fread(buf1, 1, sz, fp[1]);
if (i != j) {
@@ -697,7 +710,7 @@ static int diffreg(char *file[2])
}
if (i == 0)
break;
- for (int k = 0; k < i; k++) {
+ for (k = 0; k < i; k++) {
if (!buf0[k] || !buf1[k])
binary = true;
if (buf0[k] != buf1[k])
@@ -771,9 +784,10 @@ static int FAST_FUNC skip_dir(const char
static void diffdir(char *p[2], const char *s_start)
{
struct dlist list[2];
+ int i;
memset(&list, 0, sizeof(list));
- for (int i = 0; i < 2; i++) {
+ for (i = 0; i < 2; i++) {
/*list[i].s = list[i].e = 0; - memset did it */
/*list[i].dl = NULL; */
@@ -815,7 +829,7 @@ static void diffdir(char *p[2], const ch
else {
char *fullpath[2], *path[2]; /* if -N */
- for (int i = 0; i < 2; i++) {
+ for (i = 0; i < 2; i++) {
if (pos == 0 || i == k) {
path[i] = fullpath[i] = concat_path_file(p[i], dp[i]);
stat(fullpath[i], &stb[i]);
@@ -883,7 +897,7 @@ static const char diff_longopts[] ALIGN1
int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
int diff_main(int argc UNUSED_PARAM, char **argv)
{
- int gotstdin = 0;
+ int gotstdin = 0, i;
char *file[2], *s_start = NULL;
llist_t *L_arg = NULL;
@@ -900,7 +914,7 @@ int diff_main(int argc UNUSED_PARAM, cha
while (L_arg)
label[!!label[0]] = llist_pop(&L_arg);
xfunc_error_retval = 2;
- for (int i = 0; i < 2; i++) {
+ for (i = 0; i < 2; i++) {
file[i] = argv[i];
/* Compat: "diff file name_which_doesnt_exist" exits with 2 */
if (LONE_DASH(file[i])) {
diff -urpN busybox-1.16.0/miscutils/fbsplash.c busybox-1.16.0-compat/miscutils/fbsplash.c
--- busybox-1.16.0/miscutils/fbsplash.c 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-compat/miscutils/fbsplash.c 2010-02-21 01:54:07.000000000 +0100
@@ -301,7 +301,7 @@ static void fb_drawimage(void)
*/
static void init(const char *cfg_filename)
{
- static const char const param_names[] ALIGN1 =
+ static const char param_names[] ALIGN1 =
"BAR_WIDTH\0" "BAR_HEIGHT\0"
"BAR_LEFT\0" "BAR_TOP\0"
"BAR_R\0" "BAR_G\0" "BAR_B\0"

View File

@@ -0,0 +1,438 @@
diff -urpN busybox-1.16.0/scripts/defconfig busybox-1.16.0-defconfig/scripts/defconfig
--- busybox-1.16.0/scripts/defconfig 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-defconfig/scripts/defconfig 2010-02-21 01:53:15.000000000 +0100
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
-# Busybox version: 1.15.0.svn
-# Fri Aug 21 00:14:11 2009
+# Busybox version: 1.16.0
+# Wed Jan 27 20:00:00 2010
#
CONFIG_HAVE_DOT_CONFIG=y
@@ -14,6 +14,8 @@ CONFIG_HAVE_DOT_CONFIG=y
#
# CONFIG_DESKTOP is not set
# CONFIG_EXTRA_COMPAT is not set
+CONFIG_INCLUDE_SUSv2=y
+# CONFIG_USE_PORTABLE_CODE is not set
CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set
# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set
@@ -22,7 +24,7 @@ CONFIG_FEATURE_VERBOSE_USAGE=y
CONFIG_FEATURE_COMPRESS_USAGE=y
CONFIG_FEATURE_INSTALLER=y
CONFIG_LOCALE_SUPPORT=y
-# CONFIG_FEATURE_ASSUME_UNICODE is not set
+CONFIG_FEATURE_ASSUME_UNICODE=y
# CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set
CONFIG_LONG_OPTS=y
CONFIG_FEATURE_DEVPTS=y
@@ -59,7 +61,6 @@ CONFIG_EXTRA_CFLAGS=""
CONFIG_NO_DEBUG_LIB=y
# CONFIG_DMALLOC is not set
# CONFIG_EFENCE is not set
-CONFIG_INCLUDE_SUSv2=y
#
# Installation Options
@@ -120,10 +121,11 @@ CONFIG_FEATURE_CPIO_P=y
# CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set
CONFIG_GUNZIP=y
CONFIG_GZIP=y
+CONFIG_FEATURE_GZIP_LONG_OPTIONS=y
CONFIG_LZOP=y
# CONFIG_LZOP_COMPR_HIGH is not set
-# CONFIG_RPM2CPIO is not set
-# CONFIG_RPM is not set
+CONFIG_RPM2CPIO=y
+CONFIG_RPM=y
CONFIG_TAR=y
CONFIG_FEATURE_TAR_CREATE=y
CONFIG_FEATURE_TAR_AUTODETECT=y
@@ -133,6 +135,7 @@ CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=
CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
CONFIG_FEATURE_TAR_LONG_OPTIONS=y
CONFIG_FEATURE_TAR_UNAME_GNAME=y
+CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y
CONFIG_UNCOMPRESS=y
CONFIG_UNLZMA=y
CONFIG_FEATURE_LZMA_FAST=y
@@ -148,15 +151,19 @@ CONFIG_CATV=y
CONFIG_CHGRP=y
CONFIG_CHMOD=y
CONFIG_CHOWN=y
+CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y
CONFIG_CHROOT=y
CONFIG_CKSUM=y
CONFIG_COMM=y
CONFIG_CP=y
+CONFIG_FEATURE_CP_LONG_OPTIONS=y
CONFIG_CUT=y
CONFIG_DATE=y
CONFIG_FEATURE_DATE_ISOFMT=y
+CONFIG_FEATURE_DATE_COMPAT=y
CONFIG_DD=y
CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
+CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y
CONFIG_FEATURE_DD_IBS_OBS=y
CONFIG_DF=y
CONFIG_FEATURE_DF_FANCY=y
@@ -271,7 +278,7 @@ CONFIG_FEATURE_AUTOWIDTH=y
CONFIG_FEATURE_HUMAN_READABLE=y
#
-# Common options for md5sum, sha1sum
+# Common options for md5sum, sha1sum, sha256sum, sha512sum
#
CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y
@@ -318,9 +325,8 @@ CONFIG_AWK=y
CONFIG_FEATURE_AWK_LIBM=y
CONFIG_CMP=y
CONFIG_DIFF=y
-CONFIG_FEATURE_DIFF_BINARY=y
+CONFIG_FEATURE_DIFF_LONG_OPTIONS=y
CONFIG_FEATURE_DIFF_DIR=y
-CONFIG_FEATURE_DIFF_MINIMAL=y
CONFIG_ED=y
CONFIG_PATCH=y
CONFIG_SED=y
@@ -364,6 +370,7 @@ CONFIG_FEATURE_FIND_DELETE=y
CONFIG_FEATURE_FIND_PATH=y
CONFIG_FEATURE_FIND_REGEX=y
# CONFIG_FEATURE_FIND_CONTEXT is not set
+CONFIG_FEATURE_FIND_LINKS=y
CONFIG_GREP=y
CONFIG_FEATURE_GREP_EGREP_ALIAS=y
CONFIG_FEATURE_GREP_FGREP_ALIAS=y
@@ -453,6 +460,7 @@ CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALRE
# Options common to multiple modutils
#
# CONFIG_FEATURE_2_4_MODULES is not set
+# CONFIG_FEATURE_INSMOD_TRY_MMAP is not set
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
@@ -467,8 +475,8 @@ CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
#
# Linux System Utilities
#
-# CONFIG_ACPID is not set
-# CONFIG_FEATURE_ACPID_COMPAT is not set
+CONFIG_ACPID=y
+CONFIG_FEATURE_ACPID_COMPAT=y
CONFIG_BLKID=y
CONFIG_DMESG=y
CONFIG_FEATURE_DMESG_PRETTY=y
@@ -488,12 +496,14 @@ CONFIG_FEATURE_FDISK_ADVANCED=y
CONFIG_FINDFS=y
CONFIG_FREERAMDISK=y
CONFIG_FSCK_MINIX=y
+CONFIG_MKFS_EXT2=y
CONFIG_MKFS_MINIX=y
#
# Minix filesystem support
#
CONFIG_FEATURE_MINIX2=y
+# CONFIG_MKFS_REISER is not set
CONFIG_MKFS_VFAT=y
CONFIG_GETOPT=y
CONFIG_FEATURE_GETOPT_LONG=y
@@ -506,6 +516,8 @@ CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y
CONFIG_IPCRM=y
CONFIG_IPCS=y
CONFIG_LOSETUP=y
+CONFIG_LSPCI=y
+CONFIG_LSUSB=y
CONFIG_MDEV=y
CONFIG_FEATURE_MDEV_CONF=y
CONFIG_FEATURE_MDEV_RENAME=y
@@ -518,6 +530,7 @@ CONFIG_MORE=y
CONFIG_FEATURE_USE_TERMIOS=y
CONFIG_VOLUMEID=y
CONFIG_FEATURE_VOLUMEID_EXT=y
+CONFIG_FEATURE_VOLUMEID_BTRFS=y
CONFIG_FEATURE_VOLUMEID_REISERFS=y
CONFIG_FEATURE_VOLUMEID_FAT=y
CONFIG_FEATURE_VOLUMEID_HFS=y
@@ -595,11 +608,12 @@ CONFIG_DEVMEM=y
CONFIG_EJECT=y
CONFIG_FEATURE_EJECT_SCSI=y
CONFIG_FBSPLASH=y
-# CONFIG_FLASH_LOCK is not set
-# CONFIG_FLASH_UNLOCK is not set
-# CONFIG_FLASH_ERASEALL is not set
+CONFIG_FLASHCP=y
+CONFIG_FLASH_LOCK=y
+CONFIG_FLASH_UNLOCK=y
+CONFIG_FLASH_ERASEALL=y
CONFIG_IONICE=y
-# CONFIG_INOTIFYD is not set
+CONFIG_INOTIFYD=y
CONFIG_LAST=y
# CONFIG_FEATURE_LAST_SMALL is not set
CONFIG_FEATURE_LAST_FANCY=y
@@ -632,8 +646,8 @@ CONFIG_RUNLEVEL=y
CONFIG_RX=y
CONFIG_SETSID=y
CONFIG_STRINGS=y
-# CONFIG_TASKSET is not set
-# CONFIG_FEATURE_TASKSET_FANCY is not set
+CONFIG_TASKSET=y
+CONFIG_FEATURE_TASKSET_FANCY=y
CONFIG_TIME=y
CONFIG_TIMEOUT=y
CONFIG_TTYSIZE=y
@@ -658,6 +672,7 @@ CONFIG_ETHER_WAKE=y
CONFIG_FAKEIDENTD=y
CONFIG_FTPD=y
CONFIG_FEATURE_FTP_WRITE=y
+CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y
CONFIG_FTPGET=y
CONFIG_FTPPUT=y
CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y
@@ -723,6 +738,8 @@ CONFIG_NETSTAT=y
CONFIG_FEATURE_NETSTAT_WIDE=y
CONFIG_FEATURE_NETSTAT_PRG=y
CONFIG_NSLOOKUP=y
+CONFIG_NTPD=y
+CONFIG_FEATURE_NTPD_SERVER=y
CONFIG_PING=y
CONFIG_PING6=y
CONFIG_FEATURE_FANCY_PING=y
@@ -734,13 +751,16 @@ CONFIG_FEATURE_TELNET_TTYPE=y
CONFIG_FEATURE_TELNET_AUTOLOGIN=y
CONFIG_TELNETD=y
CONFIG_FEATURE_TELNETD_STANDALONE=y
+CONFIG_FEATURE_TELNETD_INETD_WAIT=y
CONFIG_TFTP=y
CONFIG_TFTPD=y
CONFIG_FEATURE_TFTP_GET=y
CONFIG_FEATURE_TFTP_PUT=y
CONFIG_FEATURE_TFTP_BLOCKSIZE=y
+CONFIG_FEATURE_TFTP_PROGRESS_BAR=y
# CONFIG_TFTP_DEBUG is not set
CONFIG_TRACEROUTE=y
+CONFIG_TRACEROUTE6=y
CONFIG_FEATURE_TRACEROUTE_VERBOSE=y
# CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set
# CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set
@@ -814,6 +834,7 @@ CONFIG_FEATURE_TOP_SMP_CPU=y
CONFIG_FEATURE_TOP_DECIMALS=y
CONFIG_FEATURE_TOP_SMP_PROCESS=y
CONFIG_FEATURE_TOPMEM=y
+CONFIG_FEATURE_SHOW_THREADS=y
CONFIG_UPTIME=y
CONFIG_WATCH=y
@@ -878,6 +899,7 @@ CONFIG_HUSH_CASE=y
CONFIG_HUSH_FUNCTIONS=y
CONFIG_HUSH_LOCAL=y
CONFIG_HUSH_EXPORT_N=y
+CONFIG_HUSH_RANDOM_SUPPORT=y
# CONFIG_LASH is not set
CONFIG_MSH=y
CONFIG_SH_MATH_SUPPORT=y
diff -urpN busybox-1.16.0/TODO_config_nommu busybox-1.16.0-defconfig/TODO_config_nommu
--- busybox-1.16.0/TODO_config_nommu 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-defconfig/TODO_config_nommu 2010-02-21 01:53:15.000000000 +0100
@@ -1,7 +1,7 @@
#
# Automatically generated make config: don't edit
-# Busybox version: 1.15.0.svn
-# Fri Aug 21 00:13:18 2009
+# Busybox version: 1.16.0
+# Wed Jan 27 21:01:26 2010
#
CONFIG_HAVE_DOT_CONFIG=y
@@ -14,6 +14,8 @@ CONFIG_HAVE_DOT_CONFIG=y
#
CONFIG_DESKTOP=y
CONFIG_EXTRA_COMPAT=y
+CONFIG_INCLUDE_SUSv2=y
+# CONFIG_USE_PORTABLE_CODE is not set
CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
# CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set
# CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set
@@ -59,7 +61,6 @@ CONFIG_EXTRA_CFLAGS=""
CONFIG_NO_DEBUG_LIB=y
# CONFIG_DMALLOC is not set
# CONFIG_EFENCE is not set
-CONFIG_INCLUDE_SUSv2=y
#
# Installation Options
@@ -120,6 +121,7 @@ CONFIG_DPKG_DEB=y
CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY=y
CONFIG_GUNZIP=y
CONFIG_GZIP=y
+CONFIG_FEATURE_GZIP_LONG_OPTIONS=y
CONFIG_LZOP=y
CONFIG_LZOP_COMPR_HIGH=y
CONFIG_RPM2CPIO=y
@@ -133,6 +135,7 @@ CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=
CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
CONFIG_FEATURE_TAR_LONG_OPTIONS=y
CONFIG_FEATURE_TAR_UNAME_GNAME=y
+CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y
CONFIG_UNCOMPRESS=y
CONFIG_UNLZMA=y
CONFIG_FEATURE_LZMA_FAST=y
@@ -148,15 +151,19 @@ CONFIG_CATV=y
CONFIG_CHGRP=y
CONFIG_CHMOD=y
CONFIG_CHOWN=y
+CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y
CONFIG_CHROOT=y
CONFIG_CKSUM=y
CONFIG_COMM=y
CONFIG_CP=y
+CONFIG_FEATURE_CP_LONG_OPTIONS=y
CONFIG_CUT=y
CONFIG_DATE=y
CONFIG_FEATURE_DATE_ISOFMT=y
+CONFIG_FEATURE_DATE_COMPAT=y
CONFIG_DD=y
CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
+CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y
CONFIG_FEATURE_DD_IBS_OBS=y
CONFIG_DF=y
CONFIG_FEATURE_DF_FANCY=y
@@ -271,7 +278,7 @@ CONFIG_FEATURE_AUTOWIDTH=y
CONFIG_FEATURE_HUMAN_READABLE=y
#
-# Common options for md5sum, sha1sum
+# Common options for md5sum, sha1sum, sha256sum, sha512sum
#
CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y
@@ -318,9 +325,8 @@ CONFIG_AWK=y
CONFIG_FEATURE_AWK_LIBM=y
CONFIG_CMP=y
CONFIG_DIFF=y
-CONFIG_FEATURE_DIFF_BINARY=y
+CONFIG_FEATURE_DIFF_LONG_OPTIONS=y
CONFIG_FEATURE_DIFF_DIR=y
-CONFIG_FEATURE_DIFF_MINIMAL=y
CONFIG_ED=y
CONFIG_PATCH=y
CONFIG_SED=y
@@ -364,6 +370,7 @@ CONFIG_FEATURE_FIND_DELETE=y
CONFIG_FEATURE_FIND_PATH=y
CONFIG_FEATURE_FIND_REGEX=y
CONFIG_FEATURE_FIND_CONTEXT=y
+CONFIG_FEATURE_FIND_LINKS=y
CONFIG_GREP=y
CONFIG_FEATURE_GREP_EGREP_ALIAS=y
CONFIG_FEATURE_GREP_FGREP_ALIAS=y
@@ -453,6 +460,7 @@ CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALRE
# Options common to multiple modutils
#
# CONFIG_FEATURE_2_4_MODULES is not set
+CONFIG_FEATURE_INSMOD_TRY_MMAP=y
# CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set
# CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set
# CONFIG_FEATURE_INSMOD_LOADINKMEM is not set
@@ -488,12 +496,14 @@ CONFIG_FEATURE_FDISK_ADVANCED=y
CONFIG_FINDFS=y
CONFIG_FREERAMDISK=y
CONFIG_FSCK_MINIX=y
+CONFIG_MKFS_EXT2=y
CONFIG_MKFS_MINIX=y
#
# Minix filesystem support
#
CONFIG_FEATURE_MINIX2=y
+CONFIG_MKFS_REISER=y
CONFIG_MKFS_VFAT=y
CONFIG_GETOPT=y
CONFIG_FEATURE_GETOPT_LONG=y
@@ -506,6 +516,8 @@ CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y
CONFIG_IPCRM=y
CONFIG_IPCS=y
CONFIG_LOSETUP=y
+CONFIG_LSPCI=y
+CONFIG_LSUSB=y
CONFIG_MDEV=y
CONFIG_FEATURE_MDEV_CONF=y
CONFIG_FEATURE_MDEV_RENAME=y
@@ -518,6 +530,7 @@ CONFIG_MORE=y
CONFIG_FEATURE_USE_TERMIOS=y
CONFIG_VOLUMEID=y
CONFIG_FEATURE_VOLUMEID_EXT=y
+CONFIG_FEATURE_VOLUMEID_BTRFS=y
CONFIG_FEATURE_VOLUMEID_REISERFS=y
CONFIG_FEATURE_VOLUMEID_FAT=y
CONFIG_FEATURE_VOLUMEID_HFS=y
@@ -595,6 +608,7 @@ CONFIG_DEVMEM=y
CONFIG_EJECT=y
CONFIG_FEATURE_EJECT_SCSI=y
CONFIG_FBSPLASH=y
+CONFIG_FLASHCP=y
# CONFIG_FLASH_LOCK is not set
# CONFIG_FLASH_UNLOCK is not set
# CONFIG_FLASH_ERASEALL is not set
@@ -638,6 +652,7 @@ CONFIG_TIME=y
CONFIG_TIMEOUT=y
CONFIG_TTYSIZE=y
CONFIG_VOLNAME=y
+CONFIG_WALL=y
CONFIG_WATCHDOG=y
#
@@ -657,6 +672,7 @@ CONFIG_ETHER_WAKE=y
CONFIG_FAKEIDENTD=y
CONFIG_FTPD=y
CONFIG_FEATURE_FTP_WRITE=y
+CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y
CONFIG_FTPGET=y
CONFIG_FTPPUT=y
CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y
@@ -722,6 +738,8 @@ CONFIG_NETSTAT=y
CONFIG_FEATURE_NETSTAT_WIDE=y
CONFIG_FEATURE_NETSTAT_PRG=y
CONFIG_NSLOOKUP=y
+CONFIG_NTPD=y
+CONFIG_FEATURE_NTPD_SERVER=y
CONFIG_PING=y
CONFIG_PING6=y
CONFIG_FEATURE_FANCY_PING=y
@@ -733,13 +751,16 @@ CONFIG_FEATURE_TELNET_TTYPE=y
CONFIG_FEATURE_TELNET_AUTOLOGIN=y
CONFIG_TELNETD=y
CONFIG_FEATURE_TELNETD_STANDALONE=y
+CONFIG_FEATURE_TELNETD_INETD_WAIT=y
CONFIG_TFTP=y
CONFIG_TFTPD=y
CONFIG_FEATURE_TFTP_GET=y
CONFIG_FEATURE_TFTP_PUT=y
CONFIG_FEATURE_TFTP_BLOCKSIZE=y
+CONFIG_FEATURE_TFTP_PROGRESS_BAR=y
CONFIG_TFTP_DEBUG=y
CONFIG_TRACEROUTE=y
+CONFIG_TRACEROUTE6=y
CONFIG_FEATURE_TRACEROUTE_VERBOSE=y
CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE=y
CONFIG_FEATURE_TRACEROUTE_USE_ICMP=y
@@ -813,6 +834,7 @@ CONFIG_FEATURE_TOP_SMP_CPU=y
CONFIG_FEATURE_TOP_DECIMALS=y
CONFIG_FEATURE_TOP_SMP_PROCESS=y
CONFIG_FEATURE_TOPMEM=y
+CONFIG_FEATURE_SHOW_THREADS=y
CONFIG_UPTIME=y
CONFIG_WATCH=y
@@ -881,6 +903,7 @@ CONFIG_HUSH_CASE=y
CONFIG_HUSH_FUNCTIONS=y
CONFIG_HUSH_LOCAL=y
CONFIG_HUSH_EXPORT_N=y
+CONFIG_HUSH_RANDOM_SUPPORT=y
CONFIG_LASH=y
CONFIG_MSH=y
CONFIG_SH_MATH_SUPPORT=y

View File

@@ -0,0 +1,16 @@
diff -urpN busybox-1.16.0/util-linux/volume_id/linux_swap.c busybox-1.16.0-linux_swap/util-linux/volume_id/linux_swap.c
--- busybox-1.16.0/util-linux/volume_id/linux_swap.c 2010-01-25 01:59:39.000000000 +0100
+++ busybox-1.16.0-linux_swap/util-linux/volume_id/linux_swap.c 2010-02-21 01:53:21.000000000 +0100
@@ -52,7 +52,11 @@ int FAST_FUNC volume_id_probe_linux_swap
goto found;
}
- if (memcmp(buf, "SWAPSPACE2", 10) == 0) {
+ if (memcmp(buf, "SWAPSPACE2", 10) == 0
+ || memcmp(buf, "S1SUSPEND", 9) == 0
+ || memcmp(buf, "S2SUSPEND", 9) == 0
+ || memcmp(buf, "ULSUSPEND", 9) == 0
+ ) {
sw = volume_id_get_buffer(id, off, sizeof(struct swap_header_v1_2));
if (sw == NULL)
return -1;

View File

@@ -0,0 +1,16 @@
diff -urpN busybox-1.16.0/coreutils/md5_sha1_sum.c busybox-1.16.0-md5_sha_compat/coreutils/md5_sha1_sum.c
--- busybox-1.16.0/coreutils/md5_sha1_sum.c 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-md5_sha_compat/coreutils/md5_sha1_sum.c 2010-02-21 01:53:28.000000000 +0100
@@ -101,8 +101,10 @@ int md5_sha1_sum_main(int argc UNUSED_PA
unsigned flags;
/*hash_algo_t hash_algo = applet_name[3];*/
- if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK)
- flags = getopt32(argv, "scw");
+ if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK) {
+ /* -b "binary", -t "text" are ignored (shaNNNsum compat) */
+ flags = getopt32(argv, "scwbt");
+ }
else optind = 1;
argv += optind;
//argc -= optind;

View File

@@ -0,0 +1,12 @@
diff -urpN busybox-1.16.0/sysklogd/syslogd.c busybox-1.16.0-syslogd/sysklogd/syslogd.c
--- busybox-1.16.0/sysklogd/syslogd.c 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-syslogd/sysklogd/syslogd.c 2010-02-21 01:53:33.000000000 +0100
@@ -698,7 +698,7 @@ int syslogd_main(int argc UNUSED_PARAM,
if (!(opts & OPT_nofork)) {
bb_daemonize_or_rexec(DAEMON_CHDIR_ROOT, argv);
}
- umask(0);
+ //umask(0); - why??
write_pidfile("/var/run/syslogd.pid");
do_syslogd();
/* return EXIT_SUCCESS; */

View File

@@ -0,0 +1,12 @@
diff -urpN busybox-1.16.0/networking/tftp.c busybox-1.16.0-tftp/networking/tftp.c
--- busybox-1.16.0/networking/tftp.c 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-tftp/networking/tftp.c 2010-02-21 01:53:41.000000000 +0100
@@ -308,7 +308,7 @@ static int tftp_protocol(
if (!ENABLE_TFTP || our_lsa) { /* tftpd */
/* Open file (must be after changing user) */
- local_fd = open(local_file, open_mode);
+ local_fd = open(local_file, open_mode, 0666);
if (local_fd < 0) {
error_pkt_reason = ERR_NOFILE;
strcpy((char*)error_pkt_str, "can't open file");

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,20 @@
diff -urpN busybox-1.16.0/networking/wget.c busybox-1.16.0-wget/networking/wget.c
--- busybox-1.16.0/networking/wget.c 2010-01-25 01:59:38.000000000 +0100
+++ busybox-1.16.0-wget/networking/wget.c 2010-02-21 01:53:53.000000000 +0100
@@ -546,6 +546,8 @@ int wget_main(int argc UNUSED_PARAM, cha
"passive-ftp\0" No_argument "\xff"
"header\0" Required_argument "\xfe"
"post-data\0" Required_argument "\xfd"
+ /* Ignored (we don't do ssl) */
+ "no-check-certificate\0" No_argument "\xfc"
;
#endif
@@ -590,6 +592,7 @@ int wget_main(int argc UNUSED_PARAM, cha
if (use_proxy) {
proxy = getenv(target.is_ftp ? "ftp_proxy" : "http_proxy");
if (proxy && proxy[0]) {
+ server.user = NULL;
parse_url(proxy, &server);
} else {
use_proxy = 0;

View File

@@ -93,6 +93,7 @@ $(GMP_HOST_DIR)/lib/libgmp$(HOST_LIBEXT): $(GMP_DIR2)/.configured
$(MAKE) -C $(GMP_DIR2) install
host-libgmp: $(GMP_HOST_DIR)/lib/$(GMP_HOST_BINARY)
host-libgmp-source: libgmp-source
host-libgmp-clean:
rm -rf $(GMP_HOST_DIR)
-$(MAKE) -C $(GMP_DIR2) clean

View File

@@ -1,9 +0,0 @@
config BR2_PACKAGE_HOSTAP
bool "hostap"
depends on BR2_DEPRECATED
select BR2_PACKAGE_PCMCIA
help
Linux driver for wireless LAN cards based on Intersil's
Prism2/2.5/3 chipset.
http://hostap.epitest.fi/

View File

@@ -1,72 +0,0 @@
#############################################################
#
# hostap
#
# Note! Host AP driver was added into the main kernel tree in Linux v2.6.14.
# The version in the kernel tree should be used instead of this external
# hostap-driver package.
# The external releases are only for older kernel versions and all
# the future development will be in the main kernel tree.
#
#############################################################
HOSTAP_VERSION=0.4.9
HOSTAP_SOURCE=hostap-driver-$(HOSTAP_VERSION).tar.gz
HOSTAP_SITE=http://hostap.epitest.fi/releases
HOSTAP_DIR=$(BUILD_DIR)/hostapd-$(HOSTAP_VERSION)
$(DL_DIR)/$(HOSTAP_SOURCE):
$(call DOWNLOAD,$(HOSTAP_SITE),$(HOSTAP_SOURCE))
hostap-source: $(DL_DIR)/$(HOSTAP_SOURCE)
$(HOSTAP_DIR)/.unpacked: $(DL_DIR)/$(HOSTAP_SOURCE)
$(ZCAT) $(DL_DIR)/$(HOSTAP_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
mv -f $(BUILD_DIR)/hostap $(HOSTAP_DIR)
touch $@
$(HOSTAP_DIR)/.configured: $(HOSTAP_DIR)/.unpacked
#$(SED) "s,/.*#define PRISM2_DOWNLOAD_SUPPORT.*/,#define PRISM2_DOWNLOAD_SUPPORT,g" \
# $(HOSTAP_DIR)/driver/modules/hostap_config.h
touch $@
$(HOSTAP_DIR)/utils/hostap_crypt_conf: $(HOSTAP_DIR)/.configured
$(MAKE) -C $(HOSTAP_DIR)/utils \
CC=$(TARGET_CC) \
CFLAGS="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules"
$(MAKE) -C $(HOSTAP_DIR)/hostapd \
CC=$(TARGET_CC) \
CFLAGS="-Os -Wall $(TARGET_CFLAGS) -I../driver/modules -I../utils"
touch -c $(HOSTAP_DIR)/driver/modules/hostap.o
$(TARGET_DIR)//usr/bin/hostap_crypt_conf: $(HOSTAP_DIR)/utils/hostap_crypt_conf
# Make the dir
rm -rf $(HOSTAP_TARGET_MODULE_DIR)
mkdir -p $(HOSTAP_TARGET_MODULE_DIR)
# Copy the pcmcia-cs conf file
mkdir -p $(TARGET_DIR)/etc/pcmcia
cp -af $(HOSTAP_DIR)/driver/etc/hostap_cs.conf $(TARGET_DIR)/etc/pcmcia/
# Copy The Utils
cp -af $(HOSTAP_DIR)/utils/hostap_crypt_conf $(TARGET_DIR)/usr/bin/
cp -af $(HOSTAP_DIR)/utils/hostap_diag $(TARGET_DIR)/usr/bin/
cp -af $(HOSTAP_DIR)/utils/prism2_param $(TARGET_DIR)/usr/bin/
cp -af $(HOSTAP_DIR)/utils/prism2_srec $(TARGET_DIR)/usr/bin/
# Copy hostapd
cp -af $(HOSTAP_DIR)/hostapd/hostapd $(TARGET_DIR)/usr/sbin/
hostap: pcmcia $(TARGET_DIR)//usr/bin/hostap_crypt_conf
hostap-clean:
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(HOSTAP_DIR) uninstall
-$(MAKE) -C $(HOSTAP_DIR) clean
hostap-dirclean:
rm -rf $(HOSTAP_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_HOSTAP),y)
TARGETS+=hostap
endif

View File

@@ -145,7 +145,7 @@ ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_ADMINPORT), y)
IPSEC_TOOLS_PROGS+= $(TARGET_DIR)/$(IPSEC_TOOLS_TARGET_BINARY_RACOONCTL)
endif
ipsec-tools: openssl flex $(IPSEC_TOOLS_PROGS)
ipsec-tools: openssl flex host-flex $(IPSEC_TOOLS_PROGS)
ipsec-tools-source: $(DL_DIR)/$(IPSEC_TOOLS_SOURCE)

View File

@@ -1,12 +0,0 @@
diff -urN cgicc-3.2.7-0rig//demo/dns.cpp cgicc-3.2.7/demo/dns.cpp
--- cgicc-3.2.7-0rig//demo/dns.cpp 2009-01-21 00:24:13.000000000 +0100
+++ cgicc-3.2.7/demo/dns.cpp 2009-01-21 00:24:30.000000000 +0100
@@ -34,6 +34,7 @@
#include <vector>
#include <stdexcept>
#include <iostream>
+#include <string.h>
#include "cgicc/CgiDefs.h"
#include "cgicc/Cgicc.h"

View File

@@ -0,0 +1,50 @@
Index: cgicc-3.2.9/Makefile.am
===================================================================
--- cgicc-3.2.9.orig/Makefile.am 2010-02-25 16:34:06.000000000 +0100
+++ cgicc-3.2.9/Makefile.am 2010-02-25 16:34:14.000000000 +0100
@@ -8,9 +8,15 @@
DEMO =
endif
+if DOC
+DOCDIR = doc
+else
+DOC =
+endif
+
ACLOCAL_AMFLAGS=
-SUBDIRS = cgicc doc support $(DEMO)
+SUBDIRS = cgicc $(DOCDIR) support $(DEMO)
CLEANFILES = *~
Index: cgicc-3.2.9/configure.ac
===================================================================
--- cgicc-3.2.9.orig/configure.ac 2010-02-25 16:34:06.000000000 +0100
+++ cgicc-3.2.9/configure.ac 2010-02-25 16:45:46.000000000 +0100
@@ -17,9 +17,23 @@
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
-AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, /bin/echo)
+AC_ARG_ENABLE(doc,
+ [ --enable-doc build doc [[default=yes]]],
+ [case "${enableval}" in
+ yes) cgicc_doc=yes ;;
+ no) cgicc_doc=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-doc) ;;
+ esac], cgicc_doc=yes)
+
+if test "$cgicc_doc" = yes; then
+ AC_CHECK_PROG(DOXYGEN, doxygen, doxygen)
+ if test -z "$DOXYGEN" ; then
+ AC_MSG_ERROR([Doxygen is required to build the documentation])
+ fi
+fi
+AM_CONDITIONAL(DOC, test "$cgicc_doc" = yes)
dnl Determine host system type

View File

@@ -4,7 +4,7 @@
#
#############################################################
LIBCGICC_VERSION=3.2.7
LIBCGICC_VERSION=3.2.9
LIBCGICC_DIR=$(BUILD_DIR)/cgicc-$(LIBCGICC_VERSION)
LIBCGICC_SITE=$(BR2_GNU_MIRROR)/cgicc
LIBCGICC_SOURCE=cgicc-$(LIBCGICC_VERSION).tar.gz
@@ -22,6 +22,7 @@ $(LIBCGICC_DIR)/.unpacked: $(DL_DIR)/$(LIBCGICC_SOURCE)
$(LIBCGICC_DIR)/.configured: $(LIBCGICC_DIR)/.unpacked
(cd $(LIBCGICC_DIR); rm -f config.cache; \
$(AUTORECONF); \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure $(QUIET) \
@@ -33,15 +34,16 @@ $(LIBCGICC_DIR)/.configured: $(LIBCGICC_DIR)/.unpacked
--sysconfdir=/etc \
--localstatedir=/var \
--disable-demos \
--disable-doc \
)
touch $@
$(LIBCGICC_DIR)/.compiled: $(LIBCGICC_DIR)/.configured
$(MAKE) -C $(LIBCGICC_DIR)
$(TARGET_MAKE_ENV) $(MAKE) -C $(LIBCGICC_DIR)
touch $@
$(STAGING_DIR)/usr/lib/libcgicc.so: $(LIBCGICC_DIR)/.compiled
$(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBCGICC_DIR) install
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(STAGING_DIR) -C $(LIBCGICC_DIR) install
touch -c $(STAGING_DIR)/usr/lib/libcgicc.so
$(TARGET_DIR)/usr/lib/libcgicc.so: $(STAGING_DIR)/usr/lib/libcgicc.so

View File

@@ -126,7 +126,7 @@ endif
# gtk-update-icon-cache, which are the host tools needed to build Gtk
# for the target.
HOST_LIBGTK2_DEPENDENCIES = host-libglib2
HOST_LIBGTK2_DEPENDENCIES = host-libglib2 host-libpng
HOST_LIBGTK2_AUTORECONF = YES
HOST_LIBGTK2_CONF_OPT = \
--disable-static \

View File

@@ -6,7 +6,7 @@
LIBRAW1394_VERSION:=1.2.1
LIBRAW1394_SOURCE:=libraw1394-$(LIBRAW1394_VERSION).tar.gz
LIBRAW1394_SITE:=http://www.linux1394.org/dl
LIBRAW1394_SITE:=http://www.kernel.org/pub/linux/libs/ieee1394/
LIBRAW1394_DIR:=$(BUILD_DIR)/libraw1394-$(LIBRAW1394_VERSION)
$(DL_DIR)/$(LIBRAW1394_SOURCE):

View File

@@ -107,6 +107,7 @@ $(MPFR_HOST_DIR)/lib/libmpfr$(HOST_LIBEXT): $(MPFR_DIR2)/.configured
$(MAKE) -C $(MPFR_DIR2) install
host-libmpfr: $(MPFR_HOST_DIR)/lib/$(MPFR_HOST_BINARY)
host-libmpfr-source: libmpfr-source
host-libmpfr-clean:
rm -rf $(MPFR_HOST_DIR)
-$(MAKE) -C $(MPFR_DIR2) clean

View File

@@ -0,0 +1,173 @@
Switch madplay to the new API. This is done thanks to a patch written
by Micha Nelissen <micha@neli.hopto.org> and available at
http://article.gmane.org/gmane.comp.audio.mad.devel/729.
--- madplay-0.15.2b/audio_alsa.c 2008-10-18 15:10:16.000000000 +0200
+++ madplay-0.15.2b/audio_alsa.c.new 2008-10-18 15:03:27.000000000 +0200
@@ -28,31 +28,30 @@
#include <errno.h>
-#define ALSA_PCM_OLD_HW_PARAMS_API
-#define ALSA_PCM_OLD_SW_PARAMS_API
#include <alsa/asoundlib.h>
#include <mad.h>
#include "audio.h"
-char *buf = NULL;
-int paused = 0;
+#define BUFFER_TIME_MAX 500000
-int rate = -1;
-int channels = -1;
-int bitdepth = -1;
-int sample_size = -1;
-
-int buffer_time = 500000;
-int period_time = 100000;
-char *defaultdev = "plughw:0,0";
+unsigned char *buf = NULL;
+int paused = 0;
+
+unsigned int rate = 0;
+unsigned int channels = -1;
+unsigned int bitdepth = -1;
+unsigned int sample_size = -1;
+
+unsigned int buffer_time;
+unsigned int period_time;
+char *defaultdev = "plughw:0,0";
snd_pcm_hw_params_t *alsa_hwparams;
snd_pcm_sw_params_t *alsa_swparams;
-snd_pcm_sframes_t buffer_size;
-snd_pcm_sframes_t period_size;
+snd_pcm_uframes_t buffer_size;
snd_pcm_format_t alsa_format = -1;
snd_pcm_access_t alsa_access = SND_PCM_ACCESS_MMAP_INTERLEAVED;
@@ -66,14 +65,20 @@
snd_pcm_hw_params_t *params,
snd_pcm_access_t access)
{
- int err, dir;
-
+ int err;
+
/* choose all parameters */
err = snd_pcm_hw_params_any(handle,params);
if (err < 0) {
printf("Access type not available for playback: %s\n", snd_strerror(err));
return err;
}
+ /* set the access type */
+ err = snd_pcm_hw_params_set_access(handle, params, alsa_access);
+ if (err < 0) {
+ printf("Sample format not available for playback: %s\n", snd_strerror(err));
+ return err;
+ }
/* set the sample format */
err = snd_pcm_hw_params_set_format(handle, params, alsa_format);
if (err < 0) {
@@ -87,29 +92,38 @@
return err;
}
/* set the stream rate */
- err = snd_pcm_hw_params_set_rate_near(handle, params, rate, 0);
+ err = snd_pcm_hw_params_set_rate(handle, params, rate, 0);
if (err < 0) {
printf("Rate %iHz not available for playback: %s\n", rate, snd_strerror(err));
return err;
}
- if (err != rate) {
- printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, err);
- return -EINVAL;
- }
+ err = snd_pcm_hw_params_get_buffer_time_max(params, &buffer_time, NULL);
+ if (err < 0) {
+ printf("Unable to retrieve buffer time: %s\n", snd_strerror(err));
+ return err;
+ }
+ if (buffer_time > BUFFER_TIME_MAX)
+ buffer_time = BUFFER_TIME_MAX;
/* set buffer time */
- err = snd_pcm_hw_params_set_buffer_time_near(handle, params, buffer_time, &dir);
+ err = snd_pcm_hw_params_set_buffer_time_near(handle, params, &buffer_time, 0);
if (err < 0) {
printf("Unable to set buffer time %i for playback: %s\n", buffer_time, snd_strerror(err));
return err;
}
- buffer_size = snd_pcm_hw_params_get_buffer_size(params);
+ if (period_time * 4 > buffer_time)
+ period_time = buffer_time / 4;
/* set period time */
- err = snd_pcm_hw_params_set_period_time_near(handle, params, period_time, &dir);
+ err = snd_pcm_hw_params_set_period_time_near(handle, params, &period_time, NULL);
if (err < 0) {
printf("Unable to set period time %i for playback: %s\n", period_time, snd_strerror(err));
return err;
}
- period_size = snd_pcm_hw_params_get_period_size(params, &dir);
+ /* retrieve buffer size */
+ err = snd_pcm_hw_params_get_buffer_size(params, &buffer_size);
+ if (err < 0) {
+ printf("Unable to retrieve buffer size: %s\n", snd_strerror(err));
+ return err;
+ }
/* write the parameters to device */
err = snd_pcm_hw_params(handle, params);
if (err < 0) {
@@ -123,6 +137,7 @@
int set_swparams(snd_pcm_t *handle,
snd_pcm_sw_params_t *params)
{
+ unsigned int start_threshold;
int err;
/* get current swparams */
@@ -136,13 +151,7 @@
if (err < 0) {
printf("Unable to set start threshold mode for playback: %s\n", snd_strerror(err));
return err;
- }
- /* allow transfer when at least period_size samples can be processed */
- err = snd_pcm_sw_params_set_avail_min(handle, params, period_size);
- if (err < 0) {
- printf("Unable to set avail min for playback: %s\n", snd_strerror(err));
- return err;
- }
+ }
/* align all transfers to 1 samples */
err = snd_pcm_sw_params_set_xfer_align(handle, params, 1);
if (err < 0) {
@@ -190,7 +199,7 @@
rate = config->speed;
if ( bitdepth == 0 )
- config->precision = bitdepth = 32;
+ config->precision = bitdepth = 16;
switch (bitdepth)
{
@@ -241,7 +250,7 @@
return -1;
}
- buf = malloc(buffer_size);
+ buf = malloc(buffer_size * sample_size);
if (buf == NULL) {
audio_error="unable to allocate output buffer table";
return -1;
@@ -279,7 +288,7 @@
int play(struct audio_play *play)
{
int err, len;
- char *ptr;
+ unsigned char *ptr;
ptr = buf;
len = play->nsamples;

View File

@@ -58,7 +58,7 @@ endif
$(NETSNMP_DIR)/.configured: $(NETSNMP_DIR)/.unpacked
(cd $(NETSNMP_DIR); rm -f config.cache; \
autoconf && \
$(AUTOCONF) && \
ac_cv_NETSNMP_CAN_USE_SYSCTL=yes \
$(NETSNMP_CONFIGURE_PERL_ENV) \
$(TARGET_CONFIGURE_OPTS) \
@@ -130,7 +130,7 @@ endif
$(INSTALL) -D -m 0644 $(NETSNMP_DIR)/agent/mibgroup/header_complex.h $(STAGING_DIR)/usr/include/net-snmp/agent/header_complex.h
$(INSTALL) -D -m 0755 package/netsnmp/S59snmpd $(TARGET_DIR)/etc/init.d/S59snmpd
netsnmp: $(if $(BR2_PACKAGE_OPENSSL),openssl) $(TARGET_DIR)/usr/sbin/snmpd
netsnmp: host-autoconf $(if $(BR2_PACKAGE_OPENSSL),openssl) $(TARGET_DIR)/usr/sbin/snmpd
netsnmp-headers: $(TARGET_DIR)/usr/include/net-snmp/net-snmp-config.h
$(INSTALL) -d $(TARGET_DIR)/usr/include/net-snmp

View File

@@ -1,7 +0,0 @@
config BR2_PACKAGE_OPENMOTIF
bool "openmotif"
help
OpenMotif is the publicly licensed version of Motif, the
industry standard user interface toolkit for UNIX systems.
ftp://ftp.ics.com/openmotif/2.3/2.3.0

View File

@@ -1,2 +0,0 @@
Compiling OpenMotif may require byacc (or just yacc)
to be installed on the host build system

View File

@@ -1,106 +0,0 @@
--- a/lib/Xm/Makefile.in 2007-08-09 03:27:55.000000000 -0400
+++ b/lib/Xm/Makefile.in 2008-02-27 10:45:45.000000000 -0500
@@ -1130,7 +1130,7 @@ $(STRING_FILES): Makefile $(XMSTRING_LIS
test -f XmStrDefs23.ht || $(LN_S) $(srcdir)/XmStrDefs23.ht XmStrDefs23.ht
test -f XmStrDefsI.ht || $(LN_S) $(srcdir)/XmStrDefsI.ht XmStrDefsI.ht
test -f XmStrDefs.ct || $(LN_S) $(srcdir)/XmStrDefs.ct XmStrDefs.ct
- $(top_builddir)/config/util/makestrs -f $(XMSTRING_LIST) >XmStrDefs.c
+ $(top_builddir)/config/util/makestrs-host -f $(XMSTRING_LIST) >XmStrDefs.c
@MessageCatalog_TRUE@$(CAT_FILES): Xm.msg
@MessageCatalog_TRUE@ $(mkinstalldirs) $(top_builddir)/localized/C/msg
--- a/lib/Xm/Makefile.am 2005-12-17 10:04:02.000000000 -0500
+++ b/lib/Xm/Makefile.am 2008-02-27 10:40:01.000000000 -0500
@@ -284,7 +284,7 @@ $(STRING_FILES): Makefile $(XMSTRING_LIS
test -f XmStrDefs23.ht || $(LN_S) $(srcdir)/XmStrDefs23.ht XmStrDefs23.ht
test -f XmStrDefsI.ht || $(LN_S) $(srcdir)/XmStrDefsI.ht XmStrDefsI.ht
test -f XmStrDefs.ct || $(LN_S) $(srcdir)/XmStrDefs.ct XmStrDefs.ct
- $(top_builddir)/config/util/makestrs -f $(XMSTRING_LIST) >XmStrDefs.c
+ $(top_builddir)/config/util/makestrs-host -f $(XMSTRING_LIST) >XmStrDefs.c
if MessageCatalog
--- a/tools/wml/Makefile.in 2008-02-27 11:24:14.000000000 -0500
+++ b/tools/wml/Makefile.in 2008-02-27 11:32:33.000000000 -0500
@@ -617,9 +617,9 @@ UilLexPars.c: Uil.c
$(WMLTARGETS): wmluiltok wml UilLexPars.c $(TABLE)
$(RM) $(WMLTARGETS) wml.report wml-uil.mm
- ./wmluiltok <$(srcdir)/Uil.y >tokens.dat
+ ./wmluiltok-host <$(srcdir)/Uil.y >tokens.dat
$(RM) wml-uil.mm
- ./wml $(srcdir)/$(TABLE)
+ ./wml-host $(srcdir)/$(TABLE)
$(RM) tokens.dat
all: motif.wmd
--- a/tools/wml/Makefile.am 2002-10-06 09:08:48.000000000 -0400
+++ b/tools/wml/Makefile.am 2008-02-27 11:33:04.000000000 -0500
@@ -50,9 +50,9 @@ UilLexPars.c: Uil.c
$(WMLTARGETS): wmluiltok wml UilLexPars.c $(TABLE)
$(RM) $(WMLTARGETS) wml.report wml-uil.mm
- ./wmluiltok <$(srcdir)/Uil.y >tokens.dat
+ ./wmluiltok-host <$(srcdir)/Uil.y >tokens.dat
$(RM) wml-uil.mm
- ./wml $(srcdir)/$(TABLE)
+ ./wml-host $(srcdir)/$(TABLE)
$(RM) tokens.dat
all: motif.wmd
--- a/demos/lib/Exm/wml/Makefile.am 2002-10-06 09:08:47.000000000 -0400
+++ b/demos/lib/Exm/wml/Makefile.am 2008-02-27 13:29:08.000000000 -0500
@@ -65,11 +65,11 @@ $(TARGETS): $(TABLE) $(WMLDIR)/motif.wml
# $(YACC) -d $(YACCFLAGS) $(UILY)
# $(MV) y.tab.c UilLexPars.c
# $(MV) y.tab.h UilLexPars.h
- $(top_builddir)/tools/wml/wmluiltok < $(UILY) > tokens.dat
+ $(top_builddir)/tools/wml/wmluiltok-host < $(UILY) > tokens.dat
# $(RM) wml-uil.mm
$(RM) Exm.h
$(LN_S) $(srcdir)/$(TABLE) ./Exm.h
- $(CPP) -I$(WMLDIR) Exm.h | $(top_builddir)/tools/wml/wml
+ $(CPP) -I$(WMLDIR) Exm.h | $(top_builddir)/tools/wml/wml-host
$(RM) Exm.h
# $(RM) tokens.dat
#
--- a/tools/wml/wmluiltok.c 2007-08-09 03:47:17.000000000 -0400
+++ b/tools/wml/wmluiltok.c 2008-02-27 12:13:02.000000000 -0500
@@ -1689,13 +1689,13 @@ void *ptr;
free( ptr );
}
-#if YY_MAIN
+//#if YY_MAIN
int main()
{
yylex();
return 0;
}
-#endif
+//#endif
#line 183 "wmluiltok.l"
--- a/ltmain.sh 2006-07-13 03:12:13.000000000 -0400
+++ b/ltmain.sh 2008-02-27 14:50:40.000000000 -0500
@@ -5427,13 +5427,13 @@ else
# Backslashes separate directories on plain windows
*-*-mingw | *-*-os2*)
$echo >> $output "\
- exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
+ exec \"\$progdir\\\\\$program-host\" \${1+\"\$@\"}
"
;;
*)
$echo >> $output "\
- exec \"\$progdir/\$program\" \${1+\"\$@\"}
+ exec \"\$progdir/\$program-host\" \${1+\"\$@\"}
"
;;
esac

View File

@@ -1,758 +0,0 @@
diff -rup a/lib/Xm/BaseClass.c b/lib/Xm/BaseClass.c
--- a/lib/Xm/BaseClass.c 2002-01-10 15:56:19.000000000 -0500
+++ b/lib/Xm/BaseClass.c 2008-02-27 12:56:46.000000000 -0500
@@ -56,7 +56,7 @@ static char rcsid[] = "$TOG: BaseClass.c
#include <Xm/ExtObjectP.h>
#include <Xm/Screen.h>
#include <Xm/VendorSEP.h>
-#include <Xm/XmosP.h> /* for bzero */
+#include <Xm/XmosP.h>
#include "BaseClassI.h"
#include "CallbackI.h"
#include "DropSMgrI.h"
diff -rup a/lib/Xm/Color.c b/lib/Xm/Color.c
--- a/lib/Xm/Color.c 2002-01-10 15:56:22.000000000 -0500
+++ b/lib/Xm/Color.c 2008-02-27 12:57:01.000000000 -0500
@@ -50,7 +50,7 @@
#include <Xm/ManagerP.h>
#include <Xm/PrimitiveP.h>
#include <Xm/XmP.h>
-#include <Xm/XmosP.h> /* for bzero */
+#include <Xm/XmosP.h>
#include "ColorI.h"
#include "ImageCachI.h"
#include "MessagesI.h"
diff -rup a/lib/Xm/ComboBox.c b/lib/Xm/ComboBox.c
--- a/lib/Xm/ComboBox.c 2005-05-18 07:43:44.000000000 -0400
+++ b/lib/Xm/ComboBox.c 2008-02-27 12:57:20.000000000 -0500
@@ -45,7 +45,7 @@
#include <stdio.h>
#include <string.h>
#include <Xm/XmP.h>
-#include <Xm/XmosP.h> /* for bzero et al */
+#include <Xm/XmosP.h>
#include <X11/Shell.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
@@ -1431,7 +1431,7 @@ ComboBoxParentProcess(Widget wid,
{
XmListCallbackStruct call_data;
- bzero((char*) &call_data, sizeof(XmListCallbackStruct));
+ memset((char*) &call_data, 0, sizeof(XmListCallbackStruct));
if (pos)
{
call_data.item = XmStringCopy(item);
diff -rup a/lib/Xm/Container.c b/lib/Xm/Container.c
--- a/lib/Xm/Container.c 2005-07-13 05:25:16.000000000 -0400
+++ b/lib/Xm/Container.c 2008-02-27 12:57:46.000000000 -0500
@@ -79,7 +79,7 @@
#include "CareVisualTI.h"
#include "MessagesI.h"
#include "ClipWindTI.h"
-#include <Xm/XmosP.h> /* for bzero et al */
+#include <Xm/XmosP.h>
#define ZERO_DIM 0
#define DEFAULT_INDENTATION 40
@@ -9417,7 +9417,7 @@ ScrollProc(
/* get the current position */
nav_data.valueMask =
NavValue | NavIncrement | NavMinimum | NavMaximum | NavSliderSize;
- bzero(&nav_data,sizeof(XmNavigatorDataRec));
+ memset(&nav_data, 0, sizeof(XmNavigatorDataRec));
navigatorTrait->getValue(*nav, &nav_data);
/* compute the new position */
diff -rup a/lib/Xm/DropSMgr.c b/lib/Xm/DropSMgr.c
--- a/lib/Xm/DropSMgr.c 2006-04-20 07:26:07.000000000 -0400
+++ b/lib/Xm/DropSMgr.c 2008-02-27 12:58:12.000000000 -0500
@@ -98,7 +98,7 @@ static char rcsid[] = "$TOG: DropSMgr.c
#include <Xm/ManagerP.h>
#include <Xm/DragC.h>
#include <Xm/DropTrans.h>
-#include <Xm/XmosP.h> /* for bzero */
+#include <Xm/XmosP.h>
#include "XmI.h"
#include "DisplayI.h"
#include "DragBSI.h"
@@ -2401,7 +2401,7 @@ PutDSToStream(
* that the widget does not define resources all of the required
* animation resources.
*/
- bzero(((void *) &iccInfo), sizeof(iccInfo));
+ memset(((void *) &iccInfo), 0, sizeof(iccInfo));
if (last)
tType |= XmDSM_T_CLOSE;
@@ -3283,7 +3283,7 @@ CreateInfo(
size_t size;
/* zero out the working info struct */
- bzero((void *)(&fullInfoRec), sizeof(fullInfoRec));
+ memset((void *)(&fullInfoRec), 0, sizeof(fullInfoRec));
/* Load that puppy */
SetDSLeaf(&fullInfoRec, True);
@@ -3448,7 +3448,7 @@ int index;
/*
* Clear the full info back to the default (kind of) state.
*/
- bzero((void *)(full_info), sizeof(XmDSFullInfoRec));
+ memset((void *)(full_info), 0, sizeof(XmDSFullInfoRec));
full_info->animation_pixmap = XmUNSPECIFIED_PIXMAP;
full_info->animation_mask = XmUNSPECIFIED_PIXMAP;
diff -rup a/lib/Xm/FileSB.c b/lib/Xm/FileSB.c
--- a/lib/Xm/FileSB.c 2005-12-27 06:14:13.000000000 -0500
+++ b/lib/Xm/FileSB.c 2008-02-27 12:49:09.000000000 -0500
@@ -2643,7 +2643,7 @@ SetValues(
* picked-up there by the XmNqualifySearchDataProc routine to fill
* in the value field of the search data.
*/
- bzero( (char*)&searchData, sizeof( XmFileSelectionBoxCallbackStruct)) ;
+ memset( (char*)&searchData, 0, sizeof( XmFileSelectionBoxCallbackStruct)) ;
if( FS_DirMask( new_w) != FS_DirMask( current) )
{
diff -rup a/lib/Xm/List.c b/lib/Xm/List.c
--- a/lib/Xm/List.c 2007-01-24 12:07:35.000000000 -0500
+++ b/lib/Xm/List.c 2008-02-27 12:49:27.000000000 -0500
@@ -5696,7 +5696,7 @@ ClickElement(XmListWidget lw,
unsigned char selection_policy;
XmListCallbackStruct cb;
- bzero((char*) &cb, sizeof(XmListCallbackStruct));
+ memset((char*) &cb, 0, sizeof(XmListCallbackStruct));
item = lw->list.LastHLItem;
lw->list.DidSelection = TRUE;
diff -rup a/lib/Xm/Obso2_0.c b/lib/Xm/Obso2_0.c
--- a/lib/Xm/Obso2_0.c 2002-05-14 17:29:03.000000000 -0400
+++ b/lib/Xm/Obso2_0.c 2008-02-27 12:50:04.000000000 -0500
@@ -512,7 +512,7 @@ _XmGetDefaultThresholdsForScreen( Screen
* that call this routine don't have a widget, we need this hack
* to create a dummy widget.
*/
- bzero((void*) &widget, sizeof(widget) );
+ memset((void*) &widget, 0, sizeof(widget) );
widget.core.self = &widget;
widget.core.widget_class = coreWidgetClass;
widget.core.screen = screen;
diff -rup a/lib/Xm/Protocols.c b/lib/Xm/Protocols.c
--- a/lib/Xm/Protocols.c 2002-05-14 17:29:23.000000000 -0400
+++ b/lib/Xm/Protocols.c 2008-02-27 12:58:54.000000000 -0500
@@ -48,7 +48,7 @@ static char rcsid[] = "$XConsortium: Pro
/* (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
-#include <Xm/XmosP.h> /* for bzero et al */
+#include <Xm/XmosP.h>
#include <Xm/ProtocolsP.h>
#include "BaseClassI.h"
#include "CallbackI.h"
@@ -327,7 +327,7 @@ RemoveAllPMgr(
XtInsertEventHandler( w, KeyPressMask, TRUE, RemoveAllPMgrHandler,
closure, XtListHead) ;
- bzero((void *) &ev, sizeof(XEvent));
+ memset((void *) &ev, 0, sizeof(XEvent));
ev.xkey.type = KeyPress ;
ev.xkey.display = XtDisplay( w) ;
ev.xkey.time = XtLastTimestampProcessed( XtDisplay( w)) ;
diff -rup a/lib/Xm/RCLayout.c b/lib/Xm/RCLayout.c
--- a/lib/Xm/RCLayout.c 2002-01-30 10:47:18.000000000 -0500
+++ b/lib/Xm/RCLayout.c 2008-02-27 12:58:35.000000000 -0500
@@ -62,7 +62,7 @@ static char *rcsid = "$XConsortium: RCLa
#include <Xm/RowColumnP.h>
#include <Xm/TearOffBP.h>
#include <Xm/TearOffP.h>
-#include <Xm/XmosP.h> /* for bzero */
+#include <Xm/XmosP.h>
#include "LabelGI.h"
#include "GeoUtilsI.h"
#include "RCLayoutI.h"
@@ -1947,7 +1947,7 @@ _XmRC_SetOrGetTextMargins(
if (op == XmBASELINE_GET) {
/* in case the class does not have this procedure */
- bzero((void *) textMargins, sizeof(XmBaselineMargins));
+ memset((void *) textMargins, 0, sizeof(XmBaselineMargins));
}
textMargins->get_or_set = op;
diff -rup a/lib/Xm/ResConvert.c b/lib/Xm/ResConvert.c
--- a/lib/Xm/ResConvert.c 2003-10-22 12:26:08.000000000 -0400
+++ b/lib/Xm/ResConvert.c 2008-02-27 12:51:24.000000000 -0500
@@ -2600,7 +2600,7 @@ GetNextTab(char **s,
char sign[2];
char *tmp;
- bzero(sign, sizeof(sign));
+ memset(sign, 0, sizeof(sign));
unitType[0] = '\0';
if (sscanf(*s, " %2[+]", sign) == 1)
diff -rup a/lib/Xm/TearOff.c b/lib/Xm/TearOff.c
--- a/lib/Xm/TearOff.c 2003-10-06 06:10:24.000000000 -0400
+++ b/lib/Xm/TearOff.c 2008-02-27 12:59:10.000000000 -0500
@@ -63,7 +63,7 @@ static char rcsid[] = "$TOG: TearOff.c /
#include <Xm/SeparatorP.h>
#include <Xm/TraitP.h>
#include <Xm/VirtKeysP.h>
-#include <Xm/XmosP.h> /* for bzero */
+#include <Xm/XmosP.h>
#include "MenuStateI.h"
#include "MenuUtilI.h"
#include "RCMenuI.h"
@@ -1095,7 +1095,7 @@ _XmTearOffInitiate(
}
else
{
- bzero((void *)&sprop, sizeof(sprop));
+ memset((void *)&sprop, 0, sizeof(sprop));
/* Fix for 9346, use sizeof(long) to calculate total
size of block from get property */
memcpy(&sprop, rprop, (size_t)sizeof(long) * num_items);
diff -rup a/lib/Xm/TxtPropCv.c b/lib/Xm/TxtPropCv.c
--- a/lib/Xm/TxtPropCv.c 2005-06-10 07:50:56.000000000 -0400
+++ b/lib/Xm/TxtPropCv.c 2008-02-27 12:52:24.000000000 -0500
@@ -192,7 +192,7 @@ GetTextSegment(Display *display, /* unus
/* The text should be already be valid locale text */
char *tmp = XtMalloc(char_count + sizeof(wchar_t));
memcpy(tmp, text, char_count);
- bzero(tmp + char_count, sizeof(wchar_t));
+ memset(tmp + char_count, 0, sizeof(wchar_t));
*buffer = tmp;
}
@@ -216,7 +216,7 @@ GetTextSegment(Display *display, /* unus
already be valid locale text. */
char *tmp = XtMalloc(char_count + sizeof(wchar_t));
memcpy(tmp, text, char_count);
- bzero(tmp + char_count, sizeof(wchar_t));
+ memset(tmp + char_count, 0, sizeof(wchar_t));
*buffer = tmp;
}
@@ -226,7 +226,7 @@ GetTextSegment(Display *display, /* unus
/* The text is valid STRING text */
char *tmp = XtMalloc(char_count + sizeof(wchar_t));
memcpy(tmp, text, char_count);
- bzero(tmp + char_count, sizeof(wchar_t));
+ memset(tmp + char_count, 0, sizeof(wchar_t));
*buffer = tmp;
}
diff -rup a/lib/Xm/VendorS.c b/lib/Xm/VendorS.c
--- a/lib/Xm/VendorS.c 2006-11-08 09:18:05.000000000 -0500
+++ b/lib/Xm/VendorS.c 2008-02-27 12:59:26.000000000 -0500
@@ -65,7 +65,7 @@ static char rcsid[] = "$TOG: VendorS.c /
#include <Xm/UnitTypeT.h>
#include <Xm/VendorSEP.h>
#include <Xm/VendorSP.h>
-#include <Xm/XmosP.h> /* for bzero */
+#include <Xm/XmosP.h>
#include <Xm/ToolTipCT.h>
#include "BaseClassI.h"
#include "CallbackI.h"
@@ -1818,7 +1818,7 @@ MotifWarningHandler (String name,
char *par[10];
if (i > 10) i = 10;
memcpy((char*)par, (char*)params, i * sizeof(String));
- bzero((char *)&par[i], (10-i) * sizeof(String));
+ memset((char *)&par[i], 0, (10-i) * sizeof(String));
(void) sprintf(&buf[strlen(buf)], buf2, par[0], par[1], par[2], par[3],
par[4], par[5], par[6], par[7], par[8], par[9]);
} else
diff -rup a/lib/Xm/Xmfuncs.h b/lib/Xm/Xmfuncs.h
--- a/lib/Xm/Xmfuncs.h 2002-01-04 16:23:20.000000000 -0500
+++ b/lib/Xm/Xmfuncs.h 2008-02-27 12:36:01.000000000 -0500
@@ -36,14 +36,14 @@ in this Software without prior written a
#ifdef X_USEBFUNCS
void bcopy();
-void bzero();
+//void bzero();
int bcmp();
#else
#if (__STDC__ && !defined(X_NOT_STDC_ENV) && !defined(sun) && !defined(macII) && !defined(apollo)) || defined(SVR4) || defined(hpux) || defined(_IBMR2) || defined(_SEQUENT_)
#include <string.h>
#define _XFUNCS_H_INCLUDED_STRING_H
#define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
-#define bzero(b,len) memset(b, 0, (size_t)(len))
+//#define bzero(b,len) memset(b, 0, (size_t)(len))
#define bcmp(b1,b2,len) memcmp(b1, b2, (size_t)(len))
#else
#ifdef sgi
@@ -52,11 +52,11 @@ int bcmp();
#ifdef SYSV
#include <memory.h>
void bcopy();
-#define bzero(b,len) memset(b, 0, len)
+//#define bzero(b,len) memset(b, 0, len)
#define bcmp(b1,b2,len) memcmp(b1, b2, len)
#else /* bsd */
void bcopy();
-void bzero();
+//void bzero();
int bcmp();
#endif /* SYSV */
#endif /* sgi */
@@ -70,8 +70,8 @@ int bcmp();
#ifndef _XFUNCS_H_INCLUDED_STRING_H
#include <string.h>
#endif
-#undef bzero
-#define bzero(b,len) memset(b,0,len)
+//#undef bzero
+//#define bzero(b,len) memset(b,0,len)
#else /* else X_NOT_STDC_ENV or SunOS 4 */
#if defined(SYSV) || defined(luna) || defined(sun) || defined(__sxg__)
#include <memory.h>
diff -rup a/lib/Xm/XmIm.c b/lib/Xm/XmIm.c
--- a/lib/Xm/XmIm.c 2005-07-18 09:01:07.000000000 -0400
+++ b/lib/Xm/XmIm.c 2008-02-27 12:59:39.000000000 -0500
@@ -60,7 +60,7 @@ static char rcsid[] = "$TOG: XmIm.c /mai
#include <Xm/PrimitiveP.h>
#include <Xm/VendorSEP.h>
#include <Xm/VendorSP.h>
-#include <Xm/XmosP.h> /* for bzero */
+#include <Xm/XmosP.h>
#include "BaseClassI.h"
#include "MessagesI.h"
#include "XmI.h"
@@ -1035,7 +1035,7 @@ recreate_xic_info(XIC xic,
/* This XIC must have been created by the application directly. */
xic_info = XtNew(XmImXICRec);
- bzero((char*) xic_info, sizeof(XmImXICRec));
+ memset((char*) xic_info, 0, sizeof(XmImXICRec));
(void) XGetICValues(xic, XNInputStyle, &xic_info->input_style, NULL);
xic_info->next = im_info->iclist;
im_info->iclist = xic_info;
@@ -1128,11 +1128,11 @@ create_xic_info(Widget shell,
/* Create the XIC info record. */
xic_info = XtNew(XmImXICRec);
- bzero((char*) xic_info, sizeof(XmImXICRec));
+ memset((char*) xic_info, 0, sizeof(XmImXICRec));
xic_info->input_style = style;
xic_info->anonymous = True;
xic_info->preedit_buffer = XtNew(PreeditBufferRec);
- bzero((char *) xic_info->preedit_buffer, sizeof(PreeditBufferRec));
+ memset((char *) xic_info->preedit_buffer, 0, sizeof(PreeditBufferRec));
xic_info->next = im_info->iclist;
im_info->iclist = xic_info;
@@ -1215,9 +1215,9 @@ set_values(Widget w,
icp->focus_window && icp->focus_window != XtWindow(w))
return;
- bzero((char*) &status_vlist, sizeof(VaArgListRec));
- bzero((char*) &preedit_vlist, sizeof(VaArgListRec));
- bzero((char*) &xic_vlist, sizeof(VaArgListRec));
+ memset((char*) &status_vlist, 0, sizeof(VaArgListRec));
+ memset((char*) &preedit_vlist, 0, sizeof(VaArgListRec));
+ memset((char*) &xic_vlist, 0, sizeof(VaArgListRec));
for (i = num_args; i > 0; i--, argp++) {
name = XrmStringToName(argp->name);
if (name == area_name && !(icp->input_style & XIMPreeditPosition))
@@ -1490,7 +1490,7 @@ ImPreeditDoneCallback(XIC xic,
XtFree((char *)icp->preedit_buffer->text);
if (icp->preedit_buffer->feedback)
XtFree((char *)icp->preedit_buffer->feedback);
- bzero((char *)icp->preedit_buffer, sizeof(PreeditBufferRec));
+ memset((char *)icp->preedit_buffer, 0, sizeof(PreeditBufferRec));
}
static void
@@ -1589,9 +1589,9 @@ ImPreeditDrawCallback(XIC xic,
text->length * sizeof(XIMFeedback));
pb->length = pb->length + text->length - data->chg_length;
- bzero((char *)pb->text + pb->length * sizeof(wchar_t),
+ memset((char *)pb->text + pb->length * sizeof(wchar_t), 0,
sizeof(wchar_t));
- bzero((char *)pb->feedback + pb->length * sizeof(XIMFeedback),
+ memset((char *)pb->feedback + pb->length * sizeof(XIMFeedback), 0,
sizeof(XIMFeedback));
XtFree((char *) wchar);
@@ -1609,9 +1609,9 @@ ImPreeditDrawCallback(XIC xic,
ml * sizeof(XIMFeedback));
pb->length = pb->length - data->chg_length;
- bzero((char *)pb->text + pb->length * sizeof(wchar_t),
+ memset((char *)pb->text + pb->length * sizeof(wchar_t), 0,
data->chg_length * sizeof(wchar_t));
- bzero((char *)pb->feedback + pb->length * sizeof(XIMFeedback),
+ memset((char *)pb->feedback + pb->length * sizeof(XIMFeedback), 0,
data->chg_length * sizeof(XIMFeedback));
}
@@ -2217,7 +2217,7 @@ get_xim_info(Widget widget)
/* Create a record so that we only try XOpenIM() once. */
xim_info = XtNew(XmImDisplayRec);
- bzero((char*) xim_info, sizeof(XmImDisplayRec));
+ memset((char*) xim_info, 0, sizeof(XmImDisplayRec));
xmDisplay->display.xmim_info = (XtPointer)xim_info;
/* Setup any specified locale modifiers. */
@@ -2305,7 +2305,7 @@ get_im_info_ptr(Widget w,
if ((ve->vendor.im_info == NULL) && create)
{
im_info = XtNew(XmImShellRec);
- bzero((char*) im_info, sizeof(XmImShellRec));
+ memset((char*) im_info, 0, sizeof(XmImShellRec));
ve->vendor.im_info = (XtPointer)im_info;
xim_info = get_xim_info(p);
diff -rup a/lib/Xm/XmosP.h b/lib/Xm/XmosP.h
--- a/lib/Xm/XmosP.h 2002-06-17 16:36:30.000000000 -0400
+++ b/lib/Xm/XmosP.h 2008-02-27 13:00:08.000000000 -0500
@@ -42,8 +42,8 @@
#ifndef _XmosP_h
#define _XmosP_h
-/* Some SVR4 systems don't have bzero. */
-#include <Xm/Xmfuncs.h> /* for bzero et al */
+
+#include <Xm/Xmfuncs.h>
/*
* Fix for 8975 - using LOGNAME instead of USER on SYSV and SVR4
diff -rup a/lib/Xm/Xmos_r.h b/lib/Xm/Xmos_r.h
--- a/lib/Xm/Xmos_r.h 2002-06-17 16:36:30.000000000 -0400
+++ b/lib/Xm/Xmos_r.h 2008-02-27 13:01:20.000000000 -0500
@@ -502,13 +502,13 @@ typedef struct {
struct servent_data sdata;
} _Xgetservbynameparams;
# define _XGethostbyname(h,hp) \
- (bzero((char*)&(hp).hdata,sizeof((hp).hdata)), \
+ (memset((char*)&(hp).hdata,sizeof((hp).hdata)), 0, \
((gethostbyname_r((h),&(hp).hent,&(hp).hdata) == -1) ? NULL : &(hp).hent))
# define _XGethostbyaddr(a,al,t,hp) \
- (bzero((char*)&(hp).hdata,sizeof((hp).hdata)), \
+ (memset((char*)&(hp).hdata,sizeof((hp).hdata)), 0, \
((gethostbyaddr_r((a),(al),(t),&(hp).hent,&(hp).hdata) == -1) ? NULL : &(hp).hent))
# define _XGetservbyname(s,p,sp) \
- (bzero((char*)&(sp).sdata,sizeof((sp).sdata)), \
+ (memset((char*)&(sp).sdata,sizeof((sp).sdata)), 0, \
((getservbyname_r((s),(p),&(sp).sent,&(sp).sdata) == -1) ? NULL : &(sp).sent) )
# endif
# ifdef X_POSIX_THREAD_SAFE_FUNCTIONS
diff -rup a/lib/Xm/Xmpoll.h b/lib/Xm/Xmpoll.h
--- a/lib/Xm/Xmpoll.h 2002-06-17 16:36:30.000000000 -0400
+++ b/lib/Xm/Xmpoll.h 2008-02-27 13:01:38.000000000 -0500
@@ -110,7 +110,7 @@ typedef struct fd_set {
#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & ((fd_mask)1 << ((n) % NFDBITS)))
#endif
#ifndef FD_ZERO
-#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p)))
+#define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p)))
#endif
/*
diff -rup a/lib/Xm/XmRenderT.c b/lib/Xm/XmRenderT.c
--- a/lib/Xm/XmRenderT.c 2005-09-07 05:06:10.000000000 -0400
+++ b/lib/Xm/XmRenderT.c 2008-02-27 13:02:27.000000000 -0500
@@ -435,7 +435,7 @@ GetResources(XmRendition rend,
/* Initialize found */
if (found == NULL)
found = (Boolean *)XtMalloc(_XmNumRenditionResources * sizeof(Boolean));
- bzero(found, _XmNumRenditionResources * sizeof(Boolean));
+ memset(found, 0, _XmNumRenditionResources * sizeof(Boolean));
/* Compile names and classes. */
if (wid != NULL)
@@ -588,7 +588,7 @@ GetResources(XmRendition rend,
memcpy(((char *)GetPtr(rend) + res->xrm_offset),
value.addr, res->xrm_size);
else
- bzero(((char *)GetPtr(rend) + res->xrm_offset), res->xrm_size);
+ memset(((char *)GetPtr(rend) + res->xrm_offset), 0, res->xrm_size);
}
}
@@ -1185,7 +1185,7 @@ CloneRendition(XmRendition rend)
if (rend == NULL) return(NULL);
copy = (_XmRendition)XtMalloc(sizeof(_XmRenditionRec));
- bzero((char*)copy, sizeof(_XmRenditionRec));
+ memset((char*)copy, 0, sizeof(_XmRenditionRec));
copy_handle = GetHandle(_XmRendition);
SetPtr(copy_handle, copy);
@@ -1341,7 +1341,7 @@ XmRenderTableAddRenditions(XmRenderTable
{
matches =
(Boolean *)ALLOCATE_LOCAL(rendition_count * sizeof(Boolean));
- bzero(matches, rendition_count * sizeof(Boolean));
+ memset(matches, 0, rendition_count * sizeof(Boolean));
/* May have to copy table if shared. */
if (_XmRTRefcount(oldtable) > 1)
@@ -2201,7 +2201,7 @@ _XmRenditionCreate(Display *display,
/* Allocate rendition. */
rend_int = (_XmRendition)XtMalloc(sizeof(_XmRenditionRec));
- bzero((char*)rend_int, sizeof(_XmRenditionRec));
+ memset((char*)rend_int, 0, sizeof(_XmRenditionRec));
rend = GetHandle(_XmRendition);
SetPtr(rend, rend_int);
diff -rup a/lib/Xm/XmString.c b/lib/Xm/XmString.c
--- a/lib/Xm/XmString.c 2005-12-19 05:32:36.000000000 -0500
+++ b/lib/Xm/XmString.c 2008-02-27 13:03:31.000000000 -0500
@@ -3133,7 +3133,7 @@ XmStringExtent(
XmRendition rend;
_XmStringArraySegRec array_seg;
- bzero((char*) &scratch, sizeof(_XmRenditionRec));
+ memset((char*) &scratch, 0, sizeof(_XmRenditionRec));
tmp = &scratch;
rend = &tmp;
@@ -4087,7 +4087,7 @@ _XmStringDrawSegment(Display *d,
* text data, since optimized string does not have padding.
*/
{
- bzero((char*)&under_seg, sizeof(_XmStringOptSegRec));
+ memset((char*)&under_seg, 0, sizeof(_XmStringOptSegRec));
_XmEntryType(&under_seg) = XmSTRING_ENTRY_OPTIMIZED;
_XmEntryTagIndex(&under_seg) = _XmStrTagIndex(*underline);
_XmEntryByteCountSet(&under_seg, _XmStrByteCount(*underline));
@@ -5069,10 +5069,10 @@ _render(Display *d,
if (!string) return;
tmp1 = &scratch1;
- bzero((char *)tmp1, sizeof(_XmRenditionRec));
+ memset((char *)tmp1, 0, sizeof(_XmRenditionRec));
rend1 = &tmp1;
tmp2 = &scratch2;
- bzero((char *)tmp2, sizeof(_XmRenditionRec));
+ memset((char *)tmp2, 0, sizeof(_XmRenditionRec));
rend2 = &tmp2;
_XmRendDisplay(rend1) = _XmRendDisplay(rend2) = d;
@@ -7010,7 +7010,7 @@ XmStringBaseline(
_XmProcessLock();
}
#endif
- bzero((char*) &scratch, sizeof(_XmRenditionRec));
+ memset((char*) &scratch, 0, sizeof(_XmRenditionRec));
tmp = &scratch;
rend = &tmp;
@@ -7095,7 +7095,7 @@ _XmStringGetBaselines(XmRenderTable rend
*baselines = (Dimension*) XtMalloc(*line_count * sizeof(Dimension));
/* Initialize the scratch rendition for tabs. */
- bzero((char*) &scratch, sizeof(_XmRenditionRec));
+ memset((char*) &scratch, 0, sizeof(_XmRenditionRec));
_XmRendDisplay(rend) =
((_XmRTDisplay(rendertable) == NULL) ?
_XmGetDefaultDisplay() : _XmRTDisplay(rendertable));
@@ -9057,7 +9057,7 @@ XmeStringGetComponent(_XmStringContext c
{
char* tmp = XtMalloc(char_count + sizeof(wchar_t));
memcpy(tmp, seg_text, char_count);
- bzero(tmp + char_count, sizeof(wchar_t));
+ memset(tmp + char_count, 0, sizeof(wchar_t));
*value = (XtPointer) tmp;
}
else
@@ -9207,7 +9207,7 @@ _XmStringContextReInit(_XmStringContext
_XmString string)
{
assert(context != NULL);
- bzero((char*) context, sizeof(_XmStringContextRec));
+ memset((char*) context, 0, sizeof(_XmStringContextRec));
_XmStrContString(context) = string;
_XmStrContOpt(context) = _XmStrOptimized(string);
@@ -9526,7 +9526,7 @@ XmParseMappingCreate(ArgList arg_list,
{
/* Allocate and initialize the return value. */
XmParseMapping result = XtNew(_XmParseMappingRec);
- bzero((char*)result, sizeof(_XmParseMappingRec));
+ memset((char*)result, 0, sizeof(_XmParseMappingRec));
/* Default values are established by bzero().
*
diff -rup a/lib/Xm/XmStringFunc.c b/lib/Xm/XmStringFunc.c
--- a/lib/Xm/XmStringFunc.c 2002-01-10 15:57:05.000000000 -0500
+++ b/lib/Xm/XmStringFunc.c 2008-02-27 13:03:50.000000000 -0500
@@ -715,7 +715,7 @@ XmStringTableProposeTablist(XmStringTabl
return ((XmTabList)NULL);
}
- bzero((char*) &scratch, sizeof(_XmRenditionRec));
+ memset((char*) &scratch, 0, sizeof(_XmRenditionRec));
tmp = &scratch;
rend = &tmp;
diff -rup a/lib/Xm/XmStringI.h b/lib/Xm/XmStringI.h
--- a/lib/Xm/XmStringI.h 2002-01-04 16:23:19.000000000 -0500
+++ b/lib/Xm/XmStringI.h 2008-02-27 13:05:00.000000000 -0500
@@ -492,7 +492,7 @@ typedef struct __XmStringArraySegRec *_X
{ \
switch (type) { \
case XmSTRING_OPTIMIZED : \
- bzero((char*)str, sizeof(_XmStringOptRec)); \
+ memset((char*)str, 0, sizeof(_XmStringOptRec)); \
_XmStrType(str) = type; \
_XmStrTextType(str) = XmNO_TEXT; \
_XmStrDirection(str) = XmSTRING_DIRECTION_UNSET; \
@@ -501,7 +501,7 @@ typedef struct __XmStringArraySegRec *_X
_XmStrRefCountSet(str, 1); \
break; \
case XmSTRING_MULTIPLE_ENTRY : \
- bzero((char*)str, sizeof(_XmStringMultiRec)); \
+ memset((char*)str, 0, sizeof(_XmStringMultiRec)); \
_XmStrType(str) = type; \
_XmStrRefCountSet(str, 1); \
break; \
@@ -524,7 +524,7 @@ typedef struct __XmStringArraySegRec *_X
(str) = (_XmString) \
_XmStrMalloc(sizeof(_XmStringOptRec) + \
(text_len ? (text_len - TEXT_BYTES_IN_STRUCT) : 0)); \
- bzero((char*)str, sizeof(_XmStringOptRec)); \
+ memset((char*)str, 0, sizeof(_XmStringOptRec)); \
_XmStrType(str) = type; \
_XmStrTextType(str) = XmNO_TEXT; \
_XmStrDirection(str) = XmSTRING_DIRECTION_UNSET; \
@@ -535,7 +535,7 @@ typedef struct __XmStringArraySegRec *_X
break; \
case XmSTRING_MULTIPLE_ENTRY : \
(str) = (_XmString)_XmStrMalloc(sizeof(_XmStringMultiRec)); \
- bzero((char*)str, sizeof(_XmStringMultiRec)); \
+ memset((char*)str, 0, sizeof(_XmStringMultiRec)); \
_XmStrType(str) = type; \
_XmStrRefCountSet(str, 1); \
break; \
@@ -661,15 +661,15 @@ typedef struct __XmStringArraySegRec *_X
{ \
switch (type) { \
case XmSTRING_ENTRY_OPTIMIZED : \
- bzero((char*)entry, sizeof(_XmStringOptSegRec)); \
+ memset((char*)entry, 0, sizeof(_XmStringOptSegRec)); \
_XmEntryTagIndex(entry) = TAG_INDEX_UNSET; \
_XmEntryRendIndex(entry) = REND_INDEX_UNSET; \
break; \
case XmSTRING_ENTRY_ARRAY : \
- bzero((char*)entry, sizeof(_XmStringArraySegRec)); \
+ memset((char*)entry, 0, sizeof(_XmStringArraySegRec)); \
break; \
case XmSTRING_ENTRY_UNOPTIMIZED : \
- bzero((char*)entry, sizeof(_XmStringUnoptSegRec)); \
+ memset((char*)entry, 0, sizeof(_XmStringUnoptSegRec)); \
break; \
} \
_XmEntryType(entry) = type; \
@@ -683,17 +683,17 @@ typedef struct __XmStringArraySegRec *_X
switch (type) { \
case XmSTRING_ENTRY_OPTIMIZED : \
(entry) = (_XmStringEntry)XtMalloc(sizeof(_XmStringOptSegRec)); \
- bzero((char*)entry, sizeof(_XmStringOptSegRec)); \
+ memset((char*)entry, 0, sizeof(_XmStringOptSegRec)); \
_XmEntryTagIndex(entry) = TAG_INDEX_UNSET; \
_XmEntryRendIndex(entry) = REND_INDEX_UNSET; \
break; \
case XmSTRING_ENTRY_ARRAY : \
(entry) = (_XmStringEntry)XtMalloc(sizeof(_XmStringArraySegRec)); \
- bzero((char*)entry, sizeof(_XmStringArraySegRec)); \
+ memset((char*)entry, 0, sizeof(_XmStringArraySegRec)); \
break; \
case XmSTRING_ENTRY_UNOPTIMIZED : \
(entry) = (_XmStringEntry)XtMalloc(sizeof(_XmStringUnoptSegRec)); \
- bzero((char*)entry, sizeof(_XmStringUnoptSegRec)); \
+ memset((char*)entry, 0, sizeof(_XmStringUnoptSegRec)); \
break; \
} \
if (entry) { \
diff -rup a/lib/Xm/XmStringSeg.c b/lib/Xm/XmStringSeg.c
--- a/lib/Xm/XmStringSeg.c 2002-01-10 15:57:06.000000000 -0500
+++ b/lib/Xm/XmStringSeg.c 2008-02-27 13:05:16.000000000 -0500
@@ -291,7 +291,7 @@ _XmStringGetSegment(_XmStringContext c
{
char *tmp = XtMalloc(*char_count + sizeof(wchar_t));
memcpy(tmp, *text, *char_count);
- bzero(tmp + *char_count, sizeof(wchar_t));
+ memset(tmp + *char_count, 0, sizeof(wchar_t));
*text = (XtPointer) tmp;
}
diff -rup a/lib/Xm/XmTabList.c b/lib/Xm/XmTabList.c
--- a/lib/Xm/XmTabList.c 2002-01-30 10:47:25.000000000 -0500
+++ b/lib/Xm/XmTabList.c 2008-02-27 13:00:38.000000000 -0500
@@ -225,7 +225,7 @@ _XmCreateTabList(Widget parent,
if (_XmRendTabs(rend) == NULL)
{
tl = (XmTabList)XtMalloc(sizeof(_XmTabListRec));
- bzero((char *)tl, sizeof(_XmTabListRec));
+ memset((char *)tl, 0, sizeof(_XmTabListRec));
_XmRendTabs(rend) = tl;
}
diff -rup a/lib/Xm/Xpmcreate.c b/lib/Xm/Xpmcreate.c
--- a/lib/Xm/Xpmcreate.c 2005-12-06 12:31:15.000000000 -0500
+++ b/lib/Xm/Xpmcreate.c 2008-02-27 12:55:24.000000000 -0500
@@ -2254,7 +2254,7 @@ ParseAndPutPixels(dc, data, width, heigh
if (ncolors > 256)
return (XpmFileInvalid);
- bzero((char *)colidx, 256 * sizeof(short));
+ memset((char *)colidx, 0, 256 * sizeof(short));
for (a = 0; a < ncolors; a++)
colidx[(unsigned char)colorTable[a].string[0]] = a + 1;
@@ -2296,7 +2296,7 @@ if (cidx[f]) XpmFree(cidx[f]);}
unsigned short *cidx[256];
unsigned int char1;
- bzero((char *)cidx, 256 * sizeof(unsigned short *)); /* init */
+ memset((char *)cidx, 0, 256 * sizeof(unsigned short *)); /* init */
for (a = 0; a < ncolors; a++) {
char1 = (unsigned char) colorTable[a].string[0];
if (cidx[char1] == NULL) { /* get new memory */
diff -rup a/lib/Xm/XpmI.h b/lib/Xm/XpmI.h
--- a/lib/Xm/XpmI.h 2005-12-05 11:31:46.000000000 -0500
+++ b/lib/Xm/XpmI.h 2008-02-27 12:55:57.000000000 -0500
@@ -139,9 +139,9 @@ extern FILE *popen();
#ifndef bcopy
#define bcopy(source, dest, count) memcpy(dest, source, count)
#endif
-#ifndef bzero
-#define bzero(b, len) memset(b, 0, len)
-#endif
+//#ifndef bzero
+//#define bzero(b, len) memset(b, 0, len)
+//#endif
#endif
/* the following is defined in X11R6 but not in previous versions */
diff -rup a/lib/Xm/Xpmparse.c b/lib/Xm/Xpmparse.c
--- a/lib/Xm/Xpmparse.c 2005-12-05 11:31:46.000000000 -0500
+++ b/lib/Xm/Xpmparse.c 2008-02-27 12:56:18.000000000 -0500
@@ -555,7 +555,7 @@ ParsePixels(data, width, height, ncolors
return (XpmFileInvalid);
}
- bzero((char *)colidx, 256 * sizeof(short));
+ memset((char *)colidx, 0, 256 * sizeof(short));
for (a = 0; a < ncolors; a++)
colidx[(unsigned char)colorTable[a].string[0]] = a + 1;
@@ -591,7 +591,7 @@ do \
unsigned short *cidx[256];
unsigned int char1;
- bzero((char *)cidx, 256 * sizeof(unsigned short *)); /* init */
+ memset((char *)cidx, 0, 256 * sizeof(unsigned short *)); /* init */
for (a = 0; a < ncolors; a++) {
char1 = (unsigned char) colorTable[a].string[0];
if (cidx[char1] == NULL) { /* get new memory */

View File

@@ -1,94 +0,0 @@
#############################################################
#
# openmotif
#
#############################################################
OPENMOTIF_VERSION = 2.3.0
OPENMOTIF_SOURCE = openmotif-$(OPENMOTIF_VERSION).tar.gz
OPENMOTIF_SITE = ftp://ftp.ics.com/openmotif/2.3/2.3.0
OPENMOTIF_CAT:=$(ZCAT)
OPENMOTIF_DIR:=$(BUILD_DIR)/openmotif-$(OPENMOTIF_VERSION)
OPENMOTIF_HOST_DIR:=$(BUILD_DIR)/openmotif-$(OPENMOTIF_VERSION)-host
$(DL_DIR)/$(OPENMOTIF_SOURCE):
$(call DOWNLOAD,$(OPENMOTIF_SITE),$(OPENMOTIF_SOURCE))
openmotif-source: $(DL_DIR)/$(OPENMOTIF_SOURCE)
$(OPENMOTIF_DIR)/.unpacked: $(DL_DIR)/$(OPENMOTIF_SOURCE)
$(OPENMOTIF_CAT) $(DL_DIR)/$(OPENMOTIF_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
$(CONFIG_UPDATE) $(OPENMOTIF_DIR)
cp -a $(OPENMOTIF_DIR) $(OPENMOTIF_DIR)-host
toolchain/patch-kernel.sh $(OPENMOTIF_DIR) package/openmotif/ \*.patch
touch $(OPENMOTIF_DIR)/.unpacked
$(OPENMOTIF_HOST_DIR)/.configured: $(OPENMOTIF_DIR)/.unpacked
(if [ ! -e "/usr/include/X11/extensions/Print.h" ]; then \
echo "Please install libXp-devel and re-run make."; \
exit 1; fi )
(if [ ! -e "/usr/include/X11/bitmaps" ]; then \
echo "Please install xorg-x11-xbitmaps and re-run make."; \
exit 1; fi )
(cd $(OPENMOTIF_HOST_DIR); rm -rf config.cache; \
aclocal; automake --foreign --add-missing; autoconf; \
./configure $(QUIET) \
--prefix=/usr -C;);
touch $(OPENMOTIF_HOST_DIR)/.configured
$(OPENMOTIF_DIR)/.configured: $(OPENMOTIF_HOST_DIR)/.configured
(cd $(OPENMOTIF_DIR); rm -rf config.cache; \
aclocal; automake --foreign --add-missing; autoconf; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
ac_cv_file__usr_X_include_X11_X_h=yes \
ac_cv_func_setpgrp_void=yes \
./configure $(QUIET) \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--mandir=/usr/man \
--infodir=/usr/info \
--includedir=/usr/include \
--with-x --program-prefix="" \
);
touch $(OPENMOTIF_DIR)/.configured
$(OPENMOTIF_HOST_DIR)/.done: $(OPENMOTIF_DIR)/.configured
$(MAKE) -C $(OPENMOTIF_HOST_DIR)
ln -s -f $(OPENMOTIF_HOST_DIR)/config/util/makestrs $(OPENMOTIF_DIR)/config/util/makestrs-host
ln -s -f $(OPENMOTIF_HOST_DIR)/tools/wml/wmluiltok $(OPENMOTIF_DIR)/tools/wml/wmluiltok-host
ln -s -f $(OPENMOTIF_HOST_DIR)/tools/wml/wml $(OPENMOTIF_DIR)/tools/wml/wml-host
ln -s -f $(OPENMOTIF_HOST_DIR)/tools/wml/wmldbcreate $(OPENMOTIF_DIR)/tools/wml/wmldbcreate-host
mkdir -p $(OPENMOTIF_DIR)/tools/wml/.libs
ln -s -f $(OPENMOTIF_HOST_DIR)/tools/wml/.libs/lt-wmldbcreate $(OPENMOTIF_DIR)/tools/wml/.libs/lt-wmldbcreate-host
mkdir -p $(OPENMOTIF_DIR)/demos/lib/Exm/wml/.libs
ln -s -f $(OPENMOTIF_HOST_DIR)/demos/lib/Exm/wml/.libs/lt-wmldbcreate $(OPENMOTIF_DIR)/demos/lib/Exm/wml/.libs/lt-wmldbcreate-host
mkdir -p $(OPENMOTIF_DIR)/clients/uil/.libs
ln -s -f $(OPENMOTIF_HOST_DIR)/clients/uil/.libs/lt-uil $(OPENMOTIF_DIR)/clients/uil/.libs/lt-uil-host
touch $(OPENMOTIF_HOST_DIR)/.done
$(OPENMOTIF_DIR)/.done: $(OPENMOTIF_HOST_DIR)/.done
$(MAKE) -C $(OPENMOTIF_DIR)
$(MAKE) -C $(OPENMOTIF_DIR) install DESTDIR=$(STAGING_DIR)
$(MAKE) -C $(OPENMOTIF_DIR) install DESTDIR=$(TARGET_DIR)
touch $(OPENMOTIF_DIR)/.done
openmotif: $(OPENMOTIF_DIR)/.done
openmotif-clean:
rm -f $(TARGET_DIR)/bin/openmotif
-$(MAKE) -C $(OPENMOTIF_DIR) clean
openmotif-dirclean:
rm -rf $(OPENMOTIF_DIR)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_OPENMOTIF),y)
TARGETS+=openmotif
endif

View File

@@ -1,59 +0,0 @@
--- pango/acinclude.m4.old 2004-05-08 11:31:48.000000000 +0100
+++ pango/acinclude.m4 2004-05-08 11:31:58.000000000 +0100
@@ -55,3 +55,56 @@
])
+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 for overriding the documentation installation directory
+ AC_ARG_WITH(html-dir,
+ AC_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,
+ AC_HELP_STRING([--enable-gtk-doc],
+ [use gtk-doc to build documentation [default=no]]),,
+ enable_gtk_doc=no)
+
+ have_gtk_doc=no
+ if test -z "$PKG_CONFIG"; then
+ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+ fi
+ if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
+ have_gtk_doc=yes
+ fi
+
+ dnl do we want to do a version check?
+ifelse([$1],[],,
+ [gtk_doc_min_version=$1
+ if test "$have_gtk_doc" = yes; then
+ AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
+ if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ have_gtk_doc=no
+ fi
+ fi
+])
+ if test x$enable_gtk_doc = xyes; then
+ if test "$have_gtk_doc" != yes; then
+ enable_gtk_doc=no
+ fi
+ fi
+
+ AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
+ AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
+])

View File

@@ -1,10 +0,0 @@
--- a/modules/Makefile.am 2007-07-05 17:30:28.000000000 -0400
+++ b/modules/Makefile.am 2008-02-09 19:37:13.000000000 -0500
@@ -8,7 +8,6 @@ SUBDIRS = \
indic \
khmer \
syriac \
- thai \
tibetan
EXTRA_DIST = \

View File

@@ -7,10 +7,10 @@ include path to fix this issue.
src/gui/painting/painting.pri | 3 +++
1 file changed, 3 insertions(+)
Index: qt-embedded-linux-opensource-src-4.5.2/src/gui/painting/painting.pri
Index: qt-embedded-linux-opensource-src-4.5.3/src/gui/painting/painting.pri
===================================================================
--- qt-embedded-linux-opensource-src-4.5.2.orig/src/gui/painting/painting.pri
+++ qt-embedded-linux-opensource-src-4.5.2/src/gui/painting/painting.pri
--- qt-embedded-linux-opensource-src-4.5.3.orig/src/gui/painting/painting.pri
+++ qt-embedded-linux-opensource-src-4.5.3/src/gui/painting/painting.pri
@@ -367,3 +367,6 @@
SOURCES += painting/qwindowsurface_d3d.cpp
}

View File

@@ -1,5 +1,6 @@
config BR2_PACKAGE_SYLPHEED
bool "sylpheed"
select BR2_PACKAGE_LIBGTK2
help
lightweight and user-friendly e-mail client.

View File

@@ -13,7 +13,7 @@ SYLPHEED_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
SYLPHEED_CONF_OPT = --disable-gtkspell --program-prefix=""
SYLPHEED_DEPENDENCIES = host-pkg-config
SYLPHEED_DEPENDENCIES = host-pkg-config libgtk2
$(eval $(call AUTOTARGETS,package,sylpheed))

View File

@@ -8,11 +8,13 @@ XFONT_FONT_UTIL_VERSION = 1.0.1
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_DEPENDENCIES = host-pkg-config
XFONT_FONT_UTIL_INSTALL_STAGING = YES
XFONT_FONT_UTIL_INSTALL_TARGET = NO
define XFONT_FONT_UTIL_POST_INSTALL_FIXES
$(@D)/post-install.sh $(STAGING_DIR)
package/x11r7/xfont_font-util/post-install.sh $(STAGING_DIR)
endef
XFONT_FONT_UTIL_POST_INSTALL_STAGING_HOOKS += XFONT_FONT_UTIL_POST_INSTALL_FIXES
$(eval $(call AUTOTARGETS,package/x11r7,xfont_font-util))
$(eval $(call AUTOTARGETS,package/x11r7,xfont_font-util))

View File

@@ -1,9 +0,0 @@
config BR2_PACKAGE_XPDF
bool "xpdf"
select BR2_PACKAGE_OPENMOTIF
select BR2_PACKAGE_FREETYPE
help
Xpdf is an open source viewer for Portable Document Format
(PDF) files.
ftp://ftp.foolabs.com/pub/xpdf

View File

@@ -1,33 +0,0 @@
*** xpdf-3.02.orig/xpdf/Stream.cc Tue Feb 27 14:05:52 2007
--- xpdf-3.02/xpdf/Stream.cc Thu Jul 26 14:44:43 2007
***************
*** 410,424 ****
ok = gFalse;
nVals = width * nComps;
- if (width <= 0 || nComps <= 0 || nBits <= 0 ||
- nComps >= INT_MAX / nBits ||
- width >= INT_MAX / nComps / nBits ||
- nVals * nBits + 7 < 0) {
- return;
- }
pixBytes = (nComps * nBits + 7) >> 3;
rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes;
! if (rowBytes <= 0) {
return;
}
predLine = (Guchar *)gmalloc(rowBytes);
--- 410,422 ----
ok = gFalse;
nVals = width * nComps;
pixBytes = (nComps * nBits + 7) >> 3;
rowBytes = ((nVals * nBits + 7) >> 3) + pixBytes;
! if (width <= 0 || nComps <= 0 || nBits <= 0 ||
! nComps > gfxColorMaxComps ||
! nBits > 16 ||
! width >= INT_MAX / nComps || // check for overflow in nVals
! nVals >= (INT_MAX - 7) / nBits) { // check for overflow in rowBytes
return;
}
predLine = (Guchar *)gmalloc(rowBytes);

View File

@@ -1,823 +0,0 @@
diff -c -r xpdf-3.02pl1.orig/xpdf/Stream.cc xpdf-3.02/xpdf/Stream.cc
*** xpdf-3.02pl1.orig/xpdf/Stream.cc Thu Oct 25 15:47:38 2007
--- xpdf-3.02/xpdf/Stream.cc Thu Oct 25 15:48:19 2007
***************
*** 1243,1265 ****
columns = columnsA;
if (columns < 1) {
columns = 1;
! }
! if (columns + 4 <= 0) {
! columns = INT_MAX - 4;
}
rows = rowsA;
endOfBlock = endOfBlockA;
black = blackA;
! refLine = (short *)gmallocn(columns + 3, sizeof(short));
! codingLine = (short *)gmallocn(columns + 2, sizeof(short));
eof = gFalse;
row = 0;
nextLine2D = encoding < 0;
inputBits = 0;
! codingLine[0] = 0;
! codingLine[1] = refLine[2] = columns;
! a0 = 1;
buf = EOF;
}
--- 1243,1268 ----
columns = columnsA;
if (columns < 1) {
columns = 1;
! } else if (columns > INT_MAX - 2) {
! columns = INT_MAX - 2;
}
rows = rowsA;
endOfBlock = endOfBlockA;
black = blackA;
! // 0 <= codingLine[0] < codingLine[1] < ... < codingLine[n] = columns
! // ---> max codingLine size = columns + 1
! // refLine has one extra guard entry at the end
! // ---> max refLine size = columns + 2
! codingLine = (int *)gmallocn(columns + 1, sizeof(int));
! refLine = (int *)gmallocn(columns + 2, sizeof(int));
eof = gFalse;
row = 0;
nextLine2D = encoding < 0;
inputBits = 0;
! codingLine[0] = columns;
! a0i = 0;
! outputBits = 0;
buf = EOF;
}
***************
*** 1278,1286 ****
row = 0;
nextLine2D = encoding < 0;
inputBits = 0;
! codingLine[0] = 0;
! codingLine[1] = columns;
! a0 = 1;
buf = EOF;
// skip any initial zero bits and end-of-line marker, and get the 2D
--- 1281,1289 ----
row = 0;
nextLine2D = encoding < 0;
inputBits = 0;
! codingLine[0] = columns;
! a0i = 0;
! outputBits = 0;
buf = EOF;
// skip any initial zero bits and end-of-line marker, and get the 2D
***************
*** 1297,1507 ****
}
}
int CCITTFaxStream::lookChar() {
short code1, code2, code3;
! int a0New;
! GBool err, gotEOL;
! int ret;
! int bits, i;
! // if at eof just return EOF
! if (eof && codingLine[a0] >= columns) {
! return EOF;
}
// read the next row
! err = gFalse;
! if (codingLine[a0] >= columns) {
// 2-D encoding
if (nextLine2D) {
- // state:
- // a0New = current position in coding line (0 <= a0New <= columns)
- // codingLine[a0] = last change in coding line
- // (black-to-white if a0 is even,
- // white-to-black if a0 is odd)
- // refLine[b1] = next change in reference line of opposite color
- // to a0
- // invariants:
- // 0 <= codingLine[a0] <= a0New
- // <= refLine[b1] <= refLine[b1+1] <= columns
- // 0 <= a0 <= columns+1
- // refLine[0] = 0
- // refLine[n] = refLine[n+1] = columns
- // -- for some 1 <= n <= columns+1
- // end condition:
- // 0 = codingLine[0] <= codingLine[1] < codingLine[2] < ...
- // < codingLine[n-1] < codingLine[n] = columns
- // -- where 1 <= n <= columns+1
for (i = 0; codingLine[i] < columns; ++i) {
refLine[i] = codingLine[i];
}
! refLine[i] = refLine[i + 1] = columns;
! b1 = 1;
! a0New = codingLine[a0 = 0] = 0;
! do {
code1 = getTwoDimCode();
switch (code1) {
case twoDimPass:
! if (refLine[b1] < columns) {
! a0New = refLine[b1 + 1];
! b1 += 2;
}
break;
case twoDimHoriz:
! if ((a0 & 1) == 0) {
! code1 = code2 = 0;
do {
! code1 += code3 = getWhiteCode();
} while (code3 >= 64);
do {
! code2 += code3 = getBlackCode();
} while (code3 >= 64);
} else {
- code1 = code2 = 0;
do {
! code1 += code3 = getBlackCode();
} while (code3 >= 64);
do {
! code2 += code3 = getWhiteCode();
} while (code3 >= 64);
}
! if (code1 > 0 || code2 > 0) {
! if (a0New + code1 <= columns) {
! codingLine[a0 + 1] = a0New + code1;
! } else {
! codingLine[a0 + 1] = columns;
! }
! ++a0;
! if (codingLine[a0] + code2 <= columns) {
! codingLine[a0 + 1] = codingLine[a0] + code2;
! } else {
! codingLine[a0 + 1] = columns;
! }
! ++a0;
! a0New = codingLine[a0];
! while (refLine[b1] <= a0New && refLine[b1] < columns) {
! b1 += 2;
}
}
break;
! case twoDimVert0:
! if (refLine[b1] < columns) {
! a0New = codingLine[++a0] = refLine[b1];
! ++b1;
! while (refLine[b1] <= a0New && refLine[b1] < columns) {
! b1 += 2;
}
- } else {
- a0New = codingLine[++a0] = columns;
}
break;
case twoDimVertR1:
! if (refLine[b1] + 1 < columns) {
! a0New = codingLine[++a0] = refLine[b1] + 1;
! ++b1;
! while (refLine[b1] <= a0New && refLine[b1] < columns) {
! b1 += 2;
}
- } else {
- a0New = codingLine[++a0] = columns;
}
break;
! case twoDimVertL1:
! if (refLine[b1] - 1 > a0New || (a0 == 0 && refLine[b1] == 1)) {
! a0New = codingLine[++a0] = refLine[b1] - 1;
! --b1;
! while (refLine[b1] <= a0New && refLine[b1] < columns) {
! b1 += 2;
}
}
break;
! case twoDimVertR2:
! if (refLine[b1] + 2 < columns) {
! a0New = codingLine[++a0] = refLine[b1] + 2;
! ++b1;
! while (refLine[b1] <= a0New && refLine[b1] < columns) {
! b1 += 2;
}
- } else {
- a0New = codingLine[++a0] = columns;
}
break;
case twoDimVertL2:
! if (refLine[b1] - 2 > a0New || (a0 == 0 && refLine[b1] == 2)) {
! a0New = codingLine[++a0] = refLine[b1] - 2;
! --b1;
! while (refLine[b1] <= a0New && refLine[b1] < columns) {
! b1 += 2;
}
! }
! break;
! case twoDimVertR3:
! if (refLine[b1] + 3 < columns) {
! a0New = codingLine[++a0] = refLine[b1] + 3;
! ++b1;
! while (refLine[b1] <= a0New && refLine[b1] < columns) {
! b1 += 2;
}
- } else {
- a0New = codingLine[++a0] = columns;
}
break;
! case twoDimVertL3:
! if (refLine[b1] - 3 > a0New || (a0 == 0 && refLine[b1] == 3)) {
! a0New = codingLine[++a0] = refLine[b1] - 3;
! --b1;
! while (refLine[b1] <= a0New && refLine[b1] < columns) {
! b1 += 2;
}
}
break;
case EOF:
eof = gTrue;
! codingLine[a0 = 0] = columns;
! return EOF;
default:
error(getPos(), "Bad 2D code %04x in CCITTFax stream", code1);
err = gTrue;
break;
}
! } while (codingLine[a0] < columns);
// 1-D encoding
} else {
! codingLine[a0 = 0] = 0;
! while (1) {
code1 = 0;
! do {
! code1 += code3 = getWhiteCode();
! } while (code3 >= 64);
! codingLine[a0+1] = codingLine[a0] + code1;
! ++a0;
! if (codingLine[a0] >= columns) {
! break;
! }
! code2 = 0;
! do {
! code2 += code3 = getBlackCode();
! } while (code3 >= 64);
! codingLine[a0+1] = codingLine[a0] + code2;
! ++a0;
! if (codingLine[a0] >= columns) {
! break;
}
}
}
- if (codingLine[a0] != columns) {
- error(getPos(), "CCITTFax row is wrong length (%d)", codingLine[a0]);
- // force the row to be the correct length
- while (codingLine[a0] > columns) {
- --a0;
- }
- codingLine[++a0] = columns;
- err = gTrue;
- }
-
// byte-align the row
if (byteAlign) {
inputBits &= ~7;
--- 1300,1529 ----
}
}
+ inline void CCITTFaxStream::addPixels(int a1, int blackPixels) {
+ if (a1 > codingLine[a0i]) {
+ if (a1 > columns) {
+ error(getPos(), "CCITTFax row is wrong length (%d)", a1);
+ err = gTrue;
+ a1 = columns;
+ }
+ if ((a0i & 1) ^ blackPixels) {
+ ++a0i;
+ }
+ codingLine[a0i] = a1;
+ }
+ }
+
+ inline void CCITTFaxStream::addPixelsNeg(int a1, int blackPixels) {
+ if (a1 > codingLine[a0i]) {
+ if (a1 > columns) {
+ error(getPos(), "CCITTFax row is wrong length (%d)", a1);
+ err = gTrue;
+ a1 = columns;
+ }
+ if ((a0i & 1) ^ blackPixels) {
+ ++a0i;
+ }
+ codingLine[a0i] = a1;
+ } else if (a1 < codingLine[a0i]) {
+ if (a1 < 0) {
+ error(getPos(), "Invalid CCITTFax code");
+ err = gTrue;
+ a1 = 0;
+ }
+ while (a0i > 0 && a1 <= codingLine[a0i - 1]) {
+ --a0i;
+ }
+ codingLine[a0i] = a1;
+ }
+ }
+
int CCITTFaxStream::lookChar() {
short code1, code2, code3;
! int b1i, blackPixels, i, bits;
! GBool gotEOL;
! if (buf != EOF) {
! return buf;
}
// read the next row
! if (outputBits == 0) {
!
! // if at eof just return EOF
! if (eof) {
! return EOF;
! }
!
! err = gFalse;
// 2-D encoding
if (nextLine2D) {
for (i = 0; codingLine[i] < columns; ++i) {
refLine[i] = codingLine[i];
}
! refLine[i++] = columns;
! refLine[i] = columns;
! codingLine[0] = 0;
! a0i = 0;
! b1i = 0;
! blackPixels = 0;
! // invariant:
! // refLine[b1i-1] <= codingLine[a0i] < refLine[b1i] < refLine[b1i+1]
! // <= columns
! // exception at left edge:
! // codingLine[a0i = 0] = refLine[b1i = 0] = 0 is possible
! // exception at right edge:
! // refLine[b1i] = refLine[b1i+1] = columns is possible
! while (codingLine[a0i] < columns) {
code1 = getTwoDimCode();
switch (code1) {
case twoDimPass:
! addPixels(refLine[b1i + 1], blackPixels);
! if (refLine[b1i + 1] < columns) {
! b1i += 2;
}
break;
case twoDimHoriz:
! code1 = code2 = 0;
! if (blackPixels) {
do {
! code1 += code3 = getBlackCode();
} while (code3 >= 64);
do {
! code2 += code3 = getWhiteCode();
} while (code3 >= 64);
} else {
do {
! code1 += code3 = getWhiteCode();
} while (code3 >= 64);
do {
! code2 += code3 = getBlackCode();
} while (code3 >= 64);
}
! addPixels(codingLine[a0i] + code1, blackPixels);
! if (codingLine[a0i] < columns) {
! addPixels(codingLine[a0i] + code2, blackPixels ^ 1);
! }
! while (refLine[b1i] <= codingLine[a0i] && refLine[b1i] < columns) {
! b1i += 2;
! }
! break;
! case twoDimVertR3:
! addPixels(refLine[b1i] + 3, blackPixels);
! blackPixels ^= 1;
! if (codingLine[a0i] < columns) {
! ++b1i;
! while (refLine[b1i] <= codingLine[a0i] && refLine[b1i] < columns) {
! b1i += 2;
}
}
break;
! case twoDimVertR2:
! addPixels(refLine[b1i] + 2, blackPixels);
! blackPixels ^= 1;
! if (codingLine[a0i] < columns) {
! ++b1i;
! while (refLine[b1i] <= codingLine[a0i] && refLine[b1i] < columns) {
! b1i += 2;
}
}
break;
case twoDimVertR1:
! addPixels(refLine[b1i] + 1, blackPixels);
! blackPixels ^= 1;
! if (codingLine[a0i] < columns) {
! ++b1i;
! while (refLine[b1i] <= codingLine[a0i] && refLine[b1i] < columns) {
! b1i += 2;
}
}
break;
! case twoDimVert0:
! addPixels(refLine[b1i], blackPixels);
! blackPixels ^= 1;
! if (codingLine[a0i] < columns) {
! ++b1i;
! while (refLine[b1i] <= codingLine[a0i] && refLine[b1i] < columns) {
! b1i += 2;
}
}
break;
! case twoDimVertL3:
! addPixelsNeg(refLine[b1i] - 3, blackPixels);
! blackPixels ^= 1;
! if (codingLine[a0i] < columns) {
! if (b1i > 0) {
! --b1i;
! } else {
! ++b1i;
! }
! while (refLine[b1i] <= codingLine[a0i] && refLine[b1i] < columns) {
! b1i += 2;
}
}
break;
case twoDimVertL2:
! addPixelsNeg(refLine[b1i] - 2, blackPixels);
! blackPixels ^= 1;
! if (codingLine[a0i] < columns) {
! if (b1i > 0) {
! --b1i;
! } else {
! ++b1i;
}
! while (refLine[b1i] <= codingLine[a0i] && refLine[b1i] < columns) {
! b1i += 2;
}
}
break;
! case twoDimVertL1:
! addPixelsNeg(refLine[b1i] - 1, blackPixels);
! blackPixels ^= 1;
! if (codingLine[a0i] < columns) {
! if (b1i > 0) {
! --b1i;
! } else {
! ++b1i;
! }
! while (refLine[b1i] <= codingLine[a0i] && refLine[b1i] < columns) {
! b1i += 2;
}
}
break;
case EOF:
+ addPixels(columns, 0);
eof = gTrue;
! break;
default:
error(getPos(), "Bad 2D code %04x in CCITTFax stream", code1);
+ addPixels(columns, 0);
err = gTrue;
break;
}
! }
// 1-D encoding
} else {
! codingLine[0] = 0;
! a0i = 0;
! blackPixels = 0;
! while (codingLine[a0i] < columns) {
code1 = 0;
! if (blackPixels) {
! do {
! code1 += code3 = getBlackCode();
! } while (code3 >= 64);
! } else {
! do {
! code1 += code3 = getWhiteCode();
! } while (code3 >= 64);
}
+ addPixels(codingLine[a0i] + code1, blackPixels);
+ blackPixels ^= 1;
}
}
// byte-align the row
if (byteAlign) {
inputBits &= ~7;
***************
*** 1560,1573 ****
// this if we know the stream contains end-of-line markers because
// the "just plow on" technique tends to work better otherwise
} else if (err && endOfLine) {
! do {
if (code1 == EOF) {
eof = gTrue;
return EOF;
}
eatBits(1);
! code1 = lookBits(13);
! } while ((code1 >> 1) != 0x001);
eatBits(12);
if (encoding > 0) {
eatBits(1);
--- 1582,1598 ----
// this if we know the stream contains end-of-line markers because
// the "just plow on" technique tends to work better otherwise
} else if (err && endOfLine) {
! while (1) {
! code1 = lookBits(13);
if (code1 == EOF) {
eof = gTrue;
return EOF;
}
+ if ((code1 >> 1) == 0x001) {
+ break;
+ }
eatBits(1);
! }
eatBits(12);
if (encoding > 0) {
eatBits(1);
***************
*** 1575,1585 ****
}
}
! a0 = 0;
! outputBits = codingLine[1] - codingLine[0];
! if (outputBits == 0) {
! a0 = 1;
! outputBits = codingLine[2] - codingLine[1];
}
++row;
--- 1600,1610 ----
}
}
! // set up for output
! if (codingLine[0] > 0) {
! outputBits = codingLine[a0i = 0];
! } else {
! outputBits = codingLine[a0i = 1];
}
++row;
***************
*** 1587,1625 ****
// get a byte
if (outputBits >= 8) {
! ret = ((a0 & 1) == 0) ? 0xff : 0x00;
! if ((outputBits -= 8) == 0) {
! ++a0;
! if (codingLine[a0] < columns) {
! outputBits = codingLine[a0 + 1] - codingLine[a0];
! }
}
} else {
bits = 8;
! ret = 0;
do {
if (outputBits > bits) {
! i = bits;
! bits = 0;
! if ((a0 & 1) == 0) {
! ret |= 0xff >> (8 - i);
}
! outputBits -= i;
} else {
! i = outputBits;
! bits -= outputBits;
! if ((a0 & 1) == 0) {
! ret |= (0xff >> (8 - i)) << bits;
}
outputBits = 0;
! ++a0;
! if (codingLine[a0] < columns) {
! outputBits = codingLine[a0 + 1] - codingLine[a0];
}
}
! } while (bits > 0 && codingLine[a0] < columns);
}
- buf = black ? (ret ^ 0xff) : ret;
return buf;
}
--- 1612,1654 ----
// get a byte
if (outputBits >= 8) {
! buf = (a0i & 1) ? 0x00 : 0xff;
! outputBits -= 8;
! if (outputBits == 0 && codingLine[a0i] < columns) {
! ++a0i;
! outputBits = codingLine[a0i] - codingLine[a0i - 1];
}
} else {
bits = 8;
! buf = 0;
do {
if (outputBits > bits) {
! buf <<= bits;
! if (!(a0i & 1)) {
! buf |= 0xff >> (8 - bits);
}
! outputBits -= bits;
! bits = 0;
} else {
! buf <<= outputBits;
! if (!(a0i & 1)) {
! buf |= 0xff >> (8 - outputBits);
}
+ bits -= outputBits;
outputBits = 0;
! if (codingLine[a0i] < columns) {
! ++a0i;
! outputBits = codingLine[a0i] - codingLine[a0i - 1];
! } else if (bits > 0) {
! buf <<= bits;
! bits = 0;
}
}
! } while (bits);
! }
! if (black) {
! buf ^= 0xff;
}
return buf;
}
***************
*** 1661,1666 ****
--- 1690,1698 ----
code = 0; // make gcc happy
if (endOfBlock) {
code = lookBits(12);
+ if (code == EOF) {
+ return 1;
+ }
if ((code >> 5) == 0) {
p = &whiteTab1[code];
} else {
***************
*** 1673,1678 ****
--- 1705,1713 ----
} else {
for (n = 1; n <= 9; ++n) {
code = lookBits(n);
+ if (code == EOF) {
+ return 1;
+ }
if (n < 9) {
code <<= 9 - n;
}
***************
*** 1684,1689 ****
--- 1719,1727 ----
}
for (n = 11; n <= 12; ++n) {
code = lookBits(n);
+ if (code == EOF) {
+ return 1;
+ }
if (n < 12) {
code <<= 12 - n;
}
***************
*** 1709,1717 ****
code = 0; // make gcc happy
if (endOfBlock) {
code = lookBits(13);
if ((code >> 7) == 0) {
p = &blackTab1[code];
! } else if ((code >> 9) == 0) {
p = &blackTab2[(code >> 1) - 64];
} else {
p = &blackTab3[code >> 7];
--- 1747,1758 ----
code = 0; // make gcc happy
if (endOfBlock) {
code = lookBits(13);
+ if (code == EOF) {
+ return 1;
+ }
if ((code >> 7) == 0) {
p = &blackTab1[code];
! } else if ((code >> 9) == 0 && (code >> 7) != 0) {
p = &blackTab2[(code >> 1) - 64];
} else {
p = &blackTab3[code >> 7];
***************
*** 1723,1728 ****
--- 1764,1772 ----
} else {
for (n = 2; n <= 6; ++n) {
code = lookBits(n);
+ if (code == EOF) {
+ return 1;
+ }
if (n < 6) {
code <<= 6 - n;
}
***************
*** 1734,1739 ****
--- 1778,1786 ----
}
for (n = 7; n <= 12; ++n) {
code = lookBits(n);
+ if (code == EOF) {
+ return 1;
+ }
if (n < 12) {
code <<= 12 - n;
}
***************
*** 1747,1752 ****
--- 1794,1802 ----
}
for (n = 10; n <= 13; ++n) {
code = lookBits(n);
+ if (code == EOF) {
+ return 1;
+ }
if (n < 13) {
code <<= 13 - n;
}
***************
*** 1961,1966 ****
--- 2011,2022 ----
// allocate a buffer for the whole image
bufWidth = ((width + mcuWidth - 1) / mcuWidth) * mcuWidth;
bufHeight = ((height + mcuHeight - 1) / mcuHeight) * mcuHeight;
+ if (bufWidth <= 0 || bufHeight <= 0 ||
+ bufWidth > INT_MAX / bufWidth / (int)sizeof(int)) {
+ error(getPos(), "Invalid image size in DCT stream");
+ y = height;
+ return;
+ }
for (i = 0; i < numComps; ++i) {
frameBuf[i] = (int *)gmallocn(bufWidth * bufHeight, sizeof(int));
memset(frameBuf[i], 0, bufWidth * bufHeight * sizeof(int));
***************
*** 3036,3041 ****
--- 3092,3102 ----
}
scanInfo.firstCoeff = str->getChar();
scanInfo.lastCoeff = str->getChar();
+ if (scanInfo.firstCoeff < 0 || scanInfo.lastCoeff > 63 ||
+ scanInfo.firstCoeff > scanInfo.lastCoeff) {
+ error(getPos(), "Bad DCT coefficient numbers in scan info block");
+ return gFalse;
+ }
c = str->getChar();
scanInfo.ah = (c >> 4) & 0x0f;
scanInfo.al = c & 0x0f;
diff -c -r xpdf-3.02pl1.orig/xpdf/Stream.h xpdf-3.02/xpdf/Stream.h
*** xpdf-3.02pl1.orig/xpdf/Stream.h Tue Feb 27 14:05:52 2007
--- xpdf-3.02/xpdf/Stream.h Thu Oct 25 15:48:15 2007
***************
*** 528,540 ****
int row; // current row
int inputBuf; // input buffer
int inputBits; // number of bits in input buffer
! short *refLine; // reference line changing elements
! int b1; // index into refLine
! short *codingLine; // coding line changing elements
! int a0; // index into codingLine
int outputBits; // remaining ouput bits
int buf; // character buffer
short getTwoDimCode();
short getWhiteCode();
short getBlackCode();
--- 528,542 ----
int row; // current row
int inputBuf; // input buffer
int inputBits; // number of bits in input buffer
! int *codingLine; // coding line changing elements
! int *refLine; // reference line changing elements
! int a0i; // index into codingLine
! GBool err; // error on current line
int outputBits; // remaining ouput bits
int buf; // character buffer
+ void addPixels(int a1, int black);
+ void addPixelsNeg(int a1, int black);
short getTwoDimCode();
short getWhiteCode();
short getBlackCode();

View File

@@ -1,31 +0,0 @@
#############################################################
#
# xpdf
#
#############################################################
XPDF_VERSION = 3.02
XPDF_SOURCE = xpdf-$(XPDF_VERSION).tar.gz
XPDF_SITE = ftp://ftp.foolabs.com/pub/xpdf
XPDF_AUTORECONF = NO
XPDF_INSTALL_STAGING = NO
XPDF_INSTALL_TARGET = YES
XPDF_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
XPDF_CONF_OPT = --enable-multithreaded
ifeq ($(BR2_SOFT_FLOAT),y)
XPDF_CONF_OPT += --enable-fixedpoint
endif
ifeq ($(BR2_PACKAGE_XORG7),y)
XPDF_DEPENDENCIES += xserver_xorg-server openmotif
XPDF_CONF_OPT += --with-Xm-library=$(STAGING_DIR)/usr/lib --with-Xm-includes=$(STAGING_DIR)/usr/include/Xm \
--with-x --with-freetype2-includes=$(STAGING_DIR)/usr/include \
--with-freetype2-library=$(STAGING_DIR)/usr/lib CFLAGS="-I$(STAGING_DIR)/usr/include/freetype2" \
CXXFLAGS="-I$(STAGING_DIR)/usr/include/freetype2"
endif
XPDF_DEPENDENCIES = freetype
$(eval $(call AUTOTARGETS,package,xpdf))

View File

@@ -20,10 +20,10 @@ $(CRAMFS_DIR): $(DL_DIR)/$(CRAMFS_SOURCE)
toolchain/patch-kernel.sh $(CRAMFS_DIR) target/cramfs/ cramfs\*.patch
$(CRAMFS_DIR)/mkcramfs: $(CRAMFS_DIR)
$(MAKE) CFLAGS="-Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" -C $(CRAMFS_DIR)
$(MAKE) CFLAGS="$(HOST_CFLAGS) -Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="$(HOST_LDFLAGS)" -C $(CRAMFS_DIR)
touch -c $@
cramfs: $(CRAMFS_DIR)/mkcramfs
cramfs: host-zlib $(CRAMFS_DIR)/mkcramfs
cramfs-source: $(DL_DIR)/$(CRAMFS_SOURCE)

View File

@@ -126,7 +126,7 @@ choice
Select the specific Linux version you want to use
config BR2_LINUX_2_6_STABLE
bool "The latest stable Linux kernel (2.6.32.8)"
bool "The latest stable Linux kernel (2.6.32.9)"
config BR2_LINUX_2_6_32
bool "Linux 2.6.32"

View File

@@ -19,42 +19,60 @@ config LINUX26_LATEST_MM_VERSION
config BR2_KERNEL_CURRENT_VERSION
string
default "2.6.32.8"
default "2.6.32.9"
help
This is the latest stable kernel (including minor version)
This is the latest stable kernel (including minor version).
config BR2_KERNEL_LATEST_2_6_32
string
default "8"
default "9"
help
Released 2010-Feb-23.
config BR2_KERNEL_LATEST_2_6_31
string
default "12"
help
Released 2010-Jan-18 (last .31-stable release).
config BR2_KERNEL_LATEST_2_6_30
string
default "2"
default "10"
help
Released 2009-Dec-04 (last .30-stable release).
config BR2_KERNEL_LATEST_2_6_29
string
default "6"
help
Released 2009-Jul-02 (last .29-stable release).
config BR2_KERNEL_LATEST_2_6_28
string
default "10"
help
Released 2009-May-02 (last .28-stable release).
config BR2_KERNEL_LATEST_2_6_27
string
default "27"
default "45"
help
Released 2010-Jan-28.
config BR2_KERNEL_LATEST_2_6_26
string
default "8"
help
Released 2008-Nov-10 (last .26-stable release).
config BR2_KERNEL_LATEST_2_6_25
string
default "19"
default "20"
help
Released 2008-Nov-10.
config BR2_KERNEL_LATEST_2_6_24
string
default "7"
help
Released 2008-May-07.

View File

@@ -0,0 +1,65 @@
Fix the build system so that CFLAGS can be overriden on the command
line to pass additionnal -I options.
Patch borrowed from OpenEmbedded.
Index: squashfs-4.0/squashfs-tools/Makefile
===================================================================
--- squashfs-4.0.orig/squashfs-tools.orig/Makefile 2009-04-19 01:47:43.000000000 +0200
+++ squashfs-4.0/squashfs-tools/Makefile 2009-04-19 01:52:36.000000000 +0200
@@ -1,36 +1,48 @@
INSTALL_DIR = /usr/local/bin
INCLUDEDIR = .
+CFLAGS_R = -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
+LIBS = -lz -lpthread
CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -O2
all: mksquashfs unsquashfs
mksquashfs: mksquashfs.o read_fs.o sort.o swap.o pseudo.o
- $(CC) mksquashfs.o read_fs.o sort.o swap.o pseudo.o -lz -lpthread -lm -o $@
+ $(CC) $(LDFLAGS) mksquashfs.o read_fs.o sort.o swap.o pseudo.o -lz -lpthread -lm -o $@
mksquashfs.o: mksquashfs.c squashfs_fs.h mksquashfs.h global.h sort.h squashfs_swap.h Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
read_fs.o: read_fs.c squashfs_fs.h read_fs.h global.h squashfs_swap.h Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
sort.o: sort.c squashfs_fs.h global.h sort.h Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
swap.o: swap.c Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
pseudo.o: pseudo.c pseudo.h Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
unsquashfs: unsquashfs.o unsquash-1.o unsquash-2.o unsquash-3.o unsquash-4.o swap.o
- $(CC) unsquashfs.o unsquash-1.o unsquash-2.o unsquash-3.o unsquash-4.o swap.o -lz -lpthread -lm -o $@
+ $(CC) $(LDFLAGS) unsquashfs.o unsquash-1.o unsquash-2.o unsquash-3.o unsquash-4.o swap.o -lz -lpthread -lm -o $@
-unsquashfs.o: unsquashfs.h unsquashfs.c squashfs_fs.h squashfs_swap.h squashfs_compat.h global.h Makefile
+unsquashfs.o: unsquashfs.c unsquashfs.h squashfs_fs.h squashfs_swap.h squashfs_compat.h global.h Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
-unsquash-1.o: unsquashfs.h unsquash-1.c squashfs_fs.h squashfs_compat.h global.h Makefile
+unsquash-1.o: unsquash-1.c unsquashfs.h squashfs_fs.h squashfs_compat.h global.h Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
-unsquash-2.o: unsquashfs.h unsquash-2.c unsquashfs.h squashfs_fs.h squashfs_compat.h global.h Makefile
+unsquash-2.o: unsquash-2.c unsquashfs.h unsquashfs.h squashfs_fs.h squashfs_compat.h global.h Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
-unsquash-3.o: unsquashfs.h unsquash-3.c squashfs_fs.h squashfs_compat.h global.h Makefile
+unsquash-3.o: unsquash-3.c unsquashfs.h squashfs_fs.h squashfs_compat.h global.h Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
-unsquash-4.o: unsquashfs.h unsquash-4.c squashfs_fs.h squashfs_swap.h global.h Makefile
+unsquash-4.o: unsquash-4.c unsquashfs.h squashfs_fs.h squashfs_swap.h global.h Makefile
+ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o $@ $<
clean:
-rm -f *.o mksquashfs unsquashfs

View File

@@ -18,9 +18,9 @@ $(SQUASHFS_DIR)/.unpacked: $(DL_DIR)/$(SQUASHFS_SOURCE) #$(SQUASHFS_PATCH)
touch $@
$(SQUASHFS_DIR)/squashfs-tools/mksquashfs: $(SQUASHFS_DIR)/.unpacked
$(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools
$(MAKE) CFLAGS="$(HOST_CFLAGS)" LDFLAGS="$(HOST_LDFLAGS)" -C $(SQUASHFS_DIR)/squashfs-tools
squashfs: $(SQUASHFS_DIR)/squashfs-tools/mksquashfs
squashfs: host-zlib $(SQUASHFS_DIR)/squashfs-tools/mksquashfs
squashfs-source: $(DL_DIR)/$(SQUASHFS_SOURCE)

View File

@@ -37,6 +37,7 @@ endif
ifndef BINUTILS_NO_MPFR
BINUTILS_HOST_PREREQ:=$(TOOLCHAIN_DIR)/gmp/lib/libgmp$(HOST_LIBEXT) \
$(TOOLCHAIN_DIR)/mpfr/lib/libmpfr$(HOST_LIBEXT)
HOST_SOURCE += host-libgmp-source host-libmpfr-source
BINUTILS_TARGET_PREREQ:=$(TARGET_DIR)/usr/lib/libgmp$(LIBTGTEXT) \
$(TARGET_DIR)/usr/lib/libmpfr$(LIBTGTEXT)

View File

@@ -107,6 +107,7 @@ endif
ifndef GCC_NO_MPFR
GCC_WITH_HOST_GMP=--with-gmp=$(GMP_HOST_DIR)
GCC_WITH_HOST_MPFR=--with-mpfr=$(MPFR_HOST_DIR)
HOST_SOURCE += host-libgmp-source host-libmpfr-source
ifeq ($(BR2_INSTALL_FORTRAN),y)
GCC_TARGET_LANGUAGES:=$(GCC_TARGET_LANGUAGES),fortran
@@ -459,6 +460,10 @@ ifeq ($(findstring x4.3,x$(GCC_VERSION)),x4.3)
GCC_LIB_SUBDIR=lib/gcc/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)
GCC_INCLUDE_DIR:=include-fixed
endif
ifeq ($(findstring x4.4,x$(GCC_VERSION)),x4.4)
GCC_LIB_SUBDIR=lib/gcc/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)
GCC_INCLUDE_DIR:=include-fixed
endif
$(TARGET_DIR)/usr/bin/gcc: $(GCC_BUILD_DIR3)/.compiled
PATH=$(TARGET_PATH) DESTDIR=$(TARGET_DIR) \

View File

@@ -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.8" if BR2_KERNEL_HEADERS_2_6_32
default "2.6.32.9" 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