{"id":19301937,"url":"https://github.com/darkness4/gentoo-prefix-builder","last_synced_at":"2026-06-09T20:31:30.850Z","repository":{"id":103465498,"uuid":"422297094","full_name":"Darkness4/gentoo-prefix-builder","owner":"Darkness4","description":"A dockerfile to build Gentoo Prefix.","archived":false,"fork":false,"pushed_at":"2022-02-24T20:34:39.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-03T10:01:50.166Z","etag":null,"topics":["docker","gentoo","prefix"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Darkness4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-28T17:30:34.000Z","updated_at":"2021-11-29T22:30:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"1acb0840-dfe9-4222-b1f1-24a187f60586","html_url":"https://github.com/Darkness4/gentoo-prefix-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Darkness4/gentoo-prefix-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkness4%2Fgentoo-prefix-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkness4%2Fgentoo-prefix-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkness4%2Fgentoo-prefix-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkness4%2Fgentoo-prefix-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Darkness4","download_url":"https://codeload.github.com/Darkness4/gentoo-prefix-builder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Darkness4%2Fgentoo-prefix-builder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34125332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","gentoo","prefix"],"created_at":"2024-11-09T23:19:21.427Z","updated_at":"2026-06-09T20:31:30.827Z","avatar_url":"https://github.com/Darkness4.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Preparation\n\n## Export\n\nOut installation path is `/usr/local/gentoo` :\n\n```sh\nexport EPREFIX=/usr/local/gentoo\n```\n\n```sh\n# Choose the correct installation path and user:group permissions\ndocker build \\\n\t--build-arg uid=1611 \\\n\t--build-arg user=marc \\\n\t--build-arg gid=1600 \\\n\t--build-arg group=cluster-users \\\n\t--build-arg eprefix=$EPREFIX \\\n\t-t gentoo-builder .\n```\n\n## Mkdir + chown output\n\n```sh\nmkdir -p $EPREFIX\nsudo chown 1611:1600 $EPREFIX\n```\n\n## Run script\n\n```sh\n# The volume binding names must match\ndocker run -it --rm --name gentoo-builder \\\n\t-v $EPREFIX:$EPREFIX \\\n\tgentoo-builder\n```\n\n```txt\nDo you want me to start off now? [Yn]\nHow many parallel make jobs do you want? [8] 48\nDo you want to use stable Prefix? [Yn]\nWhat do you want EPREFIX to be? [/usr/local/gentoo]\nType here what you want to wish me [luck]\n```\n\n## Fix the circulardependency and pwd\n\n### Ignore the runtime dependency `sys-libs/libxcrypt`\n\nThe script will crash at the first circular dependency.\n\n```txt\n * Error: circular dependencies:\n\n(virtual/libcrypt-2:0/2::gentoo, ebuild scheduled for merge) depends on\n (sys-libs/libxcrypt-4.4.26:0/1::gentoo, ebuild scheduled for merge) (runtime)\n  (dev-lang/perl-5.34.0-r5:0/5.34::gentoo, ebuild scheduled for merge) (buildtime)\n   (virtual/libcrypt-2:0/2::gentoo, ebuild scheduled for merge) (buildtime_slot_op)\n\n * Note that circular dependencies can often be avoided by temporarily\n * disabling USE flags that trigger optional dependencies.\n```\n\nWe will fix this circular dependency in addition to the non-detection of `libperl.so`.\n\n```sh\nmkdir -p $EPREFIX/tmp/etc/portage/profile/\necho \"sys-libs/libxcrypt-4.4.26\" \u003e\u003e $EPREFIX/tmp/etc/portage/profile/package.provided\n```\n\nThis allows to ignore the `sys-libs/libxcrypt-4.4.26` dependency which is a runtime dependency.\n\n### Detect libperl.so\n\nEdit `$EPREFIX/etc/portage/make.conf` and add :\n\n```sh\nLD_LIBRARY_PATH=\"/usr/local/gentoo/usr/lib64:/usr/local/gentoo/usr/lib:/usr/local/gentoo/tmp/lib64:/usr/local/gentoo/tmp/lib:/usr/local/gentoo/tmp/usr/lib64:/usr/local/gentoo/tmp/usr/lib\"\n```\n\nReplace `/usr/local/gentoo` with the value of `$EPREFIX`.\n\n### Put pwd\n\n```sh\ncp /bin/pwd $EPREFIX/tmp/bin/pwd\n```\n\n### Run again\n\nRun again :\n\n```sh\ndocker run -it --rm --name gentoo-builder \\\n\t-v $EPREFIX:$EPREFIX \\\n\tgentoo-builder\n```\n\nIf it crashes at some point, remove `$EPREFIX/tmp/etc/portage/profile/package.provided`.\n\nRestart the script with the same parameters.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkness4%2Fgentoo-prefix-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkness4%2Fgentoo-prefix-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkness4%2Fgentoo-prefix-builder/lists"}