Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718078 - app-arch/zstd calls cc directly
Summary: app-arch/zstd calls cc directly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly
  Show dependency tree
 
Reported: 2020-04-18 17:07 UTC by Agostino Sarubbo
Modified: 2025-04-04 04:12 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,33.71 KB, text/plain)
2020-04-18 17:07 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-04-18 17:07:14 UTC
This is an auto-filled bug because app-arch/zstd calls cc directly.
The issue was originally discovered on arm64, but it may be reproducible on other arches as well.
Attached build log and emerge --info.

NOTE:
To reproduce this issue you may want to temporarily move the /usr/bin/cc - /usr/bin/gcc binaries.
Comment 1 Agostino Sarubbo gentoo-dev 2020-04-18 17:07:23 UTC
Created attachment 633618 [details]
build.log

build log and emerge --info
Comment 2 Eli Schwartz gentoo-dev 2025-04-04 04:12:02 UTC
mymake() {
        emake \
                CC="$(tc-getCC)" \
                CXX="$(tc-getCXX)" \
                AR="$(tc-getAR)" \
                PREFIX="${EPREFIX}/usr" \
                LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
                "${@}"
}

multilib_src_compile() {
        mymake -C lib libzstd libzstd.a libzstd.pc

        if multilib_is_native_abi ; then
                mymake zstd

                mymake -C contrib/pzstd
        fi
}

multilib_src_install() {
        mymake -C lib DESTDIR="${D}" install

        if multilib_is_native_abi ; then
                mymake -C programs DESTDIR="${D}" install

                mymake -C contrib/pzstd DESTDIR="${D}" install
        fi
}

Well of course, it didn't override src_test...

Nowadays this package is built using meson, which means it is handled correctly.