* [Buildroot] [PATCH 1/3] package/dvb-apps: fix build with some perl version
2017-11-27 10:48 [Buildroot] [PATCH 0/3] package/dvb-apps: misc fixes Yann E. MORIN
@ 2017-11-27 10:48 ` Yann E. MORIN
2017-11-27 11:39 ` Baruch Siach
2017-11-27 22:53 ` Peter Korsgaard
2017-11-27 10:48 ` [Buildroot] [PATCH 2/3] package/dvb-apps: is not parallel-safe Yann E. MORIN
` (2 subsequent siblings)
3 siblings, 2 replies; 10+ messages in thread
From: Yann E. MORIN @ 2017-11-27 10:48 UTC (permalink / raw)
To: buildroot
perl can't find a module that is located in the current directory,
so help it locate it.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Francois Perrad <francois.perrad@gadz.org>
---
Note: I have no idea why perl on my machine does not find that file,
while it does on all the autobuilders so far... I just assume that this
is a perl version issue, but I may very well be wrong. Fran?ois ?
---
package/dvb-apps/dvb-apps.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/dvb-apps/dvb-apps.mk b/package/dvb-apps/dvb-apps.mk
index 8ba1501d5c..8aa4a29307 100644
--- a/package/dvb-apps/dvb-apps.mk
+++ b/package/dvb-apps/dvb-apps.mk
@@ -15,6 +15,8 @@ DVB_APPS_DEPENDENCIES = libiconv
DVB_APPS_LDLIBS += -liconv
endif
+DVB_APPS_MAKE_OPTS = PERL5LIB=$(@D)/util/scan
+
ifeq ($(BR2_STATIC_LIBS),y)
DVB_APPS_MAKE_OPTS += enable_shared=no
else ifeq ($(BR2_SHARED_LIBS),y)
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [Buildroot] [PATCH 1/3] package/dvb-apps: fix build with some perl version
2017-11-27 10:48 ` [Buildroot] [PATCH 1/3] package/dvb-apps: fix build with some perl version Yann E. MORIN
@ 2017-11-27 11:39 ` Baruch Siach
2017-11-27 11:51 ` Yann E. MORIN
2017-11-27 22:53 ` Peter Korsgaard
1 sibling, 1 reply; 10+ messages in thread
From: Baruch Siach @ 2017-11-27 11:39 UTC (permalink / raw)
To: buildroot
Hi Yann,
On Mon, Nov 27, 2017 at 11:48:54AM +0100, Yann E. MORIN wrote:
> perl can't find a module that is located in the current directory,
> so help it locate it.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Francois Perrad <francois.perrad@gadz.org>
>
> ---
> Note: I have no idea why perl on my machine does not find that file,
> while it does on all the autobuilders so far... I just assume that this
> is a perl version issue, but I may very well be wrong. Fran?ois ?
This might have something to do with the removal of current directory from
@INC in Debian:
https://lists.debian.org/debian-devel-announce/2016/08/msg00013.html
baruch
> ---
> package/dvb-apps/dvb-apps.mk | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/package/dvb-apps/dvb-apps.mk b/package/dvb-apps/dvb-apps.mk
> index 8ba1501d5c..8aa4a29307 100644
> --- a/package/dvb-apps/dvb-apps.mk
> +++ b/package/dvb-apps/dvb-apps.mk
> @@ -15,6 +15,8 @@ DVB_APPS_DEPENDENCIES = libiconv
> DVB_APPS_LDLIBS += -liconv
> endif
>
> +DVB_APPS_MAKE_OPTS = PERL5LIB=$(@D)/util/scan
> +
> ifeq ($(BR2_STATIC_LIBS),y)
> DVB_APPS_MAKE_OPTS += enable_shared=no
> else ifeq ($(BR2_SHARED_LIBS),y)
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 10+ messages in thread* [Buildroot] [PATCH 1/3] package/dvb-apps: fix build with some perl version
2017-11-27 11:39 ` Baruch Siach
@ 2017-11-27 11:51 ` Yann E. MORIN
0 siblings, 0 replies; 10+ messages in thread
From: Yann E. MORIN @ 2017-11-27 11:51 UTC (permalink / raw)
To: buildroot
Baruch, All,
On 2017-11-27 13:39 +0200, Baruch Siach spake thusly:
> On Mon, Nov 27, 2017 at 11:48:54AM +0100, Yann E. MORIN wrote:
> > perl can't find a module that is located in the current directory,
> > so help it locate it.
> >
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > Cc: Francois Perrad <francois.perrad@gadz.org>
> >
> > ---
> > Note: I have no idea why perl on my machine does not find that file,
> > while it does on all the autobuilders so far... I just assume that this
> > is a perl version issue, but I may very well be wrong. Fran?ois ?
>
> This might have something to do with the removal of current directory from
> @INC in Debian:
>
> https://lists.debian.org/debian-devel-announce/2016/08/msg00013.html
Wee! So I was not so insane after all! ;-)
Thanks! :-)
Regards,
Yann E. MORIN.
> baruch
>
> > ---
> > package/dvb-apps/dvb-apps.mk | 2 ++
> > 1 file changed, 2 insertions(+)
> >
> > diff --git a/package/dvb-apps/dvb-apps.mk b/package/dvb-apps/dvb-apps.mk
> > index 8ba1501d5c..8aa4a29307 100644
> > --- a/package/dvb-apps/dvb-apps.mk
> > +++ b/package/dvb-apps/dvb-apps.mk
> > @@ -15,6 +15,8 @@ DVB_APPS_DEPENDENCIES = libiconv
> > DVB_APPS_LDLIBS += -liconv
> > endif
> >
> > +DVB_APPS_MAKE_OPTS = PERL5LIB=$(@D)/util/scan
> > +
> > ifeq ($(BR2_STATIC_LIBS),y)
> > DVB_APPS_MAKE_OPTS += enable_shared=no
> > else ifeq ($(BR2_SHARED_LIBS),y)
>
> --
> http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
> - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
--
.-----------------.--------------------.------------------.--------------------.
| 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 [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/3] package/dvb-apps: fix build with some perl version
2017-11-27 10:48 ` [Buildroot] [PATCH 1/3] package/dvb-apps: fix build with some perl version Yann E. MORIN
2017-11-27 11:39 ` Baruch Siach
@ 2017-11-27 22:53 ` Peter Korsgaard
1 sibling, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2017-11-27 22:53 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> perl can't find a module that is located in the current directory,
> so help it locate it.
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Francois Perrad <francois.perrad@gadz.org>
> ---
> Note: I have no idea why perl on my machine does not find that file,
> while it does on all the autobuilders so far... I just assume that this
> is a perl version issue, but I may very well be wrong. Fran?ois ?
Committed to 2017.02.x and 2017.08.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 2/3] package/dvb-apps: is not parallel-safe
2017-11-27 10:48 [Buildroot] [PATCH 0/3] package/dvb-apps: misc fixes Yann E. MORIN
2017-11-27 10:48 ` [Buildroot] [PATCH 1/3] package/dvb-apps: fix build with some perl version Yann E. MORIN
@ 2017-11-27 10:48 ` Yann E. MORIN
2017-11-27 22:52 ` Peter Korsgaard
2017-11-27 10:48 ` [Buildroot] [PATCH 3/3] package/dvb-apps: fix build with kernel headers >= 4.14 Yann E. MORIN
2017-11-27 20:33 ` [Buildroot] [PATCH 0/3] package/dvb-apps: misc fixes Thomas Petazzoni
3 siblings, 1 reply; 10+ messages in thread
From: Yann E. MORIN @ 2017-11-27 10:48 UTC (permalink / raw)
To: buildroot
This is invisible because the timings make it excessively difficult to
hit, but the Makefile is inherently flawed for parallel build, as it
contains:
$(objects): atsc_psip_section.c atsc_psip_section.h
atsc_psip_section.c atsc_psip_section.h:
perl section_generate.pl atsc_psip_section.pl
and the perl script section_generate.pl will create both the .c and .h
files in one go, but given the construct above, there can be two such
script that run in parallel, which can clobber the generated .c and/or
.h files.
So, make dvb-apps a MAKE1 package.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
The time to build increased by one third, from ~7.5s to ~10s, on a
core-i7 quad-core, which is not much in the end, and totally acceptable.
---
package/dvb-apps/dvb-apps.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/dvb-apps/dvb-apps.mk b/package/dvb-apps/dvb-apps.mk
index 8aa4a29307..ffab0db682 100644
--- a/package/dvb-apps/dvb-apps.mk
+++ b/package/dvb-apps/dvb-apps.mk
@@ -27,7 +27,7 @@ DVB_APPS_INSTALL_STAGING = YES
define DVB_APPS_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) LDLIBS="$(DVB_APPS_LDLIBS)" \
- $(MAKE) -C $(@D) CROSS_ROOT=$(STAGING_DIR) \
+ $(MAKE1) -C $(@D) CROSS_ROOT=$(STAGING_DIR) \
$(DVB_APPS_MAKE_OPTS)
endef
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [Buildroot] [PATCH 2/3] package/dvb-apps: is not parallel-safe
2017-11-27 10:48 ` [Buildroot] [PATCH 2/3] package/dvb-apps: is not parallel-safe Yann E. MORIN
@ 2017-11-27 22:52 ` Peter Korsgaard
2017-11-28 19:09 ` Trent Piepho
0 siblings, 1 reply; 10+ messages in thread
From: Peter Korsgaard @ 2017-11-27 22:52 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
> This is invisible because the timings make it excessively difficult to
> hit, but the Makefile is inherently flawed for parallel build, as it
> contains:
> $(objects): atsc_psip_section.c atsc_psip_section.h
> atsc_psip_section.c atsc_psip_section.h:
> perl section_generate.pl atsc_psip_section.pl
> and the perl script section_generate.pl will create both the .c and .h
> files in one go, but given the construct above, there can be two such
> script that run in parallel, which can clobber the generated .c and/or
> .h files.
> So, make dvb-apps a MAKE1 package.
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
> The time to build increased by one third, from ~7.5s to ~10s, on a
> core-i7 quad-core, which is not much in the end, and totally acceptable.
Committed to 2017.02.x and 2017.08.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 2/3] package/dvb-apps: is not parallel-safe
2017-11-27 22:52 ` Peter Korsgaard
@ 2017-11-28 19:09 ` Trent Piepho
0 siblings, 0 replies; 10+ messages in thread
From: Trent Piepho @ 2017-11-28 19:09 UTC (permalink / raw)
To: buildroot
On Mon, 2017-11-27 at 23:52 +0100, Peter Korsgaard wrote:
> > > > > > "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
>
> > This is invisible because the timings make it excessively difficult to
> > hit, but the Makefile is inherently flawed for parallel build, as it
> > contains:
>
> > $(objects): atsc_psip_section.c atsc_psip_section.h
>
> > atsc_psip_section.c atsc_psip_section.h:
> > perl section_generate.pl atsc_psip_section.pl
>
> > and the perl script section_generate.pl will create both the .c and .h
> > files in one go, but given the construct above, there can be two such
> > script that run in parallel, which can clobber the generated .c and/or
> > .h files.
I gather this is the common parallel build issue with a recipe that
produces two outputs. This can be fixed by using a pattern rule for the
recipe that produces multiple outputs.
%section.c %section.h: %section.pl
perl section_generate.pl $<
GNU make understands a pattern rule that produces multiple outputs to
produce all of them via a single running of the rule.
Seems like a simple patch.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 3/3] package/dvb-apps: fix build with kernel headers >= 4.14
2017-11-27 10:48 [Buildroot] [PATCH 0/3] package/dvb-apps: misc fixes Yann E. MORIN
2017-11-27 10:48 ` [Buildroot] [PATCH 1/3] package/dvb-apps: fix build with some perl version Yann E. MORIN
2017-11-27 10:48 ` [Buildroot] [PATCH 2/3] package/dvb-apps: is not parallel-safe Yann E. MORIN
@ 2017-11-27 10:48 ` Yann E. MORIN
2017-11-27 20:33 ` [Buildroot] [PATCH 0/3] package/dvb-apps: misc fixes Thomas Petazzoni
3 siblings, 0 replies; 10+ messages in thread
From: Yann E. MORIN @ 2017-11-27 10:48 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.org/results/708/708f11809b2cafc2a3375dc515803c87b376ed4d/
http://autobuild.buildroot.org/results/6e1/6e161926577355ced82426536227ddd2ba130f06/
[...]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
Note: I'll send the patch upstream soonish, even though dvb-apps has not
been touched since March 2014.
---
| 52 ++++++++++++++++++++++
1 file changed, 52 insertions(+)
create mode 100644 package/dvb-apps/0005-utils-fix-build-with-kernel-headers-4.14.patch
--git a/package/dvb-apps/0005-utils-fix-build-with-kernel-headers-4.14.patch b/package/dvb-apps/0005-utils-fix-build-with-kernel-headers-4.14.patch
new file mode 100644
index 0000000000..279cdecb77
--- /dev/null
+++ b/package/dvb-apps/0005-utils-fix-build-with-kernel-headers-4.14.patch
@@ -0,0 +1,52 @@
+# HG changeset patch
+# User "Yann E. MORIN" <yann.morin.1998@free.fr>
+# Date 1511772629 -3600
+# Mon Nov 27 09:50:29 2017 +0100
+# Branch yem/fixes
+# Node ID 0848fa96c6eb13cf37249d317eff12cbd2f59ff7
+# Parent 3d43b280298c39a67d1d889e01e173f52c12da35
+utils: fix build with kernel headers >= 4.14
+
+In kernel 4.14, CA_SET_PID was removed, in commit 833ff5e7feda (media:
+ca.h: get rid of CA_SET_PID).
+
+Fix dst-util to not fail the build when this is missing.
+
+Fiuxes build failures such as:
+ http://autobuild.buildroot.org/results/708/708f11809b2cafc2a3375dc515803c87b376ed4d/build-end.log
+ http://autobuild.buildroot.org/results/e39/e3939d44376e92e8a35fb179d9890510334d8304/build-end.log
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+
+diff --git a/util/dst-utils/dst_test.c b/util/dst-utils/dst_test.c
+--- a/util/dst-utils/dst_test.c
++++ b/util/dst-utils/dst_test.c
+@@ -111,6 +111,7 @@
+ return 0;
+ }
+
++#if defined CA_SET_PID
+ static int dst_set_pid(int cafd)
+ {
+ if ((ioctl(cafd, CA_SET_PID)) < 0) {
+@@ -120,6 +121,7 @@
+
+ return 0;
+ }
++#endif
+
+ static int dst_get_descr(int cafd)
+ {
+@@ -230,8 +232,12 @@
+ dst_reset(cafd);
+ break;
+ case 'p':
++#if defined CA_SET_PID
+ printf("%s: PID\n", __FUNCTION__);
+ dst_set_pid(cafd);
++#else
++ printf("%s: PID not supported\n", __FUNCTION__);
++#endif
+ break;
+ case 'g':
+ printf("%s: Get Desc\n", __FUNCTION__);
--
2.11.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [Buildroot] [PATCH 0/3] package/dvb-apps: misc fixes
2017-11-27 10:48 [Buildroot] [PATCH 0/3] package/dvb-apps: misc fixes Yann E. MORIN
` (2 preceding siblings ...)
2017-11-27 10:48 ` [Buildroot] [PATCH 3/3] package/dvb-apps: fix build with kernel headers >= 4.14 Yann E. MORIN
@ 2017-11-27 20:33 ` Thomas Petazzoni
3 siblings, 0 replies; 10+ messages in thread
From: Thomas Petazzoni @ 2017-11-27 20:33 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 27 Nov 2017 11:48:50 +0100, Yann E. MORIN wrote:
> Yann E. MORIN (3):
> package/dvb-apps: fix build with some perl version
> package/dvb-apps: is not parallel-safe
> package/dvb-apps: fix build with kernel headers >= 4.14
Series applied to master. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 10+ messages in thread