DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th December 2015
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default Relation between pkgsrc and OpenBSD's ports tree

Hello,
I am curious about cooperation (or lack of it) between NetBSD's pkgsrc and OpenBSD's ports.
On the page about pkgsrc I see OpenBSD as supported platform by pkgsrc. However pkgsrc for OpenBSD has more ports (about 11 thousands) than OpenBSD's packages tree (around 8 thousands).
Is it common to take port from pkgsrc, test it, make some patches and add to OpenBSD's ports tree?
Reply With Quote
  #2   (View Single Post)  
Old 13th December 2015
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,319
Default

Quote:
Originally Posted by e1-531g View Post
I am curious about cooperation (or lack of it) between NetBSD's pkgsrc and OpenBSD's ports.
NetBSD's pkgsrc project is done solely by the NetBSD project. As far as I know, no OpenBSD port developer is involved.
Quote:
On the page about pkgsrc I see OpenBSD as supported platform by pkgsrc. However pkgsrc for OpenBSD has more ports (about 11 thousands) than OpenBSD's packages tree (around 8 thousands).
The primary goal of the pkgsrc developers is to target NetBSD. I would not expect that they have the bandwidth to do extensive testing on OpenBSD, nor do they published on what version on OpenBSD any testing has been done.
Quote:
Is it common to take port from pkgsrc, test it, make some patches and add to OpenBSD's ports tree?
No. Whether the starting point is NetBSD's pkgsrc tree or source code found elsewhere, the responsibility of OpenBSD porters is to ensure that an application executes reliably with known behavior on OpenBSD.
Reply With Quote
  #3   (View Single Post)  
Old 13th December 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

There is no connection between NetBSD's pkgsrc and the OpenBSD ports tree. But pkgsrc has been a source of inspiration for the lead developer of pkg_* tools on OpenBSD, Marc Espie.

Here is an interview with Mr. Espie, which was conducted for the 10th anniversary of pkgsrc:

http://www.netbsd.org/gallery/10years.html#espie
Reply With Quote
  #4   (View Single Post)  
Old 13th December 2015
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

It is very instructive to browse the binary packages that are built by the two OS's:
OpenBSD 5.8i_386
and
NetBSD 7.0_i386


Look at libreoffice for each. A native build is missing in NetBSD - it never compiled on their latest release. libreoffice-bin runs under linux emulation. The package freeze for 2015Q4 starts in 10 days. Maybe a native libreoffice will build and run in 2015Q4?

7.0 also uses a vulnerable openssl. It has been fixed in OpenBSD, FreeBSD and Debian for nearly a week and does not even show in the latest NetBSD security advisory
Quote:
22 Oct 2015 - New Security Advisory: NetBSD-SA2015-009 TCP LAST_ACK state memory exhaustion (top)
One new security advisory was published:

NetBSD-SA2015-009 TCP LAST_ACK state memory exhaustion
You can find more information about them on the Security and NetBSD page.
Although both NetBSD and OpenBSD have a ports system, you need to look carefully at what you end up with.

Last edited by shep; 13th December 2015 at 03:35 AM.
Reply With Quote
  #5   (View Single Post)  
Old 13th December 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

Quote:
Originally Posted by e1-531g View Post
Hello,
I am curious about cooperation (or lack of it) between NetBSD's pkgsrc and OpenBSD's ports.
On the page about pkgsrc I see OpenBSD as supported platform by pkgsrc. However pkgsrc for OpenBSD has more ports (about 11 thousands) than OpenBSD's packages tree (around 8 thousands).
Is it common to take port from pkgsrc, test it, make some patches and add to OpenBSD's ports tree?
The FreeBSD ports collection is historically the oldest package management system on any BSDs and contemporary UNIX-like systems like Linux. pkgsrc has been forked from FreeBSD ports collection in 1997. OpenBSD package management system has been developed circa 2000 by Marck Espie using FreeBSD ports three as a starting point.

The main idea of OpenBSD packages system reproducibility. In another words package which you download from the OpenBSD server and the one you build on your machine should be identical. OpenBSD package system has few knobs known as package flavours. It is written is Perl (for safety reasons). All packages are build natively and cross compiling is big nono.

pkgsrc is designed with a grand idea of being the package management system not just for any platform but for any OS. How difficult it can be since NetBSD already "supports" 56 platforms? In reality pkgsrc is very configurable, somewhat OK documented and poorly tested. I was probably the last person to try pkgsrc on OpenBSD around the times of 4.4/4.5 and it failed miserably. The last official test has been done around the times of OpenBSD 3.3 which is almost 15 years ago. Currently pkgsrc is used default package system on Minix, SmartOS (Illuminous distro), and Draco Linux. DragonFly BSD really put heroic effort to adopt pkgsrc but after removing tons of bugs from pkgsrc were forced to switch to D-Ports which are essentially FreeBSD ports compiled on DragonFly. One of the things which pkgsrc/NetBSD seems to be doing well is being able to bootstrap and compile old binaries and run on the modern version of NetBSD. So if you need to compile binaries which you used around 1994 on your NetBSD 7.0 installation pkgsrc is you only chance. I know people who use 20 year old package binaries on NetBSD 7.0. However I hate the fact that relay so heavily on cross compiling. Aside of amd64 NetBSD is very poorly tested on native platforms.


Finally if there is a peace of software in pkgsrc but not in OpenBSD looking at the pkgsrc Makefile is very useful first step in trying to create OpenBSD port. Beyond that talking to pkgsrc developers is useful. pkgsrc as a package system on OpenBSD is useless.

Last edited by Oko; 14th December 2015 at 12:29 AM.
Reply With Quote
Reply

Tags
netbsd pkgsrc, openbsd packages tree, openbsd ports tree, pkgsrc


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Got my ports tree deleted after attempting ports update bsdnotbdsm FreeBSD Ports and Packages 2 18th May 2014 01:58 PM
OpenBSD ports tree locked ocicat News 1 19th July 2012 10:48 PM
TIP: How to clean NetBSD pkgsrc tree Astyanax Guides 0 5th March 2011 01:32 PM
OpenBSD OpenBSD ports tree soft lock J65nko News 0 14th January 2010 01:06 AM
GCC in src tree or in ports tree vigol FreeBSD Ports and Packages 2 6th December 2009 04:34 PM


All times are GMT. The time now is 08:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick