the netbsd package collection - a.k.a pkgsrc

19
The NetBSD package Collection a.k.a pkgsrc OBATA Akio ([email protected]) Nov. 11, 2011 Kansai OpenSource 2011

Upload: akio-obata

Post on 22-Mar-2017

142 views

Category:

Presentations & Public Speaking


9 download

TRANSCRIPT

The NetBSD package Collection

a.k.a pkgsrc

OBATA Akio ([email protected])Nov. 11, 2011

Kansai OpenSource 2011

What is pkgsrc?

Package once, use anywhere!

Easy to build & install additional software

Not only for NetBSD, cross platform

Quarterly Stable release (2011Q3)

Not only from source, binary pakcage

01 18

"What is pkgsrc?" story

Want to use FreeBSD ports like tool

To where additional packages should be installed?

let to install them to /usr/pkg.

then its sources are in /usr/pkg/src?

let to put in /usr/pkgsrc.

02 18

Basic usage

get source tree - whole tree

bootstrap (other than NetBSD)

cd CATEGORY/PKG && make installfetch & configure & build & install

03 18

Additioanl usage

selectable prefix (ex /opt/pkg)

unprivileged usage (into ${HOME}/pkg)

04 18

Advanced usage

Package management tools are also part of packages.

pkg_rolling-replace

pkg_comp

pbulk / distbb

pkgin

05 18

Supported Platforms

1997 NetBSD

1999 Solaris, Linux

2001 Darwin

2002 FreeBSD, OpenBSD, IRIX

2003 BSD/OS, AIX

2004 Interix, DragonFly BSD, OSF/1

2007 HP-UX, QNX

2010 Haiku

2011 MirOS BSD

(UnixWare, FreeMiNT)06 18

pkgsrc Tier system?

Nothing!

maybe broken on some Supported platforms

even for stable branch

07 18

DragonFly BSD

fork of FreeBSD 4

switch from FreeBSD ports

08 18

MirOS BSD (aka MirBSD)

fork of OpenBSD

gave up maintain own MirPorts

partially supported

09 18

Illumos/Openindiana

fork of OpenSolaris

ipp (Illumos pkgsrc project)

10 18

Minix3 (will be soon)

GSoC2010 (for Minix)...finished?

GSoC2011 again!Many PRs before 2011Q2 cut

Still need improvements of basecompiler (ack => gcc?)

libc from NetBSD

and many tools

Start to merge

11 18

Other platforms

UWIN/MinGW?

A/UX?

Cygwin?

12 18

Supported compiler

clang Clang C and Objective-C compilergcc GNUpcc Portable C Compiler

13 18

Supported compiler(2)

f2c Fortran 77 to C compiler (chainable)ccache compiler cache (chainable)distcc distributed C/C++ (chainable)

14 18

Suppported Compiler

ccc Compaq C Compilers (Tru64) /icc Intel C++ Compiler (Linux) /ido SGI IRIS Development Option cc (IRIX 5) /hp HP-UX C/aC++ compilers /mipspro Silicon Graphics, Inc. MIPSpro (n32/n64) /mipspro-ucode Silicon Graphics, Inc. MIPSpro (o32) /sunpro Sun Microsystems, Inc. WorkShip/Forte/Sun ONE Studio /xlc IBM's XL C/C++ compiler suite (Darwin/MacOSX)

15 18

Supported binary package formats

native- Origin from FreeBSD ports, but not compatible.

rpm (wip)

deb (wip)

FreeBSD ports (wip)

16 18

Supported fetch commands

ftp

fetch

wget

curl

(and custom settings)

17 18

pkgsrc Internals

tools

wrapper

buildlink

18 18