All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] ncurses: 5.9 -> 6.0
@ 2015-08-17  8:17 Robert Yang
  2015-08-17  8:17 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Yang @ 2015-08-17  8:17 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 059db140885bad379534e6ec713f3ceb4e18faea:

  adt-installer: use DEPLOY_DIR in ANT_DEPLOY expansion (2015-08-16 17:28:14 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib rbt/ncurses
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/ncurses

Robert Yang (1):
  ncurses: 5.9 -> 6.0

 meta/recipes-core/ncurses/ncurses.inc              |   11 ++++++++---
 .../ncurses/{ncurses-5.9 => ncurses}/config.cache  |    0
 .../{ncurses-5.9 => ncurses}/tic-hang.patch        |    0
 .../ncurses/{ncurses_5.9.bb => ncurses_6.0.bb}     |    8 +++-----
 4 files changed, 11 insertions(+), 8 deletions(-)
 rename meta/recipes-core/ncurses/{ncurses-5.9 => ncurses}/config.cache (100%)
 rename meta/recipes-core/ncurses/{ncurses-5.9 => ncurses}/tic-hang.patch (100%)
 rename meta/recipes-core/ncurses/{ncurses_5.9.bb => ncurses_6.0.bb} (41%)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/1] ncurses: 5.9 -> 6.0
  2015-08-17  8:17 [PATCH 0/1] ncurses: 5.9 -> 6.0 Robert Yang
@ 2015-08-17  8:17 ` Robert Yang
  2015-08-17  8:26   ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Yang @ 2015-08-17  8:17 UTC (permalink / raw)
  To: openembedded-core

Use -fPIC to fix when build readline: libtinfo.a(lib_termcap.o):
relocation R_X86_64_32 against `_nc_globals' can not be used when making
a shared object; recompile with -fPIC

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/recipes-core/ncurses/ncurses.inc              |   11 ++++++++---
 .../ncurses/{ncurses-5.9 => ncurses}/config.cache  |    0
 .../{ncurses-5.9 => ncurses}/tic-hang.patch        |    0
 .../ncurses/{ncurses_5.9.bb => ncurses_6.0.bb}     |    8 +++-----
 4 files changed, 11 insertions(+), 8 deletions(-)
 rename meta/recipes-core/ncurses/{ncurses-5.9 => ncurses}/config.cache (100%)
 rename meta/recipes-core/ncurses/{ncurses-5.9 => ncurses}/tic-hang.patch (100%)
 rename meta/recipes-core/ncurses/{ncurses_5.9.bb => ncurses_6.0.bb} (41%)

diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
index ffd80ee..ea18d41 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc
 SECTION = "libs"
 DEPENDS = "ncurses-native"
 DEPENDS_class-native = ""
-INC_PR = "r15"
 
 BINCONFIG = "${bindir}/ncurses-config"
 
@@ -83,7 +82,7 @@ ncurses_configure() {
 	        --enable-sigwinch \
 	        --enable-pc-files \
 	        --disable-rpath-hack \
-		${EXCONFIG_ARGS} \
+	        ${EXCONFIG_ARGS} \
 	        --with-manpage-format=normal \
 	        "$@" || return 1
 	cd ..
@@ -206,7 +205,7 @@ do_install() {
                 test -h $f || continue
                 rm -f $f
                 echo '/* GNU ld script */'  >$f
-                echo "INPUT($i.so.5 AS_NEEDED(-ltinfo))" >>$f
+                echo "INPUT($i.so.6 AS_NEEDED(-ltinfo))" >>$f
         done
 
         # Make sure that libcurses is linked so that it gets -ltinfo
@@ -304,3 +303,9 @@ FILES_${PN}-terminfo-base = "\
 
 RSUGGESTS_${PN}-libtinfo = "${PN}-terminfo"
 RRECOMMENDS_${PN}-libtinfo = "${PN}-terminfo-base"
+
+# Fixed when build readline:
+# libtinfo.a(lib_termcap.o): relocation R_X86_64_32 against
+# `_nc_globals' can not be used when making a shared object; recompile
+# with -fPIC
+CFLAGS_append = " -fPIC"
diff --git a/meta/recipes-core/ncurses/ncurses-5.9/config.cache b/meta/recipes-core/ncurses/ncurses/config.cache
similarity index 100%
rename from meta/recipes-core/ncurses/ncurses-5.9/config.cache
rename to meta/recipes-core/ncurses/ncurses/config.cache
diff --git a/meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch b/meta/recipes-core/ncurses/ncurses/tic-hang.patch
similarity index 100%
rename from meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch
rename to meta/recipes-core/ncurses/ncurses/tic-hang.patch
diff --git a/meta/recipes-core/ncurses/ncurses_5.9.bb b/meta/recipes-core/ncurses/ncurses_6.0.bb
similarity index 41%
rename from meta/recipes-core/ncurses/ncurses_5.9.bb
rename to meta/recipes-core/ncurses/ncurses_6.0.bb
index 54d27a9..e956e3f 100644
--- a/meta/recipes-core/ncurses/ncurses_5.9.bb
+++ b/meta/recipes-core/ncurses/ncurses_6.0.bb
@@ -1,12 +1,10 @@
 require ncurses.inc
 
-REVISION = "20150329"
-
-PR = "${INC_PR}.1"
+REVISION = "20150810"
 
 SRC_URI += "file://tic-hang.patch \
             file://config.cache \
 "
 S = "${WORKDIR}/${BP}-${REVISION}"
-SRC_URI[md5sum] = "cee991d09e69e60ebedef424804c52d4"
-SRC_URI[sha256sum] = "5b64f40e4dce73e3aa83d15bd9257c6eff8790ec41150f0938bd87c0eb75828f"
+SRC_URI[md5sum] = "78bfcb4634a87b4cda390956586f8f1f"
+SRC_URI[sha256sum] = "85d4a615731bc71075416fc3bea15a56740bed42b3596bbb126226af4111c65c"
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] ncurses: 5.9 -> 6.0
  2015-08-17  8:17 ` [PATCH 1/1] " Robert Yang
@ 2015-08-17  8:26   ` Khem Raj
  2015-08-17  8:30     ` Robert Yang
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2015-08-17  8:26 UTC (permalink / raw)
  To: Robert Yang; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 4572 bytes --]


> On Aug 17, 2015, at 1:17 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
> 
> Use -fPIC to fix when build readline: libtinfo.a(lib_termcap.o):
> relocation R_X86_64_32 against `_nc_globals' can not be used when making
> a shared object; recompile with -fPIC

It a progressive change but
FYI, ncurses6 is not intended to be binary compatible with ncurses5 even though as of first release its source compatible with 5
its not going to remain that way for long, so as such this change can break
a lot of things. but there is a configure option to let nurses6 still keep using ncurses5 ABI for some time
so please use --with-abi-version 5 explicitly.

and this needs quite rigorous testing if we have to go with it for 1.9

> 
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> meta/recipes-core/ncurses/ncurses.inc              |   11 ++++++++---
> .../ncurses/{ncurses-5.9 => ncurses}/config.cache  |    0
> .../{ncurses-5.9 => ncurses}/tic-hang.patch        |    0
> .../ncurses/{ncurses_5.9.bb => ncurses_6.0.bb}     |    8 +++-----
> 4 files changed, 11 insertions(+), 8 deletions(-)
> rename meta/recipes-core/ncurses/{ncurses-5.9 => ncurses}/config.cache (100%)
> rename meta/recipes-core/ncurses/{ncurses-5.9 => ncurses}/tic-hang.patch (100%)
> rename meta/recipes-core/ncurses/{ncurses_5.9.bb => ncurses_6.0.bb} (41%)
> 
> diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
> index ffd80ee..ea18d41 100644
> --- a/meta/recipes-core/ncurses/ncurses.inc
> +++ b/meta/recipes-core/ncurses/ncurses.inc
> @@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc
> SECTION = "libs"
> DEPENDS = "ncurses-native"
> DEPENDS_class-native = ""
> -INC_PR = "r15"
> 
> BINCONFIG = "${bindir}/ncurses-config"
> 
> @@ -83,7 +82,7 @@ ncurses_configure() {
> 	        --enable-sigwinch \
> 	        --enable-pc-files \
> 	        --disable-rpath-hack \
> -		${EXCONFIG_ARGS} \
> +	        ${EXCONFIG_ARGS} \
> 	        --with-manpage-format=normal \
> 	        "$@" || return 1
> 	cd ..
> @@ -206,7 +205,7 @@ do_install() {
>                 test -h $f || continue
>                 rm -f $f
>                 echo '/* GNU ld script */'  >$f
> -                echo "INPUT($i.so.5 AS_NEEDED(-ltinfo))" >>$f
> +                echo "INPUT($i.so.6 AS_NEEDED(-ltinfo))" >>$f
>         done
> 
>         # Make sure that libcurses is linked so that it gets -ltinfo
> @@ -304,3 +303,9 @@ FILES_${PN}-terminfo-base = "\
> 
> RSUGGESTS_${PN}-libtinfo = "${PN}-terminfo"
> RRECOMMENDS_${PN}-libtinfo = "${PN}-terminfo-base"
> +
> +# Fixed when build readline:
> +# libtinfo.a(lib_termcap.o): relocation R_X86_64_32 against
> +# `_nc_globals' can not be used when making a shared object; recompile
> +# with -fPIC
> +CFLAGS_append = " -fPIC"
> diff --git a/meta/recipes-core/ncurses/ncurses-5.9/config.cache b/meta/recipes-core/ncurses/ncurses/config.cache
> similarity index 100%
> rename from meta/recipes-core/ncurses/ncurses-5.9/config.cache
> rename to meta/recipes-core/ncurses/ncurses/config.cache
> diff --git a/meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch b/meta/recipes-core/ncurses/ncurses/tic-hang.patch
> similarity index 100%
> rename from meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch
> rename to meta/recipes-core/ncurses/ncurses/tic-hang.patch
> diff --git a/meta/recipes-core/ncurses/ncurses_5.9.bb b/meta/recipes-core/ncurses/ncurses_6.0.bb
> similarity index 41%
> rename from meta/recipes-core/ncurses/ncurses_5.9.bb
> rename to meta/recipes-core/ncurses/ncurses_6.0.bb
> index 54d27a9..e956e3f 100644
> --- a/meta/recipes-core/ncurses/ncurses_5.9.bb
> +++ b/meta/recipes-core/ncurses/ncurses_6.0.bb
> @@ -1,12 +1,10 @@
> require ncurses.inc
> 
> -REVISION = "20150329"
> -
> -PR = "${INC_PR}.1"
> +REVISION = "20150810"
> 
> SRC_URI += "file://tic-hang.patch \
>             file://config.cache \
> "
> S = "${WORKDIR}/${BP}-${REVISION}"
> -SRC_URI[md5sum] = "cee991d09e69e60ebedef424804c52d4"
> -SRC_URI[sha256sum] = "5b64f40e4dce73e3aa83d15bd9257c6eff8790ec41150f0938bd87c0eb75828f"
> +SRC_URI[md5sum] = "78bfcb4634a87b4cda390956586f8f1f"
> +SRC_URI[sha256sum] = "85d4a615731bc71075416fc3bea15a56740bed42b3596bbb126226af4111c65c"
> --
> 1.7.9.5
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/1] ncurses: 5.9 -> 6.0
  2015-08-17  8:26   ` Khem Raj
@ 2015-08-17  8:30     ` Robert Yang
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2015-08-17  8:30 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core



On 08/17/2015 04:26 PM, Khem Raj wrote:
>
>> On Aug 17, 2015, at 1:17 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
>>
>> Use -fPIC to fix when build readline: libtinfo.a(lib_termcap.o):
>> relocation R_X86_64_32 against `_nc_globals' can not be used when making
>> a shared object; recompile with -fPIC
>
> It a progressive change but
> FYI, ncurses6 is not intended to be binary compatible with ncurses5 even though as of first release its source compatible with 5
> its not going to remain that way for long, so as such this change can break
> a lot of things. but there is a configure option to let nurses6 still keep using ncurses5 ABI for some time
> so please use --with-abi-version 5 explicitly.
>
> and this needs quite rigorous testing if we have to go with it for 1.9

Thanks, I prefer to drop the upgrade since it is so dangerous:-)

// Robert

>
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> meta/recipes-core/ncurses/ncurses.inc              |   11 ++++++++---
>> .../ncurses/{ncurses-5.9 => ncurses}/config.cache  |    0
>> .../{ncurses-5.9 => ncurses}/tic-hang.patch        |    0
>> .../ncurses/{ncurses_5.9.bb => ncurses_6.0.bb}     |    8 +++-----
>> 4 files changed, 11 insertions(+), 8 deletions(-)
>> rename meta/recipes-core/ncurses/{ncurses-5.9 => ncurses}/config.cache (100%)
>> rename meta/recipes-core/ncurses/{ncurses-5.9 => ncurses}/tic-hang.patch (100%)
>> rename meta/recipes-core/ncurses/{ncurses_5.9.bb => ncurses_6.0.bb} (41%)
>>
>> diff --git a/meta/recipes-core/ncurses/ncurses.inc b/meta/recipes-core/ncurses/ncurses.inc
>> index ffd80ee..ea18d41 100644
>> --- a/meta/recipes-core/ncurses/ncurses.inc
>> +++ b/meta/recipes-core/ncurses/ncurses.inc
>> @@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc
>> SECTION = "libs"
>> DEPENDS = "ncurses-native"
>> DEPENDS_class-native = ""
>> -INC_PR = "r15"
>>
>> BINCONFIG = "${bindir}/ncurses-config"
>>
>> @@ -83,7 +82,7 @@ ncurses_configure() {
>> 	        --enable-sigwinch \
>> 	        --enable-pc-files \
>> 	        --disable-rpath-hack \
>> -		${EXCONFIG_ARGS} \
>> +	        ${EXCONFIG_ARGS} \
>> 	        --with-manpage-format=normal \
>> 	        "$@" || return 1
>> 	cd ..
>> @@ -206,7 +205,7 @@ do_install() {
>>                  test -h $f || continue
>>                  rm -f $f
>>                  echo '/* GNU ld script */'  >$f
>> -                echo "INPUT($i.so.5 AS_NEEDED(-ltinfo))" >>$f
>> +                echo "INPUT($i.so.6 AS_NEEDED(-ltinfo))" >>$f
>>          done
>>
>>          # Make sure that libcurses is linked so that it gets -ltinfo
>> @@ -304,3 +303,9 @@ FILES_${PN}-terminfo-base = "\
>>
>> RSUGGESTS_${PN}-libtinfo = "${PN}-terminfo"
>> RRECOMMENDS_${PN}-libtinfo = "${PN}-terminfo-base"
>> +
>> +# Fixed when build readline:
>> +# libtinfo.a(lib_termcap.o): relocation R_X86_64_32 against
>> +# `_nc_globals' can not be used when making a shared object; recompile
>> +# with -fPIC
>> +CFLAGS_append = " -fPIC"
>> diff --git a/meta/recipes-core/ncurses/ncurses-5.9/config.cache b/meta/recipes-core/ncurses/ncurses/config.cache
>> similarity index 100%
>> rename from meta/recipes-core/ncurses/ncurses-5.9/config.cache
>> rename to meta/recipes-core/ncurses/ncurses/config.cache
>> diff --git a/meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch b/meta/recipes-core/ncurses/ncurses/tic-hang.patch
>> similarity index 100%
>> rename from meta/recipes-core/ncurses/ncurses-5.9/tic-hang.patch
>> rename to meta/recipes-core/ncurses/ncurses/tic-hang.patch
>> diff --git a/meta/recipes-core/ncurses/ncurses_5.9.bb b/meta/recipes-core/ncurses/ncurses_6.0.bb
>> similarity index 41%
>> rename from meta/recipes-core/ncurses/ncurses_5.9.bb
>> rename to meta/recipes-core/ncurses/ncurses_6.0.bb
>> index 54d27a9..e956e3f 100644
>> --- a/meta/recipes-core/ncurses/ncurses_5.9.bb
>> +++ b/meta/recipes-core/ncurses/ncurses_6.0.bb
>> @@ -1,12 +1,10 @@
>> require ncurses.inc
>>
>> -REVISION = "20150329"
>> -
>> -PR = "${INC_PR}.1"
>> +REVISION = "20150810"
>>
>> SRC_URI += "file://tic-hang.patch \
>>              file://config.cache \
>> "
>> S = "${WORKDIR}/${BP}-${REVISION}"
>> -SRC_URI[md5sum] = "cee991d09e69e60ebedef424804c52d4"
>> -SRC_URI[sha256sum] = "5b64f40e4dce73e3aa83d15bd9257c6eff8790ec41150f0938bd87c0eb75828f"
>> +SRC_URI[md5sum] = "78bfcb4634a87b4cda390956586f8f1f"
>> +SRC_URI[sha256sum] = "85d4a615731bc71075416fc3bea15a56740bed42b3596bbb126226af4111c65c"
>> --
>> 1.7.9.5
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-08-17  8:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-17  8:17 [PATCH 0/1] ncurses: 5.9 -> 6.0 Robert Yang
2015-08-17  8:17 ` [PATCH 1/1] " Robert Yang
2015-08-17  8:26   ` Khem Raj
2015-08-17  8:30     ` Robert Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.