Bug 268205 - sysutils/debootstrap: execution permission (+x) missing
Summary: sysutils/debootstrap: execution permission (+x) missing
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Neel Chauhan
URL: https://cgit.freebsd.org/ports/blame/...
Keywords: easy, needs-patch
Depends on:
Blocks:
 
Reported: 2022-12-06 20:17 UTC by Andrey Korobkov
Modified: 2023-02-17 15:42 UTC (History)
5 users (show)

See Also:
nc: maintainer-feedback+


Attachments
debootstrap (1.36 KB, patch)
2023-02-09 23:50 UTC, Leo Vandewoestijne
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Korobkov 2022-12-06 20:17:18 UTC
# debootstrap
/usr/local/sbin/debootstrap: Permission denied.

# ls -la /usr/local/sbin/debootstrap
-rw-r--r--  1 root  wheel  24869 Dec  6 16:38 /usr/local/sbin/debootstrap
Comment 1 ykla 2022-12-30 06:37:59 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 #
Comment 2 ykla 2022-12-30 06:38:08 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 #
Comment 3 Max Parmer 2023-02-08 04:08:24 UTC
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
Comment 4 Leo Vandewoestijne 2023-02-09 23:50:04 UTC
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).
Comment 5 commit-hook freebsd_committer freebsd_triage 2023-02-10 17:18:29 UTC
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(-)
Comment 6 Neel Chauhan freebsd_committer freebsd_triage 2023-02-10 17:21:30 UTC
Try my latest commit to see if it works out of the box.

Please reopen if it doesn't.
Comment 7 commit-hook freebsd_committer freebsd_triage 2023-02-10 17:22:34 UTC
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(-)
Comment 8 John Hein 2023-02-17 15:42:13 UTC
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).