DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th May 2019
mafkees1233 mafkees1233 is offline
Eager student
 
Join Date: Apr 2019
Location: Cove, Scotland
Posts: 47
Default Building from source

Are there any benefits from compiling the kernel, userland and xenocara from source over using the provided binaries?
__________________
Nothing is more boring than a working computer.
Reply With Quote
  #2   (View Single Post)  
Old 8th May 2019
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

Short answer: No. And the project discourages building from source.


The long answer: Depends on what you want. Building -stable fixes? Customizing something? Doing kernel or application development? In any case, you need to know what you're doing.
Reply With Quote
  #3   (View Single Post)  
Old 8th May 2019
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by mafkees1233 View Post
Are there any benefits from compiling the kernel, userland and xenocara from source over using the provided binaries?
Yes, should you like to become an expert.
Quote:
Originally Posted by https://www.openbsd.org/faq/current.html
compiling your own source code is discouraged for everyone except for experts
If your goal is to add new features or fix bugs, compiling the source code is a requirement. And thus you will become an expert.
Reply With Quote
  #4   (View Single Post)  
Old 9th May 2019
mafkees1233 mafkees1233 is offline
Eager student
 
Join Date: Apr 2019
Location: Cove, Scotland
Posts: 47
Default

Compiled everything from source yesterday and it went great. Can't say there are any benefits though
__________________
Nothing is more boring than a working computer.
Reply With Quote
  #5   (View Single Post)  
Old 10th May 2019
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Were you looking to do something expert, like fix a bug or add a new feature? There isn't any benefit otherwise.
Reply With Quote
  #6   (View Single Post)  
Old 10th May 2019
mafkees1233 mafkees1233 is offline
Eager student
 
Join Date: Apr 2019
Location: Cove, Scotland
Posts: 47
Default

I thought that maybe it would be more specific to my hardware if I compiled it but I probably ended up with the same binaries openbsd provides
__________________
Nothing is more boring than a working computer.
Reply With Quote
  #7   (View Single Post)  
Old 10th May 2019
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by mafkees1233 View Post
I thought that maybe it would be more specific to my hardware if I compiled it but I probably ended up with the same binaries openbsd provides
No, “probably”. The binaries created are exactly the same binaries as what the project provides.
Reply With Quote
  #8   (View Single Post)  
Old 10th May 2019
mafkees1233 mafkees1233 is offline
Eager student
 
Join Date: Apr 2019
Location: Cove, Scotland
Posts: 47
Default

I compiled the 'stable' branch though, so at least I got the latest bugfixes
Today I updated the source from cvs and there were loads of updates but syspatch only shows one
__________________
Nothing is more boring than a working computer.
Reply With Quote
  #9   (View Single Post)  
Old 10th May 2019
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

About the only building from source I do is packages, unless I'm working on some sort of debugging. The -stable ports tree gets updates as third party application projects address and fix vulnerabilities. But the project does not have the resources to build and maintain -stable packages.

Before syspatch(8), I used to maintain a fleet of -stable servers. I haven't needed to in modern times, even though sometimes there are -stable patches which don't make it to Errata status.
Reply With Quote
Old 10th May 2019
mafkees1233 mafkees1233 is offline
Eager student
 
Join Date: Apr 2019
Location: Cove, Scotland
Posts: 47
Default

My first attempt was to build everything from source, starting with the kernel, then src and xenocara and that went great. But when I tried building ports it was unable to download some software because certain servers were down and in one case the package it tried to download failed the checksum and I couldn't find it myself, so that was a bit of a disappointment. So now I build stable but use the packages
__________________
Nothing is more boring than a working computer.
Reply With Quote
Old 10th May 2019
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

Quote:
Originally Posted by mafkees1233 View Post
in one case the package it tried to download failed the checksum and I couldn't find it myself
Yeah, there is at least one case (and I forget which package) where upstream "re-rolled" the tarball* after the OpenBSD 6.5 release. -current had the updated checksum but I don't believe it ever made it to -stable.


*Note to release engineers: NEVER do this!!!
Reply With Quote
Old 10th May 2019
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by mafkees1233 View Post
I thought that maybe it would be more specific to my hardware if I compiled it but I probably ended up with the same binaries openbsd provides
If you want to do something ridiculous like that, create a /etc/mk.conf with the following:
Code:
CFLAGS = -O3 -pipe -march=native
LDFLAGS = -Wl,-O3
Add other CFLAGS and LDFLAGS as you see fit.
Note that you are 100% on your own if you do this. If stuff breaks, oh well.
Reply With Quote
Old 10th May 2019
mafkees1233 mafkees1233 is offline
Eager student
 
Join Date: Apr 2019
Location: Cove, Scotland
Posts: 47
Default

Quote:
Originally Posted by ibara View Post
If you want to do something ridiculous like that, create a /etc/mk.conf with the following:
Code:
CFLAGS = -O3 -pipe -march=native
LDFLAGS = -Wl,-O3
Add other CFLAGS and LDFLAGS as you see fit.
Note that you are 100% on your own if you do this. If stuff breaks, oh well.
I've ran gentoo for a long time, messing with cflags is a bad thing.
I already reinstalled openbsd wayyyy too many times
__________________
Nothing is more boring than a working computer.
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
Building the System from Source hanzer OpenBSD Installation and Upgrading 10 28th October 2018 09:12 PM
Building a 10.2 system from source hanzer FreeBSD Installation and Upgrading 1 1st September 2015 01:36 AM
Other Open-source typeface “Hack” brings design to source code J65nko News 1 31st August 2015 03:06 PM
Building OpenBSD userland from source bceverly OpenBSD General 6 6th April 2015 07:26 PM
*** Error code 1 building OpenBSD 5.1-stable from source comet--berkeley OpenBSD Installation and Upgrading 12 19th May 2012 02:18 AM


All times are GMT. The time now is 09:57 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