You are not logged in.
Pages: 1
I have a problem with my fastgcc PKGBUILD (you can find it in the AUR).
The PKGBUILD contains:
provides=('gcc' 'gcc-libs')
replaces=('gcc' 'gcc-libs')
but pacman refuses to replace either gcc or gcc-libs. What am I doing wrong? Should I put the lines in the package_fastgcc section?
Offline
Re-read https://wiki.archlinux.org/index.php/PK … _relations .
Should I put the lines in the package_fastgcc section?
That does seem like a better place, yes.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
Can you just tell me what's wrong? I'm a C++ programmer, not an arch dev. I hacked the official PKGBUILD so I can enjoy faster compilations.
Offline
If I understand this correctly, fastgcc is meant as an alternative to the regular gcc. So it should be conflicts=(), not replaces=().
I think it might have been less confusing if replaces=() was named deprecates=() (because a package A can "replace" a package B for at least two reasons). But maybe I'm just getting the terminology wrong.
but pacman refuses to replace either gcc or gcc-libs. What am I doing wrong?
What's the error message?
Offline
I long suspected gcc compiled with -Ofast and with ld disabled would run faster and fastgcc is a test to see if that was true. And it is and not only that. The standard libraries compiled with -Ofast make my system feel faster somehow. In other words, I am happy, even if it costs an occasional crash - most of the other programs, including the kernel, are not compiled as -Ofast after all.
The error: it just lists all the conflicting files from gcc and gcc-libs and does not want to replace them.
Offline
The error: it just lists all the conflicting files from gcc and gcc-libs and does not want to replace them.
Yes, that's because the two packages do not conflict (as in: fastgcc does not state that it conflicts with gcc and gcc-libs), so pacman has no reason to remove those packages, leading to the file conflicts.
--edit: So again, put conflicts=(gcc gcc-libs), not replaces=(gcc gcc-libs)
Last edited by ayekat (2019-09-29 11:33:55)
Offline
I did so, now testing. I really need the faster compile speeds. Waiting takes all fun from programming.
Offline
Pages: 1