pkgsrc on MirBSDBenny Siegert ‹bsiegert@{mir,net}bsd.org›              FOSDEM 2012
Contents1. Introduction  a. MirBSD  b. What is pkgsrc?2. Comparison pkgsrc   MirPorts3. MirBSD as new pkgsrc platform4. Co...
Introduction               3
What is MirOS / MirBSD?• MirOS BSD or MirBSD: “a secure  operating system from the BSD family”,  OpenBSD based• The MirOS ...
What is pkgsrc?• In GNU/Linux distributions, everything is a  package.• In BSD, the base system is a “single unit”.• pkgsr...
Building from source• Before first use: run  /usr/pkgsrc/bootstrap/bootstrap• Packages are organized in categories:  /usr/...
Stable branches• four stable releases per year  • most recent was pkgsrc-2011Q4• security team deals with vulnerable  pack...
Binary packages• ftp.netbsd.org contains packages for many  architectures and OSes• set PKG_PATH: pkg_add automatically  d...
Getting involved• Mailing lists: pkgsrc-users@netbsd.org,  tech-pkg@netbsd.org• Bug tracker: http://www.netbsd.org/support...
Back to MirBSD …                   10
MirPorts• MirBSD also has MirPorts,  with about the same goals as pkgsrc  • 2852 entries (>11000 for pkgsrc)  • many of th...
Terminology differencesMirPorts          pkgsrcport              packagepackage           binary packagepackage flavour   ...
Interesting MirPorts features• cpan2port: recursively create packages for  Perl modules• mpczar: “normalized” archive form...
How did we getMirBSD support?                  14
Beginning• tg wrote basic patches in 2006.  They were never applied.• I revived them at 26C3 (Dec 2010).  Important: perso...
(cont.) • Maintaining pkgsrc support is much easier   as developer. • At FOSDEM 2011: mbalmer proposes me to   become a Ne...
Becoming a NetBSD developer1. A developer proposes you to be added.   Two weeks for internal objections.2. Two developers ...
Files touched• bootstrap/bootstrap• pkgtools/bootstrap-mk-files/files/mods/  MirBSD.sys.mk• mk/  • bsd.prefs.mk, pthread.b...
More controversial changes• It took about six more months for bootstrap  without patches on MirBSD  • fixes for libfetch  ...
Conclusion             20
pkgsrc and MirBSD• pkgsrc works well on MirBSD.  • last bulk build (2011Q3): 5850 packages.• Some “important” packages sti...
Thank you for your attention Thanks to:                Thorsten Glaser    Daniel Seuffert      Marius Nünnerich           ...
Upcoming SlideShare
Loading in...5
×

pkgsrc on MirBSD

1,858

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,858
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

pkgsrc on MirBSD

  1. 1. pkgsrc on MirBSDBenny Siegert ‹bsiegert@{mir,net}bsd.org› FOSDEM 2012
  2. 2. Contents1. Introduction a. MirBSD b. What is pkgsrc?2. Comparison pkgsrc MirPorts3. MirBSD as new pkgsrc platform4. Conclusion 2
  3. 3. Introduction 3
  4. 4. What is MirOS / MirBSD?• MirOS BSD or MirBSD: “a secure operating system from the BSD family”, OpenBSD based• The MirOS Project: Thorsten Glaser and me +contributors • other software: mksh (shell), jupp (editor), PaxMirabilis (archiver), MirMake (build system), MirCksum, MirNroff, KWalletCLI, etc. 4
  5. 5. What is pkgsrc?• In GNU/Linux distributions, everything is a package.• In BSD, the base system is a “single unit”.• pkgsrc provides a way to install additional software not contained in the base system. • over 11000 packages available • made by the NetBSD project, runs on 16 different OSes 5
  6. 6. Building from source• Before first use: run /usr/pkgsrc/bootstrap/bootstrap• Packages are organized in categories: /usr/pkgsrc/category/pkgname• “bmake package-install” does everything: • download • extract, patch • build • create and install binary package 6
  7. 7. Stable branches• four stable releases per year • most recent was pkgsrc-2011Q4• security team deals with vulnerable packages, fixes are “pulled up” • automatically check for installed packages with known vulnerabilities % pkg_admin fetch-pkg-vulnerabilities % pkg_admin audit 7
  8. 8. Binary packages• ftp.netbsd.org contains packages for many architectures and OSes• set PKG_PATH: pkg_add automatically downloads packages for installation % export PKG_PATH=ftp://ftp.netbsd.org/pub/pkgsrc/packages/ MirBSD/i386/10uAE_2011Q3/All % pkg_add screen• pkgin, nih: binary package managers provide apt-like functions 8
  9. 9. Getting involved• Mailing lists: pkgsrc-users@netbsd.org, tech-pkg@netbsd.org• Bug tracker: http://www.netbsd.org/support/query-pr.html• low barrier to entry for new packages: pkgsrc-wip project on Sourceforge • entries are added to pkgsrc after review• For commit access to pkgsrc, you need to become a NetBSD developer. 9
  10. 10. Back to MirBSD … 10
  11. 11. MirPorts• MirBSD also has MirPorts, with about the same goals as pkgsrc • 2852 entries (>11000 for pkgsrc) • many of the packages are in old versions due to lack of manpower• But: several MirBSD-specific packages• so we decided to join forces: pkgsrc as a complement / replacement (?) 11
  12. 12. Terminology differencesMirPorts pkgsrcport packagepackage binary packagepackage flavour package option“faking” DESTDIR support 12
  13. 13. Interesting MirPorts features• cpan2port: recursively create packages for Perl modules• mpczar: “normalized” archive format for VCS checkouts • to allow checksumming • VCS checkout instead of distfile• cvs-1.12 with extensions 13
  14. 14. How did we getMirBSD support? 14
  15. 15. Beginning• tg wrote basic patches in 2006. They were never applied.• I revived them at 26C3 (Dec 2010). Important: personal contact with developers (joerg, wiz)• First parts committed in January 2011. 15
  16. 16. (cont.) • Maintaining pkgsrc support is much easier as developer. • At FOSDEM 2011: mbalmer proposes me to become a NetBSD developer, starts newdev process. • Sponsored by Alistair G. Crooks (agc) and Guillaume Lasmayous (gls) – thanks! 16
  17. 17. Becoming a NetBSD developer1. A developer proposes you to be added. Two weeks for internal objections.2. Two developers become your “sponsors”.3. You fill out a questionnaire, internal discussion.4. Your GPG key needs to be signed by two developers.5. If accepted, you need to sign a contract with The NetBSD Foundation. 17
  18. 18. Files touched• bootstrap/bootstrap• pkgtools/bootstrap-mk-files/files/mods/ MirBSD.sys.mk• mk/ • bsd.prefs.mk, pthread.builtin.mk • platform/MirBSD.mk, tools/tools.MirBSD.mk • configure/gnu-configure.mk: workaround 18
  19. 19. More controversial changes• It took about six more months for bootstrap without patches on MirBSD • fixes for libfetch • fix for incompatibilities between mksh and the bmake test suite • libtool support• In all cases: need OK from maintainers / authors 19
  20. 20. Conclusion 20
  21. 21. pkgsrc and MirBSD• pkgsrc works well on MirBSD. • last bulk build (2011Q3): 5850 packages.• Some “important” packages still need fixes.• pkgsrc cannot completely replace MirPorts at the moment (e.g. local ports). • But: MirPorts and pkgsrc can coexist! 21
  22. 22. Thank you for your attention Thanks to: Thorsten Glaser Daniel Seuffert Marius Nünnerich Marc Balmer Alistair G. Crooks Guillaume Lasmayous Jörg Sonnenberger Thomas Klausner Come to our booth (K building)! We distribute DVDs with MirBSD + pkgsrc. 22
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×