Commit Graph

236 Commits

Author SHA1 Message Date
Rosen Penev 572e34843a
scons: update to 4.0.1
Cleaned up Makefile to standards.

Replaced HIDDEN with BUILDONLY. It's more descriptive.

Added PKG_HOST_ONLY. This is a host only package.

Added HOST_BUILD_PARALLEL.

Added URL for uscan.

Added patch to fix library searching.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-05 00:53:13 -07:00
Rosen Penev b01076ccd8
meson: backport upstream rpath fix
-Wl,rpath= does not work with clang, yet -Wl,rpath, does not work with
meson. Backport upstream patch fixing this.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-08-01 09:34:17 -07:00
Rosen Penev 6b65b20664
meson: backport no setuptools patch
It seems this was cut after the release. Fixes CircleCI compilation.

Remove distutils patch. It looks like it does nothing.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-25 00:25:55 -07:00
Rosen Penev c7057755cd
meson: update to 0.55.0
Remove upstreamed patch and add distutils one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-23 18:55:13 -07:00
Rosen Penev 737f1f46ce
meson: fix arch mapping
meson uses a different architecture mapping than CONFIG_ARCH does.

Fix the problematic ones and fall back to CONFIG_ARCH.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-07-18 15:31:37 -07:00
Rosen Penev 0710282a6b
meson: update to 0.54.3
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-29 15:19:17 -07:00
Rosen Penev ab913c6565
automake: update to 1.16.2
Added PKG_BUILD_PARALLEL for faster compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-06 21:08:33 -07:00
Rosen Penev c3127bdc86
pkgconf: update to 0.7.3
Switched to building with meson. Faster.

Add missing InstallDev section.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-06-02 13:32:14 -07:00
Rosen Penev 6ce19ac7c2
make: update to 4.3
Switch to gz tarball. bz2 one went away.

Add PKG_BUILD_PARALLEL for faster compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-05-28 12:41:32 -07:00
Rosen Penev b385702309
meson: update to 0.54.2
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-05-20 12:29:37 -07:00
Rosen Penev 67c6bb1937
meson: update to 0.54.1
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-05-01 12:56:22 -07:00
Rosen Penev d88e1ae4dd
meson: fix rpath handling
This was uncovered with glib2 where the host builds were linking to the
actual host instead of the generated libraries.

Patch taken from buildroot.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-22 18:37:33 -07:00
Rosen Penev 48ef84ccef
Merge pull request #11874 from neheb/meson
meson: allow compilation in a subdirectory
2020-04-21 21:46:08 -07:00
Jeffery To 1bc2f4f3c6 treewide: Remove Python variants for non-Python packages
This removes Python-related build variants, and adds
PYTHON3_PKG_BUILD:=0 and minor build adjustments (where appropriate),
for non-Python packages. There should be no changes to build output.

This also updates some include paths for python3-package.mk and/or
python3-host.mk to be relative to the package Makefile.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-19 01:56:23 +08:00
Rosen Penev e74498c97a
meson: allow compilation in a subdirectory
Small tweak to get it to build.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-18 00:22:12 -07:00
Josef Schlehofer 5f19c28578 meson: update to version 0.54.0
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2020-04-06 21:46:27 -10:00
Rosen Penev ef3b3f61c2
Merge pull request #11518 from neheb/mes
meson: update to 0.53.2
2020-03-13 21:17:57 -07:00
David Bauer 5091c82333 lttng: replace SUBDIRS with M in package recipe
The SUBDIRS variable has been removed in kernel 5.4, and was deprecated
since the beginnig of kernel git history in favour of M or KBUILD_EXTMOD.

Signed-off-by: David Bauer <mail@david-bauer.net>
2020-03-11 00:47:14 +01:00
Rosen Penev ccb70a3407
meson: update to 0.53.2
Switched to PyPI.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-06 16:26:31 -08:00
Rosen Penev 66bf801f3a meson: update to 0.53.1
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-05 02:31:05 -08:00
Rosen Penev 1c4e99cc4e
ninja: updated to 1.10.0
Removed upstreamed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-04 19:55:18 -08:00
Jeffery To 644a16f962 scons: Switch to standalone version, update to 3.1.2
* Install the standalone (scons-local) version

  Advantages:
  - The regular version of SCons requires distutils during installation;
    the standalone version does not have this requirement

  Disadvantages:
  - The scons-local package is not available from the Fossies mirror
  - The patch will need to be manually updated with each version update

* Install files to $(STAGING_DIR_HOSTPKG) instead of $(STAGING_DIR_HOST)

* Write the correct shebang into scripts instead of using the wrapper

* Update to 3.1.2

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-16 20:25:48 +08:00
Rosen Penev 56e090ffff
Merge pull request #10976 from jefferyto/asu-python3
asu: Change Python 2 dependencies to Python 3
2020-01-12 14:46:29 -08:00
Andre Heider f5c8565d1b meson: fix building host binaries with ccache
With CONFIG_CCACHE, $HOSTCC is 'ccache gcc' while $TARGET_CC points to a
single wrapper script. Compiling target binaries with ccache works, but
doesn't for host binaries, because we need to supply an argv array for
argc > 1 in the meson cross file.

Always pass an array for the c and c++ compiler, and while at it, do it
for the target as well - just to be on the safe side if that ever
changes.

Fixes #10982.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2020-01-11 18:49:17 +01:00
Jeffery To 8bd4b03ef3 asu: Change Python 2 dependencies to Python 3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-10 20:58:23 +08:00
Josef Schlehofer ce027362c4
meson: Update to version 0.52.1
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-12-16 16:40:34 +01:00
W. Michael Petullo 722ec42b43 gcc: fix build with 8.3.0
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2019-11-09 02:01:53 -05:00
Rosen Penev 243a1a1324 pkg-config: Add CONFLICTS for pkgconf
Fixed license information.

Added PKG_BUILD_PARALLEL for faster compilation.

Remove PKG_ASLR_PIE. It seems it's going through a rework.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-11-02 11:14:50 -07:00
Rosen Penev a1a2544bde pkgconf: Add package
pkgconf is a lighterweight alternative to pkg-config that does not require
glib2.

It also seems to be improved in several key areas. See the feature
comparison: http://pkgconf.org/features.html

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-11-02 11:14:50 -07:00
Andre Heider d83cba79c1 meson: add new package
This adds a host as well as a target package.

meson.mk is provided to build packages using meson.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-11-01 08:14:25 +01:00
Andre Heider 5ead78be5a ninja: add new package
This adds a host as well as a target package.

ninja.mk is provided to execute ninja.

The two patches have been taken from upstream to fix compile issues.

Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-11-01 08:14:25 +01:00
Jeffery To 635cb1309c treewide: Use pypi.mk for Python packages
This updates all Python packages that download their source from PyPi to
use pypi.mk.

This will allow future improvements/changes to pypi.mk to affect all
relevant packages.

This also makes it easier for future Python packages to start using
pypi.mk, when it's clear how it is used in existing packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-30 23:16:18 +08:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
Petr Štetiar 7087efd72a scons: move host build tool to a proper place
This patch aims to move scons host build tool into packages feeds, where
this tools belongs. There are currently no packages in the master tree
which would need scons, yet scons is build always as part of host tools,
just in order to satisfy host build dependency of few packages in the
packages feeeds.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-09-13 07:09:28 +02:00
Sven Eckelmann bbb1ea7345 treewide: Change .*GPL.*+ licenses to SPDX compatible identifier
The CONTRIBUTING.md requests an (or multiple) SPDX identifier for GPL
licenses. But a lot of packages did use a different, non-SPDX style with a
"+" at the end instead of "-or-later".

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2019-09-10 07:45:15 +02:00
Russell Senior 604102a865 patch: rename CVE-2019-13638 patch to mollify uscan
Signed-off-by: Russell Senior <russell@personaltelco.net>
2019-09-01 15:56:23 -07:00
Russell Senior b82198ff47 patch: apply upstream patch for CVE-2019-13638
GNU patch through 2.7.6 is vulnerable to OS shell command injection that
can be exploited by opening a crafted patch file that contains an ed style
diff payload with shell metacharacters. The ed editor does not need to be
present on the vulnerable system. This is different from CVE-2018-1000156.

https://nvd.nist.gov/vuln/detail/CVE-2019-13638

Signed-off-by: Russell Senior <russell@personaltelco.net>
2019-08-11 13:01:04 -07:00
Noble Pepper 31977ae6f3
gcc: fix build on x86 targets
Signed-off-by: Noble Pepper <noblepepper@gmail.com>
(cherry-picked from 32203bec9)
2019-08-04 14:51:54 -07:00
Russell Senior c8142f1ac1 tools/patch: apply upstream patch for CVE-2019-13636
In GNU patch through 2.7.6, the following of symlinks is mishandled in
certain cases other than input files. This affects inp.c and util.c.

https://nvd.nist.gov/vuln/detail/CVE-2019-13636

Signed-off-by: Russell Senior <russell@personaltelco.net>
2019-07-29 13:14:58 -07:00
Noble Pepper 5caa181b17
gcc: update to version 7.4.0, Add config options
for coping libc.a, libpthread.a and libstdc++ to target.
Add config option to eliminate need for -lstdc++ and -lgcc_pic
switches when linking statically

Signed-off-by: Noble Pepper <noblepepper@gmail.com>
2019-07-19 22:14:11 -07:00
Yousong Zhou b02e4eafd1 diffutils: provide diff, cmp as alternatives
Resolves openwrt/packages#6361

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-06-15 13:28:43 +08:00
Rosen Penev 91c97efbf4 make: Do not use libelf
libelf is used under Solaris for nlist. This is not needed in OpenWrt.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-06-02 14:06:24 -07:00
Rosen Penev 9777877718
lttng-tools: Update to 2.10.6
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-04-07 17:13:33 -07:00
Daniel Golle c13ae5ba28 asu: improve packaging
* use gunicorn instead of Flask for main server threads
 * generate and deploy random database password
 * provide distribution files

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-03-08 04:26:31 +01:00
Daniel Golle 31950ff200 asu: add attended sysupgrade server package
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2019-03-08 03:36:25 +01:00
Rosen Penev b2de31d22a
diffutils: Update to 3.7
Some Makefile consistency updates.

Added PKG_BUILD_PARALLEL for faster compilation.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-16 21:39:47 -08:00
Rosen Penev bba50f547f lttng-modules: Update to 2.10.8
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-12-08 19:54:48 -08:00
Michael Heimpold d7fefd2963 automake: update to 1.15.1
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2018-11-07 23:59:42 +01:00
Rosen Penev 394ff73e53 patch: Add missing CVE-2018-6951 patch
The last commit added PKG_CPE_ID and now uscan detects a CVE that I missed

Reordered patches by date

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[tweaked commit message]
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2018-10-18 08:41:32 +01:00
Rosen Penev 6f0ff25503 patch: Fix CVE-2018-6952 and CVE-2018-1000156
Patches taken from official git repository.

Added PKG_CPE_ID for proper CVE tracking.

Added PKG_BUILD_PARALLEL for faster compilation.

Also adjusted Makefile to be more similar to other projects.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-10-12 14:27:25 -07:00
Hannu Nyman 0198114039
Merge pull request #6256 from neheb/patch-17
pkg-config: Update to 0.29.2
2018-07-10 22:58:21 +03:00
Sébastien Delafond 698821001f diffutils: fix 'compilation error on x86_64
Here was the first error I got:

  xstrtol-error.c:84:26: error: invalid use of undefined type 'struct
  rpl_option'

More information on this error here:
  https://www.mail-archive.com/clfs-support@lists.clfs.org/msg00297.html

I'm not sure if this is an issue in my build environment, but I believe
this is the proper fix because gzip and zile use the same option:

  ./utils/gzip/Makefile:	gl_cv_func_getopt_gnu=yes \
  ./utils/zile/Makefile:	gl_cv_func_getopt_gnu=yes \

This commit is mostly a reformat/sign-off of previous work by Dirk
Morris <dmorris@untangle.com>

Signed-off-by: Sébastien Delafond <sdelafond@gmail.com>
2018-06-13 18:15:26 +02:00
Rosen Penev 84856c27f1 pkg-config: Update to 0.29.2
Also switch to HTTPS URLs.

Add PIE support to fix Travis.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-06-10 17:36:32 -07:00
Eneas U de Queiroz 054d5273cb gcc: enable compilation with gcc 7.x
Defining _GLIBCXX_INCLUDE_NEXT_C_HEADERS instructs gcc 7.x libstdc++ to
include the system's stdlib.h and math.h, and not their own.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-05-23 14:21:20 -03:00
Russell Senior 47351ade2f patch: update to version 2.7.6
Signed-off-by: Russell Senior <russell@personaltelco.net>
2018-02-13 02:29:27 -08:00
Hannu Nyman f37c3df222 diffutils: update to 3.6
Update GNU diffutils to 3.6

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-01-05 22:50:28 +02:00
Alexander Couzens a7289e54f8 lpc21isp: remove build timestamp
Build timestamps prevent reproducible builds [0].

[0] https://reproducible-builds.org/docs/timestamps/

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2017-12-03 06:21:45 +01:00
Etienne Champetier 4006865ae8 treewide: run "make check FIXUP=1"
fix Makefile chmod (644)
replace MD5SUM with HASH
add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git

(PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now)

Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
2017-08-29 21:41:14 -07:00
Hannu Nyman d077d5b5a7 Merge pull request #3768 from xypron/m4
devel/m4: upgrade to release 1.4.18
2017-04-23 10:10:55 +03:00
Heinrich Schuchardt ae782d26b1 devel/m4: upgrade to release 1.4.18
NEWS has these comments:

Noteworthy changes in release 1.4.18 (2016-12-31) [stable]
* Diagnose --word-regexp as unsupported if it was not configured.
* Preliminary support for OS/2.
* A number of portability improvements inherited from gnulib.

SHA256SUM is used as package checksum

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2017-04-22 23:21:22 +02:00
Noble Pepper 4224c4ccf4 gcc:Add support for Arm with FPU
also removes erroneous --with-local-prefix=/usr configure option
Signed-off-by: Noble Pepper <gitmail@noblepepper.com>

compile tested:
mips Vocore2
mvebu  WRT1200AC (Caiman)

run tested:
mips Vocore2
mvebu  WRT1200AC (Caiman)
2017-01-26 04:09:05 -06:00
Hannu Nyman 7e2e9d5c89 Merge pull request #3280 from diizzyy/patch-15
make switch to bz2 tarball
2016-11-29 20:20:44 +02:00
Michael Heimpold 93ed17cded autoconf: prevent emacs detection and usage during compile
The LEDE buildbots currently fail to build the package since there seems
to be a problem with the emacs installed on the buildbot(s) (e.g. [1]):

-snip-
Making all in emacs
make[7]: Entering directory `/opt/buildbot/slaves/lede-slave-tah/x86_64/build/sdk/build_dir/target-x86_64_musl-1.1.15/autoconf-2.69/lib/emacs'
WARNING: Warnings can be ignored. :-)
if test "emacs" != no; then \
      set x; \
      list='autoconf-mode.el autotest-mode.el'; for p in $list; do \
        if test -f "$p"; then d=; else d="./"; fi; \
        set x "$@" "$d$p"; shift; \
      done; \
      shift; \
      EMACS="emacs" /bin/bash ../../build-aux/elisp-comp "$@" || exit 1; \
    else : ; fi
4;1H; last errno 10)
No buffers needed saving: you didn't lose any work.
mv: cannot stat '*.elc': No such file or directory
make[7]: *** [elc-stamp] Error 1
-snap-

So let's disable the emacs usage - the resulting artifacts are not
packaged at the moment at all.

[1] https://downloads.lede-project.org/snapshots/faillogs/x86_64/packages/autoconf/compile.txt

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Acked-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-10-27 17:31:41 +02:00
Hannu Nyman 172c50c4b1 Merge pull request #3278 from diizzyy/patch-13
libtool-bin: switch to xz tarball
2016-10-27 09:47:28 +03:00
Matthias Schiffer 06692e3c24
automake: don't rely on STAGING_DIR_HOST
We're currently preparing a change in LEDE that will change the host
staging dirs in a way that might break the sed commands used by the
automake Makefile. Change the command in a way that doesn't depend on the
path of the staging dir.

While it would be nicer to modify the configure script to use the correct
path in the first place, this doesn't work for the perl path, as perl is
used in shebang lines and must thus be an absolute path. Some scripts are
used both during build and on the target system, so fixing up the scripts
in the install step seems like the best option.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-10-16 17:49:13 +02:00
Matthias Schiffer 9e170ba2c0
autoconf: don't rely on STAGING_DIR_HOST
We can just set M4 in the configure command instead of fixing up the paths
using sed afterwards. This makes the build more robust (and we're currently
preparing a change of the host staging dirs in LEDE that might break this
otherwise).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-10-16 17:48:15 +02:00
Matthias Schiffer bc65f629d6
libtool-bin: don't rely on STAGING_DIR_HOST
We can just set GREP and SED in the configure command instead of fixing up
the paths using sed afterwards. This makes the build more robust (and we're
currently preparing a change of the host staging dirs in LEDE that might
break this otherwise).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-10-16 17:44:48 +02:00
Hannu Nyman ffce02f10f Merge pull request #3277 from diizzyy/patch-12
automake: switch to xz tarball
2016-10-15 01:11:21 +03:00
Hannu Nyman b58a5ce47a Merge pull request #3276 from diizzyy/patch-11
autoconf: switch to xz tarball
2016-10-15 01:10:55 +03:00
Ted Hess 5d10d10707 Merge pull request #3279 from diizzyy/patch-14
m4: switch to xz tarball
2016-10-07 17:03:31 -04:00
Noble Pepper 77a8b220fd gcc: Update to version 5.4.0, change maintainer
Signed-off-by: Noble Pepper <noblepepper@gmail.com>
2016-10-02 04:34:31 -05:00
diizzyy 79ae5d7074 make switch to bz2 tarball
Switch to bz2 tarball

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-10-01 23:23:45 +02:00
diizzyy 9f3fc6f756 m4: switch to xz tarball
Switch to xz tarball

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-10-01 23:19:56 +02:00
diizzyy fa679bb173 libtool-bin: switch to xz tarball
Switch to xz tarball

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-10-01 23:16:05 +02:00
diizzyy 32cd810478 automake: switch to xz tarball
Switch to xz tarball

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-10-01 23:10:53 +02:00
diizzyy 5f91b00fb3 autoconf: switch to xz tarball
Switch to xz tarball

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-10-01 23:07:26 +02:00
champtar 73afc9c023 Merge pull request #2722 from jow-/lttng-tools-fix
lttng-tools: musl compile fixes
2016-07-02 15:43:09 +02:00
champtar 2bdc3323fe Merge pull request #2572 from Skeen/lpc21isp
lpc21isp: Add the package
2016-07-02 11:36:16 +02:00
Heinrich Schuchardt 2c37154807 devel/make: GNU Make 4.2.1
The release contains a bunch of bug fixes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-06-13 19:56:17 +02:00
diizzyy 6217aa43d2 gcc: Use URL alias
Remove hardcoded URL and use alias instead.

Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
2016-05-24 21:09:18 +02:00
Heinrich Schuchardt 34b831ad5b devel/make: GNU Make 4.2
The release contains a bunch of bug fixes.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-05-23 07:55:03 +02:00
Jo-Philipp Wich bd949ea29f lttng-tools: musl compile fixes
Add two patches to address three distinct build problems spotted by our
build bots when compiling lttng-tools:

1) unconditional use of `__GLIBC_PREREQ`

On musl based toolchains there is no such macro defined, leading to the
following preprocessor error:

      CC       compat-epoll.lo
    In file included from compat-epoll.c:33:0:
    poll.h:76:19: error: missing binary operator before token "("
     #if __GLIBC_PREREQ(2, 9)

2) undeclared `mode_t` type

On musl based toolchains the `mode_t` type is not implicitely defined through
other includes, leading to the following compile error:

      CC       hashtable.lo
    In file included from ../../../src/common/common.h:24:0,
                     from hashtable.c:24:
    ../../../src/common/runas.h:25:46: error: unknown type name 'mode_t'
     int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
                                                  ^
    ../../../src/common/runas.h:26:36: error: unknown type name 'mode_t'
     int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid);
                                        ^
    ../../../src/common/runas.h:27:46: error: unknown type name 'mode_t'
     int run_as_open(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid);
                                                  ^

3) multiple definitions

The header files declare several `const char *` pointers which are initialized
in various `*.c` files later on. Due to a missing `extern` declaration in the
header, the final linking of the executables fails with errors such as:

      CCLD     lttng
    ../../../src/common/.libs/libcommon.a(mi-lttng.o):(.data.rel.ro.local+0x0): multiple definition of `mi_lttng_element_snapshots'
    commands/enable_events.o:(.bss+0x18): first defined here
    collect2: error: ld returned 1 exit status

This commits addresses these issues with two patches, `100-musl-compat.patch`
fixes issue 1 by declaring a fallback dummy declaration of `__GLIBC_PREREQ` and
issue 2 by explicitely including `sys/stat.h` which provides `mode_t` according
to POSIX.

The second patch, `200-use-extern.patch` declares all char pointers in the
header file as `extern`, fixing the observed linker errors.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-05-20 14:07:28 +02:00
Emil 'Skeen' Madsen 93c32e1a88 Added the lpc21isp package.
Signed-off-by: Emil 'Skeen' Madsen <sovende@gmail.com>
2016-04-03 14:20:18 +02:00
Heinrich Schuchardt 04c0d95776 pkg-config: update to 0.29.1
The changes in 0.29.1 center on the treatment of --variable
and --define_variable.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-03-07 07:45:55 +01:00
Michael Heimpold 8223017fed automake: fix unversioned links during package build
Reported by buildbots (shortened and line-wrapped):
...
ln -sf -r .../ipkg-ramips_24kec/automake/usr/bin/automake-1.15
   .../ipkg-ramips_24kec/automake/usr/bin/automake
ln: invalid option -- 'r'

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-01-26 21:48:58 +01:00
Heinrich Schuchardt e207730a64 devel/libtool-bin: new package
GNU libtool is used to ease the usage of shared libraries in Makefiles.

The new package libtool-bin contains the script libtoolize which is used
to prepare a package to use libtool.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-01-23 22:48:37 +01:00
Heinrich Schuchardt 686606eaae devel/automake: add automake-$(PKG_VERSION)
To make automake work correctly it is necessary to have files
* automake
* aclocal
* automake-$(PKG_VERSION)
* aclocal-$(PKG_VERSION)

The files without version number can be supplied as symbolic
links.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-01-09 19:39:13 +01:00
Michael Heimpold 40d611c673 devel/pkg-config: fix build when CONFIG_BUILD_NLS is set
Buildbots reported build failures when full NLS is enabled:

http://buildbot.openwrt.org:8010/broken_packages/ar71xx/pkg-config/compile.txt

So add NLS awareness and the conditional dependency.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-01-08 22:59:06 +01:00
Heinrich Schuchardt d44c1a9bcf devel/pkg-config: new package (closes #2206)
pkg-config is a helper tool used when compiling applications and libraries.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

[Fixed trailing whitespace in package description.]

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-01-02 00:02:04 +01:00
Heinrich Schuchardt c6ac1e3f76 devel/automake: add new package (closes #2192)
Automake is a tool for automatically generating Makefile.in files compliant
with the GNU Coding Standards.

A new package automake is provided.

version 2:
	do not reference staging directory in distributed files
	copy only one version of automake
	resolve whitespace issues

CC: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2015-12-29 12:48:15 +01:00
Heinrich Schuchardt 0f1abd63f8 devel/autoconf: add new package (closes #2190)
This patch provides package autoconf.

Autoconf is required to generated the configure script of autotools
projects.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

[Fixed commit summary (first line of commit message)]

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-27 12:24:33 +01:00
Heinrich Schuchardt 89d35c260e devel/m4: add new package (closes #2189)
GNU M4 is a prerequisite to run autoconf and automake.

This patch packages the macro processor.

This is a prerequisite for packaging autoconf and automake.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

[Fixed commit summary according to our best-practise]

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-27 12:23:11 +01:00
Heinrich Schuchardt 53c7868491 GNU Make
OpenWRT provides gcc but lacks make. So building foreign software is
difficult.

This patch provides GNU Make 4.1.

Built on Debian Jessie amd64.
Tested on TP-Link MR3020 (ar71xx/generic).

version 4:
	remove gnumake.h from the package
	We could package it in a separate make-dev package if really needed.

version 3:
	use Build/InstallDev to provide build time dependency

version 2:
	superfluous lines removed as suggested by Yousong Zhou

CC: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2015-12-26 21:13:58 +01:00
Christian Beier 82e56d1bf8 gcc: fix build with musl.
Signed-off-by: Christian Beier <cb@shoutrlabs.com>
2015-07-21 16:01:59 +02:00
Jo-Philipp Wich d80ab67b13 diffutils: fix fortify source compat
Compile with `-std=gnu99` instead of `-std=c99` to avoid redefining
`__attribute__` in `src/system.h`.

Fixes the following error spotted by the buildbot:

    In file included from ../lib/stdio.h:43:0,
                     from cmp.c:22:
    .../staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/include/fortify/stdio.h: In function 'snprintf':
    .../staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/include/fortify/stdio.h:99:2: error: invalid use of '__builtin_va_arg_pack ()'
      return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack());
      ^

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-06-29 11:39:57 +02:00
Nicolas Thill c1923c34cf lttng-modules: fix dependency on kernel tracing
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-05-13 01:20:19 +02:00
Nicolas Thill c7dbdcef17 lttng-modules: update to 2.6.1
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-05-13 01:20:19 +02:00
Nicolas Thill b06712cdec lttng-modules: fix build on recent kernels
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-04-02 17:02:11 +02:00
Hannu Nyman 3b6fd83312 patch: bump version to 2.7.5
Bump GNU patch from 2.7.4 to 2.7.5.

Changelog: http://git.savannah.gnu.org/cgit/patch.git/tree/NEWS
Changes in version 2.7.5:

* There are users which expect patch to follow symbolic links in the working
   directory, so patch now again follows symbolic links as long as they do not
   leave the working directory.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-03-14 12:09:34 +02:00
John Crispin 98be2ca3e0 global: change all instances of USE_EGLIBC to USE_GLIBC
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-03-12 20:52:37 +01:00
Nicolas Thill 2224d60af4 lttng-tools: fix build failure with libkmod (closes: #1004)
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-03-08 17:40:48 +01:00
Nicolas Thill 041fbeecad lttng-modules: add dependency on kernel tracing
Fixes: #888

Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-02-11 11:52:01 +01:00
Nicolas Thill dd313555f3 lttng-modules: add new package
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-02-08 20:55:48 +01:00
Nicolas Thill 0796ff4e36 lttng-tools: import from old packages feed
- update to latest version (v2.6.0)
 - add license info
 - add myself as maintainer

Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-02-08 20:55:48 +01:00
Russell Senior 6c6a48e75d patch: bump version to 2.7.4
Signed-off-by: Russell Senior <russell@personaltelco.net>
2015-02-01 22:36:19 -08:00
Russell Senior 734538e14e patch: bump to version 2.7.3
Signed-off-by: Russell Senior <russell@personaltelco.net>
2015-01-26 06:57:50 -08:00
harald.geyer@gmx.at 389940cab0 gcc: Update README: tested on arm (imx233-olinuxino) board
Signed-off-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2015-01-07 17:11:31 +01:00
harald.geyer@gmx.at 1a7de36186 gcc: Include libgcc.a on those architectures that need it
Right now these are arm, hppa, microblaze, powerpc, sh and xtensa.
So we just try to grep for it to figure out if it is needed.

Signed-off-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2015-01-07 17:11:03 +01:00
Christian Beier 480452dce8 gcc: work around wrongly detected sys/sdt.h header.
The build system somehow detects /usr/include/sys/sdt.h, which is part of systemtap-sdt-devel
package in the host environment but not present in the SDK.

This patch simply disables the check for sys/sdt.h, enabling building of this package when
systemtap-sdt-devel is installed in the host environment.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-10-23 16:44:49 +02:00
Roger 49439e6295 diffutils: add from old repo and update
Signed-off-by: Roger D <rogerdammit@gmail.com>
2014-09-12 18:41:39 -05:00
sbyx 2c88c2424f Merge pull request #194 from bk138/gcc-signed-off
gcc package refined
2014-08-12 17:25:44 +02:00
Christian Beier 372787d29b gcc: Use strip instead of sstrip as sstrip somehow stops the on-target compilation from working properly.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-12 12:57:37 +02:00
Christian Beier 304e86ff28 gcc: Get rid of those sed substitutions and use proper ./configure args instead.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-12 11:04:38 +02:00
Christian Beier f24052dd61 gcc: Specify target languages the right way.
There are no CONFIG_INSTALL_* vars in the SDK anymore.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 19:37:28 +02:00
Christian Beier c704c2f503 gcc: Build gcc version 4.8.3, refresh patches from openwrt.git.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 18:00:40 +02:00
Christian Beier b9683bf7df gcc: Ship all *nonshared*.a static libs.
Particularly, this fixes linking with pthreads.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 14:00:35 +02:00
Christian Beier 75dd400ae6 gcc: Remove notes that mpfr-dev and the like are needed on the build machine.
That's not true, at least for GCC 4.6.3.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 14:00:28 +02:00
Christian Beier bae28d4faa gcc: Remove patches that don't apply to 4.6.3.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 14:00:22 +02:00
Christian Beier 9b24b13654 gcc: Heavy Makefile modification, now builds and runs on target.
* Use the same GCC version as the Attitude Adjustment toolchain.
* Use REAL_GNU_TARGET_NAME that contains the _uclibc suffix.
  Otherwise the linker on the target is not found.
* Revamped install section to install only needed binaries and omit
  static .a libs.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 14:00:06 +02:00
Christian Beier 13e9670993 gcc: Enable parallel GCC builds.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 14:00:01 +02:00
Christian Beier ee43a57b74 gcc: Depend on binutils package.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:55 +02:00
Christian Beier e63c244828 gcc: Do not ship .info and .man files.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:50 +02:00
Christian Beier 0401ca4ca1 gcc: Add myself as maintainer.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:43 +02:00
Christian Beier 5ad8b4ff1e gcc: The variable is simply called CONFIGURE_ARGS and already contains the host,build, target triplet plus right prefixes.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:37 +02:00
Christian Beier e1be3f55d8 gcc: Add GCC 4.6 patches from official openwrt.git toolchain directory.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:31 +02:00
Christian Beier a95a32ce4c gcc: Add patch that fixes GCC building for MIPS.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:26 +02:00
Christian Beier 9ff77b0000 gcc: Add patch that fixes a build error when building a 32bit toolchain on 64bit build machine.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:20 +02:00
Christian Beier 41f562c066 gcc: Add README to gcc package explaining build-deps on host machine.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:14 +02:00
Christian Beier 758da3487e gcc: Update GCC Makefile to let it build gcc 4.6 for target.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:08 +02:00
Christian Beier 799110936e gcc: Add gcc package from git.openwrt.org/packages.git.
Signed-off-by: Christian Beier <dontmind@freeshell.org>
2014-08-10 13:59:00 +02:00
Ian Leonard f5a1d1bba6 Merge branch 'master' into license-updates
Signed-off-by: Ian Leonard <antonlacon@gmail.com>

Conflicts:
	devel/patch/Makefile
	multimedia/minidlna/Makefile
2014-08-10 01:09:06 -07:00
Ian Leonard f655203517 patch: Change to xz compressed tarball.
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2014-08-02 01:39:02 -07:00
Ian Leonard 9bbed19d90 patch: add PKG_LICENSE information.
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2014-08-02 01:34:16 -07:00
Etienne CHAMPETIER f567254fc2 patch: --disable-xattr (v2)
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
2014-06-30 22:43:30 +02:00
Etienne CHAMPETIER 165e0afeaa patch: --disable-xattr
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
2014-06-30 20:56:00 +02:00
Russell Senior aed796270a import GNU patch version 2.7.1
Signed-off-by: Russell Senior <russell@personaltelco.net>
2014-06-16 02:01:28 -07:00