Porting C apps to Redox


#1

Hello. Redox has a libc which is posix compatible. So how can I port c apps like python into Redox?


#2

C applications are ported by writing recipes for them in the Redox cookbook. Recipes are build scripts that takes care of getting the source code from git or tarballs, building and packaging it for the package manager.

If your app only needs small changes for Redox you can drop patch files next to your recipe and they will be automatically applied when the recipe is built. If it needs extensive changes you can create a fork of that app on the Redox GitLab server and use that in the recipe.

Here are the currently available recipes: https://gitlab.redox-os.org/redox-os/cookbook/tree/master/recipes

As you can see there are a couple of C apps and libs that has already been ported. There’s also a Python port there but I have no idea how complete is it.