Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.devel.release > #133148 > unrolled thread

Bug#1107779: unblock: patch/2.8-2 (pre-approval)

Started byLászló Böszörményi (GCS) <gcs@debian.org>
First post2025-06-14 12:00 +0200
Last post2025-06-29 17:30 +0200
Articles 7 — 3 participants

Back to article view | Back to linux.debian.devel.release


Contents

  Bug#1107779: unblock: patch/2.8-2 (pre-approval) László Böszörményi (GCS) <gcs@debian.org> - 2025-06-14 12:00 +0200
    Processed: unblock: patch/2.8-2 (pre-approval) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-06-14 12:00 +0200
    Bug#1107779: unblock: patch/2.8-2 (pre-approval) Sebastian Ramacher <sramacher@debian.org> - 2025-06-28 17:50 +0200
      Bug#1107779: unblock: patch/2.8-2 (pre-approval) László Böszörményi (GCS) <gcs@debian.org> - 2025-06-29 10:30 +0200
    Processed: Re: Bug#1107779: unblock: patch/2.8-2 (pre-approval) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-06-28 17:50 +0200
    Processed: Re: Bug#1107779: unblock: patch/2.8-2 (pre-approval) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-06-29 10:30 +0200
    Bug#1107779: marked as done (unblock: patch/2.8-2 (pre-approval)) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-06-29 17:30 +0200

#133148 — Bug#1107779: unblock: patch/2.8-2 (pre-approval)

FromLászló Böszörményi (GCS) <gcs@debian.org>
Date2025-06-14 12:00 +0200
SubjectBug#1107779: unblock: patch/2.8-2 (pre-approval)
Message-ID<KXvQ5-atJE-1@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Control: affects -1 + src:patch

Hi RMs,

Please pre-approve unblocking of package patch.

[ Reason ]
Main issue is that patch fails to build on Hurd-i386 due to 32 bit
time_t. Fix this with disabling year 2038 checks on this platform.
Then an upstream small fix not to check read only state check on files
when the output file is specified (to be a new one for example).

[ Impact ]
This would help Hurd-i386 be in line with the Trixie release. The
other saves disk IO.

[ Tests ]
I've checked the build on a porter machine and confirm the fix is
working. The read only check change has an upstream test case.

[ Risks ]
Hurd-i386 fix is effective only for that architecture and confirmed
working. The read only check is a behaviour change, only when a
different output file is specified than the default (actual working)
one. Mainly a new file specified in that case when the now missing
check just saves disk IO.

[ Checklist ]
  [x] all changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in testing

Regards,
Laszlo/GCS

[toc] | [next] | [standalone]


#133149 — Processed: unblock: patch/2.8-2 (pre-approval)

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2025-06-14 12:00 +0200
SubjectProcessed: unblock: patch/2.8-2 (pre-approval)
Message-ID<KXvQ6-atJE-7@gated-at.bofh.it>
In reply to#133148
Processing control commands:

> affects -1 + src:patch
Bug #1107779 [release.debian.org] unblock: patch/2.8-2 (pre-approval)
Added indication that 1107779 affects src:patch

-- 
1107779: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107779
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#133770

FromSebastian Ramacher <sramacher@debian.org>
Date2025-06-28 17:50 +0200
Message-ID<L2FYt-dNIU-5@gated-at.bofh.it>
In reply to#133148
Control: tags -1 moreinfo confirmed

On 2025-06-14 11:53:49 +0200, László Böszörményi (GCS) wrote:
> Package: release.debian.org
> Severity: normal
> User: release.debian.org@packages.debian.org
> Usertags: unblock
> Control: affects -1 + src:patch
> 
> Hi RMs,
> 
> Please pre-approve unblocking of package patch.
> 
> [ Reason ]
> Main issue is that patch fails to build on Hurd-i386 due to 32 bit
> time_t. Fix this with disabling year 2038 checks on this platform.
> Then an upstream small fix not to check read only state check on files
> when the output file is specified (to be a new one for example).

Please go ahead. The fix for hurd-i386 is small enough. Please remove
the moreinfo tag once the upload is available in unstable.

Cheers

> 
> [ Impact ]
> This would help Hurd-i386 be in line with the Trixie release. The
> other saves disk IO.
> 
> [ Tests ]
> I've checked the build on a porter machine and confirm the fix is
> working. The read only check change has an upstream test case.
> 
> [ Risks ]
> Hurd-i386 fix is effective only for that architecture and confirmed
> working. The read only check is a behaviour change, only when a
> different output file is specified than the default (actual working)
> one. Mainly a new file specified in that case when the now missing
> check just saves disk IO.
> 
> [ Checklist ]
>   [x] all changes are documented in the d/changelog
>   [x] I reviewed all changes and I approve them
>   [x] attach debdiff against the package in testing
> 
> Regards,
> Laszlo/GCS

> diff -Nru patch-2.8/debian/changelog patch-2.8/debian/changelog
> --- patch-2.8/debian/changelog	2025-04-06 21:10:31.000000000 +0200
> +++ patch-2.8/debian/changelog	2025-06-13 20:59:38.000000000 +0200
> @@ -1,3 +1,13 @@
> +patch (2.8-2) unstable; urgency=medium
> +
> +  [ Samuel Thibault <sthibault@debian.org> ]
> +  * Pass --disable-year2038 for hurd-i386 case to fix FTBFS (closes: #815457).
> +
> +  [ Laszlo Boszormenyi (GCS) ]
> +  * Backport upstream fix: skip read-only check when output file specified.
> +
> + -- Laszlo Boszormenyi (GCS) <gcs@debian.org>  Fri, 13 Jun 2025 20:59:38 +0200
> +
>  patch (2.8-1) unstable; urgency=medium
>  
>    * New upstream release.
> diff -Nru patch-2.8/debian/patches/series patch-2.8/debian/patches/series
> --- patch-2.8/debian/patches/series	2025-04-06 21:10:31.000000000 +0200
> +++ patch-2.8/debian/patches/series	2025-06-13 00:38:08.000000000 +0200
> @@ -1,4 +1,4 @@
>  m-merge
>  add_some_missing_filename_quoting.patch
>  reject_empty_filenames.patch
> -
> +skip_read-only_check_when_output_file_specified.patch
> diff -Nru patch-2.8/debian/patches/skip_read-only_check_when_output_file_specified.patch patch-2.8/debian/patches/skip_read-only_check_when_output_file_specified.patch
> --- patch-2.8/debian/patches/skip_read-only_check_when_output_file_specified.patch	1970-01-01 01:00:00.000000000 +0100
> +++ patch-2.8/debian/patches/skip_read-only_check_when_output_file_specified.patch	2025-06-13 00:14:05.000000000 +0200
> @@ -0,0 +1,48 @@
> +From d161c9a9dbd24bb7e0356e4e07983345777d85aa Mon Sep 17 00:00:00 2001
> +From: Daniel Black <daniel@mariadb.org>
> +Date: Thu, 1 May 2025 14:33:19 +1000
> +Subject: Skip read-only check when output file specified
> +
> +Only check if input files are read-only when overwriting them; skip
> +that check when the output goes to a different file.
> +
> +* src/patch.c (main): Set read_only_behavior to RO_IGNORE when an output
> +file has been specified.
> +* tests/read-only-files: Add test case.
> +---
> + src/patch.c           | 5 ++++-
> + tests/read-only-files | 5 +++++
> + 2 files changed, 9 insertions(+), 1 deletion(-)
> +
> +diff --git a/src/patch.c b/src/patch.c
> +index 91cb646..42c093c 100644
> +--- a/src/patch.c
> ++++ b/src/patch.c
> +@@ -204,7 +204,10 @@ main (int argc, char **argv)
> + 
> +     init_output (&outstate);
> +     if (outfile)
> +-      outstate.ofp = open_outfile (outfile);
> ++      {
> ++        outstate.ofp = open_outfile (outfile);
> ++        read_only_behavior = RO_IGNORE;
> ++      }
> + 
> +     /* Make sure we clean up in case of disaster.  */
> +     init_signals ();
> +diff --git a/tests/read-only-files b/tests/read-only-files
> +index b66ddb9..9f6bf7c 100644
> +--- a/tests/read-only-files
> ++++ b/tests/read-only-files
> +@@ -67,3 +67,8 @@ check 'patch -f -p0 --read-only=ignore < f.diff || echo "Status: $?"' <<EOF
> + patching file f
> + patching file f
> + EOF
> ++
> ++check 'patch -o - f /dev/null || echo "Status: $?"' <<EOF
> ++patching file - (read from f)
> ++three
> ++EOF
> +-- 
> +cgit v1.2.3
> +
> diff -Nru patch-2.8/debian/rules patch-2.8/debian/rules
> --- patch-2.8/debian/rules	2018-08-05 13:10:39.000000000 +0200
> +++ patch-2.8/debian/rules	2025-06-13 00:14:05.000000000 +0200
> @@ -12,6 +12,10 @@
>  CONFFLAGS = --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
>  endif
>  
> +ifeq ($(DEB_HOST_ARCH),hurd-i386)
> +  CONFFLAGS += --disable-year2038
> +endif
> +
>  export DEB_CFLAGS_MAINT_APPEND = -Wall -g
>  
>  override_dh_auto_clean:


-- 
Sebastian Ramacher

[toc] | [prev] | [next] | [standalone]


#133786

FromLászló Böszörményi (GCS) <gcs@debian.org>
Date2025-06-29 10:30 +0200
Message-ID<L2VAd-dXIv-19@gated-at.bofh.it>
In reply to#133770
Control: tags -1 -moreinfo

On Sat, Jun 28, 2025 at 5:42 PM Sebastian Ramacher <sramacher@debian.org> wrote:
> Please go ahead. The fix for hurd-i386 is small enough. Please remove
> the moreinfo tag once the upload is available in unstable.
 Package uploaded, built thus available in unstable.

Regards,
Laszlo/GCS

[toc] | [prev] | [next] | [standalone]


#133771 — Processed: Re: Bug#1107779: unblock: patch/2.8-2 (pre-approval)

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2025-06-28 17:50 +0200
SubjectProcessed: Re: Bug#1107779: unblock: patch/2.8-2 (pre-approval)
Message-ID<L2FYt-dNIU-7@gated-at.bofh.it>
In reply to#133148
Processing control commands:

> tags -1 moreinfo confirmed
Bug #1107779 [release.debian.org] unblock: patch/2.8-2 (pre-approval)
Added tag(s) confirmed and moreinfo.

-- 
1107779: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107779
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#133785 — Processed: Re: Bug#1107779: unblock: patch/2.8-2 (pre-approval)

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2025-06-29 10:30 +0200
SubjectProcessed: Re: Bug#1107779: unblock: patch/2.8-2 (pre-approval)
Message-ID<L2VAd-dXIv-17@gated-at.bofh.it>
In reply to#133148
Processing control commands:

> tags -1 -moreinfo
Bug #1107779 [release.debian.org] unblock: patch/2.8-2 (pre-approval)
Removed tag(s) moreinfo.

-- 
1107779: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107779
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#133814 — Bug#1107779: marked as done (unblock: patch/2.8-2 (pre-approval))

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2025-06-29 17:30 +0200
SubjectBug#1107779: marked as done (unblock: patch/2.8-2 (pre-approval))
Message-ID<L328F-e1ZZ-9@gated-at.bofh.it>
In reply to#133148

[Multipart message — attachments visible in raw view] — view raw

Your message dated Sun, 29 Jun 2025 15:23:58 +0000
with message-id <E1uVtss-001GaR-2Z@respighi.debian.org>
and subject line unblock patch
has caused the Debian Bug report #1107779,
regarding unblock: patch/2.8-2 (pre-approval)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1107779: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107779
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.devel.release


csiph-web