Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problems building iotop
From: Steve Kenton @ 2017-05-12 19:10 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <CA+12NBL_ABjQZETEs4xUVZf8kcCW4+Qm1KEafXxbZi7o1VzK1g@mail.gmail.com>

Be aware that the dependencies can be quite complex. I have had problems 
even when slipstreaming things like xorriso-1.4.2 to to xorriso-1.4.4.

To add a package do something along these lines:

Construct a directory for the package formatted like those already in 
packages directory, see the Buildroot documentation. In the example 
below it contains only Config.in  and libltc.mk because the hash file 
can be omitted for testing.

Add it to the packages/Config.in file doing something like the below:

# My attempt to add libltc as a buildroot package for future use
# Note that libltc has not yet been submitted to upstream buildroot
sed --in-place '/    source "package\/liblo\/Config.in"/a \ source 
"package/libltc/Config.in"' package/Config.in
rm --recursive --force package/libltc
mv ../libltc package/


make menuconfig should now allow you to select it.

Good luck.

Steve Kenton



On 05/12/2017 05:31 PM, Linux User wrote:
> I do understand that. But for 1 package, I dont want to upgrade to 
> entire BR. What I am trying to do should be possible. Isn't it ? If 
> you can give me some pointers, I dont mind, working on it.
>
> On Fri, May 12, 2017 at 10:13 AM, Thomas Petazzoni 
> <thomas.petazzoni@free-electrons.com 
> <mailto:thomas.petazzoni@free-electrons.com>> wrote:
>
>     Hello,
>
>     On Fri, 12 May 2017 09:51:57 -0400, Linux User wrote:
>
>     > Posting again, with the maillist in cc.
>     >
>     > I am using 2013 version of BR.
>     >
>     > Oh my buildroot is already setup. I am build everything else
>     just fine but
>     > iotop.
>
>     Buildroot 2013 is really old. The iotop package was added in Buildroot
>     2015.05.
>
>     Best regards,
>
>     Thomas
>     --
>     Thomas Petazzoni, CTO, Free Electrons
>     Embedded Linux and Kernel engineering
>     http://free-electrons.com
>     <https://urldefense.proofpoint.com/v2/url?u=http-3A__free-2Delectrons.com&d=DwMFaQ&c=qKdtBuuu6dQK9MsRUVJ2DPXW6oayO8fu4TfEHS8sGNk&r=XPAqbAKvOH6479pBB2izug&m=gs4abqpaeB6ilihhJKXUWlbNxCBfs1ajB_PcNyC4kg4&s=YdV0uqzu2uAKfmQa1aln7P7qKzKP4l76AYL7JkiCFUw&e=>
>
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170512/c5fea06f/attachment.html>

^ permalink raw reply

* [Buildroot] Analysis of build results for 2017-05-08
From: Alexey Brodkin @ 2017-05-12 18:45 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170509093537.5560182b@free-electrons.com>

Hi Thomas, all,

On Tue, 2017-05-09 at 09:35 +0200, Thomas Petazzoni wrote:

[snip]

> > 
> > ?????????arc |???????????????????libcdio-0.94 | NOK | https://urldefense.proofpoint.com/v2/url?u=http-3A__autobuild.buildroot.net_results_17baccfb
> > 72de050aee9bc8ba2b46442afe45292d&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=lqdeeSSEes0GFDDl656eViXO7breS55ytWkhpk5R81I&m=TFGTrHTW9WOac8wl51yNJwEmwLaLBj_
> > mMTu9IApKIYo&s=meSor8oRLa-w41d8o2M_EBlW3BrnjGzNhsN9_YeF7Qo&e=??|?????
> > ?????????arc |???????????????????libcdio-0.94 | NOK | https://urldefense.proofpoint.com/v2/url?u=http-3A__autobuild.buildroot.net_results_8f8ad583
> > f03edb6294dce3cf6de51391320bbafc&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=lqdeeSSEes0GFDDl656eViXO7breS55ytWkhpk5R81I&m=TFGTrHTW9WOac8wl51yNJwEmwLaLBj_
> > mMTu9IApKIYo&s=HIPQ3tv-_7iX0r36BRA8ysE1WukatcPMABcuyCJ9_T8&e=??|?????
> > ?????????arc |???????????????????libcdio-0.94 | NOK | https://urldefense.proofpoint.com/v2/url?u=http-3A__autobuild.buildroot.net_results_a262cc45
> > 114cc3ddf51cb9db5ab35971bf32b8cb&d=DwIFaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=lqdeeSSEes0GFDDl656eViXO7breS55ytWkhpk5R81I&m=TFGTrHTW9WOac8wl51yNJwEmwLaLBj_
> > mMTu9IApKIYo&s=miK5P_vR-3QPC8KVDyjBCCvNV5-gE86jpb_eeM527bM&e=??|?????
> 
> ARC toolchain issue. Alexey, could you have a look ?

Indeed, got it reported to our Binutils guy.
Once fixed will update Buildroot with a patch on top of arc-2017.03 tools.

-Alexey

^ permalink raw reply

* [Buildroot] [PATCH] toolchain: Bump ARC tools to arc-2017.03-rc2
From: Alexey Brodkin @ 2017-05-12 18:31 UTC (permalink / raw)
  To: buildroot

This commit bumps ARC toolchain to arc-2017.03-rc2

Please note that it is a release candidate and it might contain some
breakages, please don't use it for production builds.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/binutils/Config.in.host                                         | 2 +-
 .../{arc-2017.03-rc1 => arc-2017.03-rc2}/0300-PATCH-ld-makefile.patch   | 0
 .../0301-PATCH-check-ldrunpath-length.patch                             | 0
 .../0500-add-sysroot-fix-from-bug-3049.patch                            | 0
 .../0600-poison-system-directories.patch                                | 0
 package/binutils/binutils.hash                                          | 2 +-
 package/gcc/Config.in.host                                              | 2 +-
 .../{arc-2017.03-rc1 => arc-2017.03-rc2}/301-missing-execinfo_h.patch   | 0
 package/gcc/{arc-2017.03-rc1 => arc-2017.03-rc2}/860-cilk-wchar.patch   | 0
 .../940-uclinux-enable-threads.patch                                    | 0
 package/gcc/gcc.hash                                                    | 2 +-
 package/gdb/Config.in.host                                              | 2 +-
 package/gdb/gdb.hash                                                    | 2 +-
 13 files changed, 6 insertions(+), 6 deletions(-)
 rename package/binutils/{arc-2017.03-rc1 => arc-2017.03-rc2}/0300-PATCH-ld-makefile.patch (100%)
 rename package/binutils/{arc-2017.03-rc1 => arc-2017.03-rc2}/0301-PATCH-check-ldrunpath-length.patch (100%)
 rename package/binutils/{arc-2017.03-rc1 => arc-2017.03-rc2}/0500-add-sysroot-fix-from-bug-3049.patch (100%)
 rename package/binutils/{arc-2017.03-rc1 => arc-2017.03-rc2}/0600-poison-system-directories.patch (100%)
 rename package/gcc/{arc-2017.03-rc1 => arc-2017.03-rc2}/301-missing-execinfo_h.patch (100%)
 rename package/gcc/{arc-2017.03-rc1 => arc-2017.03-rc2}/860-cilk-wchar.patch (100%)
 rename package/gcc/{arc-2017.03-rc1 => arc-2017.03-rc2}/940-uclinux-enable-threads.patch (100%)

diff --git a/package/binutils/Config.in.host b/package/binutils/Config.in.host
index e147ef0a26..9e89e57b85 100644
--- a/package/binutils/Config.in.host
+++ b/package/binutils/Config.in.host
@@ -23,7 +23,7 @@ endchoice
 
 config BR2_BINUTILS_VERSION
 	string
-	default "arc-2017.03-rc1"	if BR2_arc
+	default "arc-2017.03-rc2"	if BR2_arc
 	default "2.26.1"	if BR2_BINUTILS_VERSION_2_26_X
 	default "2.27"		if BR2_BINUTILS_VERSION_2_27_X
 	default "2.28"		if BR2_BINUTILS_VERSION_2_28_X
diff --git a/package/binutils/arc-2017.03-rc1/0300-PATCH-ld-makefile.patch b/package/binutils/arc-2017.03-rc2/0300-PATCH-ld-makefile.patch
similarity index 100%
rename from package/binutils/arc-2017.03-rc1/0300-PATCH-ld-makefile.patch
rename to package/binutils/arc-2017.03-rc2/0300-PATCH-ld-makefile.patch
diff --git a/package/binutils/arc-2017.03-rc1/0301-PATCH-check-ldrunpath-length.patch b/package/binutils/arc-2017.03-rc2/0301-PATCH-check-ldrunpath-length.patch
similarity index 100%
rename from package/binutils/arc-2017.03-rc1/0301-PATCH-check-ldrunpath-length.patch
rename to package/binutils/arc-2017.03-rc2/0301-PATCH-check-ldrunpath-length.patch
diff --git a/package/binutils/arc-2017.03-rc1/0500-add-sysroot-fix-from-bug-3049.patch b/package/binutils/arc-2017.03-rc2/0500-add-sysroot-fix-from-bug-3049.patch
similarity index 100%
rename from package/binutils/arc-2017.03-rc1/0500-add-sysroot-fix-from-bug-3049.patch
rename to package/binutils/arc-2017.03-rc2/0500-add-sysroot-fix-from-bug-3049.patch
diff --git a/package/binutils/arc-2017.03-rc1/0600-poison-system-directories.patch b/package/binutils/arc-2017.03-rc2/0600-poison-system-directories.patch
similarity index 100%
rename from package/binutils/arc-2017.03-rc1/0600-poison-system-directories.patch
rename to package/binutils/arc-2017.03-rc2/0600-poison-system-directories.patch
diff --git a/package/binutils/binutils.hash b/package/binutils/binutils.hash
index be3f7036d1..486bf37d37 100644
--- a/package/binutils/binutils.hash
+++ b/package/binutils/binutils.hash
@@ -4,4 +4,4 @@ sha512	cf276f84935312361a2ca077e04d0b469d23a3aed979d8ba5d92ea590904ffb2c2e7ed12c
 sha512	ede2e4e59a800260eea8c14eafbaee94e30abadafd5c419a3370f9f62213cf027d6400a1d4970b6958bd4d220e675dcd483a708107016e7abd5c99d7392ba8fd  binutils-2.28.tar.bz2
 
 # Locally calculated (fetched from Github)
-sha512  536d252a4dae94803eb95a400e16d43c8e709276e3baed1d0c07fd764b2457b7845a0b3de9c78ab10211ab7e18a49c3a988570fc434357a72aac05cee9ca6beb  binutils-arc-2017.03-rc1.tar.gz
+sha512  577fbd59dc8d41022ed511b86f3afc49af48ab798a7b187411a466621dc6247dff7dd84fa110ca278f09a9e523d8bdb892a233c00bf47d11b92be70e7278efe9  binutils-arc-2017.03-rc2.tar.gz
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index 4bcb23ec31..ba4063d3ea 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -106,7 +106,7 @@ config BR2_GCC_VERSION
 	default "4.9.4"     if BR2_GCC_VERSION_4_9_X
 	default "5.4.0"     if BR2_GCC_VERSION_5_X
 	default "6.3.0"     if BR2_GCC_VERSION_6_X
-	default "arc-2017.03-rc1" if BR2_GCC_VERSION_ARC
+	default "arc-2017.03-rc2" if BR2_GCC_VERSION_ARC
 	default "musl-5.4.0" if BR2_GCC_VERSION_OR1K
 
 config BR2_EXTRA_GCC_CONFIG_OPTIONS
diff --git a/package/gcc/arc-2017.03-rc1/301-missing-execinfo_h.patch b/package/gcc/arc-2017.03-rc2/301-missing-execinfo_h.patch
similarity index 100%
rename from package/gcc/arc-2017.03-rc1/301-missing-execinfo_h.patch
rename to package/gcc/arc-2017.03-rc2/301-missing-execinfo_h.patch
diff --git a/package/gcc/arc-2017.03-rc1/860-cilk-wchar.patch b/package/gcc/arc-2017.03-rc2/860-cilk-wchar.patch
similarity index 100%
rename from package/gcc/arc-2017.03-rc1/860-cilk-wchar.patch
rename to package/gcc/arc-2017.03-rc2/860-cilk-wchar.patch
diff --git a/package/gcc/arc-2017.03-rc1/940-uclinux-enable-threads.patch b/package/gcc/arc-2017.03-rc2/940-uclinux-enable-threads.patch
similarity index 100%
rename from package/gcc/arc-2017.03-rc1/940-uclinux-enable-threads.patch
rename to package/gcc/arc-2017.03-rc2/940-uclinux-enable-threads.patch
diff --git a/package/gcc/gcc.hash b/package/gcc/gcc.hash
index 052a825451..4313f157cb 100644
--- a/package/gcc/gcc.hash
+++ b/package/gcc/gcc.hash
@@ -12,6 +12,6 @@ sha512  2941cc950c8f2409a314df497631f9b0266211aa74746c1839c46e04f1c7c299afe2528d
 sha512  234dd9b1bdc9a9c6e352216a7ef4ccadc6c07f156006a59759c5e0e6a69f0abcdc14630eff11e3826dd6ba5933a8faa43043f3d1d62df6bd5ab1e82862f9bf78  gcc-6.3.0.tar.bz2
 
 # Locally calculated (fetched from Github)
-sha512  e4fe5a179b8feabf932a8a6f4794ff6907b868a65487412d855a4b3671aa24ec8544a44f3b63e69ea2c12fcd4d8028d0619d40bf016ee7c1a5b5a99aa9315ef3  gcc-arc-2017.03-rc1.tar.gz
+sha512  8157d784367de2de853f7d288a213ee3222ac77321d18a887cd5a9c55b53f5948cc8608ec82398cb7e0a155ffa79f86f6469a23b505b22cd0eb5b69d610abd41  gcc-arc-2017.03-rc2.tar.gz
 # Locally calculated (fetched from Github)
 sha512  841101f7de45f327bf2e92f3efc73ca88a021e4b9b541458ce80a16e55882bd8606a8492d75c57c589ee2c10d42ae2865b67690155d7289a541df1d68096402f  gcc-musl-5.4.0.tar.gz
diff --git a/package/gdb/Config.in.host b/package/gdb/Config.in.host
index 62b5b1a58c..b1f0b5569c 100644
--- a/package/gdb/Config.in.host
+++ b/package/gdb/Config.in.host
@@ -55,7 +55,7 @@ endif
 # If cross-gdb is not enabled, the latest working version is chosen.
 config BR2_GDB_VERSION
 	string
-	default "arc-2017.03-rc1-gdb" if BR2_arc
+	default "arc-2017.03-rc2-gdb" if BR2_arc
 	default "6be65fb56ea6694a9260733a536a023a1e2d4d57" if BR2_microblaze
 	default "7.10.1"   if BR2_GDB_VERSION_7_10
 	default "7.11.1"   if BR2_GDB_VERSION_7_11 || !BR2_PACKAGE_HOST_GDB
diff --git a/package/gdb/gdb.hash b/package/gdb/gdb.hash
index efb5b11d7b..32526d55b6 100644
--- a/package/gdb/gdb.hash
+++ b/package/gdb/gdb.hash
@@ -5,4 +5,4 @@ sha512  0ac8d0a495103611ef41167a08313a010dce6ca4c6d827cbe8558a0c1a1a8a6bfa53f1b7
 
 # Locally calculated (fetched from Github)
 sha512  0a467091d4b01fbecabb4b8da1cb743025c70e7f4874a0b5c8fa2ec623569a39bde6762b91806de0be6e63711aeb6909715cfbe43860de73d8aec6159a9f10a7	gdb-6be65fb56ea6694a9260733a536a023a1e2d4d57.tar.gz
-sha512  0bd0ec8169ee059493675db59170f09a6c16d12408a426d6f07892a72d43b73e3ef0059ea409e9fb72998da6cb762d336b852d2e13e2817a0a0fe976e20803bd  gdb-arc-2017.03-rc1-gdb.tar.gz
+sha512  275241c215d0bd32ab0f9f16358c46a66fd0d5db09d9a148b169a6b8135cfe91c6240a6bb75977573d4fc449a98f0702254577cbdc4598c6153ebbdca39253cf	gdb-arc-2017.03-rc2-gdb.tar.gz
-- 
2.11.0

^ permalink raw reply related

* [Buildroot] Problems building iotop
From: Linux User @ 2017-05-12 17:31 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170512161308.1881fcb5@free-electrons.com>

I do understand that. But for 1 package, I dont want to upgrade to entire
BR. What I am trying to do should be possible. Isn't it ? If you can give
me some pointers, I dont mind, working on it.

On Fri, May 12, 2017 at 10:13 AM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:

> Hello,
>
> On Fri, 12 May 2017 09:51:57 -0400, Linux User wrote:
>
> > Posting again, with the maillist in cc.
> >
> > I am using 2013 version of BR.
> >
> > Oh my buildroot is already setup. I am build everything else just fine
> but
> > iotop.
>
> Buildroot 2013 is really old. The iotop package was added in Buildroot
> 2015.05.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170512/64d92946/attachment.html>

^ permalink raw reply

* [Buildroot] libfakeroot problem
From: Steve Kenton @ 2017-05-12 17:06 UTC (permalink / raw)
  To: buildroot

I've got an embedded project I would like to update from 2016.05 to 
2017.05 so I pulled the latest snapshot late last night.
The 64-bit build always gets an error with libfakeroot. Is this a known 
issue? I just resubscribed, but I did not see anything obvious in the 
archives.

My development box runs Ubuntu and to make testing easier I try to use a 
compatible kernel/headers, hence the 4.4

hdi at hdi-H110N:~/updatetest/buildroot-2017.05$ uname -a
Linux hdi-H110N 4.4.0-72-generic #93~14.04.1-Ubuntu SMP Fri Mar 31 
15:05:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Here is what I have for a stripped down defconfig after "make savedefconfig"

hdi at hdi-H110N:~/updatetest/buildroot-2017.05$ more defconfig
BR2_x86_64=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_KERNEL_HEADERS_4_4=y

Here are the last few lines after "make olddefconfig; make"

ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be 
preloaded (cannot open shared object file): ignored.
/usr/bin/install -m 0644 support/misc/target-dir-warning.txt 
/home/hdi/updatetest/buildroot-2017.05/output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM

Any thoughts?

Steve Kenton

^ permalink raw reply

* [Buildroot] [PATCH] package: tmux: bump to v2.4
From: Mario J. Rugiero @ 2017-05-12 16:59 UTC (permalink / raw)
  To: buildroot

Also removes 0001-compat-don-t-re-define-program_invocation_short_name.patch,
since it's applied to upstream in this version.

Tested with:
qemu_ppc_g3beige_defconfig

Signed-off-by: Mario J. Rugiero <mrugiero@gmail.com>
---
 ...t-re-define-program_invocation_short_name.patch | 42 ----------------------
 package/tmux/tmux.hash                             |  2 +-
 package/tmux/tmux.mk                               |  2 +-
 3 files changed, 2 insertions(+), 44 deletions(-)
 delete mode 100644 package/tmux/0001-compat-don-t-re-define-program_invocation_short_name.patch

diff --git a/package/tmux/0001-compat-don-t-re-define-program_invocation_short_name.patch b/package/tmux/0001-compat-don-t-re-define-program_invocation_short_name.patch
deleted file mode 100644
index bddc2c720..000000000
--- a/package/tmux/0001-compat-don-t-re-define-program_invocation_short_name.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 9b18a98614a9f201b0883c2b15e7c7bde0aa0ff2 Mon Sep 17 00:00:00 2001
-From: "Yann E. MORIN" <yann.morin.1998@free.fr>
-Date: Sun, 5 Feb 2017 17:12:00 +0100
-Subject: [PATCH] compat: don't re-define program_invocation_short_name
-
-program_invocation_short_name is defined in errno.h, and its definition
-can differ between the various C libraries: glibc defines it as:
-    extern char *program_invocation_short_name;
-
-while uClibc defines it as:
-    extern const char *program_invocation_short_name;
-
-So there is not simple solution to know the prototype.
-
-But since it is defined in errno.h, there is no reason to try and define
-it ourselves; let's just trust what the header provides.
-
-Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
----
- compat/getprogname.c | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/compat/getprogname.c b/compat/getprogname.c
-index 80a496d..ad619fc 100644
---- a/compat/getprogname.c
-+++ b/compat/getprogname.c
-@@ -19,11 +19,10 @@
- #include "compat.h"
- 
- #if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME)
-+#include <errno.h>
- const char *
- getprogname(void)
- {
--	extern char	*program_invocation_short_name;
--
- 	return (program_invocation_short_name);
- }
- #elif defined(HAVE___PROGNAME)
--- 
-2.7.4
-
diff --git a/package/tmux/tmux.hash b/package/tmux/tmux.hash
index 9195a1689..ac42571fd 100644
--- a/package/tmux/tmux.hash
+++ b/package/tmux/tmux.hash
@@ -1,2 +1,2 @@
 # Locally computed:
-sha256 55313e132f0f42de7e020bf6323a1939ee02ab79c48634aa07475db41573852b  tmux-2.3.tar.gz
+sha256 757d6b13231d0d9dd48404968fc114ac09e005d475705ad0cd4b7166f799b349 tmux-2.4.tar.gz
diff --git a/package/tmux/tmux.mk b/package/tmux/tmux.mk
index f6dd1a9cc..6636b9b5f 100644
--- a/package/tmux/tmux.mk
+++ b/package/tmux/tmux.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-TMUX_VERSION = 2.3
+TMUX_VERSION = 2.4
 TMUX_SITE = https://github.com/tmux/tmux/releases/download/$(TMUX_VERSION)
 TMUX_LICENSE = ISC
 TMUX_LICENSE_FILES = README
-- 
2.13.0

^ permalink raw reply related

* [Buildroot] [Bug 9796] source-check broken for Git downloads
From: bugzilla at busybox.net @ 2017-05-12 15:55 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <bug-9796-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=9796

--- Comment #5 from Yann E. MORIN <yann.morin.1998@free.fr> ---
Patch sent:
    https://patchwork.ozlabs.org/patch/761701/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply

* [Buildroot] [PATCH] core/download: fix source check for git method
From: Yann E. MORIN @ 2017-05-12 15:54 UTC (permalink / raw)
  To: buildroot

Running foo-source-check on packages retrieved from git fails.

This is because there is no associated stamp file, so we do not have a
rule-assignment that sets PKG for foo-source-check.

But it does not make sense to have a stamp file at all, because
source-check is not supposed to change anything: the status after is
exactly the same as before; nothing is downlaoded, so there is no
progress (whatsoever) to memorise.

Fix that by just defining PKG in the source-check rule definition.

Fixes #9796.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/pkg-generic.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 3b26e6b483..f474704980 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -694,6 +694,7 @@ $(1)-legal-source:	$$($(2)_TARGET_ACTUAL_SOURCE)
 endif # actual sources != sources
 endif # actual sources != ""
 
+$(1)-source-check: PKG=$(2)
 $(1)-source-check:
 	$$(foreach p,$$($(2)_ALL_DOWNLOADS),$$(call SOURCE_CHECK,$$(p))$$(sep))
 
-- 
2.11.0

^ permalink raw reply related

* [Buildroot] [PATCH] support/scripts/apply-patches.sh: do not apply patches with renames
From: Thomas Petazzoni @ 2017-05-12 15:53 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170512154039.GA2955@scaer>

Hello,

On Fri, 12 May 2017 17:40:39 +0200, Yann E. MORIN wrote:

> Meh. path-2.7 was released 5 years ago. Oh well, let's be kind for those
> stuck with ancient entreprise-grade distros... ;-)

Exactly :)


> Oh-oh... Not good:  the '-a' will be passed as an option to grep; this
> is not a [...] construct.
> 
> What you want instead is:
> 
>     if grep -q "^rename from" ${path}/${patch} && \
>        grep -q "^rename to" ${path}/${patch} ; then

OK, will fix.

However, what bothers me with this is that if the patch description
contains "rename from" and "rename to" at the beginning of two lines,
then it will also trigger this condition.

But I'm not sure if it's a really realistic case, and if it ever
happens, we can always fix/improve the script. Unless there is a better
but still simple way to check if a patch uses renames. Ideally we would
want patch >= 2.7 to bail out if there's a rename, but I couldn't find
any option doing this... and this option would anyway not exist with
patch < 2.7.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply

* [Buildroot] [PATCH] support/scripts/apply-patches.sh: do not apply patches with renames
From: Yann E. MORIN @ 2017-05-12 15:40 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <1494584944-23924-1-git-send-email-thomas.petazzoni@free-electrons.com>

Thomas, All,

On 2017-05-12 12:29 +0200, Thomas Petazzoni spake thusly:
> Patches with renames apply properly with patch >= 2.7, but not with
> older patch versions. Since "git format-patch" by default generates
> patches with renames, Buildroot developers often don't realize that
> their patches will not apply properly on build machines that have
> patch < 2.7. In order to prevent such a situation from happening
> again, this commit adds some logic in apply-patches.sh to refuse
> applying patches that contain renames.

Meh. path-2.7 was released 5 years ago. Oh well, let's be kind for those
stuck with ancient entreprise-grade distros... ;-)

> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
>  support/scripts/apply-patches.sh | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh
> index 7ccb39d..6f40280c 100755
> --- a/support/scripts/apply-patches.sh
> +++ b/support/scripts/apply-patches.sh
> @@ -113,6 +113,11 @@ function apply_patch {
>          echo "  to be applied  : ${path}/${patch}"
>          exit 1
>      fi
> +    if grep -q "^rename from" ${path}/${patch} -a
> +       grep -q "^rename to" ${path}/${patch} ; then

Oh-oh... Not good:  the '-a' will be passed as an option to grep; this
is not a [...] construct.

What you want instead is:

    if grep -q "^rename from" ${path}/${patch} && \
       grep -q "^rename to" ${path}/${patch} ; then

Regards,
Yann E. MORIN.

> +	echo "Error: patch contains some renames, not supported by old patch versions"
> +	exit 1
> +    fi
>      echo "${path}/${patch}" >> ${builddir}/.applied_patches_list
>      ${uncomp} "${path}/$patch" | patch -g0 -p1 -E -d "${builddir}" -t -N $silent
>      if [ $? != 0 ] ; then
> -- 
> 2.7.4
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply

* [Buildroot] Altera SoC Buildroot external toolchain incompatible error
From: lemonoje @ 2017-05-12 14:45 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <1494598560669-164820.post@n4.nabble.com>

Okay, removing the entire BR directory, re-clone, and re-checkout fixed the
error.  Previous failures must have mucked something up!  
Now it builds for about 10 minutes and gets to compiling in valgrind
(recommended by Rocketboards materials)  and that portion fails with:

*
Toolchain wrapper executing:
   
'/sf/ArriaX/ltsi_4_1_33/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc'
    '--sysroot'
   
'/sf/ArriaX/ltsi_4_1_33/buildroot/output/host/usr/ARM-buildroot-linux-gnueabihf/sysroot'
    '-mabi=aapcs-linux'
    '-mfpu=neon'
    '-marm'
    '-mfloat-abi=hard'
    '-mcpu=cortex-a9'
    '--version'
ok (6.2.1)
checking build system type... x86_64-pc-linux-gnu
checking host system type... Invalid configuration
`ARM-buildroot-linux-gnueabihf': machine `ARM-buildroot' not recognized
configure: error: /bin/sh ./config.sub ARM-buildroot-linux-gnueabihf failed
package/pkg-generic.mk:206: recipe for target
'/sf/ArriaX/ltsi_4_1_33/buildroot/output/build/valgrind-3.12.0/.stamp_configured'
failed
make: ***
[/sf/ArriaX/ltsi_4_1_33/buildroot/output/build/valgrind-3.12.0/.stamp_configured]
Error 1*






--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Altera-SoC-Buildroot-external-toolchain-incompatible-error-tp164744p164824.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.

^ permalink raw reply

* [Buildroot] [PATCH next 3/3] bc: bump version to 1.07.1
From: Vicente Olivert Riera @ 2017-05-12 14:28 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170512142848.13956-1-Vincent.Riera@imgtec.com>

- Remove 01 and 02 patches as they are not needed anymore.
- Tweak 03 patch for the new version and rename it to 0001.
- host-flex dependency is not needed anymore.
- Added host-bc dependency: needed to bootstrap libmath.h at build time.
- Added host-ed dependency: used by fix-libmath_h script at build time.
- Swith site to GNU mirror.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 ...fo.patch => 0001-use_appropiate_makeinfo.patch} |  13 +-
 package/bc/01_array_initialize.patch               |  20 -
 package/bc/02_notice_read_write_errors.patch       | 708 ---------------------
 package/bc/bc.hash                                 |   2 +-
 package/bc/bc.mk                                   |  25 +-
 5 files changed, 30 insertions(+), 738 deletions(-)
 rename package/bc/{03_use_appropiate_makeinfo.patch => 0001-use_appropiate_makeinfo.patch} (53%)
 delete mode 100644 package/bc/01_array_initialize.patch
 delete mode 100644 package/bc/02_notice_read_write_errors.patch

diff --git a/package/bc/03_use_appropiate_makeinfo.patch b/package/bc/0001-use_appropiate_makeinfo.patch
similarity index 53%
rename from package/bc/03_use_appropiate_makeinfo.patch
rename to package/bc/0001-use_appropiate_makeinfo.patch
index e6f9262..f6d89a3 100644
--- a/package/bc/03_use_appropiate_makeinfo.patch
+++ b/package/bc/0001-use_appropiate_makeinfo.patch
@@ -1,17 +1,20 @@
 Use the appropiate MAKEINFO variable rather than the hardcoded makeinfo
 command directly, otherwise missing logic never works.
 
+[Vincent: tweak the patch for 1.07.1]
+
 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
 
-diff -Nura bc-1.06.95.orig/doc/Makefile.in bc-1.06.95/doc/Makefile.in
---- bc-1.06.95.orig/doc/Makefile.in	2015-06-13 09:39:46.946620294 -0300
-+++ bc-1.06.95/doc/Makefile.in	2015-06-13 09:40:10.019407630 -0300
-@@ -96,7 +96,7 @@
+diff -Nura a/doc/Makefile.in b/doc/Makefile.in
+--- a/doc/Makefile.in	2017-04-07 23:20:02.000000000 +0100
++++ b/doc/Makefile.in	2017-05-10 17:29:19.126687266 +0100
+@@ -214,7 +214,7 @@
  LIBOBJS = @LIBOBJS@
  LIBS = @LIBS@
  LTLIBOBJS = @LTLIBOBJS@
 -MAKEINFO = makeinfo --no-split
 +MAKEINFO = @MAKEINFO@ --no-split
+ MKDIR_P = @MKDIR_P@
  OBJEXT = @OBJEXT@
  PACKAGE = @PACKAGE@
- PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
diff --git a/package/bc/01_array_initialize.patch b/package/bc/01_array_initialize.patch
deleted file mode 100644
index 9520d82..0000000
--- a/package/bc/01_array_initialize.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-Description: Fix array initialization bug
-Author: Phil Nelson
-Origin: upstream
-Bug-Debian: http://bugs.debian.org/586969
-Bug-Debian: http://bugs.debian.org/671513
----
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
-Index: bc/bc/storage.c
-===================================================================
---- bc.orig/bc/storage.c	2013-06-02 20:34:09.401273864 -0400
-+++ bc/bc/storage.c	2013-06-02 20:34:11.000000000 -0400
-@@ -179,7 +179,7 @@
- 
- 
-   /* Initialize the new elements. */
--  for (; indx < v_count; indx++)
-+  for (; indx < a_count; indx++)
-     arrays[indx] = NULL;
- 
-   /* Free the old elements. */
diff --git a/package/bc/02_notice_read_write_errors.patch b/package/bc/02_notice_read_write_errors.patch
deleted file mode 100644
index 73e6ec9..0000000
--- a/package/bc/02_notice_read_write_errors.patch
+++ /dev/null
@@ -1,708 +0,0 @@
-Description: notice read and write errors on input and output
- Quoting from the bug report:
-    +bc (1.06-19ubuntu1) dapper; urgency=low
-    +
-    +  * Make dc notice read and write errors on its input and output.
-    +    I grepped for mentions of the strings `putc', `print', `getc', `FILE',
-    +    `stdin', `stdout' and `stderr' and added calls to new error-checking
-    +    functions unless it was clear from the immediately-surrounding code
-    +    that the program was exiting nonzero, or would exit nonzero if the
-    +    call failed.  I ignored hits in lib/getopt*, which seems to
-    +    pervasively ignore write errors when printing usage messages, in the
-    +    hope that these were correct.  I _think_ I got them all.  -iwj.
-    +
-    + -- Ian Jackson <iwj@ubuntu.com>  Tue,  4 Apr 2006 17:21:02 +0100
-Author: Ian Jackson <iwj@ubuntu.com>
-Origin: other
-Bug-Debian: http://bugs.debian.org/488735
----
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
-diff --git a/bc/execute.c b/bc/execute.c
-index e4e8ef7..8787048 100644
---- a/bc/execute.c
-+++ b/bc/execute.c
-@@ -108,6 +108,7 @@ execute ()
- 	      }
- 	    out_char ('\n');
- 	  }
-+	checkferror_output(stdout);
-       }
- #endif
- 
-@@ -222,6 +223,7 @@ execute ()
- 		}
- 	    }
- 	fflush (stdout);
-+	checkferror_output(stdout);
- 	break;
- 
-       case 'R' : /* Return from function */
-@@ -257,6 +259,7 @@ execute ()
- 	if (inst == 'W') out_char ('\n');
- 	store_var (4);  /* Special variable "last". */
- 	fflush (stdout);
-+	checkferror_output(stdout);
- 	pop ();
- 	break;
- 
-@@ -338,6 +341,7 @@ execute ()
-       case 'w' : /* Write a string to the output. */
- 	while ((ch = byte(&pc)) != '"') out_schar (ch);
- 	fflush (stdout);
-+	checkferror_output(stdout);
- 	break;
- 		   
-       case 'x' : /* Exchange Top of Stack with the one under the tos. */
-@@ -545,7 +549,10 @@ execute ()
-     {
-       signal (SIGINT, use_quit);
-       if (had_sigint)
--	printf ("\ninterrupted execution.\n");
-+	{
-+	  printf ("\ninterrupted execution.\n");
-+	  checkferror_output(stdout);
-+	}
-     }
- }
- 
-@@ -580,6 +587,7 @@ input_char ()
- 	  out_col = 0;  /* Saw a new line */
- 	}
-     }
-+  checkferror_input(stdin);
- 
-   /* Classify and preprocess the input character. */
-   if (isdigit(in_ch))
-diff --git a/bc/load.c b/bc/load.c
-index 1035198..4039e86 100644
---- a/bc/load.c
-+++ b/bc/load.c
-@@ -217,6 +217,7 @@ load_code (code)
- 		if (label_no > 65535L)
- 		  {  /* Better message? */
- 		    fprintf (stderr,"Program too big.\n");
-+		    checkferror_output(stderr);
- 		    exit(1);
- 		  }
- 		addbyte ( (char) (label_no & 0xFF));
-diff --git a/bc/main.c b/bc/main.c
-index 9a2461e..3ae427d 100644
---- a/bc/main.c
-+++ b/bc/main.c
-@@ -358,6 +358,9 @@ use_quit (sig)
-   errno = save;
- #else
-   write (1, "\n(interrupt) Exiting bc.\n", 26);
-+#ifdef READLINE
-+  rl_initialize (); /* Clear readline buffer */
-+#endif
- #if defined(LIBEDIT)
-   if (edit != NULL)
-     el_end(edit);
-diff --git a/bc/sbc.y b/bc/sbc.y
-index 0ded29e..6fcc1fa 100644
---- a/bc/sbc.y
-+++ b/bc/sbc.y
-@@ -86,7 +86,9 @@ program			: /* empty */
- 			      if (interactive && !quiet)
- 				{
- 				  show_bc_version ();
-+				  checkferror_output(stdout);
- 				  welcome ();
-+				  checkferror_output(stdout);
- 				}
- 			    }
- 			| program input_item
-diff --git a/bc/scan.c b/bc/scan.c
-index 1f78ec2..2b5eeb4 100644
---- a/bc/scan.c
-+++ b/bc/scan.c
-@@ -799,6 +799,7 @@ bcel_input (buf, result, max)
-       if (bcel_len != 0)
- 	history (hist, &histev, H_ENTER, bcel_line); 
-       fflush (stdout);
-+      checkferror_output(stdout);
-     }
- 
-   if (bcel_len <= max)
-@@ -874,6 +875,7 @@ rl_input (buf, result, max)
- 	add_history (rl_line); 
-       rl_line[rl_len-1] = '\n';
-       fflush (stdout);
-+      checkferror_output(stdout);
-     }
- 
-   if (rl_len <= max)
-diff --git a/bc/scan.l b/bc/scan.l
-index 841c3df..16cd62e 100644
---- a/bc/scan.l
-+++ b/bc/scan.l
-@@ -111,6 +111,7 @@ bcel_input (buf, result, max)
-       if (bcel_len != 0)
- 	history (hist, &histev, H_ENTER, bcel_line); 
-       fflush (stdout);
-+      checkferror_output(stdout);
-     }
- 
-   if (bcel_len <= max)
-@@ -186,6 +187,7 @@ rl_input (buf, result, max)
- 	add_history (rl_line); 
-       rl_line[rl_len-1] = '\n';
-       fflush (stdout);
-+      checkferror_output(stdout);
-     }
- 
-   if (rl_len <= max)
-@@ -310,6 +312,7 @@ limits return(Limits);
- 	    if (c == EOF)
- 	      {
- 		fprintf (stderr,"EOF encountered in a comment.\n");
-+                checkferror_output(stderr);
- 		break;
- 	      }
- 	  }
-diff --git a/bc/storage.c b/bc/storage.c
-index 699729a..37b4c6c 100644
---- a/bc/storage.c
-+++ b/bc/storage.c
-@@ -99,6 +99,7 @@ more_functions (VOID)
-     {
-       f = &functions[indx];
-       f->f_defined = FALSE;
-+      f->f_void = FALSE;
-       f->f_body = (char *) bc_malloc (BC_START_SIZE);
-       f->f_body_size = BC_START_SIZE;
-       f->f_code_size = 0;
-diff --git a/bc/util.c b/bc/util.c
-index 30beaf9..669235f 100644
---- a/bc/util.c
-+++ b/bc/util.c
-@@ -260,9 +260,10 @@ init_gen ()
-   continue_label = 0;
-   next_label  = 1;
-   out_count = 2;
--  if (compile_only) 
-+  if (compile_only) {
-     printf ("@i");
--  else
-+    checkferror_output(stdout);
-+  } else
-     init_load ();
-   had_error = FALSE;
-   did_gen = FALSE;
-@@ -286,6 +287,7 @@ generate (str)
- 	  printf ("\n");
- 	  out_count = 0;
- 	}
-+      checkferror_output(stdout);
-     }
-   else
-     load_code (str);
-@@ -303,6 +305,7 @@ run_code()
-       if (compile_only)
- 	{
- 	  printf ("@r\n"); 
-+	  checkferror_output(stdout);
- 	  out_count = 0;
- 	}
-       else
-@@ -341,6 +344,7 @@ out_char (ch)
- 	}
-       putchar (ch);
-     }
-+  checkferror_output(stdout);
- }
- 
- /* Output routines: Write a character CH to the standard output.
-@@ -371,6 +375,7 @@ out_schar (ch)
- 	}
-       putchar (ch);
-     }
-+  checkferror_output(stdout);
- }
- 
- 
-@@ -657,6 +662,7 @@ limits()
- #ifdef OLD_EQ_OP
-   printf ("Old assignment operatiors are valid. (=-, =+, ...)\n");
- #endif 
-+  checkferror_output(stdout);
- }
- 
- /* bc_malloc will check the return value so all other places do not
-@@ -721,6 +727,7 @@ yyerror (str, va_alist)
-   fprintf (stderr,"%s %d: ",name,line_no);
-   vfprintf (stderr, str, args);
-   fprintf (stderr, "\n");
-+  checkferror_output(stderr);
-   had_error = TRUE;
-   va_end (args);
- }
-@@ -761,6 +768,7 @@ warn (mesg, va_alist)
-       fprintf (stderr,"%s %d: Error: ",name,line_no);
-       vfprintf (stderr, mesg, args);
-       fprintf (stderr, "\n");
-+      checkferror_output(stderr);
-       had_error = TRUE;
-     }
-   else
-@@ -773,6 +781,7 @@ warn (mesg, va_alist)
- 	fprintf (stderr,"%s %d: (Warning) ",name,line_no);
- 	vfprintf (stderr, mesg, args);
- 	fprintf (stderr, "\n");
-+	checkferror_output(stderr);
-       }
-   va_end (args);
- }
-@@ -807,6 +816,7 @@ rt_error (mesg, va_alist)
-   va_end (args);
-   
-   fprintf (stderr, "\n");
-+  checkferror_output(stderr);
-   runtime_error = TRUE;
- }
- 
-@@ -843,4 +853,5 @@ rt_warn (mesg, va_alist)
-   va_end (args);
- 
-   fprintf (stderr, "\n");
-+  checkferror_output(stderr);
- }
-diff --git a/dc/dc.c b/dc/dc.c
-index e03f094..0faf03a 100644
---- a/dc/dc.c
-+++ b/dc/dc.c
-@@ -61,6 +61,7 @@ static void
- bug_report_info DC_DECLVOID()
- {
- 	printf("Email bug reports to:  bug-dc at gnu.org .\n");
-+	checkferror_output(stdout);
- }
- 
- static void
-@@ -71,6 +72,7 @@ show_version DC_DECLVOID()
- This is free software; see the source for copying conditions.  There is NO\n\
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,\n\
- to the extent permitted by law.\n", DC_COPYRIGHT);
-+	checkferror_output(stdout);
- }
- 
- /* your generic usage function */
-@@ -87,6 +89,7 @@ Usage: %s [OPTION] [file ...]\n\
- \n\
- ", progname);
- 	bug_report_info();
-+	checkferror_output(f);
- }
- 
- /* returns a pointer to one past the last occurance of c in s,
-diff --git a/dc/eval.c b/dc/eval.c
-index 4af7200..153d331 100644
---- a/dc/eval.c
-+++ b/dc/eval.c
-@@ -94,12 +94,15 @@ static int input_pushback;
- static int
- input_fil DC_DECLVOID()
- {
-+        int c;
- 	if (input_pushback != EOF){
--		int c = input_pushback;
-+		c = input_pushback;
- 		input_pushback = EOF;
- 		return c;
- 	}
--	return getc(input_fil_fp);
-+	c = getc(input_fil_fp);
-+	checkferror_input(input_fil_fp);
-+	return c;
- }
- 
- /* passed as an argument to dc_getnum */
-@@ -298,11 +301,13 @@ dc_func DC_DECLARG((c, peekc, negcmp))
- 				tmpint = dc_num2int(datum.v.number, DC_TOSS);
- 			if (2 <= tmpint  &&  tmpint <= DC_IBASE_MAX)
- 				dc_ibase = tmpint;
--			else
-+			else {
- 				fprintf(stderr,
- 						"%s: input base must be a number \
- between 2 and %d (inclusive)\n",
- 						progname, DC_IBASE_MAX);
-+				checkferror_output(stderr);
-+			}
- 		}
- 		break;
- 	case 'k':	/* set scale to value on top of stack */
-@@ -310,11 +315,12 @@ between 2 and %d (inclusive)\n",
- 			tmpint = -1;
- 			if (datum.dc_type == DC_NUMBER)
- 				tmpint = dc_num2int(datum.v.number, DC_TOSS);
--			if ( ! (tmpint >= 0) )
-+			if ( ! (tmpint >= 0) ) {
- 				fprintf(stderr,
- 						"%s: scale must be a nonnegative number\n",
- 						progname);
--			else
-+				checkferror_output(stderr);
-+			} else
- 				dc_scale = tmpint;
- 		}
- 		break;
-@@ -338,11 +344,12 @@ between 2 and %d (inclusive)\n",
- 			tmpint = 0;
- 			if (datum.dc_type == DC_NUMBER)
- 				tmpint = dc_num2int(datum.v.number, DC_TOSS);
--			if ( ! (tmpint > 1) )
-+			if ( ! (tmpint > 1) ) {
- 				fprintf(stderr,
- 						"%s: output base must be a number greater than 1\n",
- 						progname);
--			else
-+				checkferror_output(stderr);
-+			} else
- 				dc_obase = tmpint;
- 		}
- 		break;
-@@ -383,6 +390,7 @@ between 2 and %d (inclusive)\n",
- 				fprintf(stderr,
- 						"%s: square root of nonnumeric attempted\n",
- 						progname);
-+				checkferror_output(stderr);
- 			}else if (dc_sqrt(datum.v.number, dc_scale, &tmpnum) == DC_SUCCESS){
- 				dc_free_num(&datum.v.number);
- 				datum.v.number = tmpnum;
-@@ -444,6 +452,7 @@ between 2 and %d (inclusive)\n",
- 			fprintf(stderr,
- 					"%s: Q command requires a number >= 1\n",
- 					progname);
-+			checkferror_output(stderr);
- 		}
- 		break;
- #if 0
-@@ -489,11 +498,12 @@ between 2 and %d (inclusive)\n",
- 			if (datum.dc_type == DC_NUMBER)
- 				tmpint = dc_num2int(datum.v.number, DC_TOSS);
- 			if (dc_pop(&datum) == DC_SUCCESS){
--				if (tmpint < 0)
-+				if (tmpint < 0) {
- 					fprintf(stderr,
- 							"%s: array index must be a nonnegative integer\n",
- 							progname);
--				else
-+					checkferror_output(stderr);
-+				} else
- 					dc_array_set(peekc, tmpint, datum);
- 			}
- 		}
-@@ -505,17 +515,19 @@ between 2 and %d (inclusive)\n",
- 			tmpint = -1;
- 			if (datum.dc_type == DC_NUMBER)
- 				tmpint = dc_num2int(datum.v.number, DC_TOSS);
--			if (tmpint < 0)
-+			if (tmpint < 0) {
- 				fprintf(stderr,
- 						"%s: array index must be a nonnegative integer\n",
- 						progname);
--			else
-+				checkferror_output(stderr);
-+			} else
- 				dc_push(dc_array_get(peekc, tmpint));
- 		}
- 		return DC_EATONE;
- 
- 	default:	/* What did that user mean? */
- 		fprintf(stderr, "%s: ", progname);
-+		checkferror_output(stderr);
- 		dc_show_id(stdout, c, " unimplemented\n");
- 		break;
- 	}
-@@ -544,6 +556,7 @@ dc_evalstr DC_DECLARG((string))
- 		fprintf(stderr,
- 				"%s: eval called with non-string argument\n",
- 				progname);
-+		checkferror_output(stderr);
- 		return DC_OKAY;
- 	}
- 	interrupt_seen = 0;
-@@ -640,6 +653,7 @@ dc_evalstr DC_DECLARG((string))
- 				return DC_FAIL;
- 			}
- 			fprintf(stderr, "%s: unexpected EOS\n", progname);
-+			checkferror_output(stderr);
- 			return DC_OKAY;
- 		}
- 	}
-@@ -665,6 +679,7 @@ dc_evalfile DC_DECLARG((fp))
- 	stdin_lookahead = EOF;
- 	for (c=getc(fp); c!=EOF; c=peekc){
- 		peekc = getc(fp);
-+		checkferror_input(stdin);
- 		/*
- 		 * The following if() is the only place where ``stdin_lookahead''
- 		 * might be set to other than EOF:
-@@ -716,6 +731,7 @@ dc_evalfile DC_DECLARG((fp))
- 							return DC_SUCCESS;
- 						fprintf(stderr, "%s: Q command argument exceeded \
- string execution depth\n", progname);
-+						checkferror_output(stderr);
- 					}
- 				}else{
- 					dc_garbage("at top of stack", -1);
-@@ -728,8 +744,11 @@ string execution depth\n", progname);
- 			fprintf(stderr,
- 					"%s: Q command argument exceeded string execution depth\n",
- 					progname);
--			if (stdin_lookahead != peekc  &&  fp == stdin)
-+			checkferror_output(stderr);
-+			if (stdin_lookahead != peekc  &&  fp == stdin) {
- 				peekc = getc(fp);
-+				checkferror_input(stdin);
-+			}
- 			break;
- 
- 		case DC_INT:
-@@ -771,6 +790,7 @@ string execution depth\n", progname);
- 			if (ferror(fp))
- 				goto error_fail;
- 			fprintf(stderr, "%s: unexpected EOF\n", progname);
-+			checkferror_output(stderr);
- 			return DC_FAIL;
- 		}
- 	}
-diff --git a/dc/misc.c b/dc/misc.c
-index f2388b0..1be56fe 100644
---- a/dc/misc.c
-+++ b/dc/misc.c
-@@ -91,6 +91,7 @@ dc_show_id DC_DECLARG((fp, id, suffix))
- 		fprintf(fp, "'%c' (%#o)%s", (unsigned int) id, id, suffix);
- 	else
- 		fprintf(fp, "%#o%s", (unsigned int) id, suffix);
-+	checkferror_output(fp);
- }
- 
- \f
-diff --git a/dc/numeric.c b/dc/numeric.c
-index 8e5e70f..c875eba 100644
---- a/dc/numeric.c
-+++ b/dc/numeric.c
-@@ -134,6 +134,7 @@ dc_div DC_DECLARG((a, b, kscale, result))
- 	bc_init_num(CastNumPtr(result));
- 	if (bc_divide(CastNum(a), CastNum(b), CastNumPtr(result), kscale)){
- 		fprintf(stderr, "%s: divide by zero\n", progname);
-+		checkferror_output(stderr);
- 		return DC_DOMAIN_ERROR;
- 	}
- 	return DC_SUCCESS;
-@@ -156,6 +157,7 @@ dc_divrem DC_DECLARG((a, b, kscale, quotient, remainder))
- 	if (bc_divmod(CastNum(a), CastNum(b),
- 						CastNumPtr(quotient), CastNumPtr(remainder), kscale)){
- 		fprintf(stderr, "%s: divide by zero\n", progname);
-+		checkferror_output(stderr);
- 		return DC_DOMAIN_ERROR;
- 	}
- 	return DC_SUCCESS;
-@@ -174,6 +176,7 @@ dc_rem DC_DECLARG((a, b, kscale, result))
- 	bc_init_num(CastNumPtr(result));
- 	if (bc_modulo(CastNum(a), CastNum(b), CastNumPtr(result), kscale)){
- 		fprintf(stderr, "%s: remainder by zero\n", progname);
-+		checkferror_output(stderr);
- 		return DC_DOMAIN_ERROR;
- 	}
- 	return DC_SUCCESS;
-@@ -226,6 +229,7 @@ dc_sqrt DC_DECLARG((value, kscale, result))
- 	tmp = bc_copy_num(CastNum(value));
- 	if (!bc_sqrt(&tmp, kscale)){
- 		fprintf(stderr, "%s: square root of negative number\n", progname);
-+		checkferror_output(stderr);
- 		bc_free_num(&tmp);
- 		return DC_DOMAIN_ERROR;
- 	}
-@@ -429,8 +433,10 @@ dc_out_num DC_DECLARG((value, obase, newline_p, discard_p))
- {
- 	out_char('\0'); /* clear the column counter */
- 	bc_out_num(CastNum(value), obase, out_char, 0);
--	if (newline_p == DC_WITHNL)
-+	if (newline_p == DC_WITHNL) {
- 		putchar ('\n');
-+		checkferror_output(stdout);
-+	}
- 	if (discard_p == DC_TOSS)
- 		dc_free_num(&value);
- }
-@@ -475,6 +481,7 @@ dc_dump_num DC_DECLARG((dcvalue, discard_p))
- 
- 	for (cur=top_of_stack; cur; cur=next) {
- 		putchar(cur->digit);
-+		checkferror_output(stdout);
- 		next = cur->link;
- 		free(cur);
- 	}
-@@ -592,6 +599,7 @@ out_char (ch)
- 			out_col = 1;
- 		}
- 		putchar(ch);
-+		checkferror_output(stderr);
- 	}
- }
- 
-@@ -631,6 +639,7 @@ rt_error (mesg, va_alist)
- 	vfprintf (stderr, mesg, args);
- 	va_end (args);
- 	fprintf (stderr, "\n");
-+	checkferror_output(stderr);
- }
- 
- 
-@@ -664,6 +673,7 @@ rt_warn (mesg, va_alist)
- 	vfprintf (stderr, mesg, args);
- 	va_end (args);
- 	fprintf (stderr, "\n");
-+	checkferror_output(stderr);
- }
- 
- \f
-diff --git a/dc/stack.c b/dc/stack.c
-index 0730e9c..5db3975 100644
---- a/dc/stack.c
-+++ b/dc/stack.c
-@@ -38,7 +38,10 @@
- #include "dc-regdef.h"
- 
- /* an oft-used error message: */
--#define Empty_Stack	fprintf(stderr, "%s: stack empty\n", progname)
-+#define Empty_Stack do{					\
-+    fprintf(stderr, "%s: stack empty\n", progname);	\
-+    checkferror_output(stderr);				\
-+  }while(0)
- 
- 
- /* simple linked-list implementation suffices: */
-@@ -94,6 +97,7 @@ dc_binop DC_DECLARG((op, kscale))
- 	if (dc_stack->value.dc_type!=DC_NUMBER
- 			|| dc_stack->link->value.dc_type!=DC_NUMBER){
- 		fprintf(stderr, "%s: non-numeric value\n", progname);
-+		checkferror_output(stderr);
- 		return;
- 	}
- 	(void)dc_pop(&b);
-@@ -134,6 +138,7 @@ dc_binop2 DC_DECLARG((op, kscale))
- 	if (dc_stack->value.dc_type!=DC_NUMBER
- 			|| dc_stack->link->value.dc_type!=DC_NUMBER){
- 		fprintf(stderr, "%s: non-numeric value\n", progname);
-+		checkferror_output(stderr);
- 		return;
- 	}
- 	(void)dc_pop(&b);
-@@ -172,6 +177,7 @@ dc_cmpop DC_DECLVOID()
- 	if (dc_stack->value.dc_type!=DC_NUMBER
- 			|| dc_stack->link->value.dc_type!=DC_NUMBER){
- 		fprintf(stderr, "%s: non-numeric value\n", progname);
-+		checkferror_output(stderr);
- 		return 0;
- 	}
- 	(void)dc_pop(&b);
-@@ -209,6 +215,7 @@ dc_triop DC_DECLARG((op, kscale))
- 			|| dc_stack->link->value.dc_type!=DC_NUMBER
- 			|| dc_stack->link->link->value.dc_type!=DC_NUMBER){
- 		fprintf(stderr, "%s: non-numeric value\n", progname);
-+		checkferror_output(stderr);
- 		return;
- 	}
- 	(void)dc_pop(&c);
-@@ -327,6 +334,7 @@ dc_register_get DC_DECLARG((regid, result))
- 	r = dc_register[regid];
- 	if (r==NULL || r->value.dc_type==DC_UNINITIALIZED){
- 		fprintf(stderr, "%s: register ", progname);
-+		checkferror_output(stderr);
- 		dc_show_id(stderr, regid, " is empty\n");
- 		return DC_FAIL;
- 	}
-@@ -401,6 +409,7 @@ dc_register_pop DC_DECLARG((stackid, result))
- 	r = dc_register[stackid];
- 	if (r == NULL){
- 		fprintf(stderr, "%s: stack register ", progname);
-+		checkferror_output(stderr);
- 		dc_show_id(stderr, stackid, " is empty\n");
- 		return DC_FAIL;
- 	}
-diff --git a/dc/string.c b/dc/string.c
-index ff1e7f1..e24092d 100644
---- a/dc/string.c
-+++ b/dc/string.c
-@@ -101,6 +101,7 @@ dc_out_str DC_DECLARG((value, newline, discard_flag))
- 	fwrite(value->s_ptr, value->s_len, sizeof *value->s_ptr, stdout);
- 	if (newline == DC_WITHNL)
- 		putchar('\n');
-+	checkferror_output(stdout);
- 	if (discard_flag == DC_TOSS)
- 		dc_free_str(&value);
- }
-@@ -176,6 +177,7 @@ dc_readstring DC_DECLARG((fp, ldelim, rdelim))
- 		}
- 		*p++ = c;
- 	}
-+	checkferror_input(fp);
- 	return dc_makestring(line_buf, (size_t)(p-line_buf));
- }
- 
-diff --git a/h/number.h b/h/number.h
-index 9b034b6..3a00a92 100644
---- a/h/number.h
-+++ b/h/number.h
-@@ -150,4 +150,7 @@ _PROTOTYPE(int bc_sqrt, (bc_num *num, int scale));
- _PROTOTYPE(void bc_out_num, (bc_num num, int o_base, void (* out_char)(int),
- 			     int leading_zero));
- 
-+_PROTOTYPE(void checkferror_input, (FILE*));
-+_PROTOTYPE(void checkferror_output, (FILE*));
-+
- #endif
-diff --git a/lib/number.c b/lib/number.c
-index e211840..4d3ce46 100644
---- a/lib/number.c
-+++ b/lib/number.c
-@@ -1776,6 +1776,7 @@ static void
- out_char (int c)
- {
-   putchar(c);
-+  checkferror_output(stdout);
- }
- 
- 
-@@ -1785,6 +1786,7 @@ pn (num)
- {
-   bc_out_num (num, 10, out_char, 0);
-   out_char ('\n');
-+  checkferror_output(stdout);
- }
- 
- 
-@@ -1799,6 +1801,28 @@ pv (name, num, len)
-   printf ("%s=", name);
-   for (i=0; i<len; i++) printf ("%c",BCD_CHAR(num[i]));
-   printf ("\n");
-+  checkferror_output(stdout);
- }
- 
- #endif
-+\f
-+/* check ferror() status and if so die */
-+void
-+checkferror_input (fp)
-+	FILE *fp;
-+{
-+	if (ferror(fp)) {
-+		perror("dc: could not read input file");
-+		exit(EXIT_FAILURE);
-+	}
-+}
-+
-+void
-+checkferror_output (fp)
-+	FILE *fp;
-+{
-+	if (ferror(fp)) {
-+		perror("dc: could not write output file");
-+		exit(EXIT_FAILURE);
-+	}
-+}
diff --git a/package/bc/bc.hash b/package/bc/bc.hash
index 5f1ed63..61beb49 100644
--- a/package/bc/bc.hash
+++ b/package/bc/bc.hash
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256 7ee4abbcfac03d8a6e1a8a3440558a3d239d6b858585063e745c760957725ecc  bc-1.06.95.tar.bz2
+sha256 62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a  bc-1.07.1.tar.gz
diff --git a/package/bc/bc.mk b/package/bc/bc.mk
index 4596192..b5853b1 100644
--- a/package/bc/bc.mk
+++ b/package/bc/bc.mk
@@ -4,17 +4,34 @@
 #
 ################################################################################
 
-BC_VERSION = 1.06.95
-BC_SOURCE = bc-$(BC_VERSION).tar.bz2
-BC_SITE = http://alpha.gnu.org/gnu/bc
-BC_DEPENDENCIES = host-flex
+BC_VERSION = 1.07.1
+BC_SITE = $(BR2_GNU_MIRROR)/bc
+# host-bc needed to bootstrap libmath.h at build time
+# host-ed needed by the fix-libmath_h script at build time
+BC_DEPENDENCIES = host-bc host-ed
 BC_LICENSE = GPL-2.0+, LGPL-2.1+
 BC_LICENSE_FILES = COPYING COPYING.LIB
+# host-ed needed by the fix-libmath_h script@build time
+HOST_BC_DEPENDENCIES = host-ed
 
 # Build after busybox so target ends up with bc's "dc" version
 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
 BC_DEPENDENCIES += busybox
 endif
 
+# A stripped-down version of bc (fbc) is built for bootstrapping purposes. Then
+# the bc build system tries to run it in order to generate some header files,
+# but that breaks cross-compilation because we cannot run in the host machine an
+# fbc that has been built for the target architecture. We tweak the Makefiles in
+# order to run the bc that was built for the host. As long as the host bc and
+# the target one have the same version the result should be fine. And also, note
+# we don't need to run the host fbc (which doesn't exist by the way, because
+# it was deleted after its use by the host-bc Makefile) and we can just run the
+# full bc program (remember the fbc was just a tripped-down version of bc).
+define BC_USE_HOST_FBC
+	$(SED) "s:\./fbc -c:$(HOST_DIR)/usr/bin/bc -c:" $(@D)/bc/Makefile.in
+endef
+BC_POST_PATCH_HOOKS += BC_USE_HOST_FBC
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.10.2

^ permalink raw reply related

* [Buildroot] [PATCH next 2/3] bc: add host package
From: Vicente Olivert Riera @ 2017-05-12 14:28 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170512142848.13956-1-Vincent.Riera@imgtec.com>

This will be necessary for updating bc's version in a subsequent patch.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/bc/bc.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/bc/bc.mk b/package/bc/bc.mk
index a6446ce..4596192 100644
--- a/package/bc/bc.mk
+++ b/package/bc/bc.mk
@@ -17,3 +17,4 @@ BC_DEPENDENCIES += busybox
 endif
 
 $(eval $(autotools-package))
+$(eval $(host-autotools-package))
-- 
2.10.2

^ permalink raw reply related

* [Buildroot] [PATCH next 1/3] ed: add host package
From: Vicente Olivert Riera @ 2017-05-12 14:28 UTC (permalink / raw)
  To: buildroot

This will be necessary for updating bc's version in a subsequent patch.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/ed/ed.mk | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/package/ed/ed.mk b/package/ed/ed.mk
index ada0316..7f69480 100644
--- a/package/ed/ed.mk
+++ b/package/ed/ed.mk
@@ -21,12 +21,29 @@ define ED_CONFIGURE_CMDS
 	)
 endef
 
+define HOST_ED_CONFIGURE_CMDS
+	(cd $(@D); \
+		$(HOST_MAKE_ENV) ./configure \
+		--prefix=/usr \
+		$(HOST_CONFIGURE_OPTS) \
+	)
+endef
+
 define ED_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
 endef
 
+define HOST_ED_BUILD_CMDS
+	$(HOST_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
 define ED_INSTALL_TARGET_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
 endef
 
+define HOST_ED_INSTALL_CMDS
+	$(HOST_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(HOST_DIR)" install
+endef
+
 $(eval $(generic-package))
+$(eval $(host-generic-package))
-- 
2.10.2

^ permalink raw reply related

* [Buildroot] Altera SoC Buildroot external toolchain incompatible error
From: lemonoje @ 2017-05-12 14:16 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170512155205.526ea00c@free-electrons.com>

Okay, all of that is understood - thank you for further clarification. 
However, no matter which method I choose (BR download + extract, or point to
my toolchain) - I still get the same error:

*>>> toolchain-external-linaro-arm 2016.11 Installing to staging directory
/usr/bin/install -D -m 0755
/sf/ArriaX/ltsi_4_1_33/buildroot/output/build/toolchain-external-linaro-arm-2016.11/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-linaro-arm-2016.11/.stamp_staging_installed'
failed
make: ***
[/sf/ArriaX/ltsi_4_1_33/buildroot/output/build/toolchain-external-linaro-arm-2016.11/.stamp_staging_installed]
Error 1
make: Leaving directory '/sf/ArriaX/ltsi_4_1_33/buildroot'*

Maybe I should save my config, delete the BR directory, re-clone and
checkout, and try again?




--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Altera-SoC-Buildroot-external-toolchain-incompatible-error-tp164744p164820.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.

^ permalink raw reply

* [Buildroot] Problems building iotop
From: Thomas Petazzoni @ 2017-05-12 14:13 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <CA+12NBKcGynVqiynZvETmSQEdLr138tM9s8n32RpwDgE1w7ABg@mail.gmail.com>

Hello,

On Fri, 12 May 2017 09:51:57 -0400, Linux User wrote:

> Posting again, with the maillist in cc.
> 
> I am using 2013 version of BR.
> 
> Oh my buildroot is already setup. I am build everything else just fine but
> iotop.

Buildroot 2013 is really old. The iotop package was added in Buildroot
2015.05.

Best regards,

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-12 13:52 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <1494594693346-164814.post@n4.nabble.com>

Hello,

On Fri, 12 May 2017 06:11:33 -0700 (PDT), lemonoje wrote:
> You have selected to download the toolchain whereas I already have it
> downloaded, so my config is not using the EXTERNAL_URL.  (Note the path is
> not set below as I pass that in when I build).

Doesn't make any meaningful difference here. In one case, Buildroot
will download+extract the toolchain tarball in
output/host/opt/ext-toolchain/, while in the other case, it will simply
leave the toolchain where specified by the configuration.

> But now I see once I choose to enable VFP, I can then choose Target
> ABI=EABIhf.  And then the Linaro custom toolchain option (2016.11) appears
> in the Toolchain External Options.  That would then mean I have to already
> have 2016.11 installed and use BR2_TOOLCHAIN_EXTERNAL_PATH to tell BR where
> it's at, right?

You have two choices:

 - Ask Buildroot to download+extract the toolchain for you
 - Tell Buildroot to use a locally available toolchain

> So, the external Linaro toolchains you can select differ between versions of
> Buildroot.  Is there a listing of which ones support which toolchains?

Why does it matter? If you want a specific Linaro toolchain version,
just tell Buildroot you're using a "Custom external toolchain". The
existing profiles for various toolchains are just here to make things a
bit easier for users: Buildroot will already know where to download the
toolchain from, and what the toolchain configuration is. But using a
"Custom external toolchain" is doing exactly the same, except that you
have to tell Buildroot by yourself where is the toolchain and what is
its configuration.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply

* [Buildroot] Problems building iotop
From: Linux User @ 2017-05-12 13:51 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170511174933.28030e0a@free-electrons.com>

Hi Thomas,

Posting again, with the maillist in cc.

I am using 2013 version of BR.

Oh my buildroot is already setup. I am build everything else just fine but
iotop.

I brought ftop from latest BR to my BR, added to the package dir, update
the Config.in and life is good. Life is not so good when I do the same with
iotop. I cant figure why.

Below is the example of ftop working just fine. But iotop wont.

 make ftop-dirclean
rm -Rf /home//PNC_Projects/TR3000/Firmware/Analog_IM/platforms/
som/src/output/build/ftop-1.0
@amuscorbld:~/PNC_Projects/TR3000/Firmware/Analog_IM/platforms/som/src$
make ftop-rebuild
rm -f /home//PNC_Projects/TR3000/Firmware/Analog_IM/platforms/
som/src/output/build/ftop-1.0/.stamp_built
rm -f /home//PNC_Projects/TR3000/Firmware/Analog_IM/platforms/
som/src/output/build/ftop-1.0/.stamp_staging_installed
rm -f /home//PNC_Projects/TR3000/Firmware/Analog_IM/platforms/
som/src/output/build/ftop-1.0/.stamp_target_installed
rm -f /home//PNC_Projects/TR3000/Firmware/Analog_IM/platforms/
som/src/output/build/ftop-1.0/.stamp_images_installed
rm -f /home//PNC_Projects/TR3000/Firmware/Analog_IM/platforms/
som/src/output/build/ftop-1.0/.stamp_host_installed
>>> ftop 1.0 Extracting
gzip -d -c /home//PNC_Projects/TR3000/Firmware/Analog_IM/platforms/som/src/dl/ftop-1.0.tar.gz
| tar --strip-components=1 -C /home//PNC_Projects/TR3000/
Firmware/Analog_IM/platforms/som/src/output/build/ftop-1.0  -xf -
>>> ftop 1.0 Patching package//ftop

Applying 0001-overflow.patch using patch:
patching file src/ftop.c
>>> ftop 1.0 Updating config.sub and config.guess
for file in config.guess config.sub; do for i in $(find
/home//PNC_Projects/TR3000/Firmware/Analog_IM/platforms/som/src/output/build/ftop-1.0
-name $file); do cp support/gnuconfig/$file $i; done; done

On Thu, May 11, 2017 at 11:49 AM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:

> Hello,
>
> On Thu, 11 May 2017 11:45:59 -0400, Linux User wrote:
>
> > I am getting,
> >
> > make iotop
> > make: *** No rule to make target `iotop'.  Stop.
>
> Most likely you haven't created a Buildroot configuration.
>
> Have you run "make menuconfig", define the Linux system you want to
> build, and then run "make" ?
>
> If not, then please read some documentation about Buildroot :-)
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux and Kernel engineering
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170512/d4287852/attachment.html>

^ permalink raw reply

* [Buildroot] [PATCH] lsscsi: add new package
From: Thomas Petazzoni @ 2017-05-12 13:48 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <CAGm1_kutBSs6At8JvZoTsBQbDWQ6iJRSB3z_AHnLXq8+xbVPiA@mail.gmail.com>

Hello,

On Fri, 12 May 2017 14:29:54 +0200, Yegor Yefremov wrote:

> On Fri, May 12, 2017 at 2:17 PM, Antony Pavlov <antonynpavlov@gmail.com> wrote:
> > Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
> > ---
> >  package/Config.in        |  1 +
> >  package/lsscsi/Config.in |  6 ++++++
> >  package/lsscsi/lsscsi.mk | 13 +++++++++++++  
> 
> You forgot the hash file.

... and the entry to the DEVELOPERS file.

> > diff --git a/package/lsscsi/Config.in b/package/lsscsi/Config.in
> > new file mode 100644
> > index 0000000000..1c856863a4
> > --- /dev/null
> > +++ b/package/lsscsi/Config.in
> > @@ -0,0 +1,6 @@
> > +config BR2_PACKAGE_LSSCSI
> > +       bool "lsscsi"

Was this tested with a sufficient number of toolchains, for example
using supports/scripts/test-pkg ? It really builds fine for all
platforms/libcs, without requiring additional options?

> > +LSSCSI_LICENSE = GPLv2

This should be "GPL-2.0" as we use SPDX identifiers since recently in
Buildroot.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply

* [Buildroot] [PATCH 1/1] mariadb: security bump to version 10.1.23
From: Ryan Coe @ 2017-05-12 13:44 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <87efvzno6c.fsf@dell.be.48ers.dk>

Peter, All,


On 5/8/2017 12:28 PM, Peter Korsgaard wrote:
>>>>>> "Ryan" == Ryan Coe <bluemrp9@gmail.com> writes:
>   > Fixes:
>   > CVE-2017-3302 - Crash in libmysqlclient.so in Oracle MySQL before 5.6.21 and
>   > 5.7.x before 5.7.5 and MariaDB through 5.5.54, 10.0.x through 10.0.29,
>   > 10.1.x through 10.1.21, and 10.2.x through 10.2.3.
>
> [snip]
>
>   > -MARIADB_VERSION = 10.1.22
>   > +MARIADB_VERSION = 10.1.23
>   >  MARIADB_SITE = https://downloads.mariadb.org/interstitial/mariadb-$(MARIADB_VERSION)/source
>   >  MARIADB_LICENSE = GPL-2.0 (server), GPL-2.0 with FLOSS exception (GPL
>   > client library), LGPL-2.0 (LGPL client library)
>   >  MARIADB_LICENSE_FILES = README COPYING COPYING.LESSER
>
> Thanks, I (obviously) want to apply this, but something odd is going on
> with the licensing. COPYING.LESSER has been removed by this commit:
>
> https://github.com/MariaDB/server/commit/577915def8
>
> But the client library IS listed as being LGPL:
>
> https://mariadb.com/kb/en/mariadb/mariadb-connector-c/
>
> And same for the "old" one:
>
> https://mariadb.com/kb/en/mariadb/lgpl-mysql-client-library-32358/
>
> Grepping around in the 10.1.23 tarball, I don't see a lot of references
> to Lesser og LGPL.
>
> Now, I know next to nothing about mariadb. Do you have any idea what is
> going on here?
>
I am really not sure what is going on there.

^ permalink raw reply

* [Buildroot] Altera SoC Buildroot external toolchain incompatible error
From: lemonoje @ 2017-05-12 13:11 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170511232316.693f8e6c@free-electrons.com>

You have selected to download the toolchain whereas I already have it
downloaded, so my config is not using the EXTERNAL_URL.  (Note the path is
not set below as I pass that in when I build).  Here is my config that
produces the error:

BR2_ARCH="arm"
BR2_GCC_TARGET_CPU="cortex-a9"
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_ARM_EABIHF=y
BR2_TOOLCHAIN=y
BR2_TOOLCHAIN_USES_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
BR2_TOOLCHAIN_EXTERNAL_PREINSTALLED=y
BR2_TOOLCHAIN_EXTERNAL_PATH="/loc"
BR2_TOOLCHAIN_EXTERNAL_GLIBC=y
BR2_PACKAGE_HAS_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL="toolchain-external-custom"
BR2_TOOLCHAIN_EXTERNAL_PREFIX="arm-linux-gnueabihf"
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="arm-linux-gnueabihf"
BR2_TOOLCHAIN_EXTERNAL_GCC_5=y
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_0=y
BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
BR2_TOOLCHAIN_EXTERNAL_HAS_SSP=y
BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS=""
BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY=y


But now I see once I choose to enable VFP, I can then choose Target
ABI=EABIhf.  And then the Linaro custom toolchain option (2016.11) appears
in the Toolchain External Options.  That would then mean I have to already
have 2016.11 installed and use BR2_TOOLCHAIN_EXTERNAL_PATH to tell BR where
it's at, right?

So, the external Linaro toolchains you can select differ between versions of
Buildroot.  Is there a listing of which ones support which toolchains?





--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Altera-SoC-Buildroot-external-toolchain-incompatible-error-tp164744p164814.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.

^ permalink raw reply

* [Buildroot] [PATCH next 8/8] php-yaml: bump version to 2.0.0
From: Vicente Olivert Riera @ 2017-05-12 12:45 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170512124521.4619-1-Vincent.Riera@imgtec.com>

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/php-yaml/php-yaml.hash | 2 +-
 package/php-yaml/php-yaml.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/php-yaml/php-yaml.hash b/package/php-yaml/php-yaml.hash
index a40677e..6a2f154 100644
--- a/package/php-yaml/php-yaml.hash
+++ b/package/php-yaml/php-yaml.hash
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256 d49acf2b7843258957a16df0d7ced56c0e1fc3eaa54f54289e4012edc002814c  yaml-2.0.0RC7.tgz
+sha256 ef13ff56c184290c025a522bf9ae2e1b3ecc8543c3a5161dd02adec90897a221  yaml-2.0.0.tgz
diff --git a/package/php-yaml/php-yaml.mk b/package/php-yaml/php-yaml.mk
index 2711890..9296091 100644
--- a/package/php-yaml/php-yaml.mk
+++ b/package/php-yaml/php-yaml.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PHP_YAML_VERSION = 2.0.0RC7
+PHP_YAML_VERSION = 2.0.0
 PHP_YAML_SOURCE = yaml-$(PHP_YAML_VERSION).tgz
 PHP_YAML_SITE = https://pecl.php.net/get
 PHP_YAML_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
-- 
2.10.2

^ permalink raw reply related

* [Buildroot] [PATCH next 7/8] php-ssh2: bump version to 1.0
From: Vicente Olivert Riera @ 2017-05-12 12:45 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170512124521.4619-1-Vincent.Riera@imgtec.com>

And switch to the official PECL site.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/php-ssh2/php-ssh2.hash | 2 +-
 package/php-ssh2/php-ssh2.mk   | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/package/php-ssh2/php-ssh2.hash b/package/php-ssh2/php-ssh2.hash
index b514601..2529f9a 100644
--- a/package/php-ssh2/php-ssh2.hash
+++ b/package/php-ssh2/php-ssh2.hash
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256 3d79a6c9ffed3fd6ec16e834c0cc93cf125d9f5bdbb951b8b76a3507498548d5  php-ssh2-12dd52236c601577a63e33ee71e3ce6dad811e40.tar.gz
+sha256 6a93891878b23904a773eb814fec7aea4ea00b4a412ee779c8535ed9c5e46ced  ssh2-1.0.tgz
diff --git a/package/php-ssh2/php-ssh2.mk b/package/php-ssh2/php-ssh2.mk
index 931cde9..7a1372c 100644
--- a/package/php-ssh2/php-ssh2.mk
+++ b/package/php-ssh2/php-ssh2.mk
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-PHP_SSH2_VERSION = 12dd52236c601577a63e33ee71e3ce6dad811e40
-PHP_SSH2_SITE = $(call github,php,pecl-networking-ssh2,$(PHP_SSH2_VERSION))
+PHP_SSH2_VERSION = 1.0
+PHP_SSH2_SOURCE = ssh2-$(PHP_SSH2_VERSION).tgz
+PHP_SSH2_SITE = https://pecl.php.net/get
 PHP_SSH2_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
 	--with-ssh2=$(STAGING_DIR)/usr
 # phpize does the autoconf magic
-- 
2.10.2

^ permalink raw reply related

* [Buildroot] [PATCH next 6/8] php-memcached: bump version to 3.0.3
From: Vicente Olivert Riera @ 2017-05-12 12:45 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170512124521.4619-1-Vincent.Riera@imgtec.com>

And switch to the official PECL site.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/php-memcached/php-memcached.hash | 2 +-
 package/php-memcached/php-memcached.mk   | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/package/php-memcached/php-memcached.hash b/package/php-memcached/php-memcached.hash
index f2a096f..7a8ec28 100644
--- a/package/php-memcached/php-memcached.hash
+++ b/package/php-memcached/php-memcached.hash
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256 73266212e791a4817da06be1daddf9ff7dd5b5b0b650b3fbd0f5fc6ccc18491b  php-memcached-6ee96cad7be5caa1f13a1f3e5a4d5f900b9c04ce.tar.gz
+sha256 5d1c29a1d5e391d6bb7b736a07e063d2f0834800673dd246d64ce1b73e47645d  memcached-3.0.3.tgz
diff --git a/package/php-memcached/php-memcached.mk b/package/php-memcached/php-memcached.mk
index c4b7636..1f962b0 100644
--- a/package/php-memcached/php-memcached.mk
+++ b/package/php-memcached/php-memcached.mk
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-PHP_MEMCACHED_VERSION = 6ee96cad7be5caa1f13a1f3e5a4d5f900b9c04ce
-PHP_MEMCACHED_SITE = $(call github,php-memcached-dev,php-memcached,$(PHP_MEMCACHED_VERSION))
+PHP_MEMCACHED_VERSION = 3.0.3
+PHP_MEMCACHED_SOURCE = memcached-$(PHP_MEMCACHED_VERSION).tgz
+PHP_MEMCACHED_SITE = https://pecl.php.net/get
 PHP_MEMCACHED_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
 	--disable-memcached-sasl \
 	--with-libmemcached-dir=$(STAGING_DIR)/usr \
-- 
2.10.2

^ permalink raw reply related

* [Buildroot] [PATCH next 5/8] php-imagick: bump version to 3.4.3
From: Vicente Olivert Riera @ 2017-05-12 12:45 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20170512124521.4619-1-Vincent.Riera@imgtec.com>

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/php-imagick/php-imagick.hash | 2 +-
 package/php-imagick/php-imagick.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/php-imagick/php-imagick.hash b/package/php-imagick/php-imagick.hash
index e991237..abb29d4 100644
--- a/package/php-imagick/php-imagick.hash
+++ b/package/php-imagick/php-imagick.hash
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256 50bbc46e78cd6e1ea5d7660be1722258e60b1729483ca14b02da7cf9f5ed3e6a  imagick-3.4.3RC1.tgz
+sha256 1f3c5b5eeaa02800ad22f506cd100e8889a66b2ec937e192eaaa30d74562567c  imagick-3.4.3.tgz
diff --git a/package/php-imagick/php-imagick.mk b/package/php-imagick/php-imagick.mk
index c8c2b85..9c47244 100644
--- a/package/php-imagick/php-imagick.mk
+++ b/package/php-imagick/php-imagick.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PHP_IMAGICK_VERSION = 3.4.3RC1
+PHP_IMAGICK_VERSION = 3.4.3
 PHP_IMAGICK_SOURCE = imagick-$(PHP_IMAGICK_VERSION).tgz
 PHP_IMAGICK_SITE = http://pecl.php.net/get
 PHP_IMAGICK_CONF_OPTS = --with-php-config=$(STAGING_DIR)/usr/bin/php-config \
-- 
2.10.2

^ permalink raw reply related


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox