Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild Fetch Restriction... Really? [explained]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3823

PostPosted: Mon Oct 21, 2024 12:45 pm    Post subject: ebuild Fetch Restriction... Really? [explained] Reply with quote

Despite reported restriction
Code:
emerge -p -v --nodeps dev-util/radare2
 * IMPORTANT: 6 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
 * --tree is broken with --nodeps. Disabling...

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

[ebuild  N F  ~] dev-util/radare2-5.9.0::gentoo  USE="-ssl -test" 12 434 KiB

Total: 1 package (1 new), Size of downloads: 12 434 KiB
Fetch Restriction: 1 package (1 unsatisfied)

Fetch instructions for dev-util/radare2-5.9.0:
 * The following files cannot be fetched for radare2:
 *    radare2-5.9.0.tar.gz
 *    radare2-5.9.0-vector35-arm64.tar.gz
 *    radare2-5.9.0-vector35-armv7.tar.gz
package builds fine here without any manual download to unprovisionned /var/cache/distfiles.

What am I missing?

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Mon Oct 21, 2024 2:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22540

PostPosted: Mon Oct 21, 2024 1:18 pm    Post subject: Reply with quote

Do I understand correctly that if you run emerge --verbose dev-util/radare2, then the package builds, even on the system where the --pretend run displayed that warning? Does it still display the warning saying you need to download those files?

How did you end up with 5.9.0 when it is in testing, and 5.9.2 and 5.9.4 are also in testing?
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9243

PostPosted: Mon Oct 21, 2024 1:29 pm    Post subject: Re: dev-util/radare2 Fetch Restriction... Really? Reply with quote

What report? Why no link?
CaptainBlood wrote:
Code:

 * IMPORTANT: 6 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
 * --tree is broken with --nodeps. Disabling...

Why no configuration file updates?
Why --nodeps?
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3823

PostPosted: Mon Oct 21, 2024 1:39 pm    Post subject: Reply with quote

Hu wrote:
Do I understand correctly that if you run emerge --verbose dev-util/radare2, then the package builds, even on the system where the --pretend run displayed that warning? Does it still display the warning saying you need to download those files?
Code:
emerge -v dev-util/radare2
 * IMPORTANT: 6 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

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

Calculating dependencies  .... .... done!
Dependency resolution took 13.47 s (backtrack: 0/20).

[ebuild  N F  ~] dev-util/radare2-5.9.0::gentoo  USE="-ssl -test" 12 434 KiB

Total: 1 package (1 new), Size of downloads: 12 434 KiB
Fetch Restriction: 1 package (1 unsatisfied)

Fetch instructions for dev-util/radare2-5.9.0:
 * The following files cannot be fetched for radare2:
 *    radare2-5.9.0.tar.gz
 *    radare2-5.9.0-vector35-arm64.tar.gz
 *    radare2-5.9.0-vector35-armv7.tar.gz


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-util/radare2-5.9.0::gentoo
>>> Downloading 'http://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/ed/radare2-5.9.0.tar.gz'
--2024-10-21 16:33:13--  http://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/ed/radare2-5.9.0.tar.gz
Resolving gentoo.mirrors.ovh.net... 213.32.5.7
Connecting to gentoo.mirrors.ovh.net|213.32.5.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11425359 (11M) [application/octet-stream]
Saving to: '/var/cache/distfiles/radare2-5.9.0.tar.gz.__download__'

/var/cache/distfile 100%[===================>]  10.90M   789KB/s    in 17s     

2024-10-21 16:33:32 (639 KB/s) - '/var/cache/distfiles/radare2-5.9.0.tar.gz.__download__' saved [11425359/11425359]

 * radare2-5.9.0.tar.gz BLAKE2B SHA512 size ;-) ...                      [ ok ]
>>> Downloading 'http://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/7f/radare2-5.9.0-vector35-arm64.tar.gz'
--2024-10-21 16:33:32--  http://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/7f/radare2-5.9.0-vector35-arm64.tar.gz
Resolving gentoo.mirrors.ovh.net... 213.32.5.7
Connecting to gentoo.mirrors.ovh.net|213.32.5.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1050988 (1.0M) [application/octet-stream]
Saving to: '/var/cache/distfiles/radare2-5.9.0-vector35-arm64.tar.gz.__download__'

/var/cache/distfile 100%[===================>]   1.00M   398KB/s    in 2.6s   

2024-10-21 16:33:35 (398 KB/s) - '/var/cache/distfiles/radare2-5.9.0-vector35-arm64.tar.gz.__download__' saved [1050988/1050988]

 * radare2-5.9.0-vector35-arm64.tar.gz BLAKE2B SHA512 size ;-) ...       [ ok ]
>>> Downloading 'http://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/c9/radare2-5.9.0-vector35-armv7.tar.gz'
--2024-10-21 16:33:35--  http://gentoo.mirrors.ovh.net/gentoo-distfiles/distfiles/c9/radare2-5.9.0-vector35-armv7.tar.gz
Resolving gentoo.mirrors.ovh.net... 213.32.5.7
Connecting to gentoo.mirrors.ovh.net|213.32.5.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 255278 (249K) [application/octet-stream]
Saving to: '/var/cache/distfiles/radare2-5.9.0-vector35-armv7.tar.gz.__download__'

/var/cache/distfile 100%[===================>] 249.29K   220KB/s    in 1.1s   

2024-10-21 16:33:37 (220 KB/s) - '/var/cache/distfiles/radare2-5.9.0-vector35-armv7.tar.gz.__download__' saved [255278/255278]

 * radare2-5.9.0-vector35-armv7.tar.gz BLAKE2B SHA512 size ;-) ...       [ ok ]
>>> Unpacking source...
>>> Unpacking radare2-5.9.0.tar.gz to /var/tmp/portage/dev-util/radare2-5.9.0/work
>>> Unpacking radare2-5.9.0-vector35-arm64.tar.gz to /var/tmp/portage/dev-util/radare2-5.9.0/work
>>> Unpacking radare2-5.9.0-vector35-armv7.tar.gz to /var/tmp/portage/dev-util/radare2-5.9.0/work
>>> Source unpacked in /var/tmp/portage/dev-util/radare2-5.9.0/work
>>> Preparing source in /var/tmp/portage/dev-util/radare2-5.9.0/work/radare2-5.9.0 ...
 * Applying radare2-5.8.2-vector35.patch ...                             [ ok ]
>>> Source prepared.
...
Hu wrote:
How did you end up with 5.9.0 when it is in testing, and 5.9.2 and 5.9.4 are also in testing?
Code:
grep -h dev-util/radare2 /etc/portage/package.accept_keywords/*
=dev-util/radare2-5.9.0

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9243

PostPosted: Mon Oct 21, 2024 1:55 pm    Post subject: Reply with quote

Answer is in looking at ebuild's SRC_URI and devmanual:

Quote:
In EAPI 8, individual items in SRC_URI can be exempted from automatic mirroring and fetching restrictions (imposed by RESTRICT="mirror" and RESTRICT="fetch") by prefixing the addresses with mirror+ or fetch+. For example, in the following ebuild

https://devmanual.gentoo.org/ebuild-writing/variables/index.html#lifting-restrictions
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3823

PostPosted: Mon Oct 21, 2024 2:12 pm    Post subject: Re: dev-util/radare2 Fetch Restriction... Really? Reply with quote

asturm wrote:
What report?
Code:
Fetch Restriction: 1 package (1 unsatisfied)

asturm wrote:
Why no link?
Code:
report
/rĭ-pôrt′/
intransitive verb

1    To make or present an official or formal account of.
    The study reported a decline in heart disease. The audit reports that the company lost money.
2    To write or provide an account or summation of for publication or broadcast.
    report the news.
3    To tell about the presence or occurrence of.
    A burglar was reported in the area.

from The American Heritage® Dictionary of the English Language, 5th Edition. More at Wordnik
N°3 is the right choice.
asturm wrote:
Why no configuration file updates?
Cumbersome
Code:
EMERGE_DEFAULT_OPTS="--alert y --alphabetical --ask-enter-invalid
--autounmask y
--autounmask-only n
--autounmask-unrestricted-atoms y
--autounmask-write y
 --complete-graph y --misspell-suggestions n --noconfmem --nospinner --tree --with-bdeps y"
here, nothing be worried of
asturm wrote:
Why --nodeps?
Code:
time emerge -p -v --nodeps dev-util/radare2

 * IMPORTANT: 6 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
 * --tree is broken with --nodeps. Disabling...

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

[ebuild  N F  ~] dev-util/radare2-5.9.0::gentoo  USE="-ssl -test" 12 434 KiB

Total: 1 package (1 new), Size of downloads: 12 434 KiB
Fetch Restriction: 1 package (1 unsatisfied)

Fetch instructions for dev-util/radare2-5.9.0:
 * The following files cannot be fetched for radare2:
 *    radare2-5.9.0.tar.gz
 *    radare2-5.9.0-vector35-arm64.tar.gz
 *    radare2-5.9.0-vector35-armv7.tar.gz

real   0m2,441s
user   0m1,989s
sys   0m0,402s
vs
Code:
time emerge -p -v dev-util/radare2

 * IMPORTANT: 6 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

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

Calculating dependencies ..... done!
Dependency resolution took 13.67 s (backtrack: 0/20).

[ebuild  N F  ~] dev-util/radare2-5.9.0::gentoo  USE="-ssl -test" 12 434 KiB

Total: 1 package (1 new), Size of downloads: 12 434 KiB
Fetch Restriction: 1 package (1 unsatisfied)

Fetch instructions for dev-util/radare2-5.9.0:
 * The following files cannot be fetched for radare2:
 *    radare2-5.9.0.tar.gz
 *    radare2-5.9.0-vector35-arm64.tar.gz
 *    radare2-5.9.0-vector35-armv7.tar.gz

real   0m17,064s
user   0m16,243s
sys   0m0,934s
response time ~x9 otherwise
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "


Last edited by CaptainBlood on Mon Oct 21, 2024 2:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 9243

PostPosted: Mon Oct 21, 2024 2:18 pm    Post subject: Re: dev-util/radare2 Fetch Restriction... Really? Reply with quote

CaptainBlood wrote:
asturm wrote:
What report?
Code:
Fetch Restriction: 1 package (1 unsatisfied)

asturm wrote:
Why no link?
Code:
report
/rĭ-pôrt′/
intransitive verb

1    To make or present an official or formal account of.
    The study reported a decline in heart disease. The audit reports that the company lost money.
2    To write or provide an account or summation of for publication or broadcast.
    report the news.
3    To tell about the presence or occurrence of.
    A burglar was reported in the area.

from The American Heritage® Dictionary of the English Language, 5th Edition. More at Wordnik
N°3 is the right choice.

'Reported' in that context actually made me think of a bug report you had been aware of, but I can see where you are coming from.
The Portage message to me as a non-native speaker would be described as a 'notice', or 'warning' ...
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1920

PostPosted: Mon Oct 21, 2024 2:28 pm    Post subject: Reply with quote

See also bug 830763.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3823

PostPosted: Mon Oct 21, 2024 2:39 pm    Post subject: Reply with quote

asturm wrote:
Answer is in looking at ebuild's SRC_URI and devmanual:
Quote:
In EAPI 8, individual items in SRC_URI can be exempted from automatic mirroring and fetching restrictions (imposed by RESTRICT="mirror" and RESTRICT="fetch") by prefixing the addresses with mirror+ or fetch+. For example, in the following ebuild
https://devmanual.gentoo.org/ebuild-writing/variables/index.html#lifting-restrictions
Interesting...
ebuild snippet:
Code:
else                                             
    SRC_URI="mirror+https://github.com/radareorg/r
        mirror+https://github.com/radareorg/vector
        mirror+https://github.com/radareorg/vector
        test? ( https://github.com/radareorg/radar
    "

    KEYWORDS="~amd64 ~arm ~arm64 ~x86"
fi
As test USE isn't activated here, I unsure whether this is a misleading emerge output or not.:roll:
Anyhow things are clearer, at least...

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3823

PostPosted: Mon Oct 21, 2024 2:47 pm    Post subject: Reply with quote

CaptainBlood wrote:
Anyhow things are clearer, at least...
sam_ wrote:
See also bug 830763.
A little less clear now. :oops:
What remains though it seems managed to some extend.

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum