Opened 10 years ago

Closed 10 years ago

#11334 closed bug (invalid)

ERROR: no write permission on /boot/home/config/bin/youtube-dl

Reported by: Giova84 Owned by: bonefish
Priority: normal Milestone: R1
Component: File Systems/packagefs Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I was attempting to update youtube-dl script (~> youtube-dl --update); is necessary to maintain up-to-date this script. Unfortunately, since this script on Haiku, lives inside /boot/home/config/bin and needs - to be updated - the write access on the disk, i get the following error: "ERROR: no write permission on /boot/home/config/bin/youtube-dl". A workaround is to copy this script inside /boot/home/config/non-packaged/bin.

I have modified the hpkg for youtube-dl (using a post-install script) to achieve this workaround during the installation of the hpkg. The following is the content of the post-install script of the youtube_dl-2014.06.19-2.hpkg:

cp /boot/home/config/bin/youtube-dl /boot/home/config/non-packaged/bin
chmod +w /boot/home/config/non-packaged/bin/youtube-dl

Note: it needs chmod because, since youtube-dl lives inside a non writable directory, is copied without the write access attribute.

hrev47986

Change History (1)

comment:1 by humdinger, 10 years ago

Resolution: invalid
Status: newclosed

This is a matter to address to the HaikuPorts mailing list. Back when the youtube-dl recipe was first developed I chose to break the update feature. After discussing solutions (see HaikuPorts thread I agreed with Ingo and/or Axel that this would open a security issue. I figured that updating the whole package from time to time should suffice.

Marking the ticket as invalid, as it's not Haiku's fault in any case.

Note: See TracTickets for help on using tickets.