Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ccache: update to 4.0 #25724

Closed
wants to merge 6 commits into from
Closed

ccache: update to 4.0 #25724

wants to merge 6 commits into from

Conversation

pullmoll
Copy link
Member

This release changes from using autoconf to cmake which is why
we need to remove the bootstrap=yes (N.B.: cmake is not bootstrap=yes).

I think we cannot turn cmake into a bootstrap=yes package.
Should we create a (legacy) chroot-ccache with a < 4.0 version?

There seems to be no way to build ccache >= 4.0 with just autoconf.

@pullmoll pullmoll added the WIP Work in progress label Oct 18, 2020
@sgn
Copy link
Member

sgn commented Oct 19, 2020

Alternately, we can package a chroot-cmake with vendored libraries for bootstrap.

@pullmoll
Copy link
Member Author

@sgn That would be better because the cache data format also changed.
Using the same cache directory for a chroot-ccache-3.x and ccache >= 4.0 would work but not re-use the cache data.
If you can come up with a chroot-cmake that would be great.

@pullmoll pullmoll force-pushed the ccache branch 2 times, most recently from 97083c1 to b352b32 Compare October 19, 2020 04:56
@pullmoll
Copy link
Member Author

FYI working on a chroot-cmake package. It builds but I need to strip it down to the required stuff.
I wonder if we should make expat a bootstrap=yes package.
cmake depends on it and it's simple enough, i.e. no dependencies.

@sgn
Copy link
Member

sgn commented Oct 20, 2020

I also have a working chroot-cmake, but with vendored expat. Not sure about bootstrap=yes for expat.


I'm trying to see if the bootstrapping cmake (the one generated by configure script) usable

@pullmoll
Copy link
Member Author

It works with the --without-system-expat configure option. Still, using system expat would make sense.
I don't think it's a problem to turn expat into bootstrap=yes. It's tiny compared to cmake.
Need to strip down chroot-cmake to what we really need.

@pullmoll
Copy link
Member Author

Oops.. there's a wrong change to srcpkgs/chroot-cmake/template in a later commit. Need to sort that out but have to go now.
It might make sense to try and remove unused compilers from the build, if that's possible. Or otherwise strip out what we definitely don't need.
Will take a look into that when I'm back this evening.

This release changes from using autoconf to cmake.
srcpkgs/chroot-cmake/template Outdated Show resolved Hide resolved
Required for building ccache>=4.0.
Because ccache >= 4.0 now is built using cmake we need
a chroot-cmake as bootstrap=yes package.
@pullmoll
Copy link
Member Author

pullmoll commented Oct 20, 2020

Now let's see if it builds w/o ncurses and with system expat...
Also trying a x86_64 bootstrap here.

@sgn
Copy link
Member

sgn commented Oct 20, 2020

@pullmoll I've draft another approach for chroot-cmake. Please take a look in my approach. #25753

@pullmoll
Copy link
Member Author

Closing in favor of #25753

@pullmoll pullmoll closed this Oct 20, 2020
@pullmoll pullmoll deleted the ccache branch October 20, 2020 15:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants