Building mail/alpine with maildir patch returns fetch error , size mismatch. ``` 00:00:01] =======================<phase: pkg-depends >============================ [00:00:01] ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 [00:00:01] ===> alpine-2.26 depends on file: /usr/local/sbin/pkg - not found [00:00:01] ===> Installing existing package /packages/All/pkg-1.20.9.pkg [00:00:01] [ap-ports-job-01] Installing pkg-1.20.9... [00:00:01] [ap-ports-job-01] Extracting pkg-1.20.9: .......... done [00:00:02] ===> alpine-2.26 depends on file: /usr/local/sbin/pkg - found [00:00:02] ===> Returning to build of alpine-2.26 [00:00:02] =========================================================================== [00:00:02] =======================<phase: fetch-depends >============================ [00:00:02] ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 [00:00:02] =========================================================================== [00:00:02] =======================<phase: fetch >============================ [00:00:02] ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 [00:00:02] ===> License APACHE20 accepted by the user [00:00:02] => maildir.patch.gz doesn't seem to exist in /portdistfiles/. [00:00:02] => Attempting to fetch https://alpineapp.email/alpine/patches/alpine-2.26/maildir.patch.gz [00:00:03] fetch: https://alpineapp.email/alpine/patches/alpine-2.26/maildir.patch.gz: size mismatch: expected 34840, actual 35559 [00:00:03] => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/maildir.patch.gz [00:00:04] fetch: http://distcache.FreeBSD.org/ports-distfiles/maildir.patch.gz: Not Found [00:00:04] => Couldn't fetch it - please try to retrieve this [00:00:04] => port manually into /portdistfiles/ and try again. [00:00:04] *** Error code 1 [00:00:04] [00:00:04] Stop. [00:00:04] make: stopped in /usr/ports/mail/alpine [00:00:04] =>> Cleaning up wrkdir [00:00:04] ===> Cleaning for alpine-2.26 [00:00:04] build of mail/alpine | alpine-2.26 ended at Sun Feb 25 21:48:43 UTC 2024 [00:00:04] build time: 00:00:04 [00:00:04] !!! build failure encountered !!! ```
I'm also seeing this issue. See below. =======================<phase: check-sanity >============================ ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 =========================================================================== =======================<phase: pkg-depends >============================ ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> pico-alpine-2.26_1 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-1.20.9_1.pkg [pkg-build] Installing pkg-1.20.9_1... [pkg-build] Extracting pkg-1.20.9_1: .......... done ===> pico-alpine-2.26_1 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of pico-alpine-2.26_1 =========================================================================== =======================<phase: fetch-depends >============================ ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =======================<phase: fetch >============================ ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 => alpine-2.26.tar.gz doesn't seem to exist in /portdistfiles/. => Attempting to fetch https://repo.or.cz/alpine.git/snapshot/9726c098a739edfdca6218bc5dee104c310957e9.tar.gz?dummy=/alpine-2.26.tar.gz fetch: transfer timed out => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/alpine-2.26.tar.gz alpine-2.26.tar.gz 22 MB 13 MBps 01s => maildir.patch.gz doesn't seem to exist in /portdistfiles/. => Attempting to fetch https://alpineapp.email/alpine/patches/alpine-2.26/maildir.patch.gz fetch: https://alpineapp.email/alpine/patches/alpine-2.26/maildir.patch.gz: size mismatch: expected 34840, actual 35559 => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/maildir.patch.gz fetch: http://distcache.FreeBSD.org/ports-distfiles/maildir.patch.gz: Not Found => Couldn't fetch it - please try to retrieve this => port manually into /portdistfiles/ and try again. *** Error code 1 Stop. make: stopped in /usr/ports/editors/pico-alpine =>> Cleaning up wrkdir ===> Cleaning for pico-alpine-2.26_1 build of editors/pico-alpine | pico-alpine-2.26_1 ended at Wed Mar 13 08:18:24 GMT 2024 build time: 00:08:45 !!! build failure encountered !!!
By the way this is happening in the latest branch too. Regards, Gary
Created attachment 249131 [details] mail/alpine: fix maildir patch
Fix maildir checksum mismatch
Marco, do you know why is changing the patch? There is a similar PR three years ago: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258675 Is there any log about patch news? What are the changes? Is there any "official" mailing list/VCS/... from where can we inform the news.
(In reply to Zsolt Udvari from comment #5) And it would be a good idea to distribute the source file (including the date into filename) at your own web site too.
Created attachment 251800 [details] mail/alpine: fix alpine 2.26 maildir patch checksum mail/alpine: fix alpine 2.26 maildir patch checksum
If you agree can change MAILDIR_PATCH_SITES to https://freebsd.uzsolt.hu/src/ and I copy the patch (add date-specific suffix to filename) and no more size mismatch.
(In reply to Zsolt Udvari from comment #8) It's better: https://people.freebsd.org/~uzsolt/distfiles/
Created attachment 251968 [details] plus changes Fix maildir patch checksum. Convert cp&SED commands to REINPLACE_CMD. Pet portlint, portfmt.
Friendly ping.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=a74030e08ae667979ef21cf9a1b5c8c771458492 commit a74030e08ae667979ef21cf9a1b5c8c771458492 Author: Marco Beishuizen <mbeis@xs4all.nl> AuthorDate: 2024-08-07 04:52:49 +0000 Commit: Zsolt Udvari <uzsolt@FreeBSD.org> CommitDate: 2024-08-07 04:54:47 +0000 mail/alpine: fix maildir patch checksum Convert cp&SED commands to REINPLACE_CMD. Pet portlint, portfmt. PR: 277320 Approved by: Submitter is maintainer mail/alpine/Makefile | 120 +++++++++++++++++++++++---------------------------- mail/alpine/distinfo | 6 +-- 2 files changed, 58 insertions(+), 68 deletions(-)
Committed, thanks!