* [Buildroot] [PATCH 1/1] lxc: bump to version 2.0.8
From: Peter Korsgaard @ 2017-05-19 13:27 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1495052206-26375-1-git-send-email-fontaine.fabrice@gmail.com>
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Remove 0001-CVE-2017-5985-Ensure-target-netns-is-caller-owned.patch as
> it has been integrated upstream
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to next, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [git commit] lxc: bump to version 2.0.8
From: Peter Korsgaard @ 2017-05-19 13:26 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=b318e08dd87e43d9ee86965b592cf43b81b8675b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Remove 0001-CVE-2017-5985-Ensure-target-netns-is-caller-owned.patch as
it has been integrated upstream
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
...-5985-Ensure-target-netns-is-caller-owned.patch | 189 ---------------------
package/lxc/lxc.hash | 2 +-
package/lxc/lxc.mk | 2 +-
3 files changed, 2 insertions(+), 191 deletions(-)
diff --git a/package/lxc/0001-CVE-2017-5985-Ensure-target-netns-is-caller-owned.patch b/package/lxc/0001-CVE-2017-5985-Ensure-target-netns-is-caller-owned.patch
deleted file mode 100644
index 79d19b3..0000000
--- a/package/lxc/0001-CVE-2017-5985-Ensure-target-netns-is-caller-owned.patch
+++ /dev/null
@@ -1,189 +0,0 @@
-From 16af238036a5464ae8f2420ed3af214f0de875f9 Mon Sep 17 00:00:00 2001
-From: Christian Brauner <christian.brauner@ubuntu.com>
-Date: Sat, 28 Jan 2017 13:02:34 +0100
-Subject: [PATCH] CVE-2017-5985: Ensure target netns is caller-owned
-
-Before this commit, lxc-user-nic could potentially have been tricked into
-operating on a network namespace over which the caller did not hold privilege.
-
-This commit ensures that the caller is privileged over the network namespace by
-temporarily dropping privilege.
-
-Launchpad: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1654676
-Reported-by: Jann Horn <jannh@google.com>
-Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
-Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
----
- src/lxc/lxc_user_nic.c | 119 ++++++++++++++++++++++++++++++++++++-------------
- 1 file changed, 87 insertions(+), 32 deletions(-)
-
-diff --git a/src/lxc/lxc_user_nic.c b/src/lxc/lxc_user_nic.c
-index 409a53a1..96dc3986 100644
---- a/src/lxc/lxc_user_nic.c
-+++ b/src/lxc/lxc_user_nic.c
-@@ -50,6 +50,14 @@
- #include "utils.h"
- #include "network.h"
-
-+#define usernic_debug_stream(stream, format, ...) \
-+ do { \
-+ fprintf(stream, "%s: %d: %s: " format, __FILE__, __LINE__, \
-+ __func__, __VA_ARGS__); \
-+ } while (false)
-+
-+#define usernic_error(format, ...) usernic_debug_stream(stderr, format, __VA_ARGS__)
-+
- static void usage(char *me, bool fail)
- {
- fprintf(stderr, "Usage: %s lxcpath name pid type bridge nicname\n", me);
-@@ -670,68 +678,115 @@ again:
- }
-
- #define VETH_DEF_NAME "eth%d"
--
- static int rename_in_ns(int pid, char *oldname, char **newnamep)
- {
-- int fd = -1, ofd = -1, ret, ifindex = -1;
-+ uid_t ruid, suid, euid;
-+ int fret = -1;
-+ int fd = -1, ifindex = -1, ofd = -1, ret;
- bool grab_newname = false;
-
- ofd = lxc_preserve_ns(getpid(), "net");
- if (ofd < 0) {
-- fprintf(stderr, "Failed opening network namespace path for '%d'.", getpid());
-- return -1;
-+ usernic_error("Failed opening network namespace path for '%d'.", getpid());
-+ return fret;
- }
-
- fd = lxc_preserve_ns(pid, "net");
- if (fd < 0) {
-- fprintf(stderr, "Failed opening network namespace path for '%d'.", pid);
-- return -1;
-+ usernic_error("Failed opening network namespace path for '%d'.", pid);
-+ goto do_partial_cleanup;
-+ }
-+
-+ ret = getresuid(&ruid, &euid, &suid);
-+ if (ret < 0) {
-+ usernic_error("Failed to retrieve real, effective, and saved "
-+ "user IDs: %s\n",
-+ strerror(errno));
-+ goto do_partial_cleanup;
-+ }
-+
-+ ret = setns(fd, CLONE_NEWNET);
-+ close(fd);
-+ fd = -1;
-+ if (ret < 0) {
-+ usernic_error("Failed to setns() to the network namespace of "
-+ "the container with PID %d: %s.\n",
-+ pid, strerror(errno));
-+ goto do_partial_cleanup;
- }
-
-- if (setns(fd, 0) < 0) {
-- fprintf(stderr, "setns to container network namespace\n");
-- goto out_err;
-+ ret = setresuid(ruid, ruid, 0);
-+ if (ret < 0) {
-+ usernic_error("Failed to drop privilege by setting effective "
-+ "user id and real user id to %d, and saved user "
-+ "ID to 0: %s.\n",
-+ ruid, strerror(errno));
-+ // COMMENT(brauner): It's ok to jump to do_full_cleanup here
-+ // since setresuid() will succeed when trying to set real,
-+ // effective, and saved to values they currently have.
-+ goto do_full_cleanup;
- }
-- close(fd); fd = -1;
-+
- if (!*newnamep) {
- grab_newname = true;
- *newnamep = VETH_DEF_NAME;
-- if (!(ifindex = if_nametoindex(oldname))) {
-- fprintf(stderr, "failed to get netdev index\n");
-- goto out_err;
-+
-+ ifindex = if_nametoindex(oldname);
-+ if (!ifindex) {
-+ usernic_error("Failed to get netdev index: %s.\n", strerror(errno));
-+ goto do_full_cleanup;
- }
- }
-- if ((ret = lxc_netdev_rename_by_name(oldname, *newnamep)) < 0) {
-- fprintf(stderr, "Error %d renaming netdev %s to %s in container\n", ret, oldname, *newnamep);
-- goto out_err;
-+
-+ ret = lxc_netdev_rename_by_name(oldname, *newnamep);
-+ if (ret < 0) {
-+ usernic_error("Error %d renaming netdev %s to %s in container.\n", ret, oldname, *newnamep);
-+ goto do_full_cleanup;
- }
-+
- if (grab_newname) {
-- char ifname[IFNAMSIZ], *namep = ifname;
-+ char ifname[IFNAMSIZ];
-+ char *namep = ifname;
-+
- if (!if_indextoname(ifindex, namep)) {
-- fprintf(stderr, "Failed to get new netdev name\n");
-- goto out_err;
-+ usernic_error("Failed to get new netdev name: %s.\n", strerror(errno));
-+ goto do_full_cleanup;
- }
-+
- *newnamep = strdup(namep);
- if (!*newnamep)
-- goto out_err;
-+ goto do_full_cleanup;
- }
-- if (setns(ofd, 0) < 0) {
-- fprintf(stderr, "Error returning to original netns\n");
-- close(ofd);
-- return -1;
-+
-+ fret = 0;
-+
-+do_full_cleanup:
-+ ret = setresuid(ruid, euid, suid);
-+ if (ret < 0) {
-+ usernic_error("Failed to restore privilege by setting effective "
-+ "user id to %d, real user id to %d, and saved user "
-+ "ID to %d: %s.\n",
-+ ruid, euid, suid, strerror(errno));
-+ fret = -1;
-+ // COMMENT(brauner): setns() should fail if setresuid() doesn't
-+ // succeed but there's no harm in falling through; keeps the
-+ // code cleaner.
- }
-- close(ofd);
-
-- return 0;
-+ ret = setns(ofd, CLONE_NEWNET);
-+ if (ret < 0) {
-+ usernic_error("Failed to setns() to original network namespace "
-+ "of PID %d: %s.\n",
-+ ofd, strerror(errno));
-+ fret = -1;
-+ }
-
--out_err:
-- if (ofd >= 0)
-- close(ofd);
-- if (setns(ofd, 0) < 0)
-- fprintf(stderr, "Error returning to original network namespace\n");
-+do_partial_cleanup:
- if (fd >= 0)
- close(fd);
-- return -1;
-+ close(ofd);
-+
-+ return fret;
- }
-
- /*
---
-2.11.0
-
diff --git a/package/lxc/lxc.hash b/package/lxc/lxc.hash
index f80c88d..086b139 100644
--- a/package/lxc/lxc.hash
+++ b/package/lxc/lxc.hash
@@ -1,2 +1,2 @@
# Locally calculated
-sha256 1c09c075f06ec029f86fa6370c7d379494ff4c66a129eda17af7b7b41e055f5d lxc-2.0.7.tar.gz
+sha256 0d8e34b302cfe4c40c6c9ae5097096aa5cc2c1dfceea3f0f22e3e16c4a4e8494 lxc-2.0.8.tar.gz
diff --git a/package/lxc/lxc.mk b/package/lxc/lxc.mk
index 9412df5..4ba6d9f 100644
--- a/package/lxc/lxc.mk
+++ b/package/lxc/lxc.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LXC_VERSION = 2.0.7
+LXC_VERSION = 2.0.8
LXC_SITE = https://linuxcontainers.org/downloads/lxc
LXC_LICENSE = LGPL-2.1+
LXC_LICENSE_FILES = COPYING
^ permalink raw reply related
* [Buildroot] [git commit branch/next] lxc: bump to version 2.0.8
From: Peter Korsgaard @ 2017-05-19 13:26 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=b318e08dd87e43d9ee86965b592cf43b81b8675b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
Remove 0001-CVE-2017-5985-Ensure-target-netns-is-caller-owned.patch as
it has been integrated upstream
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
...-5985-Ensure-target-netns-is-caller-owned.patch | 189 ---------------------
package/lxc/lxc.hash | 2 +-
package/lxc/lxc.mk | 2 +-
3 files changed, 2 insertions(+), 191 deletions(-)
diff --git a/package/lxc/0001-CVE-2017-5985-Ensure-target-netns-is-caller-owned.patch b/package/lxc/0001-CVE-2017-5985-Ensure-target-netns-is-caller-owned.patch
deleted file mode 100644
index 79d19b3..0000000
--- a/package/lxc/0001-CVE-2017-5985-Ensure-target-netns-is-caller-owned.patch
+++ /dev/null
@@ -1,189 +0,0 @@
-From 16af238036a5464ae8f2420ed3af214f0de875f9 Mon Sep 17 00:00:00 2001
-From: Christian Brauner <christian.brauner@ubuntu.com>
-Date: Sat, 28 Jan 2017 13:02:34 +0100
-Subject: [PATCH] CVE-2017-5985: Ensure target netns is caller-owned
-
-Before this commit, lxc-user-nic could potentially have been tricked into
-operating on a network namespace over which the caller did not hold privilege.
-
-This commit ensures that the caller is privileged over the network namespace by
-temporarily dropping privilege.
-
-Launchpad: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1654676
-Reported-by: Jann Horn <jannh@google.com>
-Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
-Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
----
- src/lxc/lxc_user_nic.c | 119 ++++++++++++++++++++++++++++++++++++-------------
- 1 file changed, 87 insertions(+), 32 deletions(-)
-
-diff --git a/src/lxc/lxc_user_nic.c b/src/lxc/lxc_user_nic.c
-index 409a53a1..96dc3986 100644
---- a/src/lxc/lxc_user_nic.c
-+++ b/src/lxc/lxc_user_nic.c
-@@ -50,6 +50,14 @@
- #include "utils.h"
- #include "network.h"
-
-+#define usernic_debug_stream(stream, format, ...) \
-+ do { \
-+ fprintf(stream, "%s: %d: %s: " format, __FILE__, __LINE__, \
-+ __func__, __VA_ARGS__); \
-+ } while (false)
-+
-+#define usernic_error(format, ...) usernic_debug_stream(stderr, format, __VA_ARGS__)
-+
- static void usage(char *me, bool fail)
- {
- fprintf(stderr, "Usage: %s lxcpath name pid type bridge nicname\n", me);
-@@ -670,68 +678,115 @@ again:
- }
-
- #define VETH_DEF_NAME "eth%d"
--
- static int rename_in_ns(int pid, char *oldname, char **newnamep)
- {
-- int fd = -1, ofd = -1, ret, ifindex = -1;
-+ uid_t ruid, suid, euid;
-+ int fret = -1;
-+ int fd = -1, ifindex = -1, ofd = -1, ret;
- bool grab_newname = false;
-
- ofd = lxc_preserve_ns(getpid(), "net");
- if (ofd < 0) {
-- fprintf(stderr, "Failed opening network namespace path for '%d'.", getpid());
-- return -1;
-+ usernic_error("Failed opening network namespace path for '%d'.", getpid());
-+ return fret;
- }
-
- fd = lxc_preserve_ns(pid, "net");
- if (fd < 0) {
-- fprintf(stderr, "Failed opening network namespace path for '%d'.", pid);
-- return -1;
-+ usernic_error("Failed opening network namespace path for '%d'.", pid);
-+ goto do_partial_cleanup;
-+ }
-+
-+ ret = getresuid(&ruid, &euid, &suid);
-+ if (ret < 0) {
-+ usernic_error("Failed to retrieve real, effective, and saved "
-+ "user IDs: %s\n",
-+ strerror(errno));
-+ goto do_partial_cleanup;
-+ }
-+
-+ ret = setns(fd, CLONE_NEWNET);
-+ close(fd);
-+ fd = -1;
-+ if (ret < 0) {
-+ usernic_error("Failed to setns() to the network namespace of "
-+ "the container with PID %d: %s.\n",
-+ pid, strerror(errno));
-+ goto do_partial_cleanup;
- }
-
-- if (setns(fd, 0) < 0) {
-- fprintf(stderr, "setns to container network namespace\n");
-- goto out_err;
-+ ret = setresuid(ruid, ruid, 0);
-+ if (ret < 0) {
-+ usernic_error("Failed to drop privilege by setting effective "
-+ "user id and real user id to %d, and saved user "
-+ "ID to 0: %s.\n",
-+ ruid, strerror(errno));
-+ // COMMENT(brauner): It's ok to jump to do_full_cleanup here
-+ // since setresuid() will succeed when trying to set real,
-+ // effective, and saved to values they currently have.
-+ goto do_full_cleanup;
- }
-- close(fd); fd = -1;
-+
- if (!*newnamep) {
- grab_newname = true;
- *newnamep = VETH_DEF_NAME;
-- if (!(ifindex = if_nametoindex(oldname))) {
-- fprintf(stderr, "failed to get netdev index\n");
-- goto out_err;
-+
-+ ifindex = if_nametoindex(oldname);
-+ if (!ifindex) {
-+ usernic_error("Failed to get netdev index: %s.\n", strerror(errno));
-+ goto do_full_cleanup;
- }
- }
-- if ((ret = lxc_netdev_rename_by_name(oldname, *newnamep)) < 0) {
-- fprintf(stderr, "Error %d renaming netdev %s to %s in container\n", ret, oldname, *newnamep);
-- goto out_err;
-+
-+ ret = lxc_netdev_rename_by_name(oldname, *newnamep);
-+ if (ret < 0) {
-+ usernic_error("Error %d renaming netdev %s to %s in container.\n", ret, oldname, *newnamep);
-+ goto do_full_cleanup;
- }
-+
- if (grab_newname) {
-- char ifname[IFNAMSIZ], *namep = ifname;
-+ char ifname[IFNAMSIZ];
-+ char *namep = ifname;
-+
- if (!if_indextoname(ifindex, namep)) {
-- fprintf(stderr, "Failed to get new netdev name\n");
-- goto out_err;
-+ usernic_error("Failed to get new netdev name: %s.\n", strerror(errno));
-+ goto do_full_cleanup;
- }
-+
- *newnamep = strdup(namep);
- if (!*newnamep)
-- goto out_err;
-+ goto do_full_cleanup;
- }
-- if (setns(ofd, 0) < 0) {
-- fprintf(stderr, "Error returning to original netns\n");
-- close(ofd);
-- return -1;
-+
-+ fret = 0;
-+
-+do_full_cleanup:
-+ ret = setresuid(ruid, euid, suid);
-+ if (ret < 0) {
-+ usernic_error("Failed to restore privilege by setting effective "
-+ "user id to %d, real user id to %d, and saved user "
-+ "ID to %d: %s.\n",
-+ ruid, euid, suid, strerror(errno));
-+ fret = -1;
-+ // COMMENT(brauner): setns() should fail if setresuid() doesn't
-+ // succeed but there's no harm in falling through; keeps the
-+ // code cleaner.
- }
-- close(ofd);
-
-- return 0;
-+ ret = setns(ofd, CLONE_NEWNET);
-+ if (ret < 0) {
-+ usernic_error("Failed to setns() to original network namespace "
-+ "of PID %d: %s.\n",
-+ ofd, strerror(errno));
-+ fret = -1;
-+ }
-
--out_err:
-- if (ofd >= 0)
-- close(ofd);
-- if (setns(ofd, 0) < 0)
-- fprintf(stderr, "Error returning to original network namespace\n");
-+do_partial_cleanup:
- if (fd >= 0)
- close(fd);
-- return -1;
-+ close(ofd);
-+
-+ return fret;
- }
-
- /*
---
-2.11.0
-
diff --git a/package/lxc/lxc.hash b/package/lxc/lxc.hash
index f80c88d..086b139 100644
--- a/package/lxc/lxc.hash
+++ b/package/lxc/lxc.hash
@@ -1,2 +1,2 @@
# Locally calculated
-sha256 1c09c075f06ec029f86fa6370c7d379494ff4c66a129eda17af7b7b41e055f5d lxc-2.0.7.tar.gz
+sha256 0d8e34b302cfe4c40c6c9ae5097096aa5cc2c1dfceea3f0f22e3e16c4a4e8494 lxc-2.0.8.tar.gz
diff --git a/package/lxc/lxc.mk b/package/lxc/lxc.mk
index 9412df5..4ba6d9f 100644
--- a/package/lxc/lxc.mk
+++ b/package/lxc/lxc.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LXC_VERSION = 2.0.7
+LXC_VERSION = 2.0.8
LXC_SITE = https://linuxcontainers.org/downloads/lxc
LXC_LICENSE = LGPL-2.1+
LXC_LICENSE_FILES = COPYING
^ permalink raw reply related
* [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option
From: Peter Korsgaard @ 2017-05-19 13:14 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1495120094-44581-1-git-send-email-matthew.weber@rockwellcollins.com>
>>>>> "Matt" == Matt Weber <matthew.weber@rockwellcollins.com> writes:
> From: Sam Voss <samuel.voss@rockwellcollins.com>
> Add the option to enable linux sysfs gpio framework
> configure option in menuconfig.
> Signed-off-by: Sam Voss <samuel.voss@rockwellcollins.com>
> Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
> ---
> Change Log
> v1 -> v2
> - upstream accepted linux gpio fix, removed patch
Didn't you just agree with Baruch that we could just enable it
unconditially and not have a Config.in option for it?
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [PATCH] cppcms: fix build on machines with libgpg-error installed
From: Peter Korsgaard @ 2017-05-19 13:11 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1495058001-29457-1-git-send-email-thomas.petazzoni@free-electrons.com>
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> In configuration where target architecture == host architecture, and
> libgpg-error is installed system-wide with development files, the build
> of cppcms fails with:
> /home/test/buildroot/output/host/usr/bin/x86_64-amd-linux-gnu-g++ --sysroot=/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wextra -DNDEBUG CMakeFiles/base64_test.dir/tests/base64_test.cpp.o -o base64_test -L/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib -Wl,-rpath,/home/test/buildroot/output/build/cppcms-1.0.5:/home/test/buildroot/output/build/cppcms-1.0.5/booster:/usr/lib -rdynamic libcppcms.so.1.0.5 booster/libbooster.so.0.0.3 -lpthread /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libpcre.so /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libdl.so /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libz.so
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_err_set_errno at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_init at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_destroy at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_err_code_from_syserror at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_err_code_from_errno at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_unlock at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_strerror at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_strsource at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_lock at GPG_ERROR_1.0'
> The problem comes from the
> "-Wl,-rpath,/home/test/buildroot/output/build/cppcms-1.0.5:/home/test/buildroot/output/build/cppcms-1.0.5/booster:/usr/lib"
> option, which tells the linker to search for libraries in /usr/lib.
> This commit fixes that by asking CMake to not add any rpath when
> building cppcms.
> Fixes:
> http://autobuild.buildroot.net/results/a7eb1ede552ae14f409cfd7bd877bcf25ca69a74/
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [git commit] cppcms: fix build on machines with libgpg-error installed
From: Peter Korsgaard @ 2017-05-19 13:11 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=15423bd46e925b1aed12aac8eddeaf249b4bd999
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
In configuration where target architecture == host architecture, and
libgpg-error is installed system-wide with development files, the build
of cppcms fails with:
/home/test/buildroot/output/host/usr/bin/x86_64-amd-linux-gnu-g++ --sysroot=/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wextra -DNDEBUG CMakeFiles/base64_test.dir/tests/base64_test.cpp.o -o base64_test -L/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib -Wl,-rpath,/home/test/buildroot/output/build/cppcms-1.0.5:/home/test/buildroot/output/build/cppcms-1.0.5/booster:/usr/lib -rdynamic libcppcms.so.1.0.5 booster/libbooster.so.0.0.3 -lpthread /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libpcre.so /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libdl.so /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libz.so
/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_err_set_errno at GPG_ERROR_1.0'
/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_init at GPG_ERROR_1.0'
/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_destroy at GPG_ERROR_1.0'
/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_err_code_from_syserror at GPG_ERROR_1.0'
/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_err_code_from_errno at GPG_ERROR_1.0'
/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_unlock at GPG_ERROR_1.0'
/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_strerror at GPG_ERROR_1.0'
/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_strsource at GPG_ERROR_1.0'
/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_lock at GPG_ERROR_1.0'
The problem comes from the
"-Wl,-rpath,/home/test/buildroot/output/build/cppcms-1.0.5:/home/test/buildroot/output/build/cppcms-1.0.5/booster:/usr/lib"
option, which tells the linker to search for libraries in /usr/lib.
This commit fixes that by asking CMake to not add any rpath when
building cppcms.
Fixes:
http://autobuild.buildroot.net/results/a7eb1ede552ae14f409cfd7bd877bcf25ca69a74/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/cppcms/cppcms.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/cppcms/cppcms.mk b/package/cppcms/cppcms.mk
index 1f6c09d..9d05e81 100644
--- a/package/cppcms/cppcms.mk
+++ b/package/cppcms/cppcms.mk
@@ -11,6 +11,10 @@ CPPCMS_LICENSE_FILES = COPYING.TXT
CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
CPPCMS_INSTALL_STAGING = YES
+# disable rpath to avoid getting /usr/lib added to the link search
+# path
+CPPCMS_CONF_OPTS = -DCMAKE_SKIP_RPATH=ON
+
CPPCMS_DEPENDENCIES = zlib pcre libgcrypt
ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
^ permalink raw reply related
* [Buildroot] qemu_x86_64_defconfig ==> X11 ?
From: Riko Ho @ 2017-05-19 10:40 UTC (permalink / raw)
To: buildroot
In-Reply-To: <9f5573bb9c8401ad32d34c22c69e062e14b834de.1495167637.git.baruch@tkos.co.il>
Hi Everyone,
How can I make X11 server / X windows run based from qemu_x86_64_defconfig ?
Thanks
^ permalink raw reply
* [Buildroot] Rootfs and bzimage question?
From: Thomas Petazzoni @ 2017-05-19 7:13 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1495151500802-165253.post@n4.nabble.com>
Hello,
On Thu, 18 May 2017 16:51:40 -0700 (PDT), bianchi wrote:
> I learned using build root and finished compiling, how to use bzImage and
> rootfs.ext3 into mydisk.img to make it bootable in qemu. My host is Ubuntu
> 16.04.
> So far I got kernel panic, can not find rootfs.
> Any clues or scripts doing it?
If you're trying to make a Buildroot system that boots under Qemu,
please use our Qemu defconfigs:
$ make list-defconfigs | grep qemu
And follow the instructions in the appropriate board/qemu/*/readme.txt
file.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] Xorg and buildroot ?
From: Thomas Petazzoni @ 2017-05-19 7:08 UTC (permalink / raw)
To: buildroot
In-Reply-To: <a5661180-e821-196a-ce4e-76fbb4cab7ea@gmail.com>
Hello,
On Fri, 19 May 2017 14:34:43 +0800, Riko Ho wrote:
> Fatal server error:
> (EE) no screens found(EE)
> (EE)
> Please consult the The X.Org Foundation support
> at http://wiki.x.org
> for help.
> (EE) Please also check the log file at "/var/log/Xorg.0.log" for
> additional information.
> (EE)
> (EE) Server terminated with error (1). Closing log file.
>
> ====
>
> Any ideas ?
What graphics HW do you have, what is your Buildroot .config, and which
version of Buildroot are you using ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] Xorg and buildroot ?
From: Riko Ho @ 2017-05-19 6:34 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170519063157.2654320766@mail.free-electrons.com>
I tried to run xorg in qemu and got, it's X86_64 architecture and I can
not see complete xorg.conf.
===
# startx
expr: warning: '^/dev/tty[0-9]\+$': using '^' as the first character
of a basic regular expression is not portable; it is ignored
xauth: file /root/.serverauth.1032 does not exist
xauth: file /root/.Xauthority does not exist
X.Org X Server 1.14.7
Release Date: 2014-06-05
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-75-generic x86_64
Current Operating System: Linux RikoRoot 4.11.0 #1 SMP Fri May 19
11:38:11 AWST 2017 x86_64
Kernel command line: console=ttyS0
Build Date: 19 May 2017 10:53:50AM
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri May 19 06:32:26 2017
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension DAMAGE
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for
additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
====
Any ideas ?
--
*
/*******/
Sent by Ubuntu LTS 16.04,
??,
Regards,
Riko Ho
/*******/
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170519/0d1aaa76/attachment.html>
^ permalink raw reply
* [Buildroot] [autobuild.buildroot.net] Build results for 2017-05-18
From: Thomas Petazzoni @ 2017-05-19 6:31 UTC (permalink / raw)
To: buildroot
Hello,
Build statistics for 2017-05-18
================================
successes : 276
failures : 10
timeouts : 1
TOTAL : 287
Classification of failures by reason
====================================
libepoxy-1.4.1 | 2
mplayer-1.3.0 | 2
cegui06-0.6.2b | 1
modem-manager-1.6.4 | 1
php-7.1.5 | 1
qt5base-5.8.0 | 1
quagga-1.1.1 | 1
taskd-1.1.0 | 1
vpnc-b1243d29e0c00312ead038... | 1
Detail of failures
===================
arm | cegui06-0.6.2b | TIM | http://autobuild.buildroot.net/results/614a7ffd798552d9fa14e2550fd93de82279032d |
arm | libepoxy-1.4.1 | NOK | http://autobuild.buildroot.net/results/6a495d25f3d87ae00254258fa862884ffada09b4 |
xtensa | libepoxy-1.4.1 | NOK | http://autobuild.buildroot.net/results/44c7fa9f2ecda70ed4fa58019d31a39739914662 |
arm | modem-manager-1.6.4 | NOK | http://autobuild.buildroot.net/results/8beab6e29fad77eea8a0f3e3129dcde2b7cfdcc8 |
arm | mplayer-1.3.0 | NOK | http://autobuild.buildroot.net/results/5dfdd18bc9aa0713bf8eb8e5f374932686b13d9b |
x86_64 | mplayer-1.3.0 | NOK | http://autobuild.buildroot.net/results/29f572c35815b8e474f137039a7db9f8499fb0e3 |
i686 | php-7.1.5 | NOK | http://autobuild.buildroot.net/results/6e1cb08d385b1a406c0c0d4960bfb279d3137020 | ORPH
sparc | qt5base-5.8.0 | NOK | http://autobuild.buildroot.net/results/995656a6f9fff594af6b10297253788683a0098f |
arc | quagga-1.1.1 | NOK | http://autobuild.buildroot.net/results/ffc84eb08e32dabdccc579d67c8d1f8ae71ab1e4 | ORPH
microblazeel | taskd-1.1.0 | NOK | http://autobuild.buildroot.net/results/b8c18a2cc5e7170695c273e8017a4771096167b6 |
sparc | vpnc-b1243d29e0c00312ead038... | NOK | http://autobuild.buildroot.net/results/54c2daad582fab6558815608ea388e8ec82ea384 | ORPH
--
http://autobuild.buildroot.net
^ permalink raw reply
* [Buildroot] Xorg.conf question ?
From: Riko Ho @ 2017-05-19 4:23 UTC (permalink / raw)
To: buildroot
In-Reply-To: <9f5573bb9c8401ad32d34c22c69e062e14b834de.1495167637.git.baruch@tkos.co.il>
Hello everyone,
I tried to startx from newly compiled buildroot,
but
I got "no screens found" error on Qemu.
How can I fix it ?
Regards,
^ permalink raw reply
* [Buildroot] [PATCH] toolchain: limit musl workaround to kernel headers 3.12+
From: Baruch Siach @ 2017-05-19 4:20 UTC (permalink / raw)
To: buildroot
The libc-compat.h first appeared in kernel version 3.12. Trying to build a
musl toolchain using earlier headers leads to the following failure:
/bin/sed: can't read .../output/host/usr/arm-buildroot-linux-musleabi/sysroot/usr/include/linux/libc-compat.h: No such file or directory
package/pkg-generic.mk:266: recipe for target '.../output/build/toolchain/.stamp_staging_installed' failed
Don't apply the sed patch to older headers.
Reported-by: Florent Jacquet <florent.jacquet@free-electrons.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
toolchain/toolchain/toolchain.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/toolchain/toolchain/toolchain.mk b/toolchain/toolchain/toolchain.mk
index e29837357a27..e15ceeb426fa 100644
--- a/toolchain/toolchain/toolchain.mk
+++ b/toolchain/toolchain/toolchain.mk
@@ -21,8 +21,10 @@ TOOLCHAIN_ADD_TOOLCHAIN_DEPENDENCY = NO
# IFF_DORMANT and IFF_ECHO, add another macro to suppress them in the
# kernel header, and avoid macro/enum conflict.
#
+# Kernel version 3.12 introduced the libc-compat.h header.
+#
# [1] http://www.openwall.com/lists/musl/2015/10/08/2
-ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
+ifeq ($(BR2_TOOLCHAIN_USES_MUSL)$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12),yy)
define TOOLCHAIN_MUSL_KERNEL_HEADERS_COMPATIBILITY_HACK
$(SED) 's/^#if defined(__GLIBC__)$$/#if 1/' \
$(STAGING_DIR)/usr/include/linux/libc-compat.h
--
2.11.0
^ permalink raw reply related
* [Buildroot] [autobuild.buildroot.net] Build results for 2017-05-17
From: Waldemar Brodkorb @ 2017-05-19 1:29 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170518175758.6fb2c43d@free-electrons.com>
Hi Thomas,
Thomas Petazzoni wrote,
> Hello,
>
> > successes : 206
> > failures : 8
>
> Wowo!
>
> On 8 failures, we have:
>
> - 5 already fixed
> - 1 with a patch in progress
> - 2 that need investigation
>
> Looks good!
>
> On Thu, 18 May 2017 08:31:52 +0200 (CEST), Thomas Petazzoni wrote:
>
> > bfin | icu-58.2 | NOK | http://autobuild.buildroot.net/results/4828d9fc18283bda4c07af2c67f8ca9490dca28d | ORPH
>
> Toolchain issue:
>
> bfin-buildroot-linux-uclibc/bin/ld: LINKER BUG: .rofixup section size mismatch
>
> Waldemar, do you have an idea? Is this a recent regression?
We have seen this error in the past and we could fix it by applying
following patch:
https://git.busybox.net/buildroot/tree/package/binutils/2.26.1/0905-bfin-rofixup-bug.patch
It seems the workaround does not work when FDPIC + static +
-Wl,--gc-sections used. It seems icu is adding -Wl,--gc-sections
only in the static case on a Linux host.
This is a minor linker optimization.
How should we handle this? Patching configure.ac and autoreconf the
package?
best regards
Waldemar
^ permalink raw reply
* [Buildroot] Rootfs and bzimage question?
From: bianchi @ 2017-05-18 23:51 UTC (permalink / raw)
To: buildroot
Hello Everyone,
I learned using build root and finished compiling, how to use bzImage and
rootfs.ext3 into mydisk.img to make it bootable in qemu. My host is Ubuntu
16.04.
So far I got kernel panic, can not find rootfs.
Any clues or scripts doing it?
--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Rootfs-and-bzimage-question-tp165253.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
^ permalink raw reply
* [Buildroot] [PATCH] cppcms: fix build on machines with libgpg-error installed
From: Romain Naour @ 2017-05-18 21:35 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1495058001-29457-1-git-send-email-thomas.petazzoni@free-electrons.com>
Hi Thomas,
Le 17/05/2017 ? 23:53, Thomas Petazzoni a ?crit :
> In configuration where target architecture == host architecture, and
> libgpg-error is installed system-wide with development files, the build
> of cppcms fails with:
>
> /home/test/buildroot/output/host/usr/bin/x86_64-amd-linux-gnu-g++ --sysroot=/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -Wextra -DNDEBUG CMakeFiles/base64_test.dir/tests/base64_test.cpp.o -o base64_test -L/home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib -Wl,-rpath,/home/test/buildroot/output/build/cppcms-1.0.5:/home/test/buildroot/output/build/cppcms-1.0.5/booster:/usr/lib -rdynamic libcppcms.so.1.0.5 booster/libbooster.so.0.0.3 -lpthread /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libpcre.so /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libdl.so /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libz.so
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_err_set_errno at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_init at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_destroy at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_err_code_from_syserror at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_err_code_from_errno at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_unlock at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_strerror at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpg_strsource at GPG_ERROR_1.0'
> /home/test/buildroot/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/lib/libgcrypt.so: undefined reference to `gpgrt_lock_lock at GPG_ERROR_1.0'
>
> The problem comes from the
> "-Wl,-rpath,/home/test/buildroot/output/build/cppcms-1.0.5:/home/test/buildroot/output/build/cppcms-1.0.5/booster:/usr/lib"
> option, which tells the linker to search for libraries in /usr/lib.
>
> This commit fixes that by asking CMake to not add any rpath when
> building cppcms.
I'm unable to reproduce this issue since I don't have /usr/lib at the end of
"-Wl,-rpath" line.
Even trying to execute the command line manually it build fine here. (I checked
that libgpg-error is installed).
Weird...
Otherwise ok for me.
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Best regards,
Romain
>
> Fixes:
>
> http://autobuild.buildroot.net/results/a7eb1ede552ae14f409cfd7bd877bcf25ca69a74/
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> package/cppcms/cppcms.mk | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/package/cppcms/cppcms.mk b/package/cppcms/cppcms.mk
> index 1f6c09d..9d05e81 100644
> --- a/package/cppcms/cppcms.mk
> +++ b/package/cppcms/cppcms.mk
> @@ -11,6 +11,10 @@ CPPCMS_LICENSE_FILES = COPYING.TXT
> CPPCMS_SITE = http://downloads.sourceforge.net/project/cppcms/cppcms/$(CPPCMS_VERSION)
> CPPCMS_INSTALL_STAGING = YES
>
> +# disable rpath to avoid getting /usr/lib added to the link search
> +# path
> +CPPCMS_CONF_OPTS = -DCMAKE_SKIP_RPATH=ON
> +
> CPPCMS_DEPENDENCIES = zlib pcre libgcrypt
>
> ifeq ($(BR2_PACKAGE_CPPCMS_ICU),y)
>
^ permalink raw reply
* [Buildroot] [PATCH v3 1/3] refpolicy: new package
From: Adam Duskett @ 2017-05-18 20:12 UTC (permalink / raw)
To: buildroot
In-Reply-To: <CANQCQpaRQPFAtiYuEQ-MPwU6ZPHBLx3cHvXQkmLAx=ZgLYSNGg@mail.gmail.com>
Hey Matt;
On Thu, May 18, 2017 at 2:51 PM, Matthew Weber
<matthew.weber@rockwellcollins.com> wrote:
> Adam,
>
> On Sun, May 14, 2017 at 12:40 PM, Adam Duskett <aduskett@gmail.com> wrote:
>> The patch is for adding selinux reference policy (refpolicy).
>> It is a complete SELinux policy that can be used as the system policy
>> for a variety of systems and used as the basis for creating other policies.
>>
>
> I pulled this in and tried to build our existing project which uses
> our version of the patchset. Here's what I ran into below. Is your
> build machine by chance a selinux enabled distro?
>
Well what do you know! All of my machines run SELinux!
> Creating targeted policy.conf
> cat tmp/pre_te_files.conf tmp/all_attrs_types.conf
> tmp/global_bools.conf tmp/only_te_rules.conf tmp/all_post.conf >
> policy.conf
> Compiling and installing targeted
> /accts/mlweber1/target_build/target/etc/selinux/targeted/policy/policy.
> /usr/bin/checkpolicy -c 30 -U deny policy.conf -o
> /accts/mlweber1/target_build/target/etc/selinux/targeted/policy/policy.
> make[2]: /usr/bin/checkpolicy: Command not found
> make[2]: *** [/accts/mlweber1/target_build/target/etc/selinux/targeted/policy/policy.]
> Error 127
> make[1]: *** [/accts/mlweber1/target_build/build/refpolicy-cs_RELEASE_2_20170204/.stamp_target_installed]
> Error 2
> make: *** [_all] Error 2
>
> Matt
Adam
^ permalink raw reply
* [Buildroot] [PATCH v3 1/3] refpolicy: new package
From: Matthew Weber @ 2017-05-18 18:51 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170514174053.26140-2-Adamduskett@outlook.com>
Adam,
On Sun, May 14, 2017 at 12:40 PM, Adam Duskett <aduskett@gmail.com> wrote:
> The patch is for adding selinux reference policy (refpolicy).
> It is a complete SELinux policy that can be used as the system policy
> for a variety of systems and used as the basis for creating other policies.
>
I pulled this in and tried to build our existing project which uses
our version of the patchset. Here's what I ran into below. Is your
build machine by chance a selinux enabled distro?
Creating targeted policy.conf
cat tmp/pre_te_files.conf tmp/all_attrs_types.conf
tmp/global_bools.conf tmp/only_te_rules.conf tmp/all_post.conf >
policy.conf
Compiling and installing targeted
/accts/mlweber1/target_build/target/etc/selinux/targeted/policy/policy.
/usr/bin/checkpolicy -c 30 -U deny policy.conf -o
/accts/mlweber1/target_build/target/etc/selinux/targeted/policy/policy.
make[2]: /usr/bin/checkpolicy: Command not found
make[2]: *** [/accts/mlweber1/target_build/target/etc/selinux/targeted/policy/policy.]
Error 127
make[1]: *** [/accts/mlweber1/target_build/build/refpolicy-cs_RELEASE_2_20170204/.stamp_target_installed]
Error 2
make: *** [_all] Error 2
Matt
^ permalink raw reply
* [Buildroot] ~/buildroot/packages
From: Peter Korsgaard @ 2017-05-18 16:23 UTC (permalink / raw)
To: buildroot
In-Reply-To: <CACo+m-trSpHVnX6ccbqQM+1x1FSfBWSj39C8Nk2+961VCT3hLQ@mail.gmail.com>
>>>>> "moi" == moi moi <shmrcoffee800@gmail.com> writes:
> Is it normal behaviour of buildroot to populate the packages folder with
> 40+MBs of various .mk and .in files? Does buildroot copy packages from the
> host system? I have run menuconfig once but have not buildt a system with
> make. There are even folder for opencv and fetchmail there (which are
> present on my host system). I run Debian 8.7.
Well, not populate as in Buildroot generating this data - But yes, these
files are part of Buildroot. This is the meta data describing how to
build the 2000+ packages available in Buildroot.
Please have a look at the manual for details:
https://buildroot.org/downloads/manual/manual.html
--
Bye, Peter Korsgaard
^ permalink raw reply
* [Buildroot] [autobuild.buildroot.net] Build results for 2017-05-17
From: Thomas Petazzoni @ 2017-05-18 15:57 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170518063152.500E82080B@mail.free-electrons.com>
Hello,
> successes : 206
> failures : 8
Wowo!
On 8 failures, we have:
- 5 already fixed
- 1 with a patch in progress
- 2 that need investigation
Looks good!
On Thu, 18 May 2017 08:31:52 +0200 (CEST), Thomas Petazzoni wrote:
> bfin | icu-58.2 | NOK | http://autobuild.buildroot.net/results/4828d9fc18283bda4c07af2c67f8ca9490dca28d | ORPH
Toolchain issue:
bfin-buildroot-linux-uclibc/bin/ld: LINKER BUG: .rofixup section size mismatch
Waldemar, do you have an idea? Is this a recent regression?
> mips64el | libepoxy-1.4.1 | NOK | http://autobuild.buildroot.net/results/c29d2ffffe960c5d3e565ff00706ca6fd7622f1d |
Still working on the patch. Hopefully sent today/tomorrow.
> xtensa | modem-manager-1.6.4 | NOK | http://autobuild.buildroot.net/results/94c111c8014aa98998efa0af2ed726002b7fdca6 |
> microblazeel | modem-manager-1.6.4 | NOK | http://autobuild.buildroot.net/results/fb7f7cb3bd903d90c9d9bd97a49acbfb6d137f29 |
Both fixed by
https://git.buildroot.org/buildroot/commit/?id=2677210f545c3f3e8c52c973e08c3a460c521e5b
> arm | mpv-0.25.0 | NOK | http://autobuild.buildroot.net/results/501101000e36ea17deab198b12f9f611641f43fd |
/home/test/autobuild/run/instance-3/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot/usr/include/EGL/eglplatform.h:125:22: fatal error: X11/Xlib.h: No such file or directory
Apparently my fix
https://git.buildroot.net/buildroot/commit/package/mpv?id=4b72b54fd3b0074864e5ad36ec2fdcd30f4d58eb
is not sufficient.
> x86_64 | pulseview-0.3.0 | NOK | http://autobuild.buildroot.net/results/8dbaaca8d894bb335bc876a9f36a874364dd34f4 |
Fixed by https://git.buildroot.org/buildroot/commit/?id=f884abe4de72b942406ca16c4f54e02a0c57cce4.
> arm | rabbitmq-c-v0.8.0 | NOK | http://autobuild.buildroot.net/results/3e15dad9ee4803cf465277b999dca69318fda09d |
Fixed by https://git.buildroot.org/buildroot/commit/?id=beb6524225f12549a216183abc07745f8d36e764
> powerpc | unknown | NOK | http://autobuild.buildroot.net/results/ea140fa600616f20e282902f25899f600741b123 |
It's the rabbitmq-c static failure, identical to the previous one. Not
sure why the log file doesn't end in a normal way (which has prevented
the autobuild infra from finding out the reason of the build failure).
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] ~/buildroot/packages
From: Thomas Petazzoni @ 2017-05-18 15:53 UTC (permalink / raw)
To: buildroot
In-Reply-To: <CACo+m-trSpHVnX6ccbqQM+1x1FSfBWSj39C8Nk2+961VCT3hLQ@mail.gmail.com>
Hello,
On Thu, 18 May 2017 17:08:42 +0200, moi moi wrote:
> Is it normal behaviour of buildroot to populate the packages folder with
> 40+MBs of various .mk and .in files? Does buildroot copy packages from the
> host system? I have run menuconfig once but have not buildt a system with
> make. There are even folder for opencv and fetchmail there (which are
> present on my host system).
It seems like you really misunderstood what Buildroot's purpose is.
Those .mk and .in files describe how to build a large number of
software components to create an embedded Linux system.
Therefore, if you enable Busybox in your Buildroot configuration,
Buildroot will know how to download, build and install Busybox thanks
to the information available in package/busybox/.
The list of packages supported by Buildroot has *nothing* to do with
what is installed on your host system.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] ~/buildroot/packages
From: moi moi @ 2017-05-18 15:08 UTC (permalink / raw)
To: buildroot
Is it normal behaviour of buildroot to populate the packages folder with
40+MBs of various .mk and .in files? Does buildroot copy packages from the
host system? I have run menuconfig once but have not buildt a system with
make. There are even folder for opencv and fetchmail there (which are
present on my host system). I run Debian 8.7.
regards, Tacocat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170518/7c8e2b1e/attachment.html>
^ permalink raw reply
* [Buildroot] [PATCH v2 2/2] package/avrdude: bump to f8893ccf0aceeff67c45f95ae4e86bc7fbe342aa
From: Matt Weber @ 2017-05-18 15:08 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1495120094-44581-1-git-send-email-matthew.weber@rockwellcollins.com>
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
---
Change log
v1 -> v2
- Bump for upstream accepting fix
---
package/avrdude/avrdude.hash | 2 +-
package/avrdude/avrdude.mk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/avrdude/avrdude.hash b/package/avrdude/avrdude.hash
index b2c6125..b203d4d 100644
--- a/package/avrdude/avrdude.hash
+++ b/package/avrdude/avrdude.hash
@@ -1,2 +1,2 @@
# Locally computed
-sha256 b32128f4812d5e852cfba2e863d950ec30e0f72f09bc14fb41c02528bbc5dd18 avrdude-ad04c429a90f4c34f000ea4ae11db2705915a31f.tar.gz
+sha256 cfa97af7badc713c62306ab85d0e7a288b064bf72e698494f73cb16c5b2c659e avrdude-f8893ccf0aceeff67c45f95ae4e86bc7fbe342aa.tar.gz
diff --git a/package/avrdude/avrdude.mk b/package/avrdude/avrdude.mk
index 19ffdfa..5d5debb 100644
--- a/package/avrdude/avrdude.mk
+++ b/package/avrdude/avrdude.mk
@@ -4,7 +4,7 @@
#
################################################################################
-AVRDUDE_VERSION = ad04c429a90f4c34f000ea4ae11db2705915a31f
+AVRDUDE_VERSION = f8893ccf0aceeff67c45f95ae4e86bc7fbe342aa
AVRDUDE_SITE = $(call github,kcuzner,avrdude,$(AVRDUDE_VERSION))
AVRDUDE_LICENSE = GPL-2.0+
AVRDUDE_LICENSE_FILES = avrdude/COPYING
--
1.9.1
^ permalink raw reply related
* [Buildroot] [PATCH v2 1/2] package/avrdude: add linux gpio kconfig option
From: Matt Weber @ 2017-05-18 15:08 UTC (permalink / raw)
To: buildroot
From: Sam Voss <samuel.voss@rockwellcollins.com>
Add the option to enable linux sysfs gpio framework
configure option in menuconfig.
Signed-off-by: Sam Voss <samuel.voss@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
---
Change Log
v1 -> v2
- upstream accepted linux gpio fix, removed patch
---
package/avrdude/Config.in | 10 ++++++++++
package/avrdude/avrdude.mk | 6 ++++++
2 files changed, 16 insertions(+)
diff --git a/package/avrdude/Config.in b/package/avrdude/Config.in
index 3757f17..ac982e1 100644
--- a/package/avrdude/Config.in
+++ b/package/avrdude/Config.in
@@ -15,6 +15,16 @@ config BR2_PACKAGE_AVRDUDE
https://github.com/kcuzner/avrdude
+if BR2_PACKAGE_AVRDUDE
+
+config BR2_PACKAGE_AVRDUDE_LINUXGPIO
+ bool "linux gpio"
+ depends on BR2_PACKAGE_AVRDUDE
+ help
+ Enables the tool to use the Linux Sysfs based GPIO framework for GPIO
+ access by configuring AVRDude with '--enable-linuxgpio'.
+endif
+
comment "avrdude needs a uClibc or glibc toolchain w/ threads, wchar, dynamic library"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || BR2_STATIC_LIBS \
|| !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC)
diff --git a/package/avrdude/avrdude.mk b/package/avrdude/avrdude.mk
index f914ed7..19ffdfa 100644
--- a/package/avrdude/avrdude.mk
+++ b/package/avrdude/avrdude.mk
@@ -23,6 +23,12 @@ else ifeq ($(BR2_PACKAGE_LIBFTDI),y)
AVRDUDE_DEPENDENCIES += libftdi
endif
+ifeq ($(BR2_PACKAGE_AVRDUDE_LINUXGPIO),y)
+AVRDUDE_CONF_OPTS = --enable-linuxgpio
+else
+AVRDUDE_CONF_OPTS = --disable-linuxgpio
+endif
+
# if /etc/avrdude.conf exists, the installation process creates a
# backup file, which we do not want in the context of Buildroot.
define AVRDUDE_REMOVE_BACKUP_FILE
--
1.9.1
^ permalink raw reply related
* [Buildroot] [PATCH 1/1] toolchain-external: dynamic loader symlink to actual location of musl libc.so
From: Ilya Kuzmich @ 2017-05-18 13:03 UTC (permalink / raw)
To: buildroot
Test whenever musl libc.so located at /lib or /usr/lib and create dynamic
library loader symlink accordingly.
Signed-off-by: Ilya Kuzmich <ilya.kuzmich@gmail.com>
---
toolchain/toolchain-external/pkg-toolchain-external.mk | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/toolchain/toolchain-external/pkg-toolchain-external.mk b/toolchain/toolchain-external/pkg-toolchain-external.mk
index 9670350..438d714 100644
--- a/toolchain/toolchain-external/pkg-toolchain-external.mk
+++ b/toolchain/toolchain-external/pkg-toolchain-external.mk
@@ -489,7 +489,12 @@ else
MUSL_ARCH = $(ARCH)
endif
define TOOLCHAIN_EXTERNAL_MUSL_LD_LINK
- ln -sf libc.so $(TARGET_DIR)/lib/ld-musl-$(MUSL_ARCH).so.1
+ if test -e $(STAGING_DIR)/usr/lib/libc.so; then \
+ LD_LINK_TARGET=../usr/lib/libc.so ;\
+ else \
+ LD_LINK_TARGET=libc.so ;\
+ fi ;\
+ ln -sf "$${LD_LINK_TARGET}" $(TARGET_DIR)/lib/ld-musl-$(MUSL_ARCH).so.1 ;
endef
endif
--
2.7.4
^ permalink raw reply related
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox