The problem is with the prebuilt package mechanism. In a normal pkg-repo, the sources to build the package are alongside the debian/ folder in a packaging branch. But, for a prebuilt package where we do not want the source code to be publicly available, we prebuild the binaries and host them somewhere else. Then, the watch file and uscan mechanism is used to fetch them. This is working fine now when the prebuilt artifacts are pulled from artifactory.
The issue now is that pulling prebuilt artifacts from another github repo doesn't work.
I see if the prebuilds are not from Artifactory, it is never fetched from uscan and marks has_watch as False and finally fallbacks to gbp-buildpackage directly.
Using the docker-pkg-build repo and tooling, we can reproduce the issue like so (where debb is alias for docker-pkg-build, see the repo https://github.com/qualcomm-linux/docker-pkg-build):
$ git clone git@github.com:qualcomm-linux/pkg-qtee-tas.git $ cd pkg-qtee-tas && git checkout debian/qcom-next $ cd ../ $ debb --source-dir pkg-qtee-tas/ --output-dir builds/ --distro resolute --no-update-check
NOTE: for docker-pkg-build I am using the dev/watchfilesupport branch.`
The problem is with the prebuilt package mechanism. In a normal pkg-repo, the sources to build the package are alongside the debian/ folder in a packaging branch. But, for a prebuilt package where we do not want the source code to be publicly available, we prebuild the binaries and host them somewhere else. Then, the watch file and uscan mechanism is used to fetch them. This is working fine now when the prebuilt artifacts are pulled from artifactory.
The issue now is that pulling prebuilt artifacts from another github repo doesn't work.
I see if the prebuilds are not from Artifactory, it is never fetched from uscan and marks has_watch as False and finally fallbacks to gbp-buildpackage directly.
Using the docker-pkg-build repo and tooling, we can reproduce the issue like so (where debb is alias for docker-pkg-build, see the repo https://github.com/qualcomm-linux/docker-pkg-build):
$ git clone git@github.com:qualcomm-linux/pkg-qtee-tas.git $ cd pkg-qtee-tas && git checkout debian/qcom-next $ cd ../ $ debb --source-dir pkg-qtee-tas/ --output-dir builds/ --distro resolute --no-update-check
NOTE: for docker-pkg-build I am using the dev/watchfilesupport branch.`