Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge pulling package from wrong place, maybe... [SOLVED]
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
zelezarof
n00b
n00b


Joined: 03 Jul 2020
Posts: 6

PostPosted: Fri Jul 03, 2020 3:02 am    Post subject: emerge pulling package from wrong place, maybe... [SOLVED] Reply with quote

Hey guys,

I'm new to gentoo, only 4 weeks in and loving it, so far I have been able to install gentoo, install, unmask, update use flags, etc, without much problem until today...

The thing is, I'm trying to install multimc5 from one of the unnoficials overlays provided by running: layman -L

Here is what I have done so far:

1. Installed layman
Code:
emerge -av layman

2. Listed available overlays:
Code:
 layman -L

3. Enable the overlay that contains the ebuild I'm insterested in:
Code:
layman -a jorgicio

4. Unmasked the ebuild:
Code:
echo "=games-action/multimc5-0.6.11 ~amd64" > /etc/portage/package.accept_keywords/multimc5

5. Attempted installation:
Code:

emerge -av multimc5

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) games-action/multimc5-0.6.11::jorgicio
>>> Downloading 'http://gentoo.gossamerhost.com/distfiles/88/multimc5-0.6.11.tar.gz'
--2020-07-02 21:49:01--  http://gentoo.gossamerhost.com/distfiles/88/multimc5-0.6.11.tar.gz
Resolving gentoo.gossamerhost.com... 208.70.246.16
Connecting to gentoo.gossamerhost.com|208.70.246.16|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-02 21:49:02 ERROR 404: Not Found.

>>> Downloading 'rsync://gentoo.gossamerhost.com/gentoo-distfiles/distfiles/88/multimc5-0.6.11.tar.gz'
rsync: link_stat "/distfiles/88/multimc5-0.6.11.tar.gz" (in gentoo-distfiles) failed: No such file or directory (2)

sent 8 bytes  received 133 bytes  94.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1779) [Receiver=3.2.0]
>>> Downloading 'ftp://mirrors.tera-byte.com/pub/gentoo/distfiles/88/multimc5-0.6.11.tar.gz'
pathconf: Permission denied
--2020-07-02 21:49:03--  ftp://mirrors.tera-byte.com/pub/gentoo/distfiles/88/multimc5-0.6.11.tar.gz
           => ‘/var/cache/distfiles/multimc5-0.6.11.tar.gz.__download__’
Resolving mirrors.tera-byte.com... 216.194.64.133
Connecting to mirrors.tera-byte.com|216.194.64.133|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/gentoo/distfiles/88 ... done.
==> SIZE multimc5-0.6.11.tar.gz ... done.

==> PASV ... done.    ==> RETR multimc5-0.6.11.tar.gz ...
No such file ‘multimc5-0.6.11.tar.gz’.

>>> Downloading 'http://gentoo.mirrors.tera-byte.com/distfiles/88/multimc5-0.6.11.tar.gz'
--2020-07-02 21:49:06--  http://gentoo.mirrors.tera-byte.com/distfiles/88/multimc5-0.6.11.tar.gz
Resolving gentoo.mirrors.tera-byte.com... 216.194.64.133
Connecting to gentoo.mirrors.tera-byte.com|216.194.64.133|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-02 21:49:06 ERROR 404: Not Found.

>>> Downloading 'rsync://mirrors.tera-byte.com/gentoo/distfiles/88/multimc5-0.6.11.tar.gz'
mirrors.tera-byte.com

rsync: link_stat "/distfiles/88/multimc5-0.6.11.tar.gz" (in gentoo) failed: No such file or directory (2)

sent 8 bytes  received 115 bytes  82.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1779) [Receiver=3.2.0]
>>> Downloading 'ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/distfiles/layout.conf'
pathconf: Permission denied
--2020-07-02 21:49:07--  ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/distfiles/layout.conf
           => ‘/var/cache/distfiles/.layout.conf.mirror.csclub.uwaterloo.ca.__download__’
Resolving mirror.csclub.uwaterloo.ca... ^C

6. Head scratching began, trying to understand what's goig on. and attempted a few things:
- opening the ebuild changing variable replacement of URI with hardcoed values, as well as updating b2sum values and file size... --> Nothing changed
- Tinkered with my DNS maybe something was wrong... --> dead end
- Tried a different overlay --> same error
- Tried turning off and on again my computer... didn't work.... ok this step I did not tried :wink:


With that out of the way,

What I'm wondering is, am I doing something wrong, did I forget a step, should it be trying to download a tar from the official mirror despite it being an overlay?
Any ideas of how to fix it or work around it would be much appreciated.

Thank you in advance.
_________________
- JMZ


Last edited by zelezarof on Fri Jul 03, 2020 6:43 am; edited 1 time in total
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3857
Location: Illinois, USA

PostPosted: Fri Jul 03, 2020 3:36 am    Post subject: Reply with quote

If you know where the distfile is on the internet, pull it down with wget and place it in /usr/portage/distfiles manually. I recently had to do this with some in-tree ebuild that didn't seem to have it's distfile on any v4 mirror. (I don't have ip v6 service).
Back to top
View user's profile Send private message
zelezarof
n00b
n00b


Joined: 03 Jul 2020
Posts: 6

PostPosted: Fri Jul 03, 2020 4:48 am    Post subject: Reply with quote

@Tony0945 thank you so much for the tip.

The distfiles were supposed to be pulled from github, but emerge is not honoring the variable replacement (as far as I can see, I might be wrong).

I tried placing the files under /usr/portage/distfiles, but it seems that, that is not a place where my gentoo installation looks for them, then I looked closer to the error I got from the mirror server and it mentioned the path: /var/cache/distfiles; which I tried and then... BINGO!! it worked!

Something I would like to know now is, how can we make emerge honor the variable replacement and not jus pull from the official mirrors? could it be a bug that needs to be reported?

The FIXME tag exemplifies the replacement that I'm expecting.

Code:

MY_PN="MultiMC5"
MY_P="${MY_PN}-${PV}"
QUAZIP_VER="multimc-3"
LIBNBTPLUSPLUS_VER="multimc-0.6.1"

DESCRIPTION="An advanced Qt5-based open-source launcher for Minecraft"
HOMEPAGE="https://multimc.org"
BASE_URI="https://github.com/MultiMC"
SRC_URI="
   ${BASE_URI}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
        # FIXME: curl -Lo multimc5-0.6.11.tar.gz https://github.com/MultiMC/MultiMC5/archive/0.6.11.tar.gz

   ${BASE_URI}/libnbtplusplus/archive/${LIBNBTPLUSPLUS_VER}.tar.gz -> libnbtplusplus-${LIBNBTPLUSPLUS_VER}.tar.gz
        # FIXME: curl -Lo libnbtplusplus-multimc-0.6.1.tar.gz https://github.com/MultiMC/libnbtplusplus/archive/multimc-0.6.1.tar.gz

   ${BASE_URI}/quazip/archive/${QUAZIP_VER}.tar.gz -> quazip-${QUAZIP_VER}.tar.gz
        # FIXME: curl -Lo quazip-multimc-3.tar.gz https://github.com/MultiMC/quazip/archive/multimc-3.tar.gz
"


Again, I might be dead wrong about emerge's behaviour or it might be bug, anyone who can shed some light?, it would be very much appreciated.
_________________
- JMZ
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18505

PostPosted: Fri Jul 03, 2020 5:15 am    Post subject: Reply with quote

I followed your steps and it downloaded just fine.

Code:
$ /usr/bin/sudo /usr/bin/layman -a jorgicio

 * Adding overlay...
 * Overlay "jorgicio" is not official. Continue installing? [y/n]: y
 * Running Git... # ( cd /var/lib/layman  && /usr/bin/git clone https://github.com/jorgicio/jorgicio-gentoo.git /var/lib/layman/jorgicio )
Cloning into '/var/lib/layman/jorgicio'...
remote: Enumerating objects: 342, done.
remote: Counting objects: 100% (342/342), done.
remote: Compressing objects: 100% (261/261), done.
remote: Total 25123 (delta 129), reused 230 (delta 76), pack-reused 24781
Receiving objects: 100% (25123/25123), 8.70 MiB | 2.52 MiB/s, done.
Resolving deltas: 100% (13181/13181), done.
 * Running Git... # ( cd /var/lib/layman/jorgicio  && /usr/bin/git config user.name "layman" )
 * Running Git... # ( cd /var/lib/layman/jorgicio  && /usr/bin/git config user.email "layman@localhost" )
 * Successfully added overlay(s) jorgicio.


Code:
$ /usr/bin/sudo /usr/bin/emerge -vaf --nodeps games-action/multimc5

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

[ebuild  N    ~] games-action/multimc5-0.6.11::jorgicio  2,472 KiB

Total: 1 package (1 new), Size of downloads: 2,472 KiB

Would you like to fetch the source files for these packages? [Yes/No] y

>>> Fetching (1 of 1) games-action/multimc5-0.6.11::jorgicio                                                                   
>>> Downloading 'http://distfiles.gentoo.org/distfiles/88/multimc5-0.6.11.tar.gz'
--2020-07-02 22:57:21--  http://distfiles.gentoo.org/distfiles/88/multimc5-0.6.11.tar.gz
Resolving distfiles.gentoo.org... 64.50.233.100, 140.211.166.134, 64.50.236.52
Connecting to distfiles.gentoo.org|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-02 22:57:21 ERROR 404: Not Found.

>>> Downloading 'https://github.com/MultiMC/MultiMC5/archive/0.6.11.tar.gz'                                                   
--2020-07-02 22:57:21--  https://github.com/MultiMC/MultiMC5/archive/0.6.11.tar.gz                                             
Resolving github.com... 140.82.112.3                                                                                           
Connecting to github.com|140.82.112.3|:443... connected.                                                                       
HTTP request sent, awaiting response... 302 Found                                                                             
Location: https://codeload.github.com/MultiMC/MultiMC5/tar.gz/0.6.11 [following]                                               
--2020-07-02 22:57:21--  https://codeload.github.com/MultiMC/MultiMC5/tar.gz/0.6.11                                           
Resolving codeload.github.com... 140.82.113.10                                                                                 
Connecting to codeload.github.com|140.82.113.10|:443... connected.                                                             
HTTP request sent, awaiting response... 200 OK                                                                                 
Length: unspecified [application/x-gzip]                                                                                       
Saving to: ‘/var/repos/distfiles/multimc5-0.6.11.tar.gz.__download__’   

/var/repos/distfiles/multimc5-0     [      <=>                                              ]   2.27M  2.03MB/s    in 1.1s     

2020-07-02 22:57:23 (2.03 MB/s) - ‘/var/repos/distfiles/multimc5-0.6.11.tar.gz.__download__’ saved [2379632]

 * multimc5-0.6.11.tar.gz BLAKE2B SHA512 size ;-) ...                                                                   [ ok ]
>>> Downloading 'http://distfiles.gentoo.org/distfiles/fc/libnbtplusplus-multimc-0.6.1.tar.gz'
--2020-07-02 22:57:23--  http://distfiles.gentoo.org/distfiles/fc/libnbtplusplus-multimc-0.6.1.tar.gz
Resolving distfiles.gentoo.org... 64.50.236.52, 64.50.233.100, 140.211.166.134
Connecting to distfiles.gentoo.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-02 22:57:23 ERROR 404: Not Found.

>>> Downloading 'https://github.com/MultiMC/quazip/archive/multimc-3.tar.gz'
--2020-07-02 22:57:24--  https://github.com/MultiMC/quazip/archive/multimc-3.tar.gz
Resolving github.com... 140.82.112.3
Connecting to github.com|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/MultiMC/quazip/tar.gz/multimc-3 [following]
--2020-07-02 22:57:24--  https://codeload.github.com/MultiMC/quazip/tar.gz/multimc-3
Resolving codeload.github.com... 140.82.113.10
Connecting to codeload.github.com|140.82.113.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/var/repos/distfiles/quazip-multimc-3.tar.gz.__download__’

/var/repos/distfiles/quazip-mul     [ <=>                                                   ] 101.09K   559KB/s    in 0.2s   

2020-07-02 22:57:25 (559 KB/s) - ‘/var/repos/distfiles/quazip-multimc-3.tar.gz.__download__’ saved [103519]

 * quazip-multimc-3.tar.gz BLAKE2B SHA512 size ;-) ...

>>> Downloading 'https://github.com/MultiMC/libnbtplusplus/archive/multimc-0.6.1.tar.gz'
--2020-07-02 22:57:23--  https://github.com/MultiMC/libnbtplusplus/archive/multimc-0.6.1.tar.gz
Resolving github.com... 140.82.112.3
Connecting to github.com|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/MultiMC/libnbtplusplus/tar.gz/multimc-0.6.1 [following]
--2020-07-02 22:57:23--  https://codeload.github.com/MultiMC/libnbtplusplus/tar.gz/multimc-0.6.1
Resolving codeload.github.com... 140.82.113.10
Connecting to codeload.github.com|140.82.113.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/var/repos/distfiles/libnbtplusplus-multimc-0.6.1.tar.gz.__download__’

/var/repos/distfiles/libnbtplus     [ <=>                                                   ]  46.07K  --.-KB/s    in 0.1s   

2020-07-02 22:57:24 (386 KB/s) - ‘/var/repos/distfiles/libnbtplusplus-multimc-0.6.1.tar.gz.__download__’ saved [47171]

 * libnbtplusplus-multimc-0.6.1.tar.gz BLAKE2B SHA512 size ;-) ...                                                      [ ok ]
>>> Downloading 'http://distfiles.gentoo.org/distfiles/6b/quazip-multimc-3.tar.gz'
--2020-07-02 22:57:24--  http://distfiles.gentoo.org/distfiles/6b/quazip-multimc-3.tar.gz
Resolving distfiles.gentoo.org... 64.50.233.100, 140.211.166.134, 64.50.236.52
Connecting to distfiles.gentoo.org|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-02 22:57:24 ERROR 404: Not Found.

>>> Downloading 'https://github.com/MultiMC/quazip/archive/multimc-3.tar.gz'
--2020-07-02 22:57:24--  https://github.com/MultiMC/quazip/archive/multimc-3.tar.gz
Resolving github.com... 140.82.112.3
Connecting to github.com|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/MultiMC/quazip/tar.gz/multimc-3 [following]
--2020-07-02 22:57:24--  https://codeload.github.com/MultiMC/quazip/tar.gz/multimc-3
Resolving codeload.github.com... 140.82.113.10
Connecting to codeload.github.com|140.82.113.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/var/repos/distfiles/quazip-multimc-3.tar.gz.__download__’

/var/repos/distfiles/quazip-mul     [ <=>                                                   ] 101.09K   559KB/s    in 0.2s   

2020-07-02 22:57:25 (559 KB/s) - ‘/var/repos/distfiles/quazip-multimc-3.tar.gz.__download__’ saved [103519]

 * quazip-multimc-3.tar.gz BLAKE2B SHA512 size ;-) ...


Was the error output in your first post from a version of the ebuild you tried to fix? What is the output of emerge --info ?
_________________
The media sells it and you live the role.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24369
Location: here

PostPosted: Fri Jul 03, 2020 5:23 am    Post subject: Reply with quote

zelezarof wrote:
I tried placing the files under /usr/portage/distfiles, but it seems that, that is not a place where my gentoo installation looks for them, then I looked closer to the error I got from the mirror server and it mentioned the path: /var/cache/distfiles; which I tried and then... BINGO!! it worked!

Yes /usr/portage/distfiles is the old place, /var/cache/distfiles is the correct new one

zelezarof wrote:
Something I would like to know now is, how can we make emerge honor the variable replacement and not jus pull from the official mirrors? could it be a bug that needs to be reported?

Usually portage if not find source on a mirrors download package directly from SRC_URI, in my system for example
Code:
>>> Fetching (1 of 1) games-action/multimc5-0.6.11::jorgicio
>>> Downloading 'https://mirror.init7.net/gentoo/distfiles/88/multimc5-0.6.11.tar.gz'
--2020-07-03 07:15:25--  https://mirror.init7.net/gentoo/distfiles/88/multimc5-0.6.11.tar.gz
Resolving mirror.init7.net... 109.202.202.202, 2001:1620::1620
Connecting to mirror.init7.net|109.202.202.202|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-03 07:15:25 ERROR 404: Not Found.

>>> Downloading 'https://github.com/MultiMC/MultiMC5/archive/0.6.11.tar.gz'
--2020-07-03 07:15:25--  https://github.com/MultiMC/MultiMC5/archive/0.6.11.tar.gz
Resolving github.com... 140.82.118.4
Connecting to github.com|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/MultiMC/MultiMC5/tar.gz/0.6.11 [following]
--2020-07-03 07:15:25--  https://codeload.github.com/MultiMC/MultiMC5/tar.gz/0.6.11
Resolving codeload.github.com... 140.82.113.10
Connecting to codeload.github.com|140.82.113.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: ‘/var/cache/distfiles/multimc5-0.6.11.tar.gz.__download__’

/var/cache/distfiles/multimc     [   <=>                                      ]   2.27M  3.35MB/s    in 0.7s   

2020-07-03 07:15:26 (3.35 MB/s) - ‘/var/cache/distfiles/multimc5-0.6.11.tar.gz.__download__’ saved [2379632]

This can be changed if you enable FEATURES="force-mirror"
make.conf:
              force-mirror
                     Only fetch files from configured mirrors, ignoring SRC_URI, except when mirror is in  the
                     ebuild(5) RESTRICT variable.

but by default it isn't enabled.
Try to run command GENTOO_MIRRORS="" emerge -av multimc5 and see if download package directly from SRC_URI, if is the case the problem is one of your selected mirrors
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
zelezarof
n00b
n00b


Joined: 03 Jul 2020
Posts: 6

PostPosted: Fri Jul 03, 2020 5:24 am    Post subject: Reply with quote

@pjp, hi!

Noup, the error was from the original files pulled from the overlay.

Based on your output, then the problem is most likely with my system? how could I debug that?

Here is the output for emerge --info
Code:

Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.30-r8, 5.4.48-gentoo x86_64)
=================================================================
System uname: Linux-5.4.48-gentoo-x86_64-Intel-R-_Core-TM-_i7-8700K_CPU_@_3.70GHz-with-gentoo-2.6
KiB Mem:    16318596 total,  15236376 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Thu, 02 Jul 2020 07:00:01 +0000
Head commit of repository gentoo: a5cf0e5afaa1597d2692f1f64b7e7e931863ff07
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.3::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

jorgicio
    location: /var/lib/layman/jorgicio
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com rsync://gentoo.gossamerhost.com/gentoo-distfiles/ ftp://mirrors.tera-byte.com/pub/gentoo http://gentoo.mirrors.tera-byte.com/ rsync://mirrors.tera-byte.com/gentoo ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo https://gentoo.ussg.indiana.edu/ http://gentoo.ussg.indiana.edu/ https://gentoo.osuosl.org/ http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ https://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/ https://mirror.sjc02.svwh.net/gentoo/ http://mirror.sjc02.svwh.net/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.cs.utah.edu/"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vim-syntax vorbis wxwidgets x264 xattr xcb xft xml xv xvid zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Thanks!
_________________
- JMZ
Back to top
View user's profile Send private message
zelezarof
n00b
n00b


Joined: 03 Jul 2020
Posts: 6

PostPosted: Fri Jul 03, 2020 5:33 am    Post subject: Reply with quote

@fedeliallalinea, thanks for the info.

Quote:
Try to run command GENTOO_MIRRORS="" emerge -av multimc5 and see if download package directly from SRC_URI, if is the case the problem is one of your selected mirrors


Once I "disabled" all the mirrors, it did pulled the files from github! Seems that I choosed some bad mirrors or I have so many that it was just going to take a long time.

Any mirror recommendations for North America? or any best practices on the amount of mirrors that should be selected?

Thanks!
_________________
- JMZ
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24369
Location: here

PostPosted: Fri Jul 03, 2020 5:44 am    Post subject: Reply with quote

I've setted only one mirror https://mirror.init7.net/gentoo from Switzerland, I don't know a good mirror from US
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18505

PostPosted: Fri Jul 03, 2020 5:56 am    Post subject: Reply with quote

zelezarof wrote:
or I have so many that it was just going to take a long time.
I think that is exactly the issue. If you look at the "Downloading" messages, they seem to match with the listing of your mirrors.

If there are a couple or few nearby, you could put those in the list, but you should also consider using mirrorselect (the install guide also presented it as an option and is referenced in the below link).

https://wiki.gentoo.org/wiki/Mirrorselect

I will warn you in advance that there is a bad mirror for which the infra team hasn't been able to identify completely.
_________________
The media sells it and you live the role.
Back to top
View user's profile Send private message
zelezarof
n00b
n00b


Joined: 03 Jul 2020
Posts: 6

PostPosted: Fri Jul 03, 2020 6:00 am    Post subject: Reply with quote

pjp wrote:

Code:
$ /usr/bin/sudo /usr/bin/emerge -vaf --nodeps games-action/multimc5



I tried emerge -vaf multimc5 and it went stright to github for them.

$ man emerge wrote:

--fetchonly, -f
Instead of doing any package building, just perform fetches for all packages (fetch things from
SRC_URI based upon USE setting).


Seems that -f does the trick. And based the man page, that flag tells emerge to use SRC_URI which is what I wanted it to do :D

Now the thing is... -f only works to download the file, and looking at the man page there is no option that could tell emerge to use the SRC_URI as default.

Etherway, is it possible to force the use of SRC_URI during build time and not only fetching the packages? if not at least I now know what I must do to get things working :D

Thank you so much for your help guys!
_________________
- JMZ
Back to top
View user's profile Send private message
zelezarof
n00b
n00b


Joined: 03 Jul 2020
Posts: 6

PostPosted: Fri Jul 03, 2020 6:20 am    Post subject: Reply with quote

pjp wrote:


https://wiki.gentoo.org/wiki/Mirrorselect

I will warn you in advance that there is a bad mirror for which the infra team hasn't been able to identify completely.


I really apreciate that information, thanks a lot PJP, my issue is now solved.

Is there a way to mark this topic as solved?

Again, thanks!
_________________
- JMZ
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24369
Location: here

PostPosted: Fri Jul 03, 2020 6:35 am    Post subject: Reply with quote

zelezarof wrote:
Is there a way to mark this topic as solved?

Edit your first post and change subject adding tag [SOLVED]
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3857
Location: Illinois, USA

PostPosted: Fri Jul 03, 2020 3:06 pm    Post subject: Reply with quote

zelezarof wrote:

I tried placing the files under /usr/portage/distfiles, but it seems that, that is not a place where my gentoo installation looks for them, then I looked closer to the error I got from the mirror server and it mentioned the path: /var/cache/distfiles; which I tried and then... BINGO!! it worked!

So sorry to lead you astray! /usr/portage/distfiles is the old default location. When it switched to /var/cache/distfiles, I symlinked that to the old location to avoid rearranging my files.
I'm glad it helped somewhat anyway.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18505

PostPosted: Sat Jul 04, 2020 2:19 am    Post subject: Reply with quote

zelezarof wrote:
I tried emerge -vaf multimc5 and it went stright to github for them.

$ man emerge wrote:

--fetchonly, -f
Instead of doing any package building, just perform fetches for all packages (fetch things from
SRC_URI based upon USE setting).


Seems that -f does the trick. And based the man page, that flag tells emerge to use SRC_URI which is what I wanted it to do :D

Now the thing is... -f only works to download the file, and looking at the man page there is no option that could tell emerge to use the SRC_URI as default.

Etherway, is it possible to force the use of SRC_URI during build time and not only fetching the packages? if not at least I now know what I must do to get things working :D

Thank you so much for your help guys!
You're welcome.

But I don't think -f is working as you think it is. If you look at my output, it tried to use a mirror and failed to find it before going to github.I could be mistaken, but if it worked as you stated, it should not first have tried to use a mirror in my case.
_________________
The media sells it and you live the role.
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