Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902571 - app-containers/podman fails to cross-compile
Summary: app-containers/podman fails to cross-compile
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-22 01:40 UTC by Dustin C. Hatch
Modified: 2023-03-27 18:37 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin C. Hatch 2023-03-22 01:40:23 UTC
Building *app-containers/podman* with a cross-compiler toolchain fails.  The build needs the `CC` and `LD` environment variables to be exported before running `go build`.

I was able to work around this problem by creating `/etc/portage/env/app-containers/podman`:

```
function post_src_prepare() {
	tc-export CC LD
}
```

Reproducible: Always
Comment 1 Nils Freydank 2023-03-27 18:37:50 UTC
Hi,

thanks for your report. Please attach a build.log and the output of emerge --info (and please do so for future bug reports, too).

Can you test if just adding CC and LD to the other exported variables in line 100 is sufficient, i.e. 'export -n CC GOCACHE GOPATH LD XDG_CACHE_HOME'?

Thanks,
Nils