RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sat Jan 29, 2022 1:43 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Build your own ports
PostPosted: Fri Feb 12, 2016 1:30 am 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Want to build your own software from the ports tree? It's incredibly simple!
1. Checkout the LiteBSD-Ports git repo:
Code:
$ cd $BSDSRC && git checkout https://github.com/ibara/LiteBSD-Ports ports

2. cd into the port you want to build. For this example, I want to build GNU make (aka gmake). It lives in the devel/ subdirectory.
Code:
$ cd ports/devel/gmake

3. To create an opkg-compatible archive, run
Code:
$ bmake package

4. And that's it. You can choose to either transfer the binaries directly (they'll be in your current directory) or the opkg archive (that will be in work/)

(someone making this sticky would be appreciated)
(Edit 2016-02-14: streamline the checkout step and switch syntax now that opkg is the only packaging system)

_________________
@__briancallahan on Twitter


Last edited by ibara on Sun Feb 14, 2016 9:46 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Build your own ports
PostPosted: Fri Feb 12, 2016 10:44 am 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
You can combine 1 and 1a together into one action:

Code:
$ cd $BSDSRC && git checkout https://github.com/ibara/LiteBSD-Ports ports

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
 Post subject: Re: Build your own ports
PostPosted: Fri Feb 12, 2016 9:27 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Brian,

Just tried: git checkout https://github.com/ibara/LiteBSD-Ports/

fatal: Not a git repository (or any of the parent directories): .git

No go.

Then tried git clone https://github.com/ibara/LiteBSD-Ports

Cloning into 'LiteBSD-Ports'...

fatal: unable to access 'https://github.com/ibara/LiteBSD-Ports;': Problem with the SSL CA dert (path? access rights?)

Sounds like it might be a github permissions problem?

Lots of fun :).

Wiz


Top
 Profile  
 
 Post subject: Re: Build your own ports
PostPosted: Fri Feb 12, 2016 9:30 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Sounds like you hit a snag with GitHub. That's not something I can fix.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
 Post subject: Re: Build your own ports
PostPosted: Fri Feb 12, 2016 9:42 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Works fine for me (the version without / on the end of course, because with a / on the end it's an error).

Must be something wrong with your git installation. Maybe you should make sure you're on the latest version and you have all your CA certificates up to date.

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission