pkgsrc on MirBSD

B
Benny SiegertMirOS developer
pkgsrc on MirBSD
Benny Siegert ‹bsiegert@{mir,net}bsd.org›
              FOSDEM 2012
Contents
1. Introduction
  a. MirBSD
  b. What is pkgsrc?
2. Comparison pkgsrc   MirPorts

3. MirBSD as new pkgsrc platform
4. Conclusion
                                   2
Introduction


               3
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
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
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
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
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
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
Back to MirBSD …


                   10
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
Terminology differences

MirPorts          pkgsrc

port              package

package           binary package

package flavour   package option

“faking”          DESTDIR support

                                    12
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
How did we get
MirBSD support?

                  14
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
(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
Becoming a NetBSD developer
1. 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
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
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
Conclusion


             20
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
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 of 22

Recommended

pkgsrc on SmartOS by
pkgsrc on SmartOSpkgsrc on SmartOS
pkgsrc on SmartOSjonperkin
6.7K views26 slides
NIH package manager for pkgsrc by
NIH package manager for pkgsrcNIH package manager for pkgsrc
NIH package manager for pkgsrcТранслируем.бел
1K views30 slides
OpenWRT guide and memo by
OpenWRT guide and memoOpenWRT guide and memo
OpenWRT guide and memo家榮 吳
3.2K views20 slides
Openvz - a quick introduction by
Openvz - a quick introductionOpenvz - a quick introduction
Openvz - a quick introductionOlle E Johansson
1.7K views15 slides
OpenVZ Linux Containers by
OpenVZ Linux ContainersOpenVZ Linux Containers
OpenVZ Linux ContainersKirill Kolyshkin
4.5K views28 slides
BSD for Linux Users by
BSD for Linux UsersBSD for Linux Users
BSD for Linux UsersDru Lavigne
1.1K views31 slides

More Related Content

What's hot

[DockerCon 2019] Hardening Docker daemon with Rootless mode by
[DockerCon 2019] Hardening Docker daemon with Rootless mode[DockerCon 2019] Hardening Docker daemon with Rootless mode
[DockerCon 2019] Hardening Docker daemon with Rootless modeAkihiro Suda
34.1K views54 slides
Rootless Kubernetes by
Rootless KubernetesRootless Kubernetes
Rootless KubernetesAkihiro Suda
3K views23 slides
Linux Virtualization by
Linux VirtualizationLinux Virtualization
Linux VirtualizationOpenVZ
514 views27 slides
BSD for Linux Users by
BSD for Linux UsersBSD for Linux Users
BSD for Linux UsersDru Lavigne
781 views45 slides
Docker_AGH_v0.1.3 by
Docker_AGH_v0.1.3Docker_AGH_v0.1.3
Docker_AGH_v0.1.3Witold 'Ficio' Kopel
764 views31 slides
OpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBIT by
OpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBITOpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBIT
OpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBITOpenNebula Project
1.1K views34 slides

What's hot(20)

[DockerCon 2019] Hardening Docker daemon with Rootless mode by Akihiro Suda
[DockerCon 2019] Hardening Docker daemon with Rootless mode[DockerCon 2019] Hardening Docker daemon with Rootless mode
[DockerCon 2019] Hardening Docker daemon with Rootless mode
Akihiro Suda34.1K views
Linux Virtualization by OpenVZ
Linux VirtualizationLinux Virtualization
Linux Virtualization
OpenVZ514 views
BSD for Linux Users by Dru Lavigne
BSD for Linux UsersBSD for Linux Users
BSD for Linux Users
Dru Lavigne781 views
OpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBIT by OpenNebula Project
OpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBITOpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBIT
OpenNebulaConf 2016 - The DRBD SDS for OpenNebula by Philipp Reisner, LINBIT
OpenNebula Project1.1K views
Linux containers – next gen virtualization for cloud (atl summit) ar4 3 - copy by Boden Russell
Linux containers – next gen virtualization for cloud (atl summit) ar4 3 - copyLinux containers – next gen virtualization for cloud (atl summit) ar4 3 - copy
Linux containers – next gen virtualization for cloud (atl summit) ar4 3 - copy
Boden Russell4K views
Linux Container Brief for IEEE WG P2302 by Boden Russell
Linux Container Brief for IEEE WG P2302Linux Container Brief for IEEE WG P2302
Linux Container Brief for IEEE WG P2302
Boden Russell3.6K views
OpenNebula Conf 2014 | Using Ceph to provide scalable storage for OpenNebula ... by NETWAYS
OpenNebula Conf 2014 | Using Ceph to provide scalable storage for OpenNebula ...OpenNebula Conf 2014 | Using Ceph to provide scalable storage for OpenNebula ...
OpenNebula Conf 2014 | Using Ceph to provide scalable storage for OpenNebula ...
NETWAYS1.1K views
Virtualization which isn't: LXC (Linux Containers) by Dobrica Pavlinušić
Virtualization which isn't: LXC (Linux Containers)Virtualization which isn't: LXC (Linux Containers)
Virtualization which isn't: LXC (Linux Containers)
Rootless Containers by Akihiro Suda
Rootless ContainersRootless Containers
Rootless Containers
Akihiro Suda23.1K views
SELF 2010: BSD For Linux Users by Dru Lavigne
SELF 2010: BSD For Linux UsersSELF 2010: BSD For Linux Users
SELF 2010: BSD For Linux Users
Dru Lavigne655 views
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013 by Gluster.org
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Integrating gluster fs,_qemu_and_ovirt-vijay_bellur-linuxcon_eu_2013
Gluster.org401 views
Lxc – next gen virtualization for cloud intro (cloudexpo) by Boden Russell
Lxc – next gen virtualization for cloud   intro (cloudexpo)Lxc – next gen virtualization for cloud   intro (cloudexpo)
Lxc – next gen virtualization for cloud intro (cloudexpo)
Boden Russell19.8K views
Lavigne bsdmag-jan13 by Dru Lavigne
Lavigne bsdmag-jan13Lavigne bsdmag-jan13
Lavigne bsdmag-jan13
Dru Lavigne1.3K views
TechDay - Toronto 2016 - Hyperconvergence and OpenNebula by OpenNebula Project
TechDay - Toronto 2016 - Hyperconvergence and OpenNebulaTechDay - Toronto 2016 - Hyperconvergence and OpenNebula
TechDay - Toronto 2016 - Hyperconvergence and OpenNebula
GlusterFS Update and OpenStack Integration by Etsuji Nakai
GlusterFS Update and OpenStack IntegrationGlusterFS Update and OpenStack Integration
GlusterFS Update and OpenStack Integration
Etsuji Nakai5.9K views
Rootless Containers & Unresolved issues by Akihiro Suda
Rootless Containers & Unresolved issuesRootless Containers & Unresolved issues
Rootless Containers & Unresolved issues
Akihiro Suda1.4K views
The State of Rootless Containers by Akihiro Suda
The State of Rootless ContainersThe State of Rootless Containers
The State of Rootless Containers
Akihiro Suda2.5K views
[KubeCon NA 2020] containerd: Rootless Containers 2020 by Akihiro Suda
[KubeCon NA 2020] containerd: Rootless Containers 2020[KubeCon NA 2020] containerd: Rootless Containers 2020
[KubeCon NA 2020] containerd: Rootless Containers 2020
Akihiro Suda1.1K views

Similar to pkgsrc on MirBSD

2014 11-05 hpcac-kniep_christian_dockermpi by
2014 11-05 hpcac-kniep_christian_dockermpi2014 11-05 hpcac-kniep_christian_dockermpi
2014 11-05 hpcac-kniep_christian_dockermpiQNIB Solutions
1.3K views26 slides
Leveraging docker for hadoop build automation and big data stack provisioning by
Leveraging docker for hadoop build automation and big data stack provisioningLeveraging docker for hadoop build automation and big data stack provisioning
Leveraging docker for hadoop build automation and big data stack provisioningEvans Ye
863 views63 slides
Leveraging Docker for Hadoop build automation and Big Data stack provisioning by
Leveraging Docker for Hadoop build automation and Big Data stack provisioningLeveraging Docker for Hadoop build automation and Big Data stack provisioning
Leveraging Docker for Hadoop build automation and Big Data stack provisioningDataWorks Summit
1.4K views63 slides
Introducing Container Technology to TSUBAME3.0 Supercomputer by
Introducing Container Technology to TSUBAME3.0 SupercomputerIntroducing Container Technology to TSUBAME3.0 Supercomputer
Introducing Container Technology to TSUBAME3.0 SupercomputerAkihiro Nomura
313 views22 slides
Docker for Mac and Windows: The Insider's Guide by Justin Cormack by
Docker for Mac and Windows: The Insider's Guide by Justin CormackDocker for Mac and Windows: The Insider's Guide by Justin Cormack
Docker for Mac and Windows: The Insider's Guide by Justin CormackDocker, Inc.
19.4K views44 slides
Docker on a Diet by
Docker on a DietDocker on a Diet
Docker on a DietKuan Yen Heng
4.7K views28 slides

Similar to pkgsrc on MirBSD(20)

2014 11-05 hpcac-kniep_christian_dockermpi by QNIB Solutions
2014 11-05 hpcac-kniep_christian_dockermpi2014 11-05 hpcac-kniep_christian_dockermpi
2014 11-05 hpcac-kniep_christian_dockermpi
QNIB Solutions1.3K views
Leveraging docker for hadoop build automation and big data stack provisioning by Evans Ye
Leveraging docker for hadoop build automation and big data stack provisioningLeveraging docker for hadoop build automation and big data stack provisioning
Leveraging docker for hadoop build automation and big data stack provisioning
Evans Ye863 views
Leveraging Docker for Hadoop build automation and Big Data stack provisioning by DataWorks Summit
Leveraging Docker for Hadoop build automation and Big Data stack provisioningLeveraging Docker for Hadoop build automation and Big Data stack provisioning
Leveraging Docker for Hadoop build automation and Big Data stack provisioning
DataWorks Summit1.4K views
Introducing Container Technology to TSUBAME3.0 Supercomputer by Akihiro Nomura
Introducing Container Technology to TSUBAME3.0 SupercomputerIntroducing Container Technology to TSUBAME3.0 Supercomputer
Introducing Container Technology to TSUBAME3.0 Supercomputer
Akihiro Nomura313 views
Docker for Mac and Windows: The Insider's Guide by Justin Cormack by Docker, Inc.
Docker for Mac and Windows: The Insider's Guide by Justin CormackDocker for Mac and Windows: The Insider's Guide by Justin Cormack
Docker for Mac and Windows: The Insider's Guide by Justin Cormack
Docker, Inc.19.4K views
Introduction to DPDK by Kernel TLV
Introduction to DPDKIntroduction to DPDK
Introduction to DPDK
Kernel TLV5.9K views
The NetBSD package Collection - a.k.a pkgsrc by Akio OBATA
The NetBSD package Collection - a.k.a pkgsrcThe NetBSD package Collection - a.k.a pkgsrc
The NetBSD package Collection - a.k.a pkgsrc
Akio OBATA255 views
Introduction to Docker at the Azure Meet-up in New York by Jérôme Petazzoni
Introduction to Docker at the Azure Meet-up in New YorkIntroduction to Docker at the Azure Meet-up in New York
Introduction to Docker at the Azure Meet-up in New York
Jérôme Petazzoni3.9K views
Functional Operations (Functional Programming at Comcast Labs Connect) by Susan Potter
Functional Operations (Functional Programming at Comcast Labs Connect)Functional Operations (Functional Programming at Comcast Labs Connect)
Functional Operations (Functional Programming at Comcast Labs Connect)
Susan Potter385 views
WSO2Con USA 2015: Revolutionizing WSO2 PaaS with Kubernetes & App Factory by WSO2
WSO2Con USA 2015: Revolutionizing WSO2 PaaS with Kubernetes & App FactoryWSO2Con USA 2015: Revolutionizing WSO2 PaaS with Kubernetes & App Factory
WSO2Con USA 2015: Revolutionizing WSO2 PaaS with Kubernetes & App Factory
WSO2889 views
Up and Running with Freebsd by GLC Networks
Up and Running with FreebsdUp and Running with Freebsd
Up and Running with Freebsd
GLC Networks77 views
CD in kubernetes using helm and ksonnet. Stas Kolenkin by DataArt
CD in kubernetes using helm and ksonnet. Stas KolenkinCD in kubernetes using helm and ksonnet. Stas Kolenkin
CD in kubernetes using helm and ksonnet. Stas Kolenkin
DataArt568 views
Navigating container technology for enhanced security by Niklas Saari by Metosin Oy
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas Saari
Metosin Oy14 views
Automating Mendix application deployments with Nix by Sander van der Burg
Automating Mendix application deployments with NixAutomating Mendix application deployments with Nix
Automating Mendix application deployments with Nix
Sander van der Burg2.4K views
Engage 2020 - Kubernetes for HCL Connections Component Pack - Build or Buy? by panagenda
Engage 2020 - Kubernetes for HCL Connections Component Pack - Build or Buy?Engage 2020 - Kubernetes for HCL Connections Component Pack - Build or Buy?
Engage 2020 - Kubernetes for HCL Connections Component Pack - Build or Buy?
panagenda1.1K views
Operating PostgreSQL at Scale with Kubernetes by Jonathan Katz
Operating PostgreSQL at Scale with KubernetesOperating PostgreSQL at Scale with Kubernetes
Operating PostgreSQL at Scale with Kubernetes
Jonathan Katz2.7K views
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDK by Marco Cavallini
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDKYocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDK
Yocto Project Dev Day Prague 2017 - Advanced class - Kernel modules with eSDK
Marco Cavallini304 views
SPACK: A Package Manager for Supercomputers, Linux, and MacOS by inside-BigData.com
SPACK: A Package Manager for Supercomputers, Linux, and MacOSSPACK: A Package Manager for Supercomputers, Linux, and MacOS
SPACK: A Package Manager for Supercomputers, Linux, and MacOS
inside-BigData.com986 views
Kubernetes for HCL Connections Component Pack - Build or Buy? by Martin Schmidt
Kubernetes for HCL Connections Component Pack - Build or Buy?Kubernetes for HCL Connections Component Pack - Build or Buy?
Kubernetes for HCL Connections Component Pack - Build or Buy?
Martin Schmidt43 views

Recently uploaded

Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...The Digital Insurer
40 views52 slides
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates by
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesShapeBlue
178 views15 slides
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...ShapeBlue
86 views25 slides
Uni Systems for Power Platform.pptx by
Uni Systems for Power Platform.pptxUni Systems for Power Platform.pptx
Uni Systems for Power Platform.pptxUni Systems S.M.S.A.
60 views21 slides
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...James Anderson
142 views32 slides
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... by
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...ShapeBlue
128 views20 slides

Recently uploaded(20)

Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...Webinar : Desperately Seeking Transformation - Part 2:  Insights from leading...
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates by ShapeBlue
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates
ShapeBlue178 views
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue86 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson142 views
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... by ShapeBlue
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
ShapeBlue128 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker50 views
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue52 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T by ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue81 views
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... by ShapeBlue
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
ShapeBlue93 views
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... by ShapeBlue
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
ShapeBlue74 views
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue by ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
ShapeBlue134 views
"Surviving highload with Node.js", Andrii Shumada by Fwdays
"Surviving highload with Node.js", Andrii Shumada "Surviving highload with Node.js", Andrii Shumada
"Surviving highload with Node.js", Andrii Shumada
Fwdays49 views
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by ShapeBlue
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
ShapeBlue105 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue68 views
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ by ShapeBlue
Confidence in CloudStack - Aron Wagner, Nathan Gleason - AmericConfidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
ShapeBlue58 views
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue by ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
ShapeBlue191 views
Digital Personal Data Protection (DPDP) Practical Approach For CISOs by Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash103 views
Future of AR - Facebook Presentation by Rob McCarty
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
Rob McCarty54 views
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue63 views

pkgsrc on MirBSD

  • 1. pkgsrc on MirBSD Benny Siegert ‹bsiegert@{mir,net}bsd.org› FOSDEM 2012
  • 2. Contents 1. Introduction a. MirBSD b. What is pkgsrc? 2. Comparison pkgsrc MirPorts 3. MirBSD as new pkgsrc platform 4. Conclusion 2
  • 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. 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. 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. 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. 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. 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. Back to MirBSD … 10
  • 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. Terminology differences MirPorts pkgsrc port package package binary package package flavour package option “faking” DESTDIR support 12
  • 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. How did we get MirBSD support? 14
  • 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. (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. Becoming a NetBSD developer 1. 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. 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. 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
  • 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. 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