* [Buildroot] [git commit branch/next] libpwquality: new package
From: Thomas Petazzoni @ 2017-05-11 21:16 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=462040443ca943694fc59ec8380c82f8bf9aaddc
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
Signed-off-by: Stefan S??rensen <stefan.sorensen@spectralink.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
...ith-disable-nls-on-platforms-without-libi.patch | 47 ++++++++++++++++++++++
...leak-in-settings-when-using-bad-word-list.patch | 26 ++++++++++++
package/libpwquality/Config.in | 19 +++++++++
package/libpwquality/libpwquality.hash | 2 +
package/libpwquality/libpwquality.mk | 39 ++++++++++++++++++
7 files changed, 135 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index c8d354d..de34d06 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1499,6 +1499,7 @@ F: package/yasm/
N: Stefan S??rensen <stefan.sorensen@spectralink.com>
F: package/cracklib/
+F: package/libpwquality/
F: package/libscrypt/
N: Stephan Hoffmann <sho@relinux.de>
diff --git a/package/Config.in b/package/Config.in
index 6d24a58..7991353 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1394,6 +1394,7 @@ menu "Other"
source "package/libplist/Config.in"
source "package/libpthread-stubs/Config.in"
source "package/libpthsem/Config.in"
+ source "package/libpwquality/Config.in"
source "package/libseccomp/Config.in"
source "package/libsigc/Config.in"
source "package/libsigsegv/Config.in"
diff --git a/package/libpwquality/0001-Fix-build-with-disable-nls-on-platforms-without-libi.patch b/package/libpwquality/0001-Fix-build-with-disable-nls-on-platforms-without-libi.patch
new file mode 100644
index 0000000..3bae15c
--- /dev/null
+++ b/package/libpwquality/0001-Fix-build-with-disable-nls-on-platforms-without-libi.patch
@@ -0,0 +1,47 @@
+From fd1694c9d85666a39fe39e76518581b1ccd5a6c5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <stefan.sorensen@spectralink.com>
+Date: Thu, 2 Feb 2017 11:16:49 +0100
+Subject: [PATCH] Fix build with --disable-nls on platforms without libintl
+ included in libc.
+
+Signed-off-by: Stefan S??rensen <stefan.sorensen@spectralink.com>
+
+---
+
+Status: accepted upstream, not yet released.
+
+diff --git a/src/pwmake.c b/src/pwmake.c
+index 5b8cfb8..81f7cd3 100644
+--- a/src/pwmake.c
++++ b/src/pwmake.c
+@@ -33,9 +33,11 @@ main(int argc, char *argv[])
+ int bits;
+ void *auxerror;
+
++#ifdef ENABLE_NLS
+ setlocale(LC_ALL, "");
+ bindtextdomain("libpwquality", "/usr/share/locale");
+ textdomain("libpwquality");
++#endif
+
+ if (argc != 2) {
+ usage(basename(argv[0]));
+diff --git a/src/pwscore.c b/src/pwscore.c
+index 219a175..24c13f2 100644
+--- a/src/pwscore.c
++++ b/src/pwscore.c
+@@ -34,9 +34,11 @@ main(int argc, char *argv[])
+ size_t len;
+ char *user = NULL;
+
++#ifdef ENABLE_NLS
+ setlocale(LC_ALL, "");
+ bindtextdomain("libpwquality", "/usr/share/locale");
+ textdomain("libpwquality");
++#endif
+
+ if (argc > 2) {
+ usage(basename(argv[0]));
+--
+2.9.3
+
diff --git a/package/libpwquality/0002-Fix-memory-leak-in-settings-when-using-bad-word-list.patch b/package/libpwquality/0002-Fix-memory-leak-in-settings-when-using-bad-word-list.patch
new file mode 100644
index 0000000..1b4f242
--- /dev/null
+++ b/package/libpwquality/0002-Fix-memory-leak-in-settings-when-using-bad-word-list.patch
@@ -0,0 +1,26 @@
+From b1f2f1f71894fa0af92041fb4d5b6146101d63e5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <stefan.sorensen@spectralink.com>
+Date: Thu, 2 Feb 2017 11:17:26 +0100
+Subject: [PATCH] Fix memory leak in settings when using bad word list.
+
+Signed-off-by: Stefan S??rensen <stefan.sorensen@spectralink.com>
+
+---
+
+Status: accepted upstream, not yet released.
+
+diff --git a/src/settings.c b/src/settings.c
+index 5c38b30..4b026b1 100644
+--- a/src/settings.c
++++ b/src/settings.c
+@@ -46,6 +46,7 @@ pwquality_free_settings(pwquality_settings_t *pwq)
+ {
+ if (pwq) {
+ free(pwq->dict_path);
++ free(pwq->bad_words);
+ free(pwq);
+ }
+ }
+--
+2.9.3
+
diff --git a/package/libpwquality/Config.in b/package/libpwquality/Config.in
new file mode 100644
index 0000000..4e85525
--- /dev/null
+++ b/package/libpwquality/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_LIBPWQUALITY
+ bool "libpwquality"
+ help
+ This is a library for password quality checks and generation
+ of random passwords that pass the checks. This library uses
+ the cracklib and cracklib dictionaries to perform some of
+ the checks.
+
+ https://github.com/libpwquality/libpwquality
+
+if BR2_PACKAGE_LIBPWQUALITY
+
+config BR2_PACKAGE_LIBPWQUALITY_TOOLS
+ bool "install tools"
+ help
+ Install libpwquality command line tools generating/checking
+ passwords.
+
+endif
diff --git a/package/libpwquality/libpwquality.hash b/package/libpwquality/libpwquality.hash
new file mode 100644
index 0000000..0e3f9e3
--- /dev/null
+++ b/package/libpwquality/libpwquality.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 74d2ea90e103323c1f2d6a6cc9617cdae6877573eddb31aaf31a40f354cc2d2a libpwquality-1.3.0.tar.bz2
diff --git a/package/libpwquality/libpwquality.mk b/package/libpwquality/libpwquality.mk
new file mode 100644
index 0000000..66b15d8
--- /dev/null
+++ b/package/libpwquality/libpwquality.mk
@@ -0,0 +1,39 @@
+################################################################################
+#
+# libpwquality
+#
+################################################################################
+
+LIBPWQUALITY_VERSION = 1.3.0
+LIBPWQUALITY_SOURCE = libpwquality-$(LIBPWQUALITY_VERSION).tar.bz2
+LIBPWQUALITY_SITE = https://github.com/libpwquality/libpwquality/releases/download/libpwquality-$(LIBPWQUALITY_VERSION)
+LIBPWQUALITY_LICENSE = BSD-3-Clause or GPL-2.0+
+LIBPWQUALITY_INSTALL_STAGING = YES
+LIBPWQUALITY_DEPENDENCIES = cracklib
+LIBPWQUALITY_LICENSE_FILES = COPYING
+
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+LIBPWQUALITY_CONF_OPTS += --enable-python-bindings
+LIBPWQUALITY_DEPENDENCIES += python
+LIBPWQUALITY_MAKE_ENV += $(PKG_PYTHON_DISTUTILS_ENV)
+else
+LIBPWQUALITY_CONF_OPTS += --disable-python-bindings
+endif
+
+ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+LIBPWQUALITY_CONF_OPTS += --enable-pam
+LIBPWQUALITY_DEPENDENCIES += linux-pam
+else
+LIBPWQUALITY_CONF_OPTS += --disable-pam
+endif
+
+ifeq ($(BR2_PACKAGE_LIBPWQUALITY_TOOLS),)
+define LIBPWQUALITY_REMOVE_TOOLS
+ rm -f $(TARGET_DIR)/usr/bin/pwmake
+ rm -f $(TARGET_DIR)/usr/bin/pwscore
+endef
+
+LIBPWQUALITY_POST_INSTALL_TARGET_HOOKS += LIBPWQUALITY_REMOVE_TOOLS
+endif
+
+$(eval $(autotools-package))
^ permalink raw reply related
* [Buildroot] [git commit branch/next] linux-pam: add optional support for cracklib
From: Thomas Petazzoni @ 2017-05-11 21:16 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=d8d5f3c7e017e7b82083d0e050e5a0e8ddabb97d
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
Signed-off-by: Stefan S??rensen <stefan.sorensen@spectralink.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/linux-pam/linux-pam.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/linux-pam/linux-pam.mk b/package/linux-pam/linux-pam.mk
index 3522415..fb2f99c 100644
--- a/package/linux-pam/linux-pam.mk
+++ b/package/linux-pam/linux-pam.mk
@@ -44,6 +44,13 @@ else
LINUX_PAM_CONF_OPTS += --disable-audit
endif
+ifeq ($(BR2_PACKAGE_CRACKLIB),y)
+LINUX_PAM_CONF_OPTS += --enable-cracklib
+LINUX_PAM_DEPENDENCIES += cracklib
+else
+LINUX_PAM_CONF_OPTS += --disable-cracklib
+endif
+
# Install default pam config (deny everything except login)
define LINUX_PAM_INSTALL_CONFIG
$(INSTALL) -m 0644 -D package/linux-pam/login.pam \
^ permalink raw reply related
* [Buildroot] [git commit branch/next] cracklib: new package
From: Thomas Petazzoni @ 2017-05-11 21:16 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=d4718319b73a97ee11b043bdde80b1e05017cf48
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
Signed-off-by: Stefan S??rensen <stefan.sorensen@spectralink.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
.../0001-Apply-patch-to-fix-CVE-2016-6318.patch | 106 +++++++++++++++++++++
...x-a-buffer-overflow-processing-long-words.patch | 40 ++++++++
...to-treat-the-input-as-text-when-formattin.patch | 30 ++++++
package/cracklib/Config.in | 28 ++++++
package/cracklib/cracklib.hash | 3 +
package/cracklib/cracklib.mk | 52 ++++++++++
8 files changed, 261 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index 27a4e20..c8d354d 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1498,6 +1498,7 @@ F: package/proxychains-ng/
F: package/yasm/
N: Stefan S??rensen <stefan.sorensen@spectralink.com>
+F: package/cracklib/
F: package/libscrypt/
N: Stephan Hoffmann <sho@relinux.de>
diff --git a/package/Config.in b/package/Config.in
index a5e71ef..6d24a58 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1349,6 +1349,7 @@ menu "Other"
source "package/clapack/Config.in"
source "package/classpath/Config.in"
source "package/cppcms/Config.in"
+ source "package/cracklib/Config.in"
source "package/dawgdic/Config.in"
source "package/ding-libs/Config.in"
source "package/eigen/Config.in"
diff --git a/package/cracklib/0001-Apply-patch-to-fix-CVE-2016-6318.patch b/package/cracklib/0001-Apply-patch-to-fix-CVE-2016-6318.patch
new file mode 100644
index 0000000..6180c4b
--- /dev/null
+++ b/package/cracklib/0001-Apply-patch-to-fix-CVE-2016-6318.patch
@@ -0,0 +1,106 @@
+From 47e5dec521ab6243c9b249dd65b93d232d90d6b1 Mon Sep 17 00:00:00 2001
+From: Jan Dittberner <jan@dittberner.info>
+Date: Thu, 25 Aug 2016 17:13:49 +0200
+Subject: [PATCH] Apply patch to fix CVE-2016-6318
+
+This patch fixes an issue with a stack-based buffer overflow whne
+parsing large GECOS field. See
+https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-6318 and
+https://security-tracker.debian.org/tracker/CVE-2016-6318 for more
+information.
+
+Signed-off-by: Stefan S??rensen <stefan.sorensen@spectralink.com>
+---
+
+Status: upstream, not yet released.
+
+ lib/fascist.c | 57 ++++++++++++++++++++++++++++++++-----------------------
+ 2 files changed, 34 insertions(+), 24 deletions(-)
+
+diff --git a/lib/fascist.c b/lib/fascist.c
+index a996509..d4deb15 100644
+--- a/lib/fascist.c
++++ b/lib/fascist.c
+@@ -502,7 +502,7 @@ FascistGecosUser(char *password, const char *user, const char *gecos)
+ char gbuffer[STRINGSIZE];
+ char tbuffer[STRINGSIZE];
+ char *uwords[STRINGSIZE];
+- char longbuffer[STRINGSIZE * 2];
++ char longbuffer[STRINGSIZE];
+
+ if (gecos == NULL)
+ gecos = "";
+@@ -583,38 +583,47 @@ FascistGecosUser(char *password, const char *user, const char *gecos)
+ {
+ for (i = 0; i < j; i++)
+ {
+- strcpy(longbuffer, uwords[i]);
+- strcat(longbuffer, uwords[j]);
+-
+- if (GTry(longbuffer, password))
++ if (strlen(uwords[i]) + strlen(uwords[j]) < STRINGSIZE)
+ {
+- return _("it is derived from your password entry");
+- }
++ strcpy(longbuffer, uwords[i]);
++ strcat(longbuffer, uwords[j]);
+
+- strcpy(longbuffer, uwords[j]);
+- strcat(longbuffer, uwords[i]);
++ if (GTry(longbuffer, password))
++ {
++ return _("it is derived from your password entry");
++ }
+
+- if (GTry(longbuffer, password))
+- {
+- return _("it's derived from your password entry");
+- }
++ strcpy(longbuffer, uwords[j]);
++ strcat(longbuffer, uwords[i]);
+
+- longbuffer[0] = uwords[i][0];
+- longbuffer[1] = '\0';
+- strcat(longbuffer, uwords[j]);
++ if (GTry(longbuffer, password))
++ {
++ return _("it's derived from your password entry");
++ }
++ }
+
+- if (GTry(longbuffer, password))
++ if (strlen(uwords[j]) < STRINGSIZE - 1)
+ {
+- return _("it is derivable from your password entry");
++ longbuffer[0] = uwords[i][0];
++ longbuffer[1] = '\0';
++ strcat(longbuffer, uwords[j]);
++
++ if (GTry(longbuffer, password))
++ {
++ return _("it is derivable from your password entry");
++ }
+ }
+
+- longbuffer[0] = uwords[j][0];
+- longbuffer[1] = '\0';
+- strcat(longbuffer, uwords[i]);
+-
+- if (GTry(longbuffer, password))
++ if (strlen(uwords[i]) < STRINGSIZE - 1)
+ {
+- return _("it's derivable from your password entry");
++ longbuffer[0] = uwords[j][0];
++ longbuffer[1] = '\0';
++ strcat(longbuffer, uwords[i]);
++
++ if (GTry(longbuffer, password))
++ {
++ return _("it's derivable from your password entry");
++ }
+ }
+ }
+ }
+--
+2.9.3
+
diff --git a/package/cracklib/0002-Fix-a-buffer-overflow-processing-long-words.patch b/package/cracklib/0002-Fix-a-buffer-overflow-processing-long-words.patch
new file mode 100644
index 0000000..63525cc
--- /dev/null
+++ b/package/cracklib/0002-Fix-a-buffer-overflow-processing-long-words.patch
@@ -0,0 +1,40 @@
+From 33d7fa4585247cd2247a1ffa032ad245836c6edb Mon Sep 17 00:00:00 2001
+From: Jan Dittberner <jan@dittberner.info>
+Date: Thu, 25 Aug 2016 17:17:53 +0200
+Subject: [PATCH] Fix a buffer overflow processing long words
+
+A buffer overflow processing long words has been discovered. This commit
+applies the patch from
+https://build.opensuse.org/package/view_file/Base:System/cracklib/0004-overflow-processing-long-words.patch
+by Howard Guo.
+
+See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835386 and
+http://www.openwall.com/lists/oss-security/2016/08/23/8
+
+Signed-off-by: Stefan S??rensen <stefan.sorensen@spectralink.com>
+---
+
+Status: upstream, not yet released.
+
+ lib/rules.c | 5 ++---
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/lib/rules.c b/lib/rules.c
+index d193cc0..3a2aa46 100644
+--- a/lib/rules.c
++++ b/lib/rules.c
+@@ -434,9 +434,8 @@ Mangle(input, control) /* returns a pointer to a controlled Mangle */
+ {
+ int limit;
+ register char *ptr;
+- static char area[STRINGSIZE];
+- char area2[STRINGSIZE];
+- area[0] = '\0';
++ static char area[STRINGSIZE * 2] = {0};
++ char area2[STRINGSIZE * 2] = {0};
+ strcpy(area, input);
+
+ for (ptr = control; *ptr; ptr++)
+--
+2.9.3
+
diff --git a/package/cracklib/0003-Force-grep-to-treat-the-input-as-text-when-formattin.patch b/package/cracklib/0003-Force-grep-to-treat-the-input-as-text-when-formattin.patch
new file mode 100644
index 0000000..b05a69c
--- /dev/null
+++ b/package/cracklib/0003-Force-grep-to-treat-the-input-as-text-when-formattin.patch
@@ -0,0 +1,30 @@
+From d27062fe7a520d5791f7a56d175a5cb6a39bae61 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Stefan=20S=C3=B8rensen?= <stefan.sorensen@spectralink.com>
+Date: Tue, 18 Apr 2017 12:00:39 +0200
+Subject: [PATCH] Force grep to treat the input as text when formatting word
+ files.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Stefan S??rensen <stefan.sorensen@spectralink.com>
+---
+ util/cracklib-format | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/util/cracklib-format b/util/cracklib-format
+index 1d7be5b..b1de8e8 100644
+--- a/util/cracklib-format
++++ b/util/cracklib-format
+@@ -4,7 +4,7 @@
+ # into cracklib-packer
+ #
+ gzip -cdf "$@" |
+- grep -v '^\(#\|$\)' |
++ grep -a -v '^\(#\|$\)' |
+ tr '[A-Z]' '[a-z]' |
+ tr -cd '\012[a-z][0-9]' |
+ env LC_ALL=C sort -u
+--
+2.9.3
+
diff --git a/package/cracklib/Config.in b/package/cracklib/Config.in
new file mode 100644
index 0000000..4a0f43f
--- /dev/null
+++ b/package/cracklib/Config.in
@@ -0,0 +1,28 @@
+config BR2_PACKAGE_CRACKLIB
+ bool "cracklib"
+ help
+ CrackLib tests passwords to determine whether they match
+ certain security-oriented characteristics, with the purpose
+ of stopping users from choosing passwords that are easy to
+ guess. CrackLib performs several tests on passwords: it
+ tries to generate words from a username and gecos entry and
+ checks those words against the password; it checks for
+ simplistic patterns in passwords; and it checks for the
+ password in a dictionary.
+
+ https://github.com/cracklib/cracklib
+
+if BR2_PACKAGE_CRACKLIB
+
+config BR2_PACKAGE_CRACKLIB_TOOLS
+ bool "install tools"
+ help
+ Install cracklib command line tools for creating dicts.
+
+config BR2_PACKAGE_CRACKLIB_FULL_DICT
+ bool "full dict"
+ help
+ Install the full cracklib dict (requires about 8Mb extra
+ target space).
+
+endif
diff --git a/package/cracklib/cracklib.hash b/package/cracklib/cracklib.hash
new file mode 100644
index 0000000..3038a47
--- /dev/null
+++ b/package/cracklib/cracklib.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 17cf76943de272fd579ed831a1fd85339b393f8d00bf9e0d17c91e972f583343 cracklib-2.9.6.tar.gz
+sha256 27973245225eeb9d0090e97f3dea4197dec99b64d9d3a791a60298f3b021824c cracklib-words-2.9.6.gz
diff --git a/package/cracklib/cracklib.mk b/package/cracklib/cracklib.mk
new file mode 100644
index 0000000..2fa3d3b
--- /dev/null
+++ b/package/cracklib/cracklib.mk
@@ -0,0 +1,52 @@
+################################################################################
+#
+# cracklib
+#
+################################################################################
+
+CRACKLIB_VERSION = 2.9.6
+CRACKLIB_SITE = https://github.com/cracklib/cracklib/releases/download/cracklib-$(CRACKLIB_VERSION)
+CRACKLIB_LICENSE = LGPL-2.1
+CRACKLIB_LICENSE_FILES = COPYING.LIB
+CRACKLIB_INSTALL_STAGING = YES
+CRACKLIB_DEPENDENCIES = host-cracklib
+
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+CRACKLIB_CONF_OPTS += --with-zlib
+CRACKLIB_DEPENDENCIES += zlib
+else
+CRACKLIB_CONF_OPTS += --without-zlib
+endif
+
+ifeq ($(BR2_PACKAGE_PYTHON),y)
+CRACKLIB_CONF_OPTS += --with-python
+CRACKLIB_DEPENDENCIES += python
+else
+CRACKLIB_CONF_OPTS += --without-python
+endif
+
+HOST_CRACKLIB_CONF_OPTS += --without-python --without-zlib
+
+ifeq ($(BR2_PACKAGE_CRACKLIB_FULL_DICT),y)
+CRACKLIB_EXTRA_DOWNLOADS = cracklib-words-$(CRACKLIB_VERSION).gz
+CRACKLIB_DICT_SOURCE = $(DL_DIR)/cracklib-words-$(CRACKLIB_VERSION).gz
+else
+CRACKLIB_DICT_SOURCE = $(@D)/dicts/cracklib-small
+endif
+
+ifeq ($(BR2_PACKAGE_CRACKLIB_TOOLS),)
+define CRACKLIB_REMOVE_TOOLS
+ rm -f $(TARGET_DIR)/usr/sbin/*cracklib*
+endef
+CRACKLIB_POST_INSTALL_TARGET_HOOKS += CRACKLIB_REMOVE_TOOLS
+endif
+
+define CRACKLIB_BUILD_DICT
+ $(HOST_MAKE_ENV) cracklib-format $(CRACKLIB_DICT_SOURCE) | \
+ $(HOST_MAKE_ENV) cracklib-packer $(TARGET_DIR)/usr/share/cracklib/pw_dict
+ rm $(TARGET_DIR)/usr/share/cracklib/cracklib-small
+endef
+CRACKLIB_POST_INSTALL_TARGET_HOOKS += CRACKLIB_BUILD_DICT
+
+$(eval $(autotools-package))
+$(eval $(host-autotools-package))
^ permalink raw reply related
* [Buildroot] [PATCH v2] package: protobuf, python-protobuf: bump to v3.3.0
From: Thomas Petazzoni @ 2017-05-11 21:00 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170503205945.7065-1-mrugiero@gmail.com>
Hello,
On Wed, 3 May 2017 17:59:45 -0300, Mario J. Rugiero wrote:
> Includes upstream patch working around a gcc bug which got fixed in version 4.5.0.
>
> Fixes:
> http://autobuild.buildroot.org/results/77d/77dbb6bbbc0ea9e9bcdd22b10011ef9728c20d54/
> http://autobuild.buildroot.org/results/21f/21f5e1ea4f37e1d174604d6da78c0e916c89f1e3/
> http://autobuild.buildroot.org/results/24e/24e880086c87d40b5d79a90d805acc75b33d484c/
>
> Tested with:
> qemu_aarch64_virt_defconfig
>
> Signed-off-by: Mario J. Rugiero <mrugiero@gmail.com>
I was about to apply this patch, but I get:
2017-05-11 22:54:02 (2,13 MB/s) - ?/home/thomas/projets/buildroot/output/build/.protobuf-cpp-3.3.0.tar.gz.8o4hc1/output? saved [4218377/4218377]
ERROR: protobuf-cpp-3.3.0.tar.gz has wrong sha256 hash:
ERROR: expected: 578a2589bf9258adb03245dec5d624b61536867ebb732dbb8aeb30d96b0ada1f
ERROR: got : 5e2587dea2f9287885e3b04d3a94ed4e8b9b2d2c5dd1f0032ceef3ea1d153bd7
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
It's weird, because I'm pretty sure I had tested it before. Which would
mean upstream has re-uploaded a different tarball with the same version
number, which is really bad.
Could you look into this?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [PATCH] package/opencv3: fix build for x86_64 target
From: Thomas Petazzoni @ 2017-05-11 20:51 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170504215333.4172-1-s.martin49@gmail.com>
Hello,
On Thu, 4 May 2017 23:53:33 +0200, Samuel Martin wrote:
> This change backports a fix from upstream fixing missing symbols due to
> wrong compiler optimization flags.
>
> On Buildroot side, also remove deprecated options passed on the
> configure command.
>
> Fixes:
> http://autobuild.buildroot.net/results/af9/af950c6172a578c4eeeb9440b6990ceb48263fa6/build-end.log
> http://autobuild.buildroot.net/results/e88/e8832302cd4f30cec076f67965f6aacbaca5b955/build-end.log
>
> Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> ---
> .../0001-cmake-support-multiple-CPU-targets.patch | 2501 ++++++++++++++++++++
> package/opencv3/opencv3.mk | 16 +-
> 2 files changed, 2502 insertions(+), 15 deletions(-)
> create mode 100644 package/opencv3/0001-cmake-support-multiple-CPU-targets.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] Altera SoC Buildroot external toolchain incompatible error
From: Thomas Petazzoni @ 2017-05-11 20:51 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1494533969065-164751.post@n4.nabble.com>
Hello,
On Thu, 11 May 2017 13:19:29 -0700 (PDT), lemonoje wrote:
> Wow - thanks for the quick reply. I am using the make ... ... nconfig menu
> utility. Under Target EABI--->, I had no option for EABIhf, but now I just
> selected *"Enable VFP extension support"* which then gives me the Target
> ABI--->EABIhf. I should have my C library as glibc, correct?
It depends what your toolchain is.
> >>> toolchain-external Installing to staging directory
> /usr/bin/install -D -m 0755
> /sf/ArriaX/ltsi_4_1_33/buildroot/output/build/toolchain-external/toolchain-wrapper
> /sf/ArriaX/ltsi_4_1_33/buildroot/output/host/usr/bin/toolchain-wrapper
> ln: failed to create symbolic link
> ?/sf/ArriaX/ltsi_4_1_33/buildroot/output/host/usr/ARM-buildroot-linux-gnueabihf/sysroot/usr/lib?:
> No such file or directory
> package/pkg-generic.mk:255: recipe for target
> '/sf/ArriaX/ltsi_4_1_33/buildroot/output/build/toolchain-external/.stamp_staging_installed'
> failed
>
> I do not have the 'usr' path under ^^^ path/sysroot
Is your external toolchain available somewhere so that I can try to
reproduce?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [git commit] package/opencv3: fix build for x86_64 target
From: Thomas Petazzoni @ 2017-05-11 20:49 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=86666f3a21a2380e19b5f0de90b6b6329ce3de53
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
This change backports a fix from upstream fixing missing symbols due to
wrong compiler optimization flags.
On Buildroot side, also remove deprecated options passed on the
configure command.
Fixes:
http://autobuild.buildroot.net/results/af950c6172a578c4eeeb9440b6990ceb48263fa6/
http://autobuild.buildroot.net/results/e8832302cd4f30cec076f67965f6aacbaca5b955/
Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
.../0001-cmake-support-multiple-CPU-targets.patch | 2499 ++++++++++++++++++++
package/opencv3/opencv3.mk | 16 +-
2 files changed, 2500 insertions(+), 15 deletions(-)
Patch is too large, so refusing to show it
^ permalink raw reply
* [Buildroot] Altera SoC Buildroot external toolchain incompatible error
From: lemonoje @ 2017-05-11 20:46 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170511225147.7466e9ff@free-electrons.com>
Sure thing, it is:
https://releases.linaro.org/components/toolchain/binaries/5.4-2017.01/arm-linux-gnueabihf/gcc-linaro-5.4.1-2017.01-x86_64_arm-linux-gnueabihf.tar.xz
<https://releases.linaro.org/components/toolchain/binaries/5.4-2017.01/arm-linux-gnueabihf/gcc-linaro-5.4.1-2017.01-x86_64_arm-linux-gnueabihf.tar.xz>
thanks for the help!
--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Altera-SoC-Buildroot-external-toolchain-incompatible-error-tp164744p164758.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
^ permalink raw reply
* [Buildroot] [PATCH] package/libloki: new package
From: Thomas Petazzoni @ 2017-05-11 20:33 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170506140707.12931-1-romain.naour@gmail.com>
Hello,
On Sat, 6 May 2017 16:07:07 +0200, Romain Naour wrote:
> +# install to TARGET_DIR only the shared library
> +ifeq ($(BR2_STATIC_LIBS),)
> +define LIBLOKI_INSTALL_STAGING_SHARED_LIB
> + $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) $(LIBLOKI_INSTALL_TARGETS)
> +endef
> +endif
> +
> +define LIBLOKI_INSTALL_TARGET_CMDS
> + $(LIBLOKI_INSTALL_STAGING_SHARED_LIB)
> +endef
This was a bit unnecessarily complicated, calling:
$(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) $(LIBLOKI_INSTALL_TARGETS)
unconditionally is just fine. Yes for static libraries, it means they
will be installed in $(TARGET_DIR), but they are anyway removed in the
target-finalize step. So in such situations, I do prefer to keep a
simple .mk file.
Committed to next with this fixed. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [PATCH v3 2/3] package/ltp-testsuite: introduce BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS
From: Romain Naour @ 2017-05-11 20:31 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170510234159.13af13af@free-electrons.com>
Hi Thomas,
Le 10/05/2017 ? 23:41, Thomas Petazzoni a ?crit :
> Hello,
>
> On Tue, 9 May 2017 22:59:28 +0200, Romain Naour wrote:
>> ltp-testsuite needs __sync*() built-ins for 4-byte data, except on a few
>> architectures for which a specific implementation is provided in
>> ltp-testsuite source code.
>>
>> To prepare for the introduction of this dependency, add
>> BR2_PACKAGE_LTP_TESTSUITE_ARCH_SUPPORTS.
>>
>> Signed-off-by: Romain Naour <romain.naour@gmail.com>
>> ---
>> package/ltp-testsuite/Config.in | 10 +++++++---
>> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> Thanks, I've applied patches 2 and 3, after changing a bit how the
> ARCH_SUPPORTS option is defined, as I suggested in my review of patch 3.
Thanks for the final fixup.
Best regards,
Romain
>
> Thanks!
>
> Thomas
>
^ permalink raw reply
* [Buildroot] [git commit branch/next] package/libloki: new package
From: Thomas Petazzoni @ 2017-05-11 20:21 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=7e2fd9eeb96e1d851c1fc3fb15a814afea9d16fc
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
A C++ library of designs, containing flexible implementations of
common design patterns and idioms.
Sigend-off-by: Corentin GUILLEVIC <corentin.guillevic@smile.fr>
Signed-off-by: Romain Naour <romain.naour@gmail.com>
[Thomas: simplify target installation.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
DEVELOPERS | 3 +
package/Config.in | 1 +
...stall-to-a-specific-location-using-DESTDI.patch | 65 ++++++++++++++++++++++
package/libloki/0002-use-ln-snf.patch | 31 +++++++++++
package/libloki/Config.in | 12 ++++
package/libloki/libloki.hash | 5 ++
package/libloki/libloki.mk | 38 +++++++++++++
7 files changed, 155 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index 8fbb69a..27a4e20 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -361,6 +361,9 @@ F: package/policycoreutils/
F: package/sepolgen/
F: package/ustr/
+N: Corentin Guillevic <corentin.guillevic@smile.fr>
+F: package/libloki/
+
N: C??dric Ch??pied <cedric.chepied@gmail.com>
F: package/znc/
diff --git a/package/Config.in b/package/Config.in
index d57813c..a5e71ef 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1385,6 +1385,7 @@ menu "Other"
source "package/libical/Config.in"
source "package/libite/Config.in"
source "package/liblinear/Config.in"
+ source "package/libloki/Config.in"
source "package/libnpth/Config.in"
source "package/libnspr/Config.in"
source "package/libpfm4/Config.in"
diff --git a/package/libloki/0001-allow-to-install-to-a-specific-location-using-DESTDI.patch b/package/libloki/0001-allow-to-install-to-a-specific-location-using-DESTDI.patch
new file mode 100644
index 0000000..d19306f
--- /dev/null
+++ b/package/libloki/0001-allow-to-install-to-a-specific-location-using-DESTDI.patch
@@ -0,0 +1,65 @@
+From 0b80e8beff68a0570fdc2d9281992060414475c1 Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour@gmail.com>
+Date: Sat, 29 Apr 2017 22:13:54 +0200
+Subject: [PATCH] allow to install to a specific location using DESTDIR
+
+DESTDIR is the autotools standard variable where to copy
+headers, libraries and binaries. It's not the same as "prefix".
+
+So while installing to Buildroot STAGING directory, use prefix=/usr
+and DESTOR=$(STAGING_DIR).
+
+Signed-off-by: Romain Naour <romain.naour@gmail.com>
+Sigend-off-by: Corentin GUILLEVIC <corentin.guillevic@smile.fr>
+---
+ include/Makefile | 12 ++++++------
+ src/Makefile | 10 +++++-----
+ 2 files changed, 11 insertions(+), 11 deletions(-)
+
+diff --git a/include/Makefile b/include/Makefile
+index 26a8139..a8cf369 100644
+--- a/include/Makefile
++++ b/include/Makefile
+@@ -2,10 +2,10 @@ include ../Makefile.common
+
+ .PHONY: install
+ install:
+- mkdir -p $(prefix)/include/loki
+- mkdir -p $(prefix)/include/loki/flex
+- mkdir -p $(prefix)/include/loki/yasli
++ mkdir -p $(DESTDIR)$(prefix)/include/loki
++ mkdir -p $(DESTDIR)$(prefix)/include/loki/flex
++ mkdir -p $(DESTDIR)$(prefix)/include/loki/yasli
+
+- install -m 644 loki/*.h $(prefix)/include/loki
+- install -m 644 loki/flex/*.h $(prefix)/include/loki/flex
+- install -m 644 loki/yasli/*.h $(prefix)/include/loki/yasli
++ install -m 644 loki/*.h $(DESTDIR)$(prefix)/include/loki
++ install -m 644 loki/flex/*.h $(DESTDIR)$(prefix)/include/loki/flex
++ install -m 644 loki/yasli/*.h $(DESTDIR)$(prefix)/include/loki/yasli
+diff --git a/src/Makefile b/src/Makefile
+index b272929..054285e 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -74,13 +74,13 @@ INSTALL_DATA := $(INSTALL) -m 644
+ install: install-static install-shared
+
+ install-static: $(RESULT_DIR)$(STATIC_LIB)
+- mkdir -p $(prefix)/lib
+- $(INSTALL_DATA) $(RESULT_DIR)$(STATIC_LIB) $(prefix)/lib
++ mkdir -p $(DESTDIR)$(prefix)/lib
++ $(INSTALL_DATA) $(RESULT_DIR)$(STATIC_LIB) $(DESTDIR)$(prefix)/lib
+
+ install-shared: $(RESULT_DIR)$(SHARED_LIB_VERSIONED)
+- mkdir -p $(prefix)/lib
+- $(INSTALL_DATA) $(RESULT_DIR)$(SHARED_LIB_VERSIONED) $(prefix)/lib
+- cd $(prefix)/lib; ln -s $(SHARED_LIB_VERSIONED) $(SHARED_LIB_BASE)
++ mkdir -p $(DESTDIR)$(prefix)/lib
++ $(INSTALL_DATA) $(RESULT_DIR)$(SHARED_LIB_VERSIONED) $(DESTDIR)$(prefix)/lib
++ cd $(DESTDIR)$(prefix)/lib; ln -s $(SHARED_LIB_VERSIONED) $(SHARED_LIB_BASE)
+
+ %.lo : %.cpp
+ $(CXX) -c $(CXXFLAGS) -fPIC $(CPPFLAGS) -o $@ $<
+--
+2.9.3
+
diff --git a/package/libloki/0002-use-ln-snf.patch b/package/libloki/0002-use-ln-snf.patch
new file mode 100644
index 0000000..5b73d7f
--- /dev/null
+++ b/package/libloki/0002-use-ln-snf.patch
@@ -0,0 +1,31 @@
+From 7fcaa080ef3fddb3f7dcfaf2984bc397d7c9e96c Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour@gmail.com>
+Date: Sat, 29 Apr 2017 22:27:26 +0200
+Subject: [PATCH] use ln -snf
+
+Otherwise the install step fail due to existing symlink.
+
+'libloki.so': File exists
+
+Signed-off-by: Romain Naour <romain.naour@gmail.com>
+Sigend-off-by: Corentin GUILLEVIC <corentin.guillevic@smile.fr>
+---
+ src/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile b/src/Makefile
+index 054285e..2c169ab 100644
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -80,7 +80,7 @@ install-static: $(RESULT_DIR)$(STATIC_LIB)
+ install-shared: $(RESULT_DIR)$(SHARED_LIB_VERSIONED)
+ mkdir -p $(DESTDIR)$(prefix)/lib
+ $(INSTALL_DATA) $(RESULT_DIR)$(SHARED_LIB_VERSIONED) $(DESTDIR)$(prefix)/lib
+- cd $(DESTDIR)$(prefix)/lib; ln -s $(SHARED_LIB_VERSIONED) $(SHARED_LIB_BASE)
++ cd $(DESTDIR)$(prefix)/lib; ln -snf $(SHARED_LIB_VERSIONED) $(SHARED_LIB_BASE)
+
+ %.lo : %.cpp
+ $(CXX) -c $(CXXFLAGS) -fPIC $(CPPFLAGS) -o $@ $<
+--
+2.9.3
+
diff --git a/package/libloki/Config.in b/package/libloki/Config.in
new file mode 100644
index 0000000..4ce4429
--- /dev/null
+++ b/package/libloki/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LIBLOKI
+ bool "libloki"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ help
+ A C++ library of designs, containing flexible
+ implementations of common design patterns and idioms.
+
+ http://sourceforge.net/projects/loki-lib
+
+comment "libloki needs a toolchain w/ C++, threads"
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libloki/libloki.hash b/package/libloki/libloki.hash
new file mode 100644
index 0000000..52d67c8
--- /dev/null
+++ b/package/libloki/libloki.hash
@@ -0,0 +1,5 @@
+# From https://sourceforge.net/projects/loki-lib/files/Loki/Loki%200.1.7
+md5 33a24bcbb99fa2ec8fcbbab65649f3f6 loki-0.1.7.tar.bz2
+sha1 006c630217b1e1fd33015dc0597d2d743d8ee4e3 loki-0.1.7.tar.bz2
+# locally computed
+sha256 07553754f6be2738559947db69b0718512665bf4a34015fa3a875b6eb1111198 loki-0.1.7.tar.bz2
diff --git a/package/libloki/libloki.mk b/package/libloki/libloki.mk
new file mode 100644
index 0000000..7564239
--- /dev/null
+++ b/package/libloki/libloki.mk
@@ -0,0 +1,38 @@
+################################################################################
+#
+# libloki
+#
+################################################################################
+
+LIBLOKI_VERSION = 0.1.7
+LIBLOKI_SOURCE = loki-$(LIBLOKI_VERSION).tar.bz2
+LIBLOKI_SITE = https://sourceforge.net/projects/loki-lib/files/Loki/Loki%20$(LIBLOKI_VERSION)
+LIBLOKI_LICENSE = MIT
+LIBLOKI_INSTALL_STAGING = YES
+
+ifeq ($(BR2_STATIC_LIBS),y)
+LIBLOKI_BUILD_TARGETS += build-static
+LIBLOKI_INSTALL_TARGETS += install-static
+else ifeq ($(BR2_SHARED_LIBS),y)
+LIBLOKI_BUILD_TARGETS += build-shared
+LIBLOKI_INSTALL_TARGETS += install-shared
+else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
+LIBLOKI_BUILD_TARGETS += build-static build-shared
+LIBLOKI_INSTALL_TARGETS += install-static install-shared
+endif
+
+define LIBLOKI_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
+ -C $(@D) $(LIBLOKI_BUILD_TARGETS)
+endef
+
+define LIBLOKI_INSTALL_STAGING_CMDS
+ $(MAKE) -C $(@D)/src DESTDIR=$(STAGING_DIR) $(LIBLOKI_INSTALL_TARGETS)
+ $(MAKE) -C $(@D)/include DESTDIR=$(STAGING_DIR) install
+endef
+
+define LIBLOKI_INSTALL_TARGET_CMDS
+ $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) $(LIBLOKI_INSTALL_TARGETS)
+endef
+
+$(eval $(generic-package))
^ permalink raw reply related
* [Buildroot] Altera SoC Buildroot external toolchain incompatible error
From: lemonoje @ 2017-05-11 20:19 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170511221419.1e5e9baf@free-electrons.com>
Thomas,
Wow - thanks for the quick reply. I am using the make ... ... nconfig menu
utility. Under Target EABI--->, I had no option for EABIhf, but now I just
selected *"Enable VFP extension support"* which then gives me the Target
ABI--->EABIhf. I should have my C library as glibc, correct?
I get a little further...now stalled at:
>>> toolchain-external Installing to staging directory
/usr/bin/install -D -m 0755
/sf/ArriaX/ltsi_4_1_33/buildroot/output/build/toolchain-external/toolchain-wrapper
/sf/ArriaX/ltsi_4_1_33/buildroot/output/host/usr/bin/toolchain-wrapper
ln: failed to create symbolic link
?/sf/ArriaX/ltsi_4_1_33/buildroot/output/host/usr/ARM-buildroot-linux-gnueabihf/sysroot/usr/lib?:
No such file or directory
package/pkg-generic.mk:255: recipe for target
'/sf/ArriaX/ltsi_4_1_33/buildroot/output/build/toolchain-external/.stamp_staging_installed'
failed
I do not have the 'usr' path under ^^^ path/sysroot
--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Altera-SoC-Buildroot-external-toolchain-incompatible-error-tp164744p164751.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
^ permalink raw reply
* [Buildroot] [PATCH 1/2] package/x11r7/xapp_xkbcomp: bump version to 1.4.0
From: Thomas Petazzoni @ 2017-05-11 20:17 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170507183121.17599-1-bernd.kuhls@t-online.de>
Hello,
On Sun, 7 May 2017 20:31:20 +0200, Bernd Kuhls wrote:
> Added all hashes provided by upstream.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/x11r7/xapp_xkbcomp/xapp_xkbcomp.hash | 7 +++++--
> package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk | 2 +-
> 2 files changed, 6 insertions(+), 3 deletions(-)
Both applied to next, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [git commit branch/next] package/x11r7/xdriver_xf86-input-libinput: bump version to 0.25.1
From: Thomas Petazzoni @ 2017-05-11 20:16 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=32c6b3a8a62769325cfc34eeee385c2640e30027
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
Added all hashes provided by upstream.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
.../xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.hash | 9 +++++----
.../xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.mk | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/package/x11r7/xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.hash b/package/x11r7/xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.hash
index 36d16c2..4828308 100644
--- a/package/x11r7/xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.hash
+++ b/package/x11r7/xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.hash
@@ -1,4 +1,5 @@
-# From https://lists.x.org/archives/xorg-announce/2017-March/002782.html
-md5 bd64be831914eda924f7166243c34968 xf86-input-libinput-0.25.0.tar.bz2
-sha1 e43fd18bc32b892fb203f842186ad0d6c675b696 xf86-input-libinput-0.25.0.tar.bz2
-sha256 bb7fd1658fa7e6c757fd55480aa8a07f8ccfb0a80ae42c29dbc67d57958c556f xf86-input-libinput-0.25.0.tar.bz2
+# From https://lists.x.org/archives/xorg-announce/2017-May/002798.html
+md5 14003139614b25cc76c9a4cad059df89 xf86-input-libinput-0.25.1.tar.bz2
+sha1 00494b7566c0c5cbcb8d81655b967f42f7a40ef0 xf86-input-libinput-0.25.1.tar.bz2
+sha256 489f7d591c9ef08463d4966e61f7c6ea433f5fcbb9f5370fb621da639a84c7e0 xf86-input-libinput-0.25.1.tar.bz2
+sha512 9a8d16bdffb73a5318d22e352826c410ccb6f8c7ade31c23823bd6c17202bb67e917dfe8d4cab6e54fdf15f201d14d80b6306cedc5f93f66989edfcab5082ece xf86-input-libinput-0.25.1.tar.bz2
diff --git a/package/x11r7/xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.mk b/package/x11r7/xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.mk
index 16ab7ce..4e39761 100644
--- a/package/x11r7/xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.mk
+++ b/package/x11r7/xdriver_xf86-input-libinput/xdriver_xf86-input-libinput.mk
@@ -4,7 +4,7 @@
#
################################################################################
-XDRIVER_XF86_INPUT_LIBINPUT_VERSION = 0.25.0
+XDRIVER_XF86_INPUT_LIBINPUT_VERSION = 0.25.1
XDRIVER_XF86_INPUT_LIBINPUT_SOURCE = xf86-input-libinput-$(XDRIVER_XF86_INPUT_LIBINPUT_VERSION).tar.bz2
XDRIVER_XF86_INPUT_LIBINPUT_SITE = http://xorg.freedesktop.org/releases/individual/driver
XDRIVER_XF86_INPUT_LIBINPUT_LICENSE = MIT
^ permalink raw reply related
* [Buildroot] [git commit branch/next] package/x11r7/xapp_xkbcomp: bump version to 1.4.0
From: Thomas Petazzoni @ 2017-05-11 20:16 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=f3598a98d31e06dcb8940a58a45b8a220e7f7641
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
Added all hashes provided by upstream.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/x11r7/xapp_xkbcomp/xapp_xkbcomp.hash | 7 +++++--
package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/package/x11r7/xapp_xkbcomp/xapp_xkbcomp.hash b/package/x11r7/xapp_xkbcomp/xapp_xkbcomp.hash
index bc85caa..4d0b5fe 100644
--- a/package/x11r7/xapp_xkbcomp/xapp_xkbcomp.hash
+++ b/package/x11r7/xapp_xkbcomp/xapp_xkbcomp.hash
@@ -1,2 +1,5 @@
-# From http://lists.x.org/archives/xorg-announce/2015-November/002653.html
-sha256 0304dc9e0d4ac10831a9ef5d5419722375ddbc3eac3ff4413094d57bc1f1923d xkbcomp-1.3.1.tar.bz2
+# From https://lists.x.org/archives/xorg-announce/2017-May/002797.html
+md5 cc22b232bc78a303371983e1b48794ab xkbcomp-1.4.0.tar.bz2
+sha1 9578a564ff8fcf96581fb52860828fbab8c67b4f xkbcomp-1.4.0.tar.bz2
+sha256 bc69c8748c03c5ad9afdc8dff9db11994dd871b614c65f8940516da6bf61ce6b xkbcomp-1.4.0.tar.bz2
+sha512 c96a63fc2d9a6ac17123297574966c45d0dcfd4ae3d4073ce863c7738d453f4c0a5f7a87c06efdec19f0b270207a7170fe1aa72a73ef1b50f95c7ca262f4882e xkbcomp-1.4.0.tar.bz2
diff --git a/package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk b/package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk
index 4fc4372..cc88561 100644
--- a/package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk
+++ b/package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk
@@ -4,7 +4,7 @@
#
################################################################################
-XAPP_XKBCOMP_VERSION = 1.3.1
+XAPP_XKBCOMP_VERSION = 1.4.0
XAPP_XKBCOMP_SOURCE = xkbcomp-$(XAPP_XKBCOMP_VERSION).tar.bz2
XAPP_XKBCOMP_SITE = http://xorg.freedesktop.org/releases/individual/app
XAPP_XKBCOMP_LICENSE = MIT
^ permalink raw reply related
* [Buildroot] Problems building iotop
From: Thomas Petazzoni @ 2017-05-11 20:15 UTC (permalink / raw)
To: buildroot
In-Reply-To: <CA+12NBKMFcGUA_ipbN-FOBgXDcS_aVPiziRmt2k9Q9C17SE++Q@mail.gmail.com>
Hello,
Please keep the Buildroot mailing list in Cc, thanks.
On Thu, 11 May 2017 13:42:04 -0400, Linux User wrote:
> Oh my buildroot is already setup. I am build everything else just fine but
> iotop.
>
> Below is the example of ftop working just fine. But iotop wont.
Which Buildroot version are you using?
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] Altera SoC Buildroot external toolchain incompatible error
From: Thomas Petazzoni @ 2017-05-11 20:14 UTC (permalink / raw)
To: buildroot
In-Reply-To: <1494532269551-164744.post@n4.nabble.com>
Hello,
On Thu, 11 May 2017 12:51:09 -0700 (PDT), lemonoje wrote:
> Incorrect ABI setting: EABI selected, but toolchain is incompatible
Your toolchain is an EABIhf toolchain, but you have selected EABI in
your Buildroot configuration.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [git commit] kvm-unit-tests: fix build on x86-64 with specific gcc versions
From: Thomas Petazzoni @ 2017-05-11 20:13 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=bdadcf593d5308fcc1c8e767b7c2af8ae5aa9144
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
kvm-unit-tests uses the following code on x86/x86-64:
static inline u64 scale_delta(u64 delta, u64 mul_frac)
{
u64 product, unused;
__asm__ (
"mul %3"
: "=d" (product), "=a" (unused) : "1" (delta), "rm" ((u64)mul_frac) );
return product;
}
The "mul" instruction does not have a suffix that indicates the width of
the data being multiplied. When the data is passed in a register, there
is no need to specify the width, but with some gcc versions, the data is
passed as a memory reference, and therefore the assembler does not know
the width of the data to be multiplied. It causes the following build
failure:
x86/hyperv_clock.c: Assembler messages:
x86/hyperv_clock.c:21: Error: no instruction mnemonic suffix given and no register operands; can't size instruction
Since the data being multiplied is 64 bit, we explicitly specify the
instruction as being "mulq".
Fixes:
http://autobuild.buildroot.net/results/a4a65d01f049db83a93de92660f228dd18532625/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
...clock-be-explicit-about-mul-instruction-d.patch | 35 ++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/package/kvm-unit-tests/0001-x86-hyperv_clock-be-explicit-about-mul-instruction-d.patch b/package/kvm-unit-tests/0001-x86-hyperv_clock-be-explicit-about-mul-instruction-d.patch
new file mode 100644
index 0000000..c8ee6b1
--- /dev/null
+++ b/package/kvm-unit-tests/0001-x86-hyperv_clock-be-explicit-about-mul-instruction-d.patch
@@ -0,0 +1,35 @@
+From 022ae220d6e7b5bd064bc8698c271dca4dac7d8c Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Mon, 8 May 2017 22:27:25 +0200
+Subject: [PATCH] x86/hyperv_clock: be explicit about mul instruction data size
+
+With gcc 4.7.2, the build fails with:
+
+x86/hyperv_clock.c: Assembler messages:
+x86/hyperv_clock.c:21: Error: no instruction mnemonic suffix given and no register operands; can't size instruction
+
+In order to avoid this, make the mul instruction data size explicit by
+adding the appropriate suffix. It operates on 64-bit data, so use
+"mulq".
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ x86/hyperv_clock.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/x86/hyperv_clock.c b/x86/hyperv_clock.c
+index 8b1deba..6c4dd56 100644
+--- a/x86/hyperv_clock.c
++++ b/x86/hyperv_clock.c
+@@ -19,7 +19,7 @@ static inline u64 scale_delta(u64 delta, u64 mul_frac)
+ u64 product, unused;
+
+ __asm__ (
+- "mul %3"
++ "mulq %3"
+ : "=d" (product), "=a" (unused) : "1" (delta), "rm" ((u64)mul_frac) );
+
+ return product;
+--
+2.7.4
+
^ permalink raw reply related
* [Buildroot] [PATCH] package/espeak: add comment to ignore 'unmet dependencies'
From: Thomas Petazzoni @ 2017-05-11 19:54 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170507203856.5328-1-yann.morin.1998@free.fr>
Hello,
On Sun, 7 May 2017 22:38:56 +0200, Yann E. MORIN wrote:
> On master 86b4eeccc4, espeak can generate spurious 'unmet dependencies'
> messages:
>
> $ make KCONFIG_SEED=0x7A85DEE0 randconfig
> warning: (BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA) selects
> BR2_PACKAGE_PORTAUDIO_CXX which has unmet directdependencies
> (BR2_PACKAGE_PORTAUDIO && BR2_INSTALL_LIBSTDCPP)
>
> However, the dpendency chain *is* correct. There is something that
> causes the kconfig parser to get really confused...
>
> Add a comment statng the issue is spurious, so noone tries to fix it.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Arnaud Aujon <arnaud@intelibre.fr>
> ---
> package/espeak/Config.in | 3 +++
> 1 file changed, 3 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [git commit] package/espeak: add comment to ignore 'unmet dependencies'
From: Thomas Petazzoni @ 2017-05-11 19:54 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=abb825bd6b3dd74108d89a1fed60217b80470067
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
On master 86b4eeccc4, espeak can generate spurious 'unmet dependencies'
messages:
$ make KCONFIG_SEED=0x7A85DEE0 randconfig
warning: (BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA) selects
BR2_PACKAGE_PORTAUDIO_CXX which has unmet directdependencies
(BR2_PACKAGE_PORTAUDIO && BR2_INSTALL_LIBSTDCPP)
However, the dpendency chain *is* correct. There is something that
causes the kconfig parser to get really confused...
Add a comment statng the issue is spurious, so noone tries to fix it.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnaud Aujon <arnaud@intelibre.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/espeak/Config.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/espeak/Config.in b/package/espeak/Config.in
index aed627a..6a8f1d4 100644
--- a/package/espeak/Config.in
+++ b/package/espeak/Config.in
@@ -27,6 +27,9 @@ config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE
config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA
bool "alsa via portaudio"
+ # Selecting portaudio generates spurious "unmet dependencies"
+ # warnings. Unless you are changing the dependencies of espeak
+ # or portaudio, just ignore those spurious warnings.
select BR2_PACKAGE_PORTAUDIO
select BR2_PACKAGE_PORTAUDIO_CXX
^ permalink raw reply related
* [Buildroot] [PATCH] lua: use target LDFLAGS
From: Thomas Petazzoni @ 2017-05-11 19:53 UTC (permalink / raw)
To: buildroot
In-Reply-To: <6d72098cd529e9364107dd2727d22eda57635c80.1494253706.git.baruch@tkos.co.il>
Hello,
On Mon, 8 May 2017 17:28:26 +0300, Baruch Siach wrote:
> This adds '-static' to the link command when BR2_STATIC_LIBS=y, making the lua
> binary really static.
>
> Cc: Francois Perrad <francois.perrad@gadz.org>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> package/lua/lua.mk | 1 +
> 1 file changed, 1 insertion(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [git commit] lua: use target LDFLAGS
From: Thomas Petazzoni @ 2017-05-11 19:51 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=7e48c824309641c9eec41ee3dd7292a579888965
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
This adds '-static' to the link command when BR2_STATIC_LIBS=y, making the lua
binary really static.
Cc: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/lua/lua.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/lua/lua.mk b/package/lua/lua.mk
index 5ef61e0..bc0a9d4 100644
--- a/package/lua/lua.mk
+++ b/package/lua/lua.mk
@@ -70,6 +70,7 @@ define LUA_BUILD_CMDS
CC="$(TARGET_CC)" RANLIB="$(TARGET_RANLIB)" \
CFLAGS="$(TARGET_CFLAGS) $(LUA_CFLAGS)" \
MYLIBS="$(LUA_MYLIBS)" AR="$(TARGET_CROSS)ar rcu" \
+ MYLDFLAGS="$(TARGET_LDFLAGS)" \
BUILDMODE=$(LUA_BUILDMODE) \
PKG_VERSION=$(LUA_VERSION) -C $(@D)/src all
endef
^ permalink raw reply related
* [Buildroot] Altera SoC Buildroot external toolchain incompatible error
From: lemonoje @ 2017-05-11 19:51 UTC (permalink / raw)
To: buildroot
Hello,
I have been trying to find an answer for this error and I found something
close posted here, but I don't understand fully the problem/solution. I am
building a Linux system for my Altera Arria 10 SoC Cortex-A9. I'm new to
Buildroot, and building Linux in general, so I have been pretty closely
following the instructions on Rocketboards.org (except now I am trying to
get newer versions of buildroot and gcc toolchain).
More spcifically for my question I am on part 9. (Building rootfs) in this
guide:
https://rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide
<https://rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide>
When I try to make buildroot I am selecting an external toolchain
(pre-downloaded from releases.linaro.org), and configuring accordingly. I
then run
*make -C buildroot ARCH=ARM BR2_TOOLCHAIN_EXTERNAL_PATH=$TOOLCHAIN all*
and I get the error:
>>> toolchain-external Configuring
/sf/ArriaX/ltsi_4_1_33/gcc-linaro-5.4.1-2017.01-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.4.1/../../../../arm-linux-gnueabihf/bin/ld:
error: /sf/ArriaX/ltsi_4_1_33/buildroot/output/build/.br-toolchain-test.tmp
uses VFP register arguments, /tmp/ccbU9FJ0.o does not
/sf/ArriaX/ltsi_4_1_33/gcc-linaro-5.4.1-2017.01-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/5.4.1/../../../../arm-linux-gnueabihf/bin/ld:
failed to merge target specific data of file /tmp/ccbU9FJ0.o
collect2: error: ld returned 1 exit status
Incorrect ABI setting: EABI selected, but toolchain is incompatible
package/pkg-generic.mk:206: recipe for target
'/sf/ArriaX/ltsi_4_1_33/buildroot/output/build/toolchain-external/.stamp_configured'
failed
make: ***
[/sf/ArriaX/ltsi_4_1_33/buildroot/output/build/toolchain-external/.stamp_configured]
Error 1
make: Leaving directory '/sf/ArriaX/ltsi_4_1_33/buildroot'
Thanks in advance for any help!!
--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Altera-SoC-Buildroot-external-toolchain-incompatible-error-tp164744.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.
^ permalink raw reply
* [Buildroot] [PATCH 1/1] package/clamav: renumber patch
From: Thomas Petazzoni @ 2017-05-11 19:51 UTC (permalink / raw)
To: buildroot
In-Reply-To: <20170508175930.23584-1-bernd.kuhls@t-online.de>
Hello,
On Mon, 8 May 2017 19:59:30 +0200, Bernd Kuhls wrote:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> .../clamav/{0003-backtrace-uClibc.patch => 0002-backtrace-uClibc.patch} | 0
> 1 file changed, 0 insertions(+), 0 deletions(-)
> rename package/clamav/{0003-backtrace-uClibc.patch => 0002-backtrace-uClibc.patch} (100%)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply
* [Buildroot] [git commit] package/clamav: renumber patch
From: Thomas Petazzoni @ 2017-05-11 19:50 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=c60a54ff8bb4620c917841e4b813f554a0ce0f1b
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
.../clamav/{0003-backtrace-uClibc.patch => 0002-backtrace-uClibc.patch} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/package/clamav/0003-backtrace-uClibc.patch b/package/clamav/0002-backtrace-uClibc.patch
similarity index 100%
rename from package/clamav/0003-backtrace-uClibc.patch
rename to package/clamav/0002-backtrace-uClibc.patch
^ permalink raw reply
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