On Wed, 1 Oct 2025 at 10:47, Brian Inglis via Cygwin-apps wrote:
>
> Hi folks,
>
> I have to bisect a package config failure on a small local clone.
> There are only about 80 commits, and checkout and get prep make only take a
> minute until failure.
>
> But running with SRC_URI=. or GIT_URI=. does not work!
>
> Anyone handled such a task or have advice on doing so?
I wouldn't expect `GIT_URI=.` to work unless the cygport file is in
the root of the source directory you're working in, and even then I'm
not sure it wouldn't cause problems.
I'm currently doing something similar with the git codebase itself.
The changes I needed to make to the .cygport file were thus:
1. Stop setting SRC_URI and SRC_DIR
2. Add the following:
GIT_URI=/home/adam/git
GIT_REV="$(git -C /home/adam/git rev-parse HEAD)"
inherit git
3. Optionally change the definition of VERSION; for git, I've set it
to the following, which mimics the behaviour when building from git
itself.
VERSION="$(git -C /home/adam/git describe | sed 's/-/./')
I haven't (yet) tried making this work with `git bisect run`, but I'd
expect that to be straightforward once you have the builds working or
failing as desired when running the cygport commands manually.
> It only runs autogen.sh aclocal && autoheader && automake && autoconf: cygport
> autoreconfig does the same, so can I skip that?
I don't see why not, although it would obviously depend on the
specific problem you're seeing. If the cygport script is simple
enough, it might be easier to bisect by just running the build
commands directly rather than using cygport.
HTH
Adam