Ben Gamari pushed to branch wip/fix-upload-libs at Glasgow Haskell Compiler / GHC Commits: b6895da0 by Ben Gamari at 2025-07-15T23:56:45-04:00 gitlab/upload_libs: Drop mentions of ghc-prim This package no longer exists. PrimOpWrappers has been moved to ghc-internal. Fixes #26177. - - - - - 1 changed file: - .gitlab/rel_eng/upload_ghc_libs.py Changes: ===================================== .gitlab/rel_eng/upload_ghc_libs.py ===================================== @@ -52,6 +52,7 @@ def prep_base(): def prep_ghc_internal(): shutil.copy('config.guess', 'libraries/ghc-internal') shutil.copy('config.sub', 'libraries/ghc-internal') + build_copy_file(PACKAGES['ghc-internal'], Path('GHC/Internal/PrimopWrappers.hs')) def build_copy_file(pkg: Package, f: Path): target = Path('_build') / 'stage1' / pkg.path / 'build' / f @@ -75,9 +76,6 @@ def modify_file(pkg: Package, fname: Path, f: Callable[[str], str]): s = target.read_text() target.write_text(f(s)) -def prep_ghc_prim(): - build_copy_file(PACKAGES['ghc-prim'], Path('GHC/PrimopWrappers.hs')) - def prep_ghc_bignum(): shutil.copy('config.guess', 'libraries/base') shutil.copy('config.sub', 'libraries/base') @@ -112,7 +110,6 @@ PACKAGES = { Package('base', Path("libraries/base"), prep_base), Package('ghc-internal', Path("libraries/ghc-internal"), prep_ghc_internal), Package('ghc-experimental', Path("libraries/ghc-experimental"), no_prep), - Package('ghc-prim', Path("libraries/ghc-prim"), prep_ghc_prim), Package('integer-gmp', Path("libraries/integer-gmp"), no_prep), Package('ghc-bignum', Path("libraries/ghc-bignum"), prep_ghc_bignum), Package('template-haskell', Path("libraries/template-haskell"), no_prep), @@ -137,7 +134,6 @@ def cabal_upload(tarball: Path, creds: Credentials, publish: bool=False, extra_a run(['cabal', 'upload'] + extra_args + [tarball] + creds_args, check=True) def prepare_sdist(pkg: Package): - print(f'Preparing package {pkg.name}...') shutil.rmtree(pkg.path / 'dist-newstyle', ignore_errors=True) build_file_hadrian(pkg.path / '{}.cabal'.format(pkg.name)) View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b6895da02efd0ff50b2c0d5e6b2b1f0c... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/b6895da02efd0ff50b2c0d5e6b2b1f0c... You're receiving this email because of your account on gitlab.haskell.org.