[Bug 274298] sysutils/debootstrap: fails to setup bookworm
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Oct 2023 07:08:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274298
Bug ID: 274298
Summary: sysutils/debootstrap: fails to setup bookworm
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: nc@FreeBSD.org
Reporter: dpslavov@hotmail.com
Flags: maintainer-feedback?(nc@FreeBSD.org)
Assignee: nc@FreeBSD.org
When setup Debian bookworm debootstrap fails to install required package
usr-is-merged which is "Transitional package to assert a merged-/usr system".
The problem is caused by difference in implementations of "-k" option in GNU vs
BSD tar, in GNU implementation when it's specified it keeps existing symbolic
links while in BSD it has no effect and overrides them. Here is an workaround
using GNU version:
--- a/sysutils/debootstrap/Makefile
+++ b/sysutils/debootstrap/Makefile
@@ -16,6 +16,7 @@ RUN_DEPENDS= wget:ftp/wget \
bash:shells/bash \
${LOCALBASE}/bin/grep:textproc/gnugrep \
gpgv2:security/gnupg \
+ gtar:archivers/gtar \
${LOCALBASE}/share/keyrings/ubuntu-archive-keyring.gpg:security/ubuntu-keyring
USES= gmake perl5
@@ -43,6 +44,9 @@ post-patch:
@${REINPLACE_CMD} -e 's,grep,${LOCALBASE}/bin/grep,g' \
${WRKSRC}/functions
+ @${REINPLACE_CMD} -e 's, tar , ${LOCALBASE}/bin/gtar ,g' \
+ ${WRKSRC}/functions
+
post-install:
${INSTALL_MAN} ${WRKSRC}/debootstrap.8 \
${STAGEDIR}${MAN8PREFIX}/man/man8/debootstrap.8
--
You are receiving this mail because:
You are the assignee for the bug.