git: c66b7116d3cc - main - security/fakeroot: Update to 2.1.4

From: Ganael LAPLANCHE <martymac_at_FreeBSD.org>
Date: Tue, 01 Sep 2026 10:23:42 UTC
The branch main has been updated by martymac:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c66b7116d3cc80f3ac8d0e1dbf4a2f13c431813b

commit c66b7116d3cc80f3ac8d0e1dbf4a2f13c431813b
Author:     Ganael LAPLANCHE <martymac@FreeBSD.org>
AuthorDate: 2026-09-01 10:19:21 +0000
Commit:     Ganael LAPLANCHE <martymac@FreeBSD.org>
CommitDate: 2026-09-01 10:23:15 +0000

    security/fakeroot: Update to 2.1.4
    
    and switch to meson for building.
    
    Changelog:      https://salsa.debian.org/clint/fakeroot/-/blob/debian/2.1.4-1/debian/changelog?ref_type=tags
---
 security/fakeroot/Makefile                         |  11 +-
 security/fakeroot/distinfo                         |   6 +-
 security/fakeroot/files/patch-communicate.h        |  11 +
 security/fakeroot/files/patch-doc.diff             | 379 +++++++++++++--------
 .../files/patch-libfakeroot_time64_entry.c         |  38 +++
 security/fakeroot/files/patch-scripts-Makefile.in  |  17 -
 security/fakeroot/files/patch-test-cp-atest        |  12 +
 security/fakeroot/files/patch-test-t.chown         |  12 +
 security/fakeroot/pkg-plist                        |   1 -
 9 files changed, 321 insertions(+), 166 deletions(-)

diff --git a/security/fakeroot/Makefile b/security/fakeroot/Makefile
index c78052a57c17..e07ddbc2f727 100644
--- a/security/fakeroot/Makefile
+++ b/security/fakeroot/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	fakeroot
-PORTVERSION=	2.0
+PORTVERSION=	2.1.4
 CATEGORIES=	security
 MASTER_SITES=	DEBIAN
 DISTNAME=	${PORTNAME}_${PORTVERSION}.orig
@@ -10,12 +10,11 @@ WWW=		https://tracker.debian.org/pkg/fakeroot
 
 LICENSE=	GPLv3
 
-USES=	libtool
+BUILD_DEPENDS=	po4a:textproc/po4a
 
-GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
-CONFIGURE_ARGS=		--with-ipc=tcp
-INSTALL_TARGET=	install-strip
+USES=	libtool meson tar:xz
+
+MESON_ARGS=		-Dipc=tcp
 USE_LDCONFIG=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
diff --git a/security/fakeroot/distinfo b/security/fakeroot/distinfo
index 413da30a447b..7b88a1202013 100644
--- a/security/fakeroot/distinfo
+++ b/security/fakeroot/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1783505107
-SHA256 (fakeroot_2.0.orig.tar.gz) = 562d951828887e5ccc31489248feae62f334a16c3d81fe6592f34016ffb02636
-SIZE (fakeroot_2.0.orig.tar.gz) = 597578
+TIMESTAMP = 1787772428
+SHA256 (fakeroot_2.1.4.orig.tar.xz) = 0822bd5a9f0cf19d2ba0546b88b0432d4d3d9917db62c57b74044ccadba06e49
+SIZE (fakeroot_2.1.4.orig.tar.xz) = 115748
diff --git a/security/fakeroot/files/patch-communicate.h b/security/fakeroot/files/patch-communicate.h
new file mode 100644
index 000000000000..5e276dcba6ae
--- /dev/null
+++ b/security/fakeroot/files/patch-communicate.h
@@ -0,0 +1,11 @@
+--- communicate.h.orig	2026-08-31 14:03:04 UTC
++++ communicate.h
+@@ -69,7 +69,7 @@
+ 	|| (defined __UCLIBC__ && defined __UCLIBC_HAS_LFS__)
+ # define STAT64_SUPPORT
+ #else
+-# ifndef __APPLE__
++# if !defined(__APPLE__) && !defined(__FreeBSD__)
+ #  warning Not using stat64 support
+ # endif
+ /* if glibc is 2.0 or older, undefine these again */
diff --git a/security/fakeroot/files/patch-doc.diff b/security/fakeroot/files/patch-doc.diff
index 92b43db55b62..0b2b3156a9e1 100644
--- a/security/fakeroot/files/patch-doc.diff
+++ b/security/fakeroot/files/patch-doc.diff
@@ -1,41 +1,5 @@
---- doc/de/faked.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/de/faked.1
-@@ -90,5 +90,4 @@ und Ergänzungen von Joost und Clint.
- größtenteils von J.H.M. Dassen <jdassen@debian.org> mit Anpassungen
- und Ergänzungen von Joost und Clint.
- .SH "SIEHE AUCH"
--\fBdebuild\fP(1), \fBdpkg\-buildpackage\fP(1), \fBfakeroot\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfakeroot\fP(1)
---- doc/de/fakeroot.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/de/fakeroot.1
-@@ -241,5 +241,4 @@ lot of modsifications and additions by joost and Clint
- mostly by J.H.M. Dassen \fB<\fP\fIjdassen@debian.org\fP\fB>\fP with rather a
- lot of modsifications and additions by joost and Clint.
- .SH "SIEHE AUCH"
--\fBdebuild\fP(1), \fBdpkg\-buildpackage\fP(1), \fBfaked\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfaked\fP(1)
---- doc/es/faked.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/es/faked.1
-@@ -86,5 +86,4 @@ joost and Clint.
- mostly by J.H.M.\& Dassen <\fIjdassen@debian.org\fP> mods/additions by
- joost and Clint.
- .SH "VÉASE ADEMÁS"
--\fBfakeroot\fP(1), \fBdpkg\-buildpackage\fP(1), \fBdebuild\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfakeroot\fP(1)
---- doc/es/fakeroot.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/es/fakeroot.1
-@@ -233,5 +233,4 @@ lot of modsifications and additions by joost and Clint
- mostly by J.H.M. Dassen \fB<\fP\fIjdassen@debian.org\fP\fB>\fP with rather a
- lot of modsifications and additions by joost and Clint.
- .SH "VÉASE ADEMÁS"
--\fBdebuild\fP(1), \fBdpkg\-buildpackage\fP(1), \fBfaked\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfaked\fP(1)
---- doc/faked.1.orig	2024-12-20 14:24:24 UTC
-+++ doc/faked.1
+--- ./doc/faked.1.orig	2026-08-26 11:37:44 UTC
++++ ./doc/faked.1
 @@ -97,7 +97,4 @@ mods/additions by joost and Clint.
  .RI < jdassen@debian.org >
  mods/additions by joost and Clint.
@@ -45,110 +9,247 @@
 -.BR debuild (1),
 -.B /usr/share/doc/fakeroot/DEBUG
 +.BR fakeroot (1)
---- doc/fakeroot.1.orig	2025-01-23 19:18:54 UTC
-+++ doc/fakeroot.1
-@@ -297,7 +297,4 @@ with rather a lot of modsifications and additions by j
+--- ./doc/fakeroot.1.orig	2026-08-26 11:37:44 UTC
++++ ./doc/fakeroot.1
+@@ -295,7 +295,4 @@ with rather a lot of modsifications and additions by j
  .BI < jdassen@debian.org >
  with rather a lot of modsifications and additions by joost and Clint.
- .SH "SEE ALSO"
+ .SH SEE ALSO
 -.BR debuild (1),
 -.BR dpkg\-buildpackage (1),
 -.BR faked (1),
--.BR /usr/share/doc/fakeroot/DEBUG
+-.B /usr/share/doc/fakeroot/DEBUG
 +.BR faked (1)
---- doc/fr/faked.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/fr/faked.1
-@@ -88,5 +88,4 @@ joost and Clint.
- mostly by J.H.M.\& Dassen <\fIjdassen@debian.org\fP> mods/additions by
- joost and Clint.
- .SH "VOIR AUSSI"
--\fBfakeroot\fP(1), \fBdpkg\-buildpackage\fP(1), \fBdebuild\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfakeroot\fP(1)
---- doc/fr/fakeroot.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/fr/fakeroot.1
-@@ -237,5 +237,4 @@ lot of modsifications and additions by joost and Clint
- mostly by J.H.M. Dassen \fB<\fP\fIjdassen@debian.org\fP\fB>\fP with rather a
- lot of modsifications and additions by joost and Clint.
- .SH "VOIR AUSSI"
--\fBdebuild\fP(1), \fBdpkg\-buildpackage\fP(1), \fBfaked\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfaked\fP(1)
---- doc/nl/faked.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/nl/faked.1
-@@ -89,5 +89,4 @@ joost and Clint.
- mostly by J.H.M.\& Dassen <\fIjdassen@debian.org\fP> mods/additions by
- joost and Clint.
- .SH "ZIE OOK"
--\fBfakeroot\fP(1), \fBdpkg\-buildpackage\fP(1), \fBdebuild\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfakeroot\fP(1)
---- doc/nl/fakeroot.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/nl/fakeroot.1
-@@ -240,5 +240,4 @@ lot of modsifications and additions by joost and Clint
- mostly by J.H.M. Dassen \fB<\fP\fIjdassen@debian.org\fP\fB>\fP with rather a
- lot of modsifications and additions by joost and Clint.
- .SH "ZIE OOK"
--\fBdebuild\fP(1), \fBdpkg\-buildpackage\fP(1), \fBfaked\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfaked\fP(1)
---- doc/pt/faked.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/pt/faked.1
-@@ -87,5 +87,4 @@ modificações/adições por joost e Clint.
- a maioria por J.H.M.\& Dassen <\fIjdassen@debian.org\fP>
- modificações/adições por joost e Clint.
- .SH "VEJA TAMBÉM"
--\fBfakeroot\fP(1), \fBdpkg\-buildpackage\fP(1), \fBdebuild\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfakeroot\fP(1)
---- doc/pt/fakeroot.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/pt/fakeroot.1
-@@ -235,5 +235,4 @@ lot of modsifications and additions by joost and Clint
- mostly by J.H.M. Dassen \fB<\fP\fIjdassen@debian.org\fP\fB>\fP with rather a
- lot of modsifications and additions by joost and Clint.
- .SH "VEJA TAMBÉM"
--\fBdebuild\fP(1), \fBdpkg\-buildpackage\fP(1), \fBfaked\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfaked\fP(1)
---- doc/ro/faked.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/ro/faked.1
-@@ -86,8 +86,7 @@ modificări/adăugiri făcute de joost și Clint.
- în mare parte scrisă de J.H.M. Dassen <\fIjdassen@debian.org\fP> cu
- modificări/adăugiri făcute de joost și Clint.
- .SH "CONSULTAȚI ȘI"
--\fBfakeroot\fP(1), \fBdpkg\-buildpackage\fP(1), \fBdebuild\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfakeroot\fP(1)
- .SH TRADUCERE
- Această traducere a fost creată în 2023 de Remus-Gabriel Chelu. Ea este supusă
- licenței GNU GPL versiunea 2 (sau ulterioară).
---- doc/ro/fakeroot.1.orig	2025-03-25 18:27:56 UTC
-+++ doc/ro/fakeroot.1
-@@ -241,8 +241,7 @@ lot of modsifications and additions by joost and Clint
- mostly by J.H.M. Dassen \fB<\fP\fIjdassen@debian.org\fP\fB>\fP with rather a
- lot of modsifications and additions by joost and Clint.
- .SH "CONSULTAȚI ȘI"
--\fBdebuild\fP(1), \fBdpkg\-buildpackage\fP(1), \fBfaked\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfaked\fP(1)
- .SH TRADUCERE
- Această traducere a fost creată în 2023 de Remus-Gabriel Chelu. Ea este supusă
- licenței GNU GPL versiunea 2 (sau ulterioară).
---- doc/sv/faked.1.orig	2025-03-25 18:27:57 UTC
-+++ doc/sv/faked.1
-@@ -88,5 +88,4 @@ joost and Clint.
- mostly by J.H.M.\& Dassen <\fIjdassen@debian.org\fP> mods/additions by
- joost and Clint.
- .SH "SE ÄVEN"
--\fBfakeroot\fP(1), \fBdpkg\-buildpackage\fP(1), \fBdebuild\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfakeroot\fP(1)
---- doc/sv/fakeroot.1.orig	2025-03-25 18:27:57 UTC
-+++ doc/sv/fakeroot.1
-@@ -233,5 +233,4 @@ lot of modsifications and additions by joost and Clint
- mostly by J.H.M. Dassen \fB<\fP\fIjdassen@debian.org\fP\fB>\fP with rather a
- lot of modsifications and additions by joost and Clint.
- .SH "SE ÄVEN"
--\fBdebuild\fP(1), \fBdpkg\-buildpackage\fP(1), \fBfaked\fP(1),
--\fB/usr/share/doc/fakeroot/DEBUG\fP
-+\fBfaked\fP(1)
+--- ./doc/po4a/po/de.po.orig	2026-08-26 11:37:44 UTC
++++ ./doc/po4a/po/de.po
+@@ -825,11 +825,9 @@ msgid ""
+ #. type: Plain text
+ #: ../doc/fakeroot.1:301
+ msgid ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ msgstr ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ 
+ #. type: TH
+ #: ../doc/faked.1:16
+@@ -1024,11 +1022,9 @@ msgid ""
+ #. type: Plain text
+ #: ../doc/faked.1:103
+ msgid ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ msgstr ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<fakeroot>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ 
+ #, no-wrap
+ #~ msgid "5 October 2014"
+--- ./doc/po4a/po/es.po.orig	2026-08-26 11:37:44 UTC
++++ ./doc/po4a/po/es.po
+@@ -867,11 +867,9 @@ msgid ""
+ #| "B<faked>(1)  B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+ #| "fakeroot/DEBUG>"
+ msgid ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ msgstr ""
+-"B<faked>(1)  B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ 
+ # type: TH
+ #. type: TH
+@@ -1088,11 +1086,9 @@ msgid ""
+ #| "B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+ #| "fakeroot/DEBUG>"
+ msgid ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ msgstr ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ 
+ # type: TH
+ #, no-wrap
+--- ./doc/po4a/po/fakeroot.pot.orig	2026-08-26 11:37:44 UTC
++++ ./doc/po4a/po/fakeroot.pot
+@@ -554,9 +554,9 @@ msgid ""
+ #. type: Plain text
+ #: ../doc/fakeroot.1:301
+ msgid ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), "
+-"B</usr/share/doc/fakeroot/DEBUG>"
++"B<faked>(1)"
+ msgstr ""
++"B<faked>(1)"
+ 
+ #. type: TH
+ #: ../doc/faked.1:16
+@@ -700,6 +700,6 @@ msgid ""
+ #. type: Plain text
+ #: ../doc/faked.1:103
+ msgid ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), "
+-"B</usr/share/doc/fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ msgstr ""
++"B<fakeroot>(1)"
+--- ./doc/po4a/po/fr.po.orig	2026-08-26 11:37:44 UTC
++++ ./doc/po4a/po/fr.po
+@@ -874,11 +874,9 @@ msgid ""
+ #| "B<faked>(1)  B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+ #| "fakeroot/DEBUG>"
+ msgid ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ msgstr ""
+-"B<faked>(1)  B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ 
+ # type: TH
+ #. type: TH
+@@ -1099,11 +1097,9 @@ msgid ""
+ #| "B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+ #| "fakeroot/DEBUG>"
+ msgid ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ msgstr ""
+-"B<fakeroot>(1)  B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ 
+ # type: TH
+ #, no-wrap
+--- ./doc/po4a/po/nl.po.orig	2026-08-26 11:37:44 UTC
++++ ./doc/po4a/po/nl.po
+@@ -877,11 +877,9 @@ msgid ""
+ #| "B<faked>(1)  B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+ #| "fakeroot/DEBUG>"
+ msgid ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ msgstr ""
+-"B<faked>(1),  B<dpkg-buildpackage>(1), B<debuild>(1),  B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ 
+ # type: TH
+ #. type: TH
+@@ -1100,11 +1098,9 @@ msgid ""
+ #| "B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+ #| "fakeroot/DEBUG>"
+ msgid ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ msgstr ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ 
+ # type: TH
+ #, no-wrap
+--- ./doc/po4a/po/pt.po.orig	2026-08-26 11:37:44 UTC
++++ ./doc/po4a/po/pt.po
+@@ -729,11 +729,9 @@ msgid ""
+ #. type: Plain text
+ #: ../doc/fakeroot.1:301
+ msgid ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ msgstr ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ 
+ #. type: TH
+ #: ../doc/faked.1:16
+@@ -898,11 +896,9 @@ msgid ""
+ #. type: Plain text
+ #: ../doc/faked.1:103
+ msgid ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ msgstr ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ 
+ #, no-wrap
+ #~ msgid "5 October 2014"
+--- ./doc/po4a/po/ro.po.orig	2026-08-26 11:37:44 UTC
++++ ./doc/po4a/po/ro.po
+@@ -748,11 +748,9 @@ msgid ""
+ #. type: Plain text
+ #: ../doc/fakeroot.1:301
+ msgid ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ msgstr ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ 
+ #. type: TH
+ #: ../doc/faked.1:16
+@@ -918,11 +916,9 @@ msgid ""
+ #. type: Plain text
+ #: ../doc/faked.1:103
+ msgid ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ msgstr ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ 
+ #, no-wrap
+ #~ msgid "5 October 2014"
+--- ./doc/po4a/po/sv.po.orig	2026-08-26 11:37:44 UTC
++++ ./doc/po4a/po/sv.po
+@@ -862,11 +862,9 @@ msgid ""
+ #| "B<faked>(1)  B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+ #| "fakeroot/DEBUG>"
+ msgid ""
+-"B<debuild>(1), B<dpkg-buildpackage>(1), B<faked>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ msgstr ""
+-"B<faked>(1)  B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<faked>(1)"
+ 
+ # type: TH
+ #. type: TH
+@@ -1084,11 +1082,9 @@ msgid ""
+ #| "B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+ #| "fakeroot/DEBUG>"
+ msgid ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1), B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ msgstr ""
+-"B<fakeroot>(1), B<dpkg-buildpackage>(1), B<debuild>(1)  B</usr/share/doc/"
+-"fakeroot/DEBUG>"
++"B<fakeroot>(1)"
+ 
+ #, no-wrap
+ #~ msgid "5 October 2014"
diff --git a/security/fakeroot/files/patch-libfakeroot_time64_entry.c b/security/fakeroot/files/patch-libfakeroot_time64_entry.c
new file mode 100644
index 000000000000..56bf5a51926e
--- /dev/null
+++ b/security/fakeroot/files/patch-libfakeroot_time64_entry.c
@@ -0,0 +1,38 @@
+--- libfakeroot_time64_entry.c.orig	2026-08-28 12:06:14 UTC
++++ libfakeroot_time64_entry.c
+@@ -64,7 +64,7 @@
+     }
+   #endif
+ 
+-    #ifndef NO_WRAP_LSTAT64_SYMBOL
++    #if defined(WRAP_LSTAT64) && !defined(NO_WRAP_LSTAT64_SYMBOL)
+     extern int WRAP_LSTAT64 LSTAT64_ARG (int ver, const char *file_name, void *st);
+ 
+     /* glibc exports both lstat64 and __xstat64 */
+@@ -72,7 +72,7 @@
+        return WRAP_LSTAT64 LSTAT64_ARG(_STAT_VER, file_name, st);
+     }
+     #endif
+-    #ifndef NO_WRAP_STAT64_SYMBOL
++    #if defined(WRAP_STAT64) && !defined(NO_WRAP_STAT64_SYMBOL)
+     extern int WRAP_STAT64 STAT64_ARG(int ver, const char *file_name, void *st);
+ 
+     /* glibc exports both stat64 and __xstat64 */
+@@ -80,7 +80,7 @@
+        return WRAP_STAT64 STAT64_ARG(_STAT_VER, file_name, st);
+     }
+     #endif
+-    #ifndef NO_WRAP_FSTAT64_SYMBOL
++    #if defined(WRAP_FSTAT64) && !defined(NO_WRAP_FSTAT64_SYMBOL)
+     extern int WRAP_FSTAT64 FSTAT64_ARG(int ver, int fd, void *st);
+ 
+     /* glibc exports both fstat64 and __fxstat64 */
+@@ -89,7 +89,7 @@
+     }
+     #endif
+ 
+-    #if defined(HAVE_FSTATAT) && !defined(NO_WRAP_FSTATAT64_SYMBOL)
++    #if defined(HAVE_FSTATAT) && defined(WRAP_FSTATAT64) && !defined(NO_WRAP_FSTATAT64_SYMBOL)
+     extern int WRAP_FSTATAT64 FSTATAT64_ARG(int ver, int dir_fd, const char *path, void *st, int flags);
+ 
+     /* glibc exports both fstatat64 and __fxstatat64 */
diff --git a/security/fakeroot/files/patch-scripts-Makefile.in b/security/fakeroot/files/patch-scripts-Makefile.in
deleted file mode 100644
index ce411b919131..000000000000
--- a/security/fakeroot/files/patch-scripts-Makefile.in
+++ /dev/null
@@ -1,17 +0,0 @@
---- scripts/Makefile.in.orig	2025-04-18 13:18:48 UTC
-+++ scripts/Makefile.in
-@@ -542,12 +542,8 @@ uninstall-am: uninstall-binSCRIPTS
- 
- .PRECIOUS: Makefile
- 
--@MACOSX_TRUE@define macosx_false
--#
--@MACOSX_TRUE@endef
--@MACOSX_FALSE@define macosx_true
--#
--@MACOSX_FALSE@endef
-+@MACOSX_TRUE@macosx_false = \#
-+@MACOSX_FALSE@macosx_true = \#
- 
- fakeroot: $(srcdir)/fakeroot.in Makefile
- 	$(do_subst) < $(srcdir)/fakeroot.in > fakeroot
diff --git a/security/fakeroot/files/patch-test-cp-atest b/security/fakeroot/files/patch-test-cp-atest
new file mode 100644
index 000000000000..320b1672a821
--- /dev/null
+++ b/security/fakeroot/files/patch-test-cp-atest
@@ -0,0 +1,12 @@
+--- test/cp-atest.orig	2026-08-31 13:56:00 UTC
++++ test/cp-atest
+@@ -5,6 +5,9 @@ umask 022
+ export PATH
+ umask 022
+ 
++# XXX 'stat -c' unsupported on FreeBSD, skip test
++exit 77
++
+ if test ! -d $TMP; then
+   mkdir $TMP
+ fi
diff --git a/security/fakeroot/files/patch-test-t.chown b/security/fakeroot/files/patch-test-t.chown
new file mode 100644
index 000000000000..33117dccc185
--- /dev/null
+++ b/security/fakeroot/files/patch-test-t.chown
@@ -0,0 +1,12 @@
+--- test/t.chown.orig	2026-08-31 13:54:01 UTC
++++ test/t.chown
+@@ -1,6 +1,9 @@
+ #!/bin/sh
+ . ./defs || exit 1
+ 
++# XXX 'chown --reference' unsupported on FreeBSD, skip test
++exit 77
++
+ mkdir $tmp
+ 
+ # chown and stat are immune to fakeroot on macOS
diff --git a/security/fakeroot/pkg-plist b/security/fakeroot/pkg-plist
index e2918677a63a..9bf094f05d42 100644
--- a/security/fakeroot/pkg-plist
+++ b/security/fakeroot/pkg-plist
@@ -1,7 +1,6 @@
 bin/faked
 bin/fakeroot
 lib/libfakeroot-0.so
-lib/libfakeroot.a
 lib/libfakeroot.so
 lib/libfakeroot.so.0
 share/man/de/man1/faked.1.gz