How can I match the version of my ports tree (extracted with portsnap) to a git commit in the repository at https://git.FreeBSD.org/ports.git ?
I am currently having trouble compiling the port Photoprism https://github.com/huo-ju/photoprism-freebsd-port which depends on science/libtensorflow1 (currently renamed to science/py-tensorflow) but I compiled it successfully on Dec 21, 2021 against a ports tree fetched with ports-mgmt/portsnap. My strategy is to revert the ports tree to that particular date, so I tried cloning the ports tree with git and reverted. Unfortunately I got compilation errors, which should not happen if I am compiling the same source, right?
I see the following possible reasons:
* Either the source I compiled back on Dec 21 (fetched with portsnap) had been retrieved from git yet earlier than that and the git repo at the same time did not represent the same source, or
* Something else is different now in my build environment (I have a newer kernel and userland, newer make, gcc, etc.), but still, I should be able to compile older ports reproducibly on my new system, right?
Any idea on how to reproduce my successful build from December?
Unfortunately I already deleted the ports tree I used back then, along with the whole jail.
I am currently having trouble compiling the port Photoprism https://github.com/huo-ju/photoprism-freebsd-port which depends on science/libtensorflow1 (
I see the following possible reasons:
* Either the source I compiled back on Dec 21 (fetched with portsnap) had been retrieved from git yet earlier than that and the git repo at the same time did not represent the same source, or
* Something else is different now in my build environment (I have a newer kernel and userland, newer make, gcc, etc.), but still, I should be able to compile older ports reproducibly on my new system, right?
Any idea on how to reproduce my successful build from December?
Unfortunately I already deleted the ports tree I used back then, along with the whole jail.
Last edited: