buildroot.git
9 years agorsyslog: Fix systemd service creation
Maxime Hadjinlian [Tue, 14 Jul 2015 14:38:20 +0000 (16:38 +0200)]
rsyslog: Fix systemd service creation

The rsyslog.service is installed by rsyslog, but the link is not created
so the service is not enabled.
In order to install the service file, use the correct configure flag.

So the INSTALL_INIT_SYSTEMD will create the link, it will also create
another link which is due to the fact that the rsyslog.service contains
an Alias=

If we were to use systemctl enable to enable the service, it would
create both,so we mimic that.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agodocs/manual: Fix trivial typo
Jan Viktorin [Tue, 14 Jul 2015 15:17:20 +0000 (17:17 +0200)]
docs/manual: Fix trivial typo

Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agodocs/manual: relax python version requirement
Baruch Siach [Tue, 14 Jul 2015 15:49:18 +0000 (18:49 +0300)]
docs/manual: relax python version requirement

Buildroot should now work with host installed python version 3. Update the
manual accordingly.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agovala: bump to version 0.28.0
Gustavo Zacarias [Tue, 14 Jul 2015 19:42:53 +0000 (16:42 -0300)]
vala: bump to version 0.28.0

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoMakefile: save MAKE_VERSION
Gustavo Zacarias [Tue, 14 Jul 2015 21:30:39 +0000 (18:30 -0300)]
Makefile: save MAKE_VERSION

Save MAKE_VERSION as RUNNING_MAKE_VERSION since this is later clobbered
by the make package.

It will be used by the webkitgtk24 package to check for older make
versions which have a bug building it with parallel jobs (it hangs).

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agodocs/manual: add documentation for linux-ext and linux-tools.
Romain Naour [Tue, 14 Jul 2015 17:35:15 +0000 (19:35 +0200)]
docs/manual: add documentation for linux-ext and linux-tools.

[Thomas: misc improvements.]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/perf: migrate perf to use the new linux-tools infrastructure
Romain Naour [Tue, 14 Jul 2015 17:35:14 +0000 (19:35 +0200)]
package/perf: migrate perf to use the new linux-tools infrastructure

Remove the perf package and add legacy handling.

[Thomas:
  - improve the Config.in.legacy help text
  - improve the comment explaining why we pass O= when building perf]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolinux-tools: add cpupower
Romain Naour [Tue, 14 Jul 2015 17:35:13 +0000 (19:35 +0200)]
linux-tools: add cpupower

This patch is based on the patch send by James Knight:
http://lists.busybox.net/pipermail/buildroot/2015-May/128754.html

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Cc: James Knight <james.knight@rockwellcollins.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolinux: add linux-tools infra
Romain Naour [Tue, 14 Jul 2015 17:35:12 +0000 (19:35 +0200)]
linux: add linux-tools infra

This commit add an infrastructure to build linux kernel
tools available in the kernel sources.

Currently, the only linux kernel tool packaged in Buildroot
is perf and it's packaged as a separate generic package.
This is a problem for licence information raised in this
thread [1].

Since these tools require to build a Linux kernel, we can
use some hooks in linux package like we did for linux
extensions [2] and remove the perf package.

[1] http://lists.busybox.net/pipermail/buildroot/2015-May/128783.html
[2] http://lists.busybox.net/pipermail/buildroot/2015-March/121835.html

[Thomas: fix minor typos in comments.]

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/perf: use correct definition of ARCH on x86_64
Steven Noonan [Tue, 14 Jul 2015 17:35:11 +0000 (19:35 +0200)]
package/perf: use correct definition of ARCH on x86_64

LINUX_MAKE_FLAGS defines ARCH=$(KERNEL_ARCH), and KERNEL_ARCH is x86_64 on
a 64-bit x86 kernel build. The perf Makefiles expect that the ARCH will be
"x86" on both 32-bit x86 and 64-bit x86.

I didn't experience issues with the Linux 3.14.x version of perf, but this
issue cropped up once I started building 3.19.x.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
[Romain:
  - fix coding style]
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/perf: if libunwind is enabled, depend on it
Steven Noonan [Tue, 14 Jul 2015 17:35:10 +0000 (19:35 +0200)]
package/perf: if libunwind is enabled, depend on it

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
[Romain:
  - fix coding style]
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/perf: if numactl (libnuma) is enabled, depend on it
Steven Noonan [Tue, 14 Jul 2015 17:35:09 +0000 (19:35 +0200)]
package/perf: if numactl (libnuma) is enabled, depend on it

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
[Romain:
  - fix coding style]
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/perf: if slang is enabled, depend on it
Steven Noonan [Tue, 14 Jul 2015 17:35:08 +0000 (19:35 +0200)]
package/perf: if slang is enabled, depend on it

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
[Romain:
  - fix coding style]
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agobtrfs-progs: bump to version 4.1.2
Gustavo Zacarias [Tue, 14 Jul 2015 19:06:24 +0000 (16:06 -0300)]
btrfs-progs: bump to version 4.1.2

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage: include package/skeleton/Config.in
Thomas Petazzoni [Tue, 14 Jul 2015 16:17:09 +0000 (18:17 +0200)]
package: include package/skeleton/Config.in

This was missing from the patch introducing the skeleton package. It
was working fine, except that the skeleton package was not in the
global variable PACKAGES.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agograph-depends: Strip skeleton from dependency
Maxime Hadjinlian [Tue, 14 Jul 2015 11:36:26 +0000 (13:36 +0200)]
graph-depends: Strip skeleton from dependency

skeleton being a mandatory dependency, we don't want all our packages to
have a link back to that node, the graph would be awful.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoskeleton: New package
Maxime Hadjinlian [Tue, 14 Jul 2015 11:36:25 +0000 (13:36 +0200)]
skeleton: New package

Create a proper package for the skeleton.

The main Makefile is modified to remove the skeleton support.
The 'dirs' target, will create the $(TARGET_DIR).
The file 'output/target/.root' doesn't exists anymore, as there's no
Make rule to statisfy.

The infrastructure are modified to filter host-skeleton.
It's needed becauses the host-dependencies are derived from the
dependencies of the target package where 'host-' is preprended to the
depedency name.

In the pkg-generic we add skeleton as a dependency to every package.

The whole system/system.mk is now removed at the profit of
package/skeleton/skeleton.mk

[Thomas:
  - rebase on top of master and fix some minor conflicts
  - remove the 'select BR2_PACKAGE_SKELETON' in
    BR2_ROOTFS_SKELETON_DEFAULT and BR2_ROOTFS_SKELETON_CUSTOM, since
    anyway the skeleton package is always enabled.
  - fixup a few mistakes in the getty handling due to misnamed
    variables.]

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolibnl: remove patch to fix bmon breakage
Gustavo Zacarias [Tue, 14 Jul 2015 14:06:20 +0000 (11:06 -0300)]
libnl: remove patch to fix bmon breakage

Upstream decided that programs should be fixed, so so be it.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agobmon: bump to version 3.7
Gustavo Zacarias [Tue, 14 Jul 2015 14:06:19 +0000 (11:06 -0300)]
bmon: bump to version 3.7

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/qpid-proton: needs host-python2
Yann E. MORIN [Tue, 14 Jul 2015 14:03:39 +0000 (16:03 +0200)]
package/qpid-proton: needs host-python2

qpid-proton is using constructs that are not valid in python3, so we
must use a host python2 interpreter. To make this happen this commit
adds a dependency on host-python and explicitly tells CMake to use
$(HOST_DIR)/usr/bin/python2.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Baruch Siach <baruch@tkos.co.il>
Cc: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoglib-networking: bump to version 2.44.0
Gustavo Zacarias [Tue, 14 Jul 2015 14:01:00 +0000 (11:01 -0300)]
glib-networking: bump to version 2.44.0

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolibglib2: bump to version 2.44.1
Gustavo Zacarias [Tue, 14 Jul 2015 14:00:59 +0000 (11:00 -0300)]
libglib2: bump to version 2.44.1

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agodejavu: bump to version 2.35
Gustavo Zacarias [Tue, 14 Jul 2015 13:35:29 +0000 (10:35 -0300)]
dejavu: bump to version 2.35

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/nodejs: version bump to 0.10.40
Martin Bark [Tue, 14 Jul 2015 13:20:03 +0000 (14:20 +0100)]
package/nodejs: version bump to 0.10.40

Signed-off-by: Martin Bark <martin@barkynet.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agosamba4: bump to version 4.2.3
Gustavo Zacarias [Tue, 14 Jul 2015 13:19:40 +0000 (10:19 -0300)]
samba4: bump to version 4.2.3

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agorpi-userland: add Restart=always to vcfiled.service
Thomas Petazzoni [Tue, 14 Jul 2015 13:54:27 +0000 (15:54 +0200)]
rpi-userland: add Restart=always to vcfiled.service

As suggested by Maxime Hadjinlian, add Restart=always to
vcfiled.service so that this service gets restarted if it ever exits
for some reason.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agorpi-userland: systemd support
Alex Suykov [Sat, 23 May 2015 10:07:07 +0000 (13:07 +0300)]
rpi-userland: systemd support

[Thomas: use relative path for the symbolic link.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agotriggerhappy: systemd support
Alex Suykov [Sat, 23 May 2015 10:14:07 +0000 (13:14 +0300)]
triggerhappy: systemd support

[Thomas: use a relative symbolic link.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agotinyhttpd: systemd support
Alex Suykov [Sat, 23 May 2015 10:08:37 +0000 (13:08 +0300)]
tinyhttpd: systemd support

[Thomas: use relative symlink.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agomongoose: systemd support
Alex Suykov [Sat, 23 May 2015 10:05:13 +0000 (13:05 +0300)]
mongoose: systemd support

[Thomas: use relative symbolic link.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agosnappy: disable tests
Vicente Olivert Riera [Tue, 14 Jul 2015 11:31:11 +0000 (13:31 +0200)]
snappy: disable tests

This will also fix an unsafe header path problem:

/br/output/host/usr/bin/mips-linux-gnu-g++ -DHAVE_CONFIG_H -I.
-I/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64   -Os  -c -o snappy_unittest-snappy-test.o `test
-f 'snappy-test.cc' || echo './'`snappy-test.cc
mips-linux-gnu-g++: ERROR: unsafe header/library path used in
cross-compilation: '/usr/include'
Makefile:730: recipe for target 'snappy_unittest-snappy_unittest.o'
failed

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoolsr: update hash source comment
Baruch Siach [Tue, 14 Jul 2015 11:17:52 +0000 (14:17 +0300)]
olsr: update hash source comment

Commit ec9e34c9bb7c (olsr: bump version, 2015-07-14) update the hash but left
the old source comment. Fix this.

Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoheimdal: backport upstream commit to fix parallel build
Thomas Petazzoni [Tue, 14 Jul 2015 11:35:43 +0000 (13:35 +0200)]
heimdal: backport upstream commit to fix parallel build

Thanks to Vicente for an initial patch, and to Gustavo for pointing
out the relevant upstream fix.

Fixes:

  http://autobuild.buildroot.net/results/3a4/3a42c5b294a9a8602844ed1127ec5eadb60a6bed/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoheimdal: needs host-ncurses
Vicente Olivert Riera [Fri, 10 Jul 2015 16:05:07 +0000 (18:05 +0200)]
heimdal: needs host-ncurses

Otherwise it will fail with an error like this one:

checking for tgetent in -lcurses... no
checking for tgetent in -lncurses... no
configure: error: libcurses or libncurses are required!

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/openswan: fix parallel build
Yann E. MORIN [Tue, 14 Jul 2015 10:53:42 +0000 (12:53 +0200)]
package/openswan: fix parallel build

Fixes:
    http://autobuild.buildroot.org/results/2ec/2ecb098b01bd44d75182b15f98c1fd2a8c927438/
    http://autobuild.buildroot.org/results/18f/18f0166f3fa831f321818e286d9c2e9037f8c8d0/
    ...

Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoolsr: bump version
Maxime Hadjinlian [Tue, 14 Jul 2015 10:15:55 +0000 (12:15 +0200)]
olsr: bump version

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage: fix fallout from checking kconfig config files
Yann E. MORIN [Tue, 14 Jul 2015 10:13:21 +0000 (12:13 +0200)]
package: fix fallout from checking kconfig config files

Those checks should only be done when the package is actually enabled.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoptpd2: systemd support
Alex Suykov [Sat, 23 May 2015 10:06:47 +0000 (13:06 +0300)]
ptpd2: systemd support

Following package and sysv initscript naming scheme,
the service is "ptpd2" instead of just "ptpd" version 2.

[Thomas:
  - use relative symlink instead of an absolute symlink
  - remove the -s option, which redirects stdout, since systemd will
    take care of it
  - add the -g option, to be consistent with what the init script is
    using.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoptpd: systemd support
Alex Suykov [Sat, 23 May 2015 10:06:21 +0000 (13:06 +0300)]
ptpd: systemd support

[Thomas:
   - use relative symbolic link instead of absolute one
   - remove the -S option, since redirecting stdout is not needed,
     it's already taken care of by systemd. Suggested by Maxime
     Hadjinlian.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoproftpd: systemd support
Alex Suykov [Sat, 23 May 2015 10:06:15 +0000 (13:06 +0300)]
proftpd: systemd support

[Thomas: change to use a relative symlink, and fix a minor typo in the
service file in the service description.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoolsr: systemd support
Alex Suykov [Sat, 23 May 2015 10:06:09 +0000 (13:06 +0300)]
olsr: systemd support

[Thomas: use relative symlink instead of absolute symlink]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/uclibc: check for config file
Yann E. MORIN [Mon, 13 Jul 2015 10:32:04 +0000 (12:32 +0200)]
package/uclibc: check for config file

Add a check (before we call kconfig-package) that ensures the user has
set a kconfig-file.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/busybox: check for config file
Yann E. MORIN [Mon, 13 Jul 2015 10:32:03 +0000 (12:32 +0200)]
package/busybox: check for config file

Add a check (before we call kconfig-package) that ensures the user has
set a kconfig-file.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoboot/barebox: check for config file before calling kconfig-package
Yann E. MORIN [Mon, 13 Jul 2015 10:32:02 +0000 (12:32 +0200)]
boot/barebox: check for config file before calling kconfig-package

If we check that the user provides a config file after we call to the
kconfig-package infra, the error message we get is the one for the
kconfig-package infra, not the custom error message we want to show to
the user.

So, only call kconfig-package after we do the check.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoboot/at91boostrap3: check for config file before calling kconfig-package
Yann E. MORIN [Mon, 13 Jul 2015 10:32:01 +0000 (12:32 +0200)]
boot/at91boostrap3: check for config file before calling kconfig-package

If we check that the user provides a config file after we call to the
kconfig-package infra, the error message we get is the one for the
kconfig-package infra, not the custom error message we want to show to
the user.

So, only call kconfig-package after we do the check.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/linux: check for config file before calling kconfig-package
Yann E. MORIN [Mon, 13 Jul 2015 10:32:00 +0000 (12:32 +0200)]
package/linux: check for config file before calling kconfig-package

If we check that the user provides a config file after we call to the
kconfig-package infra, the error message we get is the one for the
kconfig-package infra, not the custom error message we want to show to
the user.

So, only call kconfig-package after we do the check. Move the check with
the existing checks for the DTS, for consistency.

[Thomas: put the checks together, but right before the kconfig-package
call, rather than in the middle of the code, were the DTS related
tests were located.]

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/linux: don't enforce check for DTS when not building
Yann E. MORIN [Mon, 13 Jul 2015 10:31:59 +0000 (12:31 +0200)]
package/linux: don't enforce check for DTS when not building

Currently, this is triggering the error message:
    make randconfig
    make source

Limit the checks that enforce a DTS is set and at most one DTB is
appended to when we are actually building, like is done for the
configuration-file variables.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agocore/pkg-kconfig: don't enforce check for config file when not building
Yann E. MORIN [Mon, 13 Jul 2015 10:31:58 +0000 (12:31 +0200)]
core/pkg-kconfig: don't enforce check for config file when not building

Currently, this is triggering the error message:
    make randconfig
    make source

Only limit the check to enforce a config file being set to when we are
actually building, like is done in the various kconfig-using packages.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agosystem: fix BR2_INIT_NONE / BR2_INIT_SYSTEMD build
Thomas Petazzoni [Tue, 14 Jul 2015 08:13:18 +0000 (10:13 +0200)]
system: fix BR2_INIT_NONE / BR2_INIT_SYSTEMD build

Following the introduction of the initscripts package in commit
89d39fc7a392530be043bac541ade0bef746edb6 ("initscripts: new package"),
the /etc/inittab file is no longer part of the skeleton, and therefore
is not always installed.

However, system/system.mk tweaks the inittab for getty and filesystem
remount as rw, without taking the precautions of whether the init
system is Busybox or SysV. This commit fixes that by adding the
necessary conditions around the code adjusting the inittab file.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agotoolchain-external: fix support of uClibc-ng toolchains
Thomas Petazzoni [Mon, 13 Jul 2015 10:56:14 +0000 (12:56 +0200)]
toolchain-external: fix support of uClibc-ng toolchains

The uClibc-ng dynamic loader is called ld-uClibc.so.1, but gcc is not
patched specifically for uClibc-ng, so it continues to generate
binaries that expect the dynamic loader to be named ld-uClibc.so.0,
like with the original uClibc.

Therefore, when a uClibc-ng toolchain is used as an external
toolchain, we need to create an additional symbolic link to make
uClibc-ng systems work properly.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agocore: fix download menu
Yann E. MORIN [Tue, 14 Jul 2015 07:42:40 +0000 (09:42 +0200)]
core: fix download menu

Currently, when one enables the "Only allow downloads from primary"
option, all the other mirror options are hidden (expected!) but the
LuaRocks and CPAN mirrors (bad!).

Fix that.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agorpcbind: add missing dependency on host-pkgconf
Thomas Petazzoni [Tue, 14 Jul 2015 00:23:59 +0000 (02:23 +0200)]
rpcbind: add missing dependency on host-pkgconf

rpcbind depends on libtirpc, which used to depend on
host-pkgconf. However, since commit
aee57627b09d0955270a562b8adaa0ff88ef523b, the dependency of libtirpc
on host-pkgconf has been removed, because libtirpc no longer uses
PKG_CHECK_MODULES().

However, rpcbind does use PKG_CHECK_MODULES(). It used to work because
host-pkgconf was brought into the build by the dependency on libtirpc,
but that's no longer the case. Bottom line: we need to make rpcbind
depend on host-pkgconf, which is exactly what this commit does.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopurge-locales: fix handling of X11 locale.dir
Valentine Barshak [Mon, 13 Jul 2015 23:45:28 +0000 (01:45 +0200)]
purge-locales: fix handling of X11 locale.dir

The /usr/share/X11/locale/locale.dir file is needed by libX11.
Removing it breaks locale support in X11. However, make removes
not only directories but also all files, which are not listed
in the BR2_ENABLE_LOCALE_WHITELIST.

This re-creates locale.dir database file where needed.

Signed-off-by: Valentine Barshak <gvaxon@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[Arnout: use a separate loop, and add some explanatory comments]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopurge-locales: further refactoring after removing man paths
Arnout Vandecappelle [Mon, 13 Jul 2015 23:45:27 +0000 (01:45 +0200)]
purge-locales: further refactoring after removing man paths

Since the man paths have been removed, it is no longer necessary to
grep them out and the loop can be simplified.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoinitscripts: new package
Maxime Hadjinlian [Mon, 13 Jul 2015 21:00:08 +0000 (23:00 +0200)]
initscripts: new package

The folder init.d is currently installed by default since it's part of
our skeleton.
This patch creates a package out of it and make busybox/sysvinit depends
on it.

This way, if you chose another init, you don't end up with a useless
init.d folder.

[Thomas:
  - make the initscripts package selectable via a hidden bool
  - remove some unneeded changes in sysvinit.mk.]

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agofs/iso9660: change the name of the tmp dir to be consistent
Arnout Vandecappelle [Mon, 13 Jul 2015 20:52:28 +0000 (22:52 +0200)]
fs/iso9660: change the name of the tmp dir to be consistent

Currently, the generated rootfs will be called rootfs.iso9660, but the
temporary directory we create while building it is called
rootfs-iso9660.tmp. They are in different directories so it's not so
obvious, but still to be consistent it's better to call the temp dir
rootfs.iso9660.tmp.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/dropbear: fix generating keys on RO file systems
Yann E. MORIN [Mon, 13 Jul 2015 22:44:01 +0000 (00:44 +0200)]
package/dropbear: fix generating keys on RO file systems

dropbear generates its keys at the first connection, and wants to save
them in /etc/dropbear (not configurable).

Currently, our /etc/dropbear is a directory.

When the filesystem is read-only, dropbear can't save its keys, so
refuses all connections.

Fix that with:

  - at build time, create /etc/dropbear as a symlink to
    /var/run/dropbear

  - at runtime, if the filesystem is RW (we can rm /etc/dropbear),
    we replace the symlink with an actual directory; otherwise,
    when the filesystem is RO (we can't rm /etc/dropbear), we create
    /var/run/dropbear so the symlink points to an existing directory

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Acked-by: "Maxime Hadjinlian" <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopurge-locales: skip /usr/man and /usr/share/man
Arnout Vandecappelle [Mon, 13 Jul 2015 21:00:34 +0000 (23:00 +0200)]
purge-locales: skip /usr/man and /usr/share/man

These directories are going to be removed anyway, so no point purging
their locales.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agonetplug: systemd support
Alex Suykov [Sat, 23 May 2015 10:05:57 +0000 (13:05 +0300)]
netplug: systemd support

[Thomas: use relative symlink instead of absolute symlink.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoavahi: fix systemd service file install path
Aurélien Chabot [Mon, 13 Jul 2015 18:55:20 +0000 (20:55 +0200)]
avahi: fix systemd service file install path

[Thomas: fix indentation.]

Signed-off-by: Aurélien Chabot <aurelien@chabot.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agosupervisor: systemd support
Alex Suykov [Sat, 23 May 2015 10:14:18 +0000 (13:14 +0300)]
supervisor: systemd support

Running supervisord under systemd sounds wrong, but it is possible
and probably makes sense in some cases.

[Thomas: use relative symbolic link instead of an absolute symbolic
link.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agomysql: systemd support
Alex Suykov [Sat, 23 May 2015 10:15:18 +0000 (13:15 +0300)]
mysql: systemd support

Service startup follows sysv initscript and includes db init.

[Thomas: use a relative symlink rather than an absolute symlink.]

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agontfs-3g: fix incorrect comment dependency
Ryan Barnett [Mon, 13 Jul 2015 20:38:27 +0000 (15:38 -0500)]
ntfs-3g: fix incorrect comment dependency

The comment for ntfs-3g displays even when the package has met its
necessary dependencies.

Signed-off-by: Ryan Barnett <ryan.barnett@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoskeleton: apply locale settings in user shells
Maxim Mikityanskiy [Sun, 12 Jul 2015 22:55:13 +0000 (00:55 +0200)]
skeleton: apply locale settings in user shells

Add /etc/profile.d/locale.sh script from Arch Linux to /etc/profile.
This script looks for locale.conf, sources it, and exports the LANG and
LC_* variables.

[Arnout: put in /etc/profile in the skeleton rather than making it
 systemd specific.]

Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoatftp: fix build with gcc5
Baruch Siach [Mon, 13 Jul 2015 19:19:38 +0000 (22:19 +0300)]
atftp: fix build with gcc5

gcc5 defaults to -std=gnu11 which changes the inline semantics. This leads to
multiple definition error with 'extern inline'. See
https://gcc.gnu.org/gcc-5/porting_to.html for the details.

Fixes:
http://autobuild.buildroot.net/results/762/762bce2bbc1f994cc796f0442bfa73b7ad64e272/
http://autobuild.buildroot.net/results/28b/28bf6018dcf91ddacfb76f54a92313da8bf182e1/
http://autobuild.buildroot.net/results/fde/fdee23ecd0c5c66fda1ed38efe43048ce934b733/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agonginx: activate the systemd service
Aurélien Chabot [Mon, 13 Jul 2015 18:53:10 +0000 (20:53 +0200)]
nginx: activate the systemd service

Signed-off-by: Aurélien Chabot <aurelien@chabot.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage: Fix source path for systemd's service
Maxime Hadjinlian [Mon, 13 Jul 2015 19:06:30 +0000 (21:06 +0200)]
package: Fix source path for systemd's service

Otherwise the link would appear broken in output/target it's not that
big a deal but at least it's coherent with what we already have.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agozeromq: Remove useless space
Maxime Hadjinlian [Mon, 13 Jul 2015 19:12:25 +0000 (21:12 +0200)]
zeromq: Remove useless space

Be coherent with all the other ifeq check where there's no space.
>From the doc of Make, it should not cause any trouble, but coherence has
its own merit.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoboard/wandboard: add a genimage config
Vivien Didelot [Mon, 13 Jul 2015 18:50:45 +0000 (20:50 +0200)]
board/wandboard: add a genimage config

This patch adds a genimage config file and a post-image script for the
Wandboard, to generate a medium image "sdcard.img", ready to be booted.
The image contains the layout explained in the board readme.txt file:
U-Boot, its environment, and an Ext2 rootfs partition.

The defconfig has been slightly changed to enable this feature. Also
lighten the readme file since the config file is documented and simpler.

Tested on a Wandboard Solo.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[Arnout: change the name of the tmp dir, and remove it before using
it.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolua-iconv: new package
Francois Perrad [Mon, 13 Jul 2015 18:11:00 +0000 (20:11 +0200)]
lua-iconv: new package

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agominidlna: fix systemd service activation symlink
Aurélien Chabot [Mon, 13 Jul 2015 18:38:44 +0000 (20:38 +0200)]
minidlna: fix systemd service activation symlink

Signed-off-by: Aurélien Chabot <aurelien@chabot.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolighttpd: fix systemd service activation symlink
Aurélien Chabot [Mon, 13 Jul 2015 18:37:39 +0000 (20:37 +0200)]
lighttpd: fix systemd service activation symlink

Signed-off-by: Aurélien Chabot <aurelien@chabot.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoinput-event-daemon: systemd support
Alex Suykov [Sat, 23 May 2015 10:04:42 +0000 (13:04 +0300)]
input-event-daemon: systemd support

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolibv4l: needs dynamic library support
Baruch Siach [Mon, 13 Jul 2015 17:54:11 +0000 (20:54 +0300)]
libv4l: needs dynamic library support

Fixes:
http://autobuild.buildroot.net/results/752/752cda64e3a4a73adfd9b383d5f42b61e4a1e641/
http://autobuild.buildroot.net/results/042/0423132222f8a8030f703bb8d755f3e9a4ee73d8/
http://autobuild.buildroot.net/results/908/9087769da17e2092c3ad2eb901ff87c1d6437e6a/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoinadyn: systemd support
Alex Suykov [Sat, 23 May 2015 10:03:45 +0000 (13:03 +0300)]
inadyn: systemd support

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoexim: systemd support
Alex Suykov [Sat, 23 May 2015 10:03:27 +0000 (13:03 +0300)]
exim: systemd support

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/dovecot: Add optional support for icu
Bernd Kuhls [Thu, 21 May 2015 07:40:56 +0000 (09:40 +0200)]
package/dovecot: Add optional support for icu

Optional dependency added to fts plugin since Dovecot 2.2.17:
http://hg.dovecot.org/dovecot-2.2/diff/b179bbd226e5/configure.ac

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopackage/ntp: increase pool server count in default config
Gergely Imreh [Wed, 20 May 2015 03:44:17 +0000 (03:44 +0000)]
package/ntp: increase pool server count in default config

To protect agains 1 falsticker NTP server, the client needs to connect
to at least 4 servers.

Source:
 http://support.ntp.org/bin/view/Support/SelectingOffsiteNTPServers
 5.3.3. Upstream Time Server Quantity

Signed-off-by: Gergely Imreh <imrehg@gmail.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopowerpc-utils: optionally use librtas
Sam bobroff [Tue, 19 May 2015 05:59:56 +0000 (15:59 +1000)]
powerpc-utils: optionally use librtas

Now that librtas is available, optionally use it with powerpc-utils to
enable it's RTAS dependant functionality.  It is used by default, as
most distros do, but made optional because it adds several new programs
and significantly increases the size of the installed package.

[Thomas: propagate the glibc dependency from the librtas package, as
suggested by Romain Naour.]

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolibrtas: new package
Sam bobroff [Tue, 19 May 2015 05:59:55 +0000 (15:59 +1000)]
librtas: new package

[Thomas:
  - make the package depend on glibc, since it needs execinfo.h
  - use TARGET_CONFIGURE_OPTS instead of defining manually CC and LD
  - add hash file
  - remove useless empty newline.
  Thanks to Romain Naour for the review!]

Signed-off-by: Sam Bobroff <sam.bobroff@au1.ibm.com>
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolinux: adjust fixup logic for ktap
Thomas Petazzoni [Sun, 22 Feb 2015 13:39:00 +0000 (14:39 +0100)]
linux: adjust fixup logic for ktap

The ktap package requires some parts of the kernel tracing
infrastructure to be enabled, especially
CONFIG_EVENT_TRACING. However, this option is a blind option in the
kernel, so enabling it in linux.mk has no effect: we need to enable a
non-blind option that selects CONFIG_EVENT_TRACING. We've chosen to
select CONFIG_ENABLE_DEFAULT_TRACERS.

This fixes the build of ktap.

[Thomas: use CONFIG_ENABLE_DEFAULT_TRACERS as suggested by Arnout.]

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
9 years agodcron: systemd support
Alex Suykov [Sat, 23 May 2015 10:02:32 +0000 (13:02 +0300)]
dcron: systemd support

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agochrony: systemd support
Alex Suykov [Sat, 23 May 2015 10:02:24 +0000 (13:02 +0300)]
chrony: systemd support

systemd has its own NTP daemon, which must be disabled before
starting chrony. Possible (but unlikely) conflict with openntpd
is not marked in either package.

Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agosystemd: add option to enable kdbus support
Ryan Barnett [Sun, 5 Apr 2015 22:10:10 +0000 (17:10 -0500)]
systemd: add option to enable kdbus support

In the future when the kernel offically supports kdbus, this option
should automatically enable the kernel kdbus config option(s).

Signed-off-by: Ryan Barnett <ryanbarnett3@gmail.com>
Tested-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agobinutils: remove version 2.22
Thomas Petazzoni [Sat, 11 Jul 2015 12:52:53 +0000 (14:52 +0200)]
binutils: remove version 2.22

We already use 2.24 as the default, 2.25 has been around for some
time, and 2.22 is clearly very old, so let's get rid of it.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 years agobinutils: use binutils 2.24 by default on the target
Thomas Petazzoni [Sat, 11 Jul 2015 12:52:52 +0000 (14:52 +0200)]
binutils: use binutils 2.24 by default on the target

When binutils is not built for the host, binutils.mk decides of the
version to be used when building binutils for the target. We're still
using the old 2.22 binutils version, but it's time to bump up to 2.24,
which we already use as the default version for the host.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 years agotoolchain-external: improve lib subdirectory matching
Bai Yingjie [Wed, 18 Feb 2015 11:36:14 +0000 (12:36 +0100)]
toolchain-external: improve lib subdirectory matching

The toolchain from the Cavium Networks Octeon SDK provides a sysroot
with library directories lib32, lib32-fp, lib64 and lib64-fp. The -fp
variants are used for processors with hardware floating point unit, such
as the Octeon III variants.

When specifying -march=octeon3 in BR2_TARGET_OPTIMIZATION, the toolchain
will use lib32-fp, but currently Buildroot does not accept that pattern.

This patch improves the matching by accepting lib(32|64)?([^/]*)? as lib
directory name.

Signed-off-by: Bai Yingjie <byj.tea@gmail.com>
[ThomasDS: update commit message]
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
[Thomas: add comment above the function being modified to illustrate
the various cases we try to handle.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoscripts: mkmakefile: set umask before calling BR's makefile
Guido Martínez [Fri, 21 Nov 2014 16:19:05 +0000 (13:19 -0300)]
scripts: mkmakefile: set umask before calling BR's makefile

Small optimization so we don't have another 'make' level (caused by the
umask fix) when running the generated makefile.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agopkg-generic.mk: don't depend on external package permissions
Guido Martínez [Fri, 21 Nov 2014 16:19:03 +0000 (13:19 -0300)]
pkg-generic.mk: don't depend on external package permissions

Reset permissions for rsynced packages (when using OVERRIDE_SRCDIR) to
755/644. We do this under the assumption that source files shouldn't
care about their permissions, except possibly for the exec bit.

This guarantees that if a package uses 'rsync -a' or 'cp -p' to copy
a file from its build dir to the target, it'll end up with the same
permissions on the target every time.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agotoolchain/helpers.mk: use --chmod on rsync
Guido Martínez [Fri, 21 Nov 2014 16:19:02 +0000 (13:19 -0300)]
toolchain/helpers.mk: use --chmod on rsync

This makes sure we don't have any weird permissions on the staging dir,
which could affect the target.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agodocs/manual: fix typo
Luca Ceresoli [Mon, 13 Jul 2015 13:52:22 +0000 (15:52 +0200)]
docs/manual: fix typo

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agognutls: bump to version 3.3.16
Gustavo Zacarias [Mon, 13 Jul 2015 14:37:45 +0000 (11:37 -0300)]
gnutls: bump to version 3.3.16

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agonfs-utils: Create missing directory sm.bak
Maxime Hadjinlian [Mon, 13 Jul 2015 14:57:12 +0000 (16:57 +0200)]
nfs-utils: Create missing directory sm.bak

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agolibpcap: bump to version 1.7.4
Baruch Siach [Mon, 13 Jul 2015 14:53:38 +0000 (17:53 +0300)]
libpcap: bump to version 1.7.4

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agonmap: add hash file
Baruch Siach [Mon, 13 Jul 2015 14:55:47 +0000 (17:55 +0300)]
nmap: add hash file

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoCHANGES: add release note for the permissions
Arnout Vandecappelle [Mon, 13 Jul 2015 11:36:28 +0000 (13:36 +0200)]
CHANGES: add release note for the permissions

Since the rsync of skeleton or rootfs now changes the permissions of
the copied files and directories, this may break existing setups that
rely on these permissions being kept. So add a release note explaining
how it should be done.

[Thomas: fixup commit log as suggested by Baruch.]

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoMakefile: don't depend on current skeleton/overlay permissions
Guido Martínez [Fri, 21 Nov 2014 16:19:01 +0000 (13:19 -0300)]
Makefile: don't depend on current skeleton/overlay permissions

We use 'rsync -a' to copy the skeleton and overlays, so the target ends
up with the exact same permissions as on the repo. The problem is we
don't track these permissions, since Git doesn't allow for that (except
for the exec bit). This means users with different umasks at the time of
cloning could end up with different target permissions.

Fix this by using --chmod on rsync calls so we don't depend on the
current permission set for the skeleton and overlays. We do depend on
the exec bit, but that's fine since that one is tracked by Git.

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agobusybox: improve support for telnetd
Alexey Brodkin [Mon, 13 Jul 2015 09:05:36 +0000 (11:05 +0200)]
busybox: improve support for telnetd

If target has connection to the network it might be pretty useful to
have telnet connection to it instead of serial console or even in
addition to serial console.

This changes makes the busybox package automatically install an init
script, and tune the securetty file to make telnetd work when
CONFIG_FEATURE_TELNETD_STANDALONE is enabled in the Busybox
configuration.

[Thomas:
  - don't create a new Buildroot Config.in option, just test if
    CONFIG_FEATURE_TELNETD_STANDALONE is enabled or not in the Busybox
    configuration
  - move the securetty tuning in busybox.mk instead of system.mk
  - use start-stop-daemon in the init script, in order to properly
    implement the stop and restart actions
  - misc other minor improvements in the init script.]
[yann.morin.1998@free.fr:
  - don't use securetty
  - drop stray variable BUSYBOX_SET_STANDALONE_TELNETD]

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agocore/skeleton: drop /etc/securetty
Yann E. MORIN [Mon, 13 Jul 2015 09:05:35 +0000 (11:05 +0200)]
core/skeleton: drop /etc/securetty

securetty is supposed to restrict the terminals root is allowed to
login from. As it happens, login from busybox (w/ securetty support)
is actually enforcing use of securetty, while login from util-linux
is completely ignoring securetty altogether.

Remove securetty from our skeleton altogether and stop worrying about
it.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 years agoMakefile: don't depend on the umask
Guido Martínez [Fri, 21 Nov 2014 16:19:00 +0000 (13:19 -0300)]
Makefile: don't depend on the umask

Some packages and BR itself create files and directories on the target
with cp/mkdir/etc which depend on the umask at the time of building.

To fix this, use a trick inside the Makefile which wraps all rules when
the umask is not 0022. This sets the umask at the top level, and then
the building process continues as usual.

[Thomas: add --no-print-directory, as suggested by Arnout.]

Signed-off-by: Guido Martínez <guido@vanguardiasur.com.ar>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>