Received: from mail-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 1812A2237EB for <~alpine/devel@lists.alpinelinux.org>; Fri, 8 Aug 2025 13:28:37 +0000 (UTC) Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-30799a41109so804573fac.2 for <~alpine/devel@lists.alpinelinux.org>; Fri, 08 Aug 2025 06:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754659716; x=1755264516; darn=lists.alpinelinux.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FQGprsBGUbx9qiNMsZN8OP/URZ8nyTNuw6Bj0dtlHqc=; b=mjhjTQVT9m9fs+09H2GwGELaLvggBs+1AYtCwU5SNuUajBHhRHy3q6J9RRrlLmIbKn +ZiWYPhW7tWNMzlYvjCrEgeybpkVfBpocMM09PIWKclsRhNZiOvQ7IfbA6y4T5oMgC4r mpOOCqVovF/10B4igHW8YBZBT14V8cK6wRiV3+rOjw3fyz+arRUGoWqAGeb2E9R4JfkG EX14k7SXt39/riTD9Lq6j9iuY8m8TKMbfl3VKMkBF3AP2CsBblCc9xTcYn3oeNgA0U5n UKk/oKqTyXMjmTLnmqvMR6AYbqn00G9ZxmfgrpiFgmDMQtGf/3ElqBUY+FknvUL3Ftf3 CJJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754659716; x=1755264516; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FQGprsBGUbx9qiNMsZN8OP/URZ8nyTNuw6Bj0dtlHqc=; b=H6+5LMYvNxPAXH6T2TUOUqH+kQQg7d30wkG3mcTT/kqQLzVYiwRtyHiakFn0CqtNd/ UOyXdDKaA2H6q3THWO9fj+9FFWQqLTqKnVpKw6ORj74TCKMnkjYOwjAzA9TnBD8pq0zZ jQcdw+cb8U9uMWTyJgXev1+JOaXw8V6CLJtkZZSbnZgfzvCggwUWxYrx/YV7sKqcEW/U M9L7a8nYoeJwR1GNGbti+ec4NXivZc1BFFo9TWxDnPTcOKRyuv4mOQZkAdPjaEyuL3Vl tfbWkkq2fMZcuH41Sj3lwEPrIJjiJWO4pCo+4jX/bHwIXM3mz5Wr3US9hukUR/TMbZUi MfbA== X-Gm-Message-State: AOJu0YzUk03i5GyWsUUuL1uhO365PXzWYRBIhK1kqtBuBdgRXltNjJN6 FERDz2dqww8XCbn/Yxgd+a5olPSsZvGiPt0K2bLuzOeeEtPcorF6I42+aQ+ut1qbw9BWYMstlKz aGrQO4sWYbp0kvfE5oJ5VHsT6HE2lCceOz6iz X-Gm-Gg: ASbGncuVRHKSa9Q7R32GXHvnh1atI2sqL8BtCR8wLPRIqDDwNlNsSqDylyRTiK3W2xJ GHiVLtGXcfQOe+XOnCJ9L+Ju1dj2oDfR68c+P3h5/hu/GUaS+SkwfEfQR5tZlV3PoUqP6IuRi5G 7FClryIjrQ4VQBSdsQJJzpRRTuiRbuS+wWy4dJ79H1RTNwSKWIOr9nuUKzIza1hmEKoizXDk2Rb bnP X-Google-Smtp-Source: AGHT+IGas4c+PC/mTXtsXOcNq69RbY/c1So2MsyGBLLPA92trii9mhgJPlFR/4rJl3v67v9cdbInN1Oa7rYRdg3LIZA= X-Received: by 2002:a05:6870:558d:b0:2d4:e101:13eb with SMTP id 586e51a60fabf-30c211955a5mr2018511fac.28.1754659715881; Fri, 08 Aug 2025 06:28:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Konstantin Kulikov Date: Fri, 8 Aug 2025 16:28:25 +0300 X-Gm-Features: Ac12FXxUges4DHEXjaBR3uQwMAKXM2W83IZnuRV4wfCFS6xRhh67aaYv2xQbPsA Message-ID: Subject: Re: Need help for aport patch workflow To: faustin@fala.red Cc: ~alpine/devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000001122ca063bda8d55" --0000000000001122ca063bda8d55 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I only did that once or twice, but I find it helpful to have a git history available, so I'd just grab a repo, checkout a tag and then test patches there. The problem is 1. patch may apply cleanly and produce correct results - nice 2. patch may apply cleanly and produce wrong results due to something else changing - bleh 3. patch may not apply at all - investigate history and fix, problem may have been fixed in a different way 4. patch merged upstream as is - nice I don't think this is automatable, although tests help.. On Thu, Aug 7, 2025 at 3:55=E2=80=AFPM Faustin Lammler w= rote: > Hi! > I am trying to bump mariadb version 11.4.7 > 11.4.8 and I am struggling > with the patch process. > > Can someone point me to the correct workflow? I did not found any > documentation on how to do that on the wiki nor on the aport repository. > > As far as I understand the process, the approach would be: > 1/ abuild bump mariadb-11.4.8 > 2/ abuild fetch && abuild unpack > 3/ edit patch in src/mariadb... > 4/ generate updated patch > 5/ abuild checksum > 6/ abuild prepare > ... > > The step 4/ is the one that I am struggling with. If there is no better > way than to edit files and to manually go trough all patches with `diff > -up` then I will do it, but there might be something much more > efficient? > > Thanks a lot for your help. > > -- > Faustin > --0000000000001122ca063bda8d55 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I only did that once or twice, but I find it helpful = to have a git history available, so I'd just grab a repo, checkout a ta= g and then test patches there.
The problem is
1. patch = may apply cleanly and produce correct results - nice
2. patch may= apply cleanly and produce wrong results due to something else changing - b= leh
3. patch may not apply at all - investigate history and fix, = problem may have been fixed in a different way
4. patch merged up= stream as is - nice

I don't think this is auto= matable, although tests help..

On Thu, Aug 7, 20= 25 at 3:55=E2=80=AFPM Faustin Lammler <faustin@fala.red> wrote:
Hi!
I am trying to bump mariadb version 11.4.7 > 11.4.8 and I am struggling<= br> with the patch process.

Can someone point me to the correct workflow? I did not found any
documentation on how to do that on the wiki nor on the aport repository.
As far as I understand the process, the approach would be:
1/ abuild bump mariadb-11.4.8
2/ abuild fetch && abuild unpack
3/ edit patch in src/mariadb...
4/ generate updated patch
5/ abuild checksum
6/ abuild prepare
...

The step 4/ is the one that I am struggling with. If there is no better
way than to edit files and to manually go trough all patches with `diff
-up` then I will do it, but there might be something much more
efficient?

Thanks a lot for your help.

--
Faustin
--0000000000001122ca063bda8d55--