Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664488 - net-misc/wget-1.19.5: Cannot write to (…) (Success).
Summary: net-misc/wget-1.19.5: Cannot write to (…) (Success).
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://lists.gnu.org/archive/html/bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-24 16:25 UTC by lekto
Modified: 2023-07-19 18:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.72 KB, application/x-info)
2018-08-24 16:25 UTC, lekto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lekto 2018-08-24 16:25:39 UTC
Created attachment 544758 [details]
emerge --info

Today I tried to use wget without permission to write (forgot sudo) and I got weird message:
>lekto@blaszak /usr/portage/sys-apps/lm_sensors $ wget https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm_sensors/lm_sensors-3.4.0_p20180820.ebuild
>--2018-08-24 18:16:26--  https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm_sensors/lm_sensors-3.4.0_p20180820.ebuild
>Resolving gitweb.gentoo.org... 85.143.112.91
>Connecting to gitweb.gentoo.org|85.143.112.91|:443... connected.
>HTTP request sent, awaiting response... 200 OK
>Length: 6338 (6.2K) [text/plain]
>lm_sensors-3.4.0_p20180820.ebuild: Permission denied
>   
>Cannot write to ‘lm_sensors-3.4.0_p20180820.ebuild’ (Success).
Comment 1 Jonas Stein gentoo-dev 2018-08-26 05:50:05 UTC
I can confirm that.
I read (Success) as (Successful download)
I thin this is no Gentoo bug, but comes from upstream. Please discuss it there.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2018-08-26 07:27:50 UTC
Cannot reproduce:

> thomas@testbox /usr/portage/sys-apps/lm_sensors $ wget https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm_sensors/lm_sensors-3.4.0_p20180820.ebuild
> --2018-08-26 09:13:27--  https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm_sensors/lm_sensors-3.4.0_p20180820.ebuild
> Resolving gitweb.gentoo.org (gitweb.gentoo.org)... 85.143.112.91
> Connecting to gitweb.gentoo.org (gitweb.gentoo.org)|85.143.112.91|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 6338 (6,2K) [text/plain]
> lm_sensors-3.4.0_p20180820.ebuild.1: Permission denied
> 
> Cannot write to ‘lm_sensors-3.4.0_p20180820.ebuild.1’ (Permission denied).

Please retry with 'wget --no-config ...' to make sure the executing user hasn't set any default option.

Please also check "exit" code (`echo $?`) after the command, just in case ...

I know that I have seen what you have reported in the past especially when pipe was involved but this isn't the case here.
Comment 3 lekto 2018-08-26 10:42:48 UTC
lekto@blaszak /usr/portage/sys-apps/lm_sensors $ wget --no-config  https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm_sensors/lm_sensors-3.4.0_p20180820.ebuild
--2018-08-26 12:38:45--  https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm_sensors/lm_sensors-3.4.0_p20180820.ebuild
Resolving gitweb.gentoo.org... 85.143.112.91
Connecting to gitweb.gentoo.org|85.143.112.91|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6338 (6.2K) [text/plain]
lm_sensors-3.4.0_p20180820.ebuild.1: Permission denied

Cannot write to ‘lm_sensors-3.4.0_p20180820.ebuild.1’ (Success).
lekto@blaszak /usr/portage/sys-apps/lm_sensors $ echo #?

lekto@blaszak /usr/portage/sys-apps/lm_sensors $ echo $?
0
lekto@blaszak /usr/portage/sys-apps/lm_sensors $ emerge -pvO wget 

These are the packages that would be merged, in order:

[ebuild   R    ] net-misc/wget-1.19.5::gentoo  USE="nls pcre ssl zlib -debug -gnutls -idn -ipv6 -libressl -ntlm -static -test -uuid" 4,352 KiB

Total: 1 package (1 reinstall), Size of downloads: 4,352 KiB
Comment 4 Francesco Turco 2019-11-03 14:46:10 UTC
I can still reproduce this problem with net-misc/wget-1.20.3-r2.

I also sent a bug report upstream:
https://lists.gnu.org/archive/html/bug-wget/2019-11/msg00002.html
Comment 6 Michael Patton 2023-07-19 03:41:06 UTC
(In reply to lekto from comment #3)
> lekto@blaszak /usr/portage/sys-apps/lm_sensors $ wget --no-config 
> https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm_sensors/
> lm_sensors-3.4.0_p20180820.ebuild
> --2018-08-26 12:38:45-- 
> https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-apps/lm_sensors/
> lm_sensors-3.4.0_p20180820.ebuild https://slope-game.io
> Resolving gitweb.gentoo.org... 85.143.112.91
> Connecting to gitweb.gentoo.org|85.143.112.91|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 6338 (6.2K) [text/plain]
> lm_sensors-3.4.0_p20180820.ebuild.1: Permission denied
> 
> Cannot write to ‘lm_sensors-3.4.0_p20180820.ebuild.1’ (Success).
> lekto@blaszak /usr/portage/sys-apps/lm_sensors $ echo #?
> 
> lekto@blaszak /usr/portage/sys-apps/lm_sensors $ echo $?
> 0
> lekto@blaszak /usr/portage/sys-apps/lm_sensors $ emerge -pvO wget 
> 
> These are the packages that would be merged, in order:
> 
> [ebuild   R    ] net-misc/wget-1.19.5::gentoo  USE="nls pcre ssl zlib -debug
> -gnutls -idn -ipv6 -libressl -ntlm -static -test -uuid" 4,352 KiB
> 
> Total: 1 package (1 reinstall), Size of downloads: 4,352 KiB
Comment 7 Mike Gilbert gentoo-dev 2023-07-19 18:18:24 UTC
This is still very much an "upstream" issue.

Based on that mailing list thread, they seem to stubbornly insist that errno should behave differently from reality. I suspect someone would need to send them a patch to get this fixed.