Open gavindidrichsen opened 4 years ago
Update. The above issue seems to happen when doing a 'cold-boot' of core/libtool in a new environment. In other words, open a new hab studio, hab pkg install the core/libtool and then check the existence of all files and directories contained in the libtool --config
. For example:
hab studio enter
hab pkg install core/libtool --binlink
libtool --config
after testing for file/directory existence something like the following was observed:
× File /hab/pkgs/core/make/4.2.1/20200306002515/include is expected to exist
expected File /hab/pkgs/core/make/4.2.1/20200306002515/include to exist
× File /hab/pkgs/core/gcc/9.1.0/20200305180723/include is expected to exist
expected File /hab/pkgs/core/gcc/9.1.0/20200305180723/include to exist
However, after re-building core/libtool in the same hab studio environment, the above failures disappear:
✔ File /hab/pkgs/core/make/4.2.1/20200306002515/include is expected to exist
✔ File /hab/pkgs/core/gcc/9.1.0/20200305180723/include is expected to exist
✔ File /hab/pkgs/core/glibc/2.29/20200305172459/include is expected to exist
✔ File /hab/pkgs/core/binutils/2.32/20200305174809/include is expected to exist
Interpretation? It seems that core/libtool configures itself according to the dependencies that are in its build environment. The same dependencies, however, may not appear in the downstream environment
The core/libtool runtime seems to require some of the packages used at build time. This issue only seems to be apparent when using the
libtool --config
; files are directories that appear in this output seem to be set at build time so in another runtime environment, these same files/directories may not actually exist.Context
Notice that libtool --config returns a number of (1) binary paths including GREP, SED, and NM and (2) directories:
However, some binaries and directories do not actually exist on the installation environment, like:
and at least 2 of the include directories: