quilt: Export missing QUILT_PC variable in ptest Makefile
PATCH 1/2 quilt: Export missing QUILT_PC variable in ptest Makefile
From: Trevor Gamblin <[email protected]>
The quilt ptest uses a custom Makefile to implement the "make check" rule, but the ptest Makefile does not export the value QUILT_PC, which is user-settable and normally defaults to ".pc". This causes failures e.g. import.test with "rm -rf patches/ %{QUILT_PC}/", evaluating to "rm -rf patches/ /" if the variable is not set by the Makefile.
--- meta/recipes-devtools/quilt/quilt/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-devtools/quilt/quilt/Makefile +2 -1
@@ -2,7 +2,8 @@ PATH := $(CURDIR)/bin:$(CURDIR)/compat:$(PATH) QUILT_DIR := $(CURDIR)/quilt QUILTRC := $(CURDIR)/test/test.quiltrc export QUILT_DIR QUILTRC -CHECK_ENV := P=patches/; _P=../patches/; export P _P +CHECK_ENV := P=patches/; _P=../patches/; export P _P; +CHECK_ENV += QUILT_PC=.pc; export QUILT_PC -include test/.depend check-% : test/%.test
Signature · 1 line
2.7.4
PATCH 2/2 quilt: added less to RDEPENDS list
From: Trevor Gamblin <[email protected]>
The quilt "series" option relies on "less -R", but BusyBox's implementation of less does not provide -R. It could be determined how to enable it in busybox's recipe, but given the use case it likely isn't needed.
--- meta/recipes-devtools/quilt/quilt.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/quilt/quilt.inc +1 -1
@@ -78,7 +78,7 @@ FILES_guards = "${bindir}/guards" FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}" FILES_guards-doc = "${mandir}/man1/guards.1" -RDEPENDS_${PN} = "bash patch diffstat bzip2 util-linux" +RDEPENDS_${PN} = "bash patch diffstat bzip2 util-linux less" RDEPENDS_${PN}_class-native = "diffstat-native patch-native bzip2-native" RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \
Signature · 1 line
2.7.4
Re: [PATCH 2/2] quilt: added less to RDEPENDS list
Re: [OE-core] [PATCH 2/2] quilt: added less to RDEPENDS list
s/added/add/
When in Rome:
$ cd .../oe-core $ git log --oneline -10000 | grep -i add | wc -l 1376
$ git log --oneline -10000 | grep -i added | wc -l 19
Quoted 5 lines · Trevor Gamblin
From: Trevor Gamblin <[email protected]>
The quilt "series" option relies on "less -R", but > BusyBox's implementation of less does not provide -R. It could be determined how to enable it in busybox's recipe,
but given the use case it likely isn't needed.
That statement could be misleading, try:
The quilt "series" option relies on "less -R" but since that option is not enabled by busybox in oe-core by default so hard-code the dependency on 'less'.
From 'man less':
-r or --raw-control-chars
Causes "raw" control characters to be displayed. ...
-R or --RAW-CONTROL-CHARS
Like -r, but only ANSI "color" escape sequences are output in "raw" form. ...
In 2018, BusyBox's less added:
8528d3d4f less: optional support of -R
but it is not enable by default for oe-core. While we could enable the option, all known use-cases involve larger, more developer-oriented recipes such as quilt or man pages.
---
I maintain that we need to resist adding one more wafer-thin 200 byte config to our default busybox config to avoid bloat over the years. We wouldn't want the busybox package to burst!
../Randy
Quoted 22 lines
could be determined how to enable it in busybox's recipe, but given the use case it likely isn't needed.
Signed-off-by Trevor Gamblin <[email protected]>--- meta/recipes-devtools/quilt/quilt.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-devtools/quilt/quilt.inc +1
-1@@ -78,7 +78,7 @@ FILES_guards = "${bindir}/guards" FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}" FILES_guards-doc = "${mandir}/man1/guards.1" -RDEPENDS_${PN} = "bash patch diffstat bzip2 util-linux" +RDEPENDS_${PN} = "bash patch diffstat bzip2 util-linux less" RDEPENDS_${PN}_class-native = "diffstat-native patch-native bzip2-native" RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \
Signature · 2 lines
# Randy MacLeod # Wind River Linux
Re: [PATCH 2/2] quilt: added less to RDEPENDS list
Quoted 20 lines · Randy MacLeod
Re: [OE-core] [PATCH 2/2] quilt: added less to RDEPENDS list
s/added/add/
When in Rome:
$ cd .../oe-core $ git log --oneline -10000 | grep -i add | wc -l 1376$ git log --oneline -10000 | grep -i added | wc -l 19Quoted 5 lines · Trevor Gamblin
From: Trevor Gamblin <[email protected]>
The quilt "series" option relies on "less -R", but > BusyBox's implementation of less does not provide -R. It could be determined how to enable it in busybox's recipe,
but given the use case it likely isn't needed.
Quoted 5 lines
That statement could be misleading, try:
The quilt "series" option relies on "less -R" but since that option is not enabled by busybox in oe-core by default so hard-code the dependency on 'less'.
Still sounds awkward. Try:
The quilt "series" option relies on "less -R" but, since that option
is not enabled by busybox in oe-core by default, hard-code the dependency on 'less'.
Or:
The quilt "series" option relies on "less -R". That option is not
enabled by busybox in oe-core by default so hard-code the dependency on 'less'.
Quoted 53 lines
From 'man less':
-r or --raw-control-chars
Causes "raw" control characters to be displayed. ...
-R or --RAW-CONTROL-CHARS
Like -r, but only ANSI "color" escape sequences are output in "raw" form. ...In 2018, BusyBox's less added:
8528d3d4fless: optional support of -R
but it is not enable by default for oe-core. While we could enable the option, all known use-cases involve larger, more developer-oriented recipes such as quilt or man pages.---
I maintain that we need to resist adding one more wafer-thin 200 byte config to our default busybox config to avoid bloat over the years. We wouldn't want the busybox package to burst!
../Randy
Quoted 14 lines
could be determined how to enable it in busybox's recipe, but given the use case it likely isn't needed.
Signed-off-by Trevor Gamblin <[email protected]>--- meta/recipes-devtools/quilt/quilt.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-devtools/quilt/quilt.inc +0
-0meta/recipes-devtools/quilt/quilt.inc FILES_guards = "${bindir}/guards" · line 84
Quoted 8 lines
meta/recipes-devtools/quilt/quilt.inc +1
-1@@ -78,7 +78,7 @@ FILES_guards = "${bindir}/guards" FILES_${PN}-doc = "${mandir}/man1/quilt.1 ${docdir}/${BPN}" FILES_guards-doc = "${mandir}/man1/guards.1" -RDEPENDS_${PN} = "bash patch diffstat bzip2 util-linux" +RDEPENDS_${PN} = "bash patch diffstat bzip2 util-linux less" RDEPENDS_${PN}_class-native = "diffstat-native patch-native bzip2-native" RDEPENDS_${PN}-ptest = "make file sed gawk diffutils findutils ed perl \--
# Randy MacLeod
# Wind River Linux
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
quilt: Export missing QUILT_PC variable in ptest Makefile
is over the 50 character suggested short summary limit:
quilt: Export QUILT_PC variable in ptest Makefile
works. :)
Quoted 5 lines · Trevor Gamblin
From: Trevor Gamblin <[email protected]>
The quilt ptest uses a custom
Makefileto implement the "make check" rule, but the ptestMakefiledoes not export the valueQUILT_PC, which is user-settable and normally
s/value/variable/
Quoted 4 lines
defaults to ".pc". This causes failures e.g. import.test with "rm -rf patches/ %{QUILT_PC}/", evaluating to "rm -rf patches/ /" if the variable is not set by the
Makefile.
Add that:
These ptests broke in:
73d6034f6b quilt: update to 0.66
when the upstream quilt developers enabled users to specify their own QUILT_PC string.
../Randy
Quoted 21 lines
Signed-off-by Trevor Gamblin <[email protected]>--- meta/recipes-devtools/quilt/quilt/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/recipes-devtools/quilt/quilt/Makefile +2
-1@@ -2,7 +2,8 @@ PATH := $(CURDIR)/bin:$(CURDIR)/compat:$(PATH) QUILT_DIR := $(CURDIR)/quilt QUILTRC := $(CURDIR)/test/test.quiltrc export QUILT_DIR QUILTRC -CHECK_ENV := P=patches/; _P=../patches/; export P _P +CHECK_ENV := P=patches/; _P=../patches/; export P _P; +CHECK_ENV += QUILT_PC=.pc; export QUILT_PC -include test/.depend check-% : test/%.test
Signature · 2 lines
# Randy MacLeod # Wind River Linux