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 30th August 2018
octohex octohex is offline
New User
 
Join Date: Aug 2018
Posts: 3
Default building m:tier-like -stable package updates

Hello daemonforums.org, hello fellow OpenBSD users!

I am currently in the process of replacing some linux-bases machines with OpenBSD. On some I can neither run -current, compile ports directly, or use m:tiers service. This leaves me with building my own -stable packages.

I am in the process of familiarizing myself with dpb and proot and able to build updates for a subset of packages I provide .

However, I wonder how to keep track of which ports need updating and how to build different subsets of packages for different hosts in a semi-automated fashion.

One way I could think about is to build the whole tree (is that even possible?) and then just sequentially pull cvs and rebuild, but man dpb even talks about
Code:
dpb -R
failing in certain situations.

In the end i am looking for a m:tier-like solution i can run in an closed environment.

I would be grateful for any hints or tips, thanks.
Reply With Quote
  #2   (View Single Post)  
Old 30th August 2018
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Provided you're diligent in keeping your -stable ports tree up to date with CVS, are you looking for something like PORTSDIR/infrastructure/bin/pkg_outdated?
Reply With Quote
  #3   (View Single Post)  
Old 30th August 2018
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

pkg_outdated compares to installed ports. So your build machine would need all the ports you use to be installed.

My production systems use few enough ports that I just monitor cvs for changes and rebuild when something I use or depend on changes.

Use proot(1) to keep the ports builds isolated from the build machine's installed packages.
Reply With Quote
  #4   (View Single Post)  
Old 31st August 2018
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

At 6.3, the tool is out-of-date(1), found in /usr/ports/infrastructure/bin. At -current, this was renamed to pkg_outdated(1), as mentioned above.
Reply With Quote
  #5   (View Single Post)  
Old 2nd September 2018
octohex octohex is offline
New User
 
Join Date: Aug 2018
Posts: 3
Default

Thanks for your replies.

Quote:
Originally Posted by TronDD View Post
pkg_outdated compares to installed ports. So your build machine would need all the ports you use to be installed.

My production systems use few enough ports that I just monitor cvs for changes and rebuild when something I use or depend on changes.

Use proot(1) to keep the ports builds isolated from the build machine's installed packages.
I see. Is there some standard way to monitor cvs-changes beside manual looking at / parsing cvs -qn up ..?
I also wonder if dpb is able to use pkg_add to fetch build-dependencies - FETCH_PACKAGES=yes in mk.conf seems to have no effect.

Quote:
Originally Posted by jggimi View Post
At 6.3, the tool is out-of-date(1), found in /usr/ports/infrastructure/bin. At -current, this was renamed to pkg_outdated(1), as mentioned above.
Thanks, but the build-machine itself will not have any packages installed.
Reply With Quote
  #6   (View Single Post)  
Old 2nd September 2018
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

Quote:
Originally Posted by octohex View Post
Thanks for your replies.



I see. Is there some standard way to monitor cvs-changes beside manual looking at / parsing cvs -qn up ..?
I also wonder if dpb is able to use pkg_add to fetch build-dependencies - FETCH_PACKAGES=yes in mk.conf seems to have no effect.
You also have to set PKG_PATH, it doesn't work with just /etc/installurl. Not sure if dpb uses FETCH_PACKAGES, though.

I just run 'cvs -qn up' in /etc/daily.local and manually look at it. I suppose you could script a build trigger from there but tracking all the transient dependencies might be tedious.

dpb won't build a version that is already built, so you could probably so just 'cvs up' and run dpb every day. Let 'pkg_add -n' on the clients tell you when there is a new package. I don't do this only because I didn't want to script cleaning up previous versions of packages. I just blow everything away and rebuild. I sign, too so need to enter a passphrase anyway.
Reply With Quote
  #7   (View Single Post)  
Old 3rd September 2018
octohex octohex is offline
New User
 
Join Date: Aug 2018
Posts: 3
Default

Quote:
Originally Posted by TronDD View Post
You also have to set PKG_PATH, it doesn't work with just /etc/installurl. Not sure if dpb uses FETCH_PACKAGES, though.
I did, and actualy tried to use pkg_add in the chroot which works. Seems like dpb just does not support FETCH_PACKAGES at the moment (tweak_args in infrastructure/lib/DPB/Job/Port.pm seems to be responsible for this)
Reply With Quote
  #8   (View Single Post)  
Old 20th November 2018
nukey nukey is offline
New User
 
Join Date: Oct 2017
Posts: 3
Default

FETCH_PACKAGES=Yes works with or without PKG_PATH.

When specified manually while building a port, it works (for example):

Code:
make FETCH_PACKAGES=Yes install
However, when specified in /etc/mk.conf or as an environment variable, it has no effect.

This seems like a bug, since 'man ports' implies that FETCH_PACKAGES should work in those contexts.
Reply With Quote
Reply

Thread Tools
Display Modes

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
OpenBSD Binary updates for -stable are in development jggimi News 2 13th September 2016 01:57 AM
tracking -stable compiling only updates Funkygoby OpenBSD Installation and Upgrading 3 16th January 2016 08:31 PM
M:tier Updates - Positive Experience shep OpenBSD General 1 16th March 2014 03:13 PM
*** Error code 1 building OpenBSD 5.1-stable from source comet--berkeley OpenBSD Installation and Upgrading 12 19th May 2012 02:18 AM
stable branch - ports security updates albator OpenBSD Packages and Ports 22 5th September 2011 01:58 AM


All times are GMT. The time now is 03:26 PM.


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