Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
redox
redox
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 211
    • Issues 211
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • redox-os
  • redoxredox
  • Issues
  • #1316

Closed
Open
Opened Sep 10, 2020 by Melody Horn@boringcactus1 of 1 task completed1/1 task

Unsupported OS in bootstrap: Alpine Linux

  • I agree that I have searched opened and closed issues to prevent duplicates.

Description

I'm trying to build Redox from Alpine Linux, and the bootstrap script is incorrectly detecting it as FreeBSD.

Environment info

  • Operating system: Alpine Linux
  • uname -a: Linux UberPC-V3 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 Linux

Steps to reproduce

  1. Run the bootstrap script on Alpine Linux with some dependencies missing.

Behavior

  • Expected behavior: Dependencies are installed automatically.
  • Actual behavior:
|------------------------------------------|
|----- Welcome to the redox bootstrap -----|
|------------------------------------------|
+ echo 'FreeBSD detected!'
FreeBSD detected!
+ echo 'Installing missing packages...'
Installing missing packages...
+ install_freebsd_pkg git
+ install_bsd_pkg 'sudo pkg' git
+ PKG_MANAGER='sudo pkg'
+ PKG_NAME=git
+ BIN_NAME=
+ '[' -z  ]
+ BIN_NAME=git
+ which git
+ true
+ BIN_LOCATION=
+ '[' -z  ]
+ echo 'sudo pkg install git'
sudo pkg install git
+ sudo pkg install git
> pkg@4.4.4
> Error! Not more than one entry file/directory is expected
  • Proposed solution: Add support for Alpine Linux in the bootstrap script. Its package manager is apk and its package repository can be browsed at https://pkgs.alpinelinux.org/packages; an example of its usage would be apk add git.
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: redox-os/redox#1316