Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 732100 - net-libs/libnsl-1.3.0 calls commands that do not exist
Summary: net-libs/libnsl-1.3.0 calls commands that do not exist
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://github.com/thkukuk/libnsl/iss...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-10 12:22 UTC by Agostino Sarubbo
Modified: 2020-07-10 20:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,85.32 KB, text/plain)
2020-07-10 12:23 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-07-10 12:22:57 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-libs/libnsl calls commands that do not exist.
Discovered on: amd64  (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-10 12:23:04 UTC
Created attachment 648814 [details]
build.log

build log and emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-07-10 19:31:41 UTC
"""
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... /var/tmp/portage/net-libs/libnsl-1.3.0/work/libnsl-1.3.0/config.rpath: line 219: ==: command not found
/var/tmp/portage/net-libs/libnsl-1.3.0/work/libnsl-1.3.0/config.rpath: line 219: ==: command not found
done
checking 32-bit host C ABI... no
"""
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-07-10 19:34:58 UTC
'config.rpath' does not look like valid shell:

"""
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
        if $libdir == /usr/lib | $libdir == /usr/lib64; then
                     hardcode_libdir_flag_spec=""
             fi
      else
        ld_shlibs=no
      fi
"""
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2020-07-10 19:49:04 UTC
Reported upstream as https://github.com/thkukuk/libnsl/issues/11
Comment 5 Larry the Git Cow gentoo-dev 2020-07-10 20:11:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=615a57b837f40f4c1671f6b6f41be41602268aa4

commit 615a57b837f40f4c1671f6b6f41be41602268aa4
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-07-10 20:11:21 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-07-10 20:11:37 +0000

    net-libs/libnsl: tweak config.rpath shell
    
    `config.rpath` contains a bit of invalid shell:
    
    ```
    checking for shared library run path origin...
        libnsl-1.3.0/config.rpath: line 219: ==: command not found
        libnsl-1.3.0/config.rpath: line 219: ==: command not found
    ```
    
    ```
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
            if $libdir == /usr/lib | $libdir == /usr/lib64; then
                         hardcode_libdir_flag_spec=""
                 fi
          else
            ld_shlibs=no
          fi
    ```
    
    The change restores default `config.rpath`.
    
    Reported-by: Agostino Sarubbo
    Closes: https://bugs.gentoo.org/732100
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 net-libs/libnsl/files/libnsl-1.3.0-rpath.patch | 16 ++++++++++
 net-libs/libnsl/libnsl-1.3.0-r1.ebuild         | 42 ++++++++++++++++++++++++++
 2 files changed, 58 insertions(+)