On 11/03/2022 21:54, Adam Dinwoodie wrote:

- You're changing the shebang with both a patch file and with a line in
   src_compile; you don't need to do both!  I suspect this is an artefact
   of how Cygport packages the source files, but AIUI the canonical way
   to do this sort of patching with Cygport is to drop the sed line from
   your .cygport file and just keep the patch file that gets generated.

Yeah the patch file was automatically generated when I ran `cygport
all` and I wasn't sure what to do with it. To me it seems silly to
have a patch just to change the shebang line when `sed` works fine.
I'll try removing `sed` to see what happens.

Cygport automatically generates patches when it detects a difference
between the "src" and "origsrc" directories.  You're changing something
in "src", so the patch gets generated.  The idea is that you can adjust
things in the src directory by hand, then when you run cygport it'll
automatically store the diffs so you never need to make the same changes
again.

You can use DIFF_EXCLUDES to ignore that file for patch generation, if it's being modified in the src_compile(), like this.

(which seems to be now present in the cygport when I looked it over)

Reply via email to