Porting Pkgsrc to Minix
Contents
This page is about the now-finished GSOC 2010 project. The living pkgsrc page is at Testing Pkgsrc.
About the project
Student: Gautam Tirumala [gautam (dot) bt (at) gmail (dot) com]
Mentors: Arun Thomas and Ben Gras
Branch Info: src.r7062.pkgsrc
About this page
This is the project page for the GSoC project 'Porting pkgsrc to Minix'. Following is a brief overview of the project and the roadmap. This page will also describe any progress made on the project.
Abstract
The current Minix package manager - packman - does not scale to managing the growing number of packages being ported to Minix. There is a need for a new package manager. Pkgsrc seems to be the favorite. Pkgsrc, the NetBSD package manager, has already been ported to several other platforms. This project aims to port pkgsrc to Minix.
Notes
The project can be divided into two parts:
Bootstrapping pkgsrc on Minix
Bootstrapping pkgsrc is done by running bootstrap/bootstrap script. Three things have to be done for this:
- Modify bootstrap/bootstrap to identify the right settings for Minix (architecture, sed, awk programs etc)
- Modify mk/* and pkgtools/bootstrap-mk-files to suit Minix
- Port pkgtools/libnbcompat, pkgtools/pkg_install, pkgtools/digest, devel/bmake, net/tnftp to Minix.
Moving packages into pkgsrc
For most packages this should only involve applying any Minix specific patches to the code and modifying the Makefile. Since pkgsrc already has a mechanism to apply patches, this should be straight forward for most packages. Also, for most packages, the order of porting does not matter because all libraries are currently statically linked. Note that the process cannot be automated as on one hand build.minix is a shell script with no special requirements about various build stages and pkgsrc Makefiles have specific targets for each build stage.
Misc Tasks
- pkg_radd
- pkg_chk
- pkg_rolling-replace
- Bulk builds
- Create locally-hosted git tree that tracks NetBSD's pkgsrc git repo
- Submit changes upstream to pkgsrc
Resources
http://mail-index.netbsd.org/tech-pkg/2010/05/08/msg005423.html
http://mail-index.netbsd.org/tech-pkg/2010/06/15/msg005620.html
http://groups.google.com/group/minix3/browse_thread/thread/60458753059ed86/c336885c2194bdd6
http://groups.google.com/group/minix3/browse_thread/thread/e064c2d22460966/60461501f895df0d