Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2018 19:28:14 -0300
From:      Helen Koike <helen.koike@collabora.com>
To:        freebsd-ports@freebsd.org
Subject:   workflow question: how do you maintain the port in sync with upstream?
Message-ID:  <05457c2b-b85c-a929-20e7-38ff1b2899d6@collabora.com>

next in thread | raw e-mail | index | archive | help
Hello,

I am new to the community, I am maintaining two packages and I would
like to check with you if there is a better workflow to do this.

The upstream project of the port I am maintaining is held in github, and
I also have patches in the /usr/ports/sysutils/myport/file/ folder.

So I keep a fork of the upstream project with a branch containing a
commit with the patches from the /usr/ports/sysutils/myport/file/.

Every time I need to update the port to a newer version, I do a git pull
in this branch, then I run a script [1] to re-generate the patches in
the /usr/ports/sysutils/myport/file/

This script basically generates a file.orig of all modified files in
git, then copy the modified file to WORK_DIR, then run make makepatch.


for file in ${CHANGES}; do
	mv ${WORK_DIR}/${file} ${WORK_DIR}/${file}.orig
	cp ${PROJECT_PATH}/${file} ${WORK_DIR}/${file}
done
make makepatch


I would like to know if there is a better way to do this (some tool that
I am not aware of?).

[1]
https://github.com/helen-fornazier/bsd-update-patches/blob/master/freebsd-gce-update.sh

Thanks
Helen




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?05457c2b-b85c-a929-20e7-38ff1b2899d6>