Summary: | sysutils/debootstrap: execution permission (+x) missing | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Älven <alster> | ||||
Component: | Individual Port(s) | Assignee: | Neel Chauhan <nc> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | freebsd, grahamperrin, jcfyecrayz, maxp, yklaxds | ||||
Priority: | --- | Keywords: | easy, needs-patch | ||||
Version: | Latest | Flags: | nc:
maintainer-feedback+
|
||||
Hardware: | Any | ||||||
OS: | Any | ||||||
URL: | https://cgit.freebsd.org/ports/blame/sysutils/debootstrap/files/patch-Makefile | ||||||
Attachments: |
|
Description
Älven
2022-12-06 20:17:18 UTC
same with you. freebsd-13.1-release -------------------------------- root@ykla:/home/ykla # debootstrap jammy /compat/ubuntu http://mirrors.163.com/ubuntu/ /usr/local/sbin/debootstrap: Permission denied. root@ykla:/home/ykla # ls -la /usr/local/sbin/debootstrap -rw-r--r-- 1 root wheel 24869 Dec 26 08:27 /usr/local/sbin/debootstrap root@ykla:/home/ykla # -------------------------- root@ykla:/home/ykla # pkg info debootstrap debootstrap-1.0.128 Name : debootstrap Version : 1.0.128 Installed on : Fri Dec 30 14:30:14 2022 CST Origin : sysutils/debootstrap Architecture : FreeBSD:13:* Prefix : /usr/local Categories : sysutils Licenses : MIT Maintainer : nc@FreeBSD.org WWW : https://wiki.debian.org/Debootstrap Comment : Install Debian or Ubuntu base system into a directory Annotations : repo_type : binary repository : FreeBSD Flat size : 194KiB Description : debootstrap is a tool which will install a Debian base system into a subdirectory of another, already installed system. It doesn't require an installation CD, just access to a Debian repository. In FreeBSD, you can use debootstrap to install Debian into a subdirectory of your existing FreeBSD installation and then run Debian Linux in a jail or chroot. WWW: https://wiki.debian.org/Debootstrap root@ykla:/home/ykla # same with you. freebsd-13.1-release -------------------------------- root@ykla:/home/ykla # debootstrap jammy /compat/ubuntu http://mirrors.163.com/ubuntu/ /usr/local/sbin/debootstrap: Permission denied. root@ykla:/home/ykla # ls -la /usr/local/sbin/debootstrap -rw-r--r-- 1 root wheel 24869 Dec 26 08:27 /usr/local/sbin/debootstrap root@ykla:/home/ykla # -------------------------- root@ykla:/home/ykla # pkg info debootstrap debootstrap-1.0.128 Name : debootstrap Version : 1.0.128 Installed on : Fri Dec 30 14:30:14 2022 CST Origin : sysutils/debootstrap Architecture : FreeBSD:13:* Prefix : /usr/local Categories : sysutils Licenses : MIT Maintainer : nc@FreeBSD.org WWW : https://wiki.debian.org/Debootstrap Comment : Install Debian or Ubuntu base system into a directory Annotations : repo_type : binary repository : FreeBSD Flat size : 194KiB Description : debootstrap is a tool which will install a Debian base system into a subdirectory of another, already installed system. It doesn't require an installation CD, just access to a Debian repository. In FreeBSD, you can use debootstrap to install Debian into a subdirectory of your existing FreeBSD installation and then run Debian Linux in a jail or chroot. WWW: https://wiki.debian.org/Debootstrap root@ykla:/home/ykla # Same. root@NaN:~ # stat /usr/local/sbin/debootstrap 15338084808003413296 165290 -rw-r--r-- 1 root wheel 18446744073709551615 24869 "Dec 31 16:00:00 1969" "Feb 6 19:19:53 2023" "Feb 7 19:51:48 2023" "Feb 6 19:19:53 2023" 25088 25 0x800 /usr/local/sbin/debootstrap Created attachment 240037 [details] debootstrap In this patch the 755 should solve the /usr/local/sbin/debootstrap: Permission denied. And the +nmu2 solves the fetch problems, countless fetch: http://deb.debian.org/debian/pool/main/d/debootstrap/debootstrap_1.0.128.tar.gz: Not Found untill distcache.FreeBSD.org is tried. And so the makesum was adjusted also. Tested on poudriere and on 13.1-RELEASE amd64. Poudriere returned: ====> Running Q/A tests (stage-qa) Warning: Possible REINPLACE_CMD issues: - - REINPLACE_CMD ran, but did not modify file contents: debootstrap - - REINPLACE_CMD ran, but did not modify file contents: Makefile - - REINPLACE_CMD ran, but did not modify file contents: Makefile - - REINPLACE_CMD ran, but did not modify file contents: scripts/warty - - REINPLACE_CMD ran, but did not modify file contents: scripts/hoary.buildd - - REINPLACE_CMD ran, but did not modify file contents: scripts/hoary - - REINPLACE_CMD ran, but did not modify file contents: scripts/debian-common - - REINPLACE_CMD ran, but did not modify file contents: scripts/dapper - - REINPLACE_CMD ran, but did not modify file contents: scripts/feisty - - REINPLACE_CMD ran, but did not modify file contents: scripts/breezy - - REINPLACE_CMD ran, but did not modify file contents: scripts/sarge.buildd - - REINPLACE_CMD ran, but did not modify file contents: scripts/warty.buildd - - REINPLACE_CMD ran, but did not modify file contents: scripts/sarge.fakechroot - - REINPLACE_CMD ran, but did not modify file contents: scripts/debian-common.orig - - REINPLACE_CMD ran, but did not modify file contents: scripts/edgy But already did so before solving the real problem(s). A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=f78f4879c494526e1bef0653c343753627b62cce commit f78f4879c494526e1bef0653c343753627b62cce Author: Neel Chauhan <nc@FreeBSD.org> AuthorDate: 2023-02-10 17:18:08 +0000 Commit: Neel Chauhan <nc@FreeBSD.org> CommitDate: 2023-02-10 17:18:08 +0000 sysutils/debootstrap: Set +x to debootstrap PR: 268205 sysutils/debootstrap/Makefile | 1 + sysutils/debootstrap/files/patch-Makefile | 12 ++++++------ sysutils/debootstrap/files/patch-debootstrap | 21 ++++++++++++++++----- sysutils/debootstrap/files/patch-scripts-gutsy | 8 ++++---- .../debootstrap/files/patch-scripts_debian-common | 6 +++--- 5 files changed, 30 insertions(+), 18 deletions(-) Try my latest commit to see if it works out of the box. Please reopen if it doesn't. A commit in branch 2023Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=75aae45a58bc23e980bda059aa7a736004246888 commit 75aae45a58bc23e980bda059aa7a736004246888 Author: Neel Chauhan <nc@FreeBSD.org> AuthorDate: 2023-02-10 17:18:08 +0000 Commit: Neel Chauhan <nc@FreeBSD.org> CommitDate: 2023-02-10 17:22:06 +0000 sysutils/debootstrap: Set +x to debootstrap PR: 268205 (cherry picked from commit f78f4879c494526e1bef0653c343753627b62cce) sysutils/debootstrap/Makefile | 1 + sysutils/debootstrap/files/patch-Makefile | 12 ++++++------ sysutils/debootstrap/files/patch-debootstrap | 21 ++++++++++++++++----- sysutils/debootstrap/files/patch-scripts-gutsy | 8 ++++---- .../debootstrap/files/patch-scripts_debian-common | 6 +++--- 5 files changed, 30 insertions(+), 18 deletions(-) Note that the port was broken (for the issue described in this bug report) originally with the update to 1.0.128 when the pkg-plist was changed. See the change that was committed at the time in ports 27fae5a930d53e44b58aa60af9f6d2a839fc1935: --- a/sysutils/debootstrap/pkg-plist +++ b/sysutils/debootstrap/pkg-plist @@ -1,5 +1,5 @@ -@(,,0755) sbin/debootstrap man/man8/debootstrap.8.gz +sbin/debootstrap %%DATADIR%%/functions %%DATADIR%%/scripts/aequorea %%DATADIR%%/scripts/amber See also bug 269584 for a report (and proposed fix) regarding problems with ports f78f4879c494526e1bef0653c343753627b62cce (which was committed in response to this bug report and has a new flavor of subsequent breakage). |