Bug 277320 - mail/alpine: quarterly with maildir patch fetch error size mismatch.
Summary: mail/alpine: quarterly with maildir patch fetch error size mismatch.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Zsolt Udvari
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-25 21:52 UTC by Alain De Vos
Modified: 2024-08-07 04:56 UTC (History)
4 users (show)

See Also:
mbeis: maintainer-feedback+


Attachments
mail/alpine: fix maildir patch (574 bytes, patch)
2024-03-13 14:39 UTC, Marco Beishuizen
mbeis: maintainer-approval+
Details | Diff
mail/alpine: fix alpine 2.26 maildir patch checksum (574 bytes, patch)
2024-06-30 15:34 UTC, Marco Beishuizen
mbeis: maintainer-approval+
Details | Diff
plus changes (7.91 KB, patch)
2024-07-10 18:41 UTC, Zsolt Udvari
uzsolt: maintainer-approval? (mbeis)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alain De Vos 2024-02-25 21:52:06 UTC
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 !!!

```
Comment 1 Gary J. Hayers 2024-03-13 10:53:15 UTC
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 !!!
Comment 2 Gary J. Hayers 2024-03-13 10:57:51 UTC
By the way this is happening in the latest branch too.

Regards,

Gary
Comment 3 Marco Beishuizen 2024-03-13 14:39:51 UTC
Created attachment 249131 [details]
mail/alpine: fix maildir patch
Comment 4 Marco Beishuizen 2024-03-13 14:40:34 UTC
Fix maildir checksum mismatch
Comment 5 Zsolt Udvari freebsd_committer freebsd_triage 2024-06-21 19:40:35 UTC
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.
Comment 6 Zsolt Udvari freebsd_committer freebsd_triage 2024-06-30 13:06:47 UTC
(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.
Comment 7 Marco Beishuizen 2024-06-30 15:34:56 UTC
Created attachment 251800 [details]
mail/alpine: fix alpine 2.26 maildir patch checksum

mail/alpine: fix alpine 2.26 maildir patch checksum
Comment 8 Zsolt Udvari freebsd_committer freebsd_triage 2024-06-30 16:23:35 UTC
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.
Comment 9 Zsolt Udvari freebsd_committer freebsd_triage 2024-06-30 17:18:00 UTC
(In reply to Zsolt Udvari from comment #8)
It's better: https://people.freebsd.org/~uzsolt/distfiles/
Comment 10 Zsolt Udvari freebsd_committer freebsd_triage 2024-07-10 18:41:32 UTC
Created attachment 251968 [details]
plus changes

Fix maildir patch checksum.
Convert cp&SED commands to REINPLACE_CMD.
Pet portlint, portfmt.
Comment 11 Zsolt Udvari freebsd_committer freebsd_triage 2024-07-27 05:42:11 UTC
Friendly ping.
Comment 12 commit-hook freebsd_committer freebsd_triage 2024-08-07 04:56:10 UTC
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(-)
Comment 13 Zsolt Udvari freebsd_committer freebsd_triage 2024-08-07 04:56:30 UTC
Committed, thanks!