[Bug 257744] math/lapacke: relies on buggy base system ranlib behaviour

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 10 Aug 2021 15:53:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257744

            Bug ID: 257744
           Summary: math/lapacke: relies on buggy base system ranlib
                    behaviour
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: emaste@freebsd.org
                CC: phd_kimberlite@yahoo.co.jp
            Blocks: 257599
             Flags: maintainer-feedback?(phd_kimberlite@yahoo.co.jp)
                CC: phd_kimberlite@yahoo.co.jp

FreeBSD's base system /usr/bin/ar and /usr/bin/ranlib have a bug where the exit
status is 0 (i.e., success) even in the case of a missing file, and it turns
out math/lapacke relies on this.  With the bug fixed lapacke's build fails
with:

ranlib SRC/liblapacke.a
ranlib: fatal: Failed to open 'SRC/liblapacke.a': No such file or directory
*** Error code 1

The referenced file is in .build/LAPACKE/liblapacke.a instead. However, note
that ranlib is basically unnecessary and the invocation could just be
eliminated instead.


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257599
[Bug 257599] [exp-run] ar/ranlib error handling fix
-- 
You are receiving this mail because:
You are the assignee for the bug.