Skip to content

Commit

Permalink
ports/coreutils: "Huge hack" is no longer needed; gperf is no longer …
Browse files Browse the repository at this point in the history
…needed
  • Loading branch information
mintsuki committed Aug 28, 2024
1 parent 0b608f4 commit cbf1901
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions recipes/coreutils
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,12 @@ version=9.5
revision=1
tarball_url="https://ftp.gnu.org/gnu/coreutils/coreutils-${version}.tar.xz"
tarball_blake2b="6fd3a77697c9e85f31415c6ad66559faf18acc7d346677a89d4a999c2027886551e78842a7283e7b3b44fe8ef2fde04ba2f88df32a7844d5f69d45bcb7a04b6f"
source_imagedeps="build-essential gperf"
source_hostdeps="automake autoconf libtool pkg-config"
imagedeps="build-essential gperf"
hostdeps="gcc automake autoconf libtool pkg-config"
deps="core-libs tzdata"

regenerate() {
autotools_recursive_regen

# Huge hack: coreutils does not compile the build-machine binary make-prime-list
# using the build-machine compiler. Hence, build and invoke the binary manually here.
mkdir tmp_build_dir
cd tmp_build_dir

../configure
make src/make-prime-list
./src/make-prime-list 5000 > ../src/primes.h

cd ..
rm -rf tmp_build_dir
}

build() {
Expand Down

0 comments on commit cbf1901

Please sign in to comment.