Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

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

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 12th June 2019
brudan brudan is offline
Fdisk Soldier
Join Date: Dec 2018
Posts: 82
Default how to recompile only changed part of port

I'm making some tweaks to a port (Xfe file manager) and would like to know if it is possible, after building the package, to make additional tweaks to the source code, recompile only the changed files, and remake the package to include the changes?

Here is my workflow so far:

1. Install Xfe's build dependencies:
# doas pkg_add intltool gmake

2. Get source code and apply the porter's patches:
$ cd /usr/ports/x11/xfe; make patch

3. Do some hacking on the source code by manually editing some files:
$ cd /usr/ports/pobj/xfe-*/xfe-*
hack, hack, hack

4. Build the tweaked package:
$ cd /usr/ports/x11/xfe; make package
Say I need to repeat step 3 to add an additional tweak. If I then try...
$ cd /usr/ports/x11/xfe; make repackage
...the package is remade but nothing is recompiled, so my additional tweak gets ignored.

If, on the other hand, I do this...
$ cd /usr/ports/x11/xfe; make clean; make repackage
...then the whole port is recompiled from scratch, which seems like overkill if, for example, I only tweaked one line in one source code file.

So hence my question: Is it possible to repackage after recompiling only those source code files that I've edited since last building the package?

Last edited by brudan; 12th June 2019 at 06:45 PM.
Reply With Quote

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
Default route has changed thefronny OpenBSD Security 2 30th November 2018 03:39 PM
Can the default python be changed to a newer version? Mr-Biscuit FreeBSD General 5 7th April 2011 05:33 AM
pf.conf examples (part 3) roundkat OpenBSD Security 0 17th January 2010 01:29 PM
pf.conf examples (part 2) lumiwa OpenBSD Security 3 13th January 2010 05:07 AM
shell: how to take part of the line... graudeejs Programming 8 6th September 2008 11:13 PM

All times are GMT. The time now is 04:53 PM.

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