Skip to contentSkip to conversation

buildtools-tarball: add nativesdk-libnss-nis

PATCH In review Chen Qi 3 participants 7 messages May 25, 2018 – Jul 6, 2018

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover buildtools-tarball: add nativesdk-libnss-nis

The following changes since commit d886fa118c930d0e551f2a0ed02b35d08617f746:

bitbake: bitbake-user-manual: Updated copyright year on title page to 2018 (2018-05-24 17:17:25 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib ChenQi/buildtools-libnss-nis
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/buildtools-libnss-nis

Chen Qi (1):
buildtools-tarball: add nativesdk-libnss-nis

 meta/recipes-core/meta/buildtools-tarball.bb | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 buildtools-tarball: add nativesdk-libnss-nis

Recent glibc change removed libnss-nis module from glibc and a new recipe libnss-nis.bb was added.

After this change, we need to make sure nativesdk-libnss-nis is also included in buildtools-tarball, otherwise, we may encounter the following error when using 'tar' command from buildtools-tarball.

  tar: relocation error: /lib/x86_64-linux-gnu/libnss_nis.so.2: \
       symbol _nsl_default_nss version GLIBC_PRIVATE not defined \
       in file libnsl.so.1 with link time reference

This error occured on my ubuntu16.04 host with 'nis' configured in /etc/nssswitch.conf.

So add nativesdk-libnss-nis to buildtools-tarball to fix this problem.

---
 meta/recipes-core/meta/buildtools-tarball.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/meta/buildtools-tarball.bb +1 -0
index d98a9c9..377733f 100644
@@ -21,6 +21,7 @@ TOOLCHAIN_HOST_TASK ?= "\
     nativesdk-wget \
     nativesdk-ca-certificates \
     nativesdk-texinfo \
+    nativesdk-libnss-nis \
     "
 
 MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
Signature · 1 line
1.9.1
author
#2 lore raw

ping

Quoted 33 lines · Chen Qi

Recent glibc change removed libnss-nis module from glibc and a new recipe libnss-nis.bb was added.

After this change, we need to make sure nativesdk-libnss-nis is also included in buildtools-tarball, otherwise, we may encounter the following error when using 'tar' command from buildtools-tarball.

   tar: relocation error: /lib/x86_64-linux-gnu/libnss_nis.so.2: \
        symbol _nsl_default_nss version GLIBC_PRIVATE not defined \
        in file libnsl.so.1 with link time reference

This error occured on my ubuntu16.04 host with 'nis' configured in /etc/nssswitch.conf.

So add nativesdk-libnss-nis to buildtools-tarball to fix this problem.

---
  meta/recipes-core/meta/buildtools-tarball.bb | 1 +
  1 file changed, 1 insertion(+)
meta/recipes-core/meta/buildtools-tarball.bb +1 -0
index d98a9c9..377733f 100644
@@ -21,6 +21,7 @@ TOOLCHAIN_HOST_TASK ?= "\
      nativesdk-wget \
      nativesdk-ca-certificates \
      nativesdk-texinfo \
+    nativesdk-libnss-nis \
      "
 
  MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
#3 lore raw
In reply to Chen Qi

Try building a musl buildtools and it breaks:

ERROR: Nothing RPROVIDES 'nativesdk-libnss-nis' (but /home/ross/Yocto/poky/meta/recipes-core/meta/buildtools-tarball.bb RDEPENDS on or otherwise requires it) nativesdk-libnss-nis was skipped: incompatible with musl C library

Ross

Quoted 41 lines · Chen Qi

Recent glibc change removed libnss-nis module from glibc and a new recipe libnss-nis.bb was added.

After this change, we need to make sure nativesdk-libnss-nis is also included in buildtools-tarball, otherwise, we may encounter the following error when using 'tar' command from buildtools-tarball.

  tar: relocation error: /lib/x86_64-linux-gnu/libnss_nis.so.2: \
       symbol _nsl_default_nss version GLIBC_PRIVATE not defined \
       in file libnsl.so.1 with link time reference

This error occured on my ubuntu16.04 host with 'nis' configured in /etc/nssswitch.conf.

So add nativesdk-libnss-nis to buildtools-tarball to fix this problem.

---
 meta/recipes-core/meta/buildtools-tarball.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/meta/buildtools-tarball.bb +1 -1
index d98a9c9..377733f 100644
@@ -21,6 +21,7 @@ TOOLCHAIN_HOST_TASK ?= "\
     nativesdk-wget \
     nativesdk-ca-certificates \
     nativesdk-texinfo \
+    nativesdk-libnss-nis \
     "
 
 MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
--

1.9.1

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw
Quoted 7 lines · Ross

Try building a musl buildtools and it breaks:

ERROR: Nothing RPROVIDES 'nativesdk-libnss-nis' (but /home/ross/Yocto/poky/meta/recipes-core/meta/buildtools-tarball.bb RDEPENDS on or otherwise requires it) nativesdk-libnss-nis was skipped: incompatible with musl C library

I think the compatibility check is too greedy in the recipe, this should only be applicable to target class recipe.

Quoted 49 lines

Ross

Quoted 36 lines · Chen Qi

Recent glibc change removed libnss-nis module from glibc and a new recipe libnss-nis.bb was added.

After this change, we need to make sure nativesdk-libnss-nis is also included in buildtools-tarball, otherwise, we may encounter the following error when using 'tar' command from buildtools-tarball.

  tar: relocation error: /lib/x86_64-linux-gnu/libnss_nis.so.2: \
       symbol _nsl_default_nss version GLIBC_PRIVATE not defined \
       in file libnsl.so.1 with link time reference

This error occured on my ubuntu16.04 host with 'nis' configured in /etc/nssswitch.conf.

So add nativesdk-libnss-nis to buildtools-tarball to fix this problem.

---
 meta/recipes-core/meta/buildtools-tarball.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/meta/buildtools-tarball.bb +1 -1
index d98a9c9..377733f 100644
@@ -21,6 +21,7 @@ TOOLCHAIN_HOST_TASK ?= "\
     nativesdk-wget \
     nativesdk-ca-certificates \
     nativesdk-texinfo \
+    nativesdk-libnss-nis \
     "
 
 MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
--

1.9.1

Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

author
#5 lore raw

Hi Ross,

Please consider merging this patch.

With Khem's recent fix "libnss-nis: Limit parse skip only for target recipe on musl", I think this patch could be merged safely. I've tested it locally with glibc and musl.

Best Regards,
Chen Qi

Quoted 60 lines · Khem Raj
Quoted 7 lines · Ross

Try building a musl buildtools and it breaks:

ERROR: Nothing RPROVIDES 'nativesdk-libnss-nis' (but /home/ross/Yocto/poky/meta/recipes-core/meta/buildtools-tarball.bb RDEPENDS on or otherwise requires it) nativesdk-libnss-nis was skipped: incompatible with musl C library

I think the compatibility check is too greedy in the recipe, this should only be applicable to target class recipe.

Quoted 49 lines

Ross

Quoted 36 lines · Chen Qi

Recent glibc change removed libnss-nis module from glibc and a new recipe libnss-nis.bb was added.

After this change, we need to make sure nativesdk-libnss-nis is also included in buildtools-tarball, otherwise, we may encounter the following error when using 'tar' command from buildtools-tarball.

   tar: relocation error: /lib/x86_64-linux-gnu/libnss_nis.so.2: \
        symbol _nsl_default_nss version GLIBC_PRIVATE not defined \
        in file libnsl.so.1 with link time reference

This error occured on my ubuntu16.04 host with 'nis' configured in /etc/nssswitch.conf.

So add nativesdk-libnss-nis to buildtools-tarball to fix this problem.

---
  meta/recipes-core/meta/buildtools-tarball.bb | 1 +
  1 file changed, 1 insertion(+)
meta/recipes-core/meta/buildtools-tarball.bb +1 -1
index d98a9c9..377733f 100644
@@ -21,6 +21,7 @@ TOOLCHAIN_HOST_TASK ?= "\
      nativesdk-wget \
      nativesdk-ca-certificates \
      nativesdk-texinfo \
+    nativesdk-libnss-nis \
      "
 
  MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
--

1.9.1

Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#6 lore raw

Okay, merged to MUT. We'll see what the AB thinks!

Ross

Quoted 83 lines · ChenQi

Hi Ross,

Please consider merging this patch.

With Khem's recent fix "libnss-nis: Limit parse skip only for target recipe on musl", I think this patch could be merged safely.
I've tested it locally with glibc and musl.

Best Regards,
Chen Qi

Quoted 67 lines · Khem Raj
Quoted 8 lines · Ross

Try building a musl buildtools and it breaks:

ERROR: Nothing RPROVIDES 'nativesdk-libnss-nis' (but /home/ross/Yocto/poky/meta/recipes-core/meta/buildtools-tarball.bb RDEPENDS on or otherwise requires it) nativesdk-libnss-nis was skipped: incompatible with musl C library

I think the compatibility check is too greedy in the recipe, this should only be applicable to target class recipe.

Quoted 53 lines

Ross

Quoted 39 lines · Chen Qi

Recent glibc change removed libnss-nis module from glibc and a new recipe libnss-nis.bb was added.

After this change, we need to make sure nativesdk-libnss-nis is also included in buildtools-tarball, otherwise, we may encounter the following
error when using 'tar' command from buildtools-tarball.

   tar: relocation error: /lib/x86_64-linux-gnu/libnss_nis.so.2: \
        symbol _nsl_default_nss version GLIBC_PRIVATE not defined \
        in file libnsl.so.1 with link time reference

This error occured on my ubuntu16.04 host with 'nis' configured in /etc/nssswitch.conf.

So add nativesdk-libnss-nis to buildtools-tarball to fix this problem.

---
  meta/recipes-core/meta/buildtools-tarball.bb | 1 +
  1 file changed, 1 insertion(+)
meta/recipes-core/meta/buildtools-tarball.bb +1 -1
index d98a9c9..377733f 100644
@@ -21,6 +21,7 @@ TOOLCHAIN_HOST_TASK ?= "\
      nativesdk-wget \
      nativesdk-ca-certificates \
      nativesdk-texinfo \
+    nativesdk-libnss-nis \
      "
 
  MULTIMACH_TARGET_SYS = "${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}"
--

1.9.1

Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core