Skip to content

add gap-in-the-browser#5891

Draft
wangyenshu wants to merge 1 commit into
emscripten-forge:mainfrom
wangyenshu:gap-in-the-browser
Draft

add gap-in-the-browser#5891
wangyenshu wants to merge 1 commit into
emscripten-forge:mainfrom
wangyenshu:gap-in-the-browser

Conversation

@wangyenshu

Copy link
Copy Markdown
Contributor

Pre-submission Checks

  • Package requires building for emscripten-wasm32 platform (not a noarch package), in other words, the package requires compilation.

Recipe Structure

Added recipes/recipes_emscripten/[package-name]/recipe.yaml with proper structure:

  • context section with version (and optionally name)
  • package section with name and version using Jinja2 templates
  • source section with:
    • Source URL is valid and points to archive file (.tar.gz, .tar.bz2, .tar.xz, .tgz, or .zip)
    • Source URL contains ${{ version }} template for version updates
    • SHA256 hash is correct (verified with curl -sL <url> | sha256sum)
    • Patches (if any) are included in [package-name]/patches/ directory
  • build section with appropriate script/method
    • Python packages: ${PYTHON} -m pip install . ${PIP_ARGS}
    • R packages: $R CMD INSTALL $R_ARGS .
    • C++ packages: Uses emcmake/emmake or emconfigure/emmake
    • Rust packages: Uses rust-nightly and maturin or appropriate Rust build tool
    • Build number is 0
    • If the script is longer than 3 lines, a build.sh is included
  • requirements section (build, host, run as needed)
  • tests section
    • Python packages: test_import_[package].py file created and referenced
    • C++ packages: Test executable or package_contents test
    • R packages: Package contents test
  • about section with license, homepage, summary

PR Formatting

  • PR title follows format: Add [package-name] or Update [package-name] to [version]
  • PR description includes:
    • Version being added/updated
    • Any special build considerations or patches applied

Package Details

  • Package Name: gap-in-the-browser
  • Version: 4.16.0

Build Notes

This recipe will build gap-in-the-browser. The output should be the same as https://gap-system.github.io/gap-in-the-browser/.

@IsabelParedes IsabelParedes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +44 to +68
(
mkdir -p "$AUX_BUILD/gmp"
cd "$AUX_BUILD/gmp" &&
if [[ ! -f config.status ]]; then
CC_FOR_BUILD=/usr/bin/gcc ABI=standard \
emconfigure $BASEDIR/extern/gmp/configure \
--build i686-pc-linux-gnu --host none \
--disable-assembly --enable-cxx \
--prefix=$AUX_PREFIX
fi &&
emmake make -j8 &&
emmake make install
)

(
mkdir -p "$AUX_BUILD/zlib"
cd "$AUX_BUILD/zlib" &&
if [[ ! -f Makefile ]]; then
# --- MODIFICATION: Added --static to prevent shared library linkage errors ---
emconfigure $BASEDIR/extern/zlib/configure --static --prefix=$AUX_PREFIX
fi;
emmake make -j8 &&
emmake make install
)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely these two packages can just be taken from emscripten-forge instead of rebuilding them here from source?

(Same in #5866 -- I don't know which of the two to review)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made this change in #5965

@wangyenshu
wangyenshu marked this pull request as draft July 25, 2026 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants