-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to 4.1 #3
base: trunk
Are you sure you want to change the base?
Conversation
As stated in [Reproducible builds in FreeBSD](https://www.bsdcan.org/2016/schedule/attachments/375_2016-06-11-BSDCan-2016-Reproducible-Builds.pdf) `bsdtar` doesn't allow changing mtime, so I frist added a line to do this: ``` cd ${REPO_DIR} && ${FIND} . -print0 | xargs -0 touch -d 2022-08-08T20:40:04Z ``` This is not enough as file traversal order changes from time to time; to solve this I used `find -s` to produce a sorted file list: ``` cd ${WRKDIR} && \ ${FIND} -s repository/ -print >list.txt && \ ${TAR} czf ${DISTDIR}/apache-${PORTNAME}-${DISTVERSION}-repo.tar.gz -nT list.txt ``` Still not enough, as `gzip` header includes a timestamp; this can be solved by using [`gzip -n`](https://www.freebsd.org/cgi/man.cgi?query=gzip&sektion=1) but instead I tried two approaches and it seems to work fine with both: 1. using `7zz` (always sorts traversal order, so `list.txt` is not needed) `7zz a -mx9 ${DISTDIR}/apache-${PORTNAME}-${DISTVERSION}-repo.7z repository/` 2. using `xz` `${TAR} cJf ${DISTDIR}/apache-${PORTNAME}-${DISTVERSION}-repo.tar.xz -nT list.txt` I decided for the latter as it is included in the base system.
Most differences solved, still need to massage plist file.
|
@polo-language current approach is working only if executed before
|
Currently fails with:
|
OK, now fails with:
|
I've noticed you're working on this in a5b269c, yay! 🎉 |
FYI: Trying to get a resolution to the problem of always downloading the maven dependencies: |
Regarding the "reproducible repo", in my 4.1.2 branch I've fixed the problem of
|
Ohhh! what was it?
Okay, will do! |
Yes, that was it. The problem had to do with the timing of when build variables are set. If the Have you had any luck with preventing the maven retrieval when the repo file is already present in distfiles? |
Unfortunately, not yet. :( |
I have some work-in-progress patches for that.
It includes changes from mvn-pre-fetch branch.