Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689654 - dev-lang/ghc::haskell fetch fails due to slyfox.uni.cx being down
Summary: dev-lang/ghc::haskell fetch fails due to slyfox.uni.cx being down
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-11 08:55 UTC by Andriy Utkin (RETIRED)
Modified: 2019-07-17 21:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andriy Utkin (RETIRED) gentoo-dev 2019-07-11 08:55:47 UTC
Distfiles from this host are downloaded even with `binary` USE flag disabled.

Curious: how does this ghc ebuild hackery works, with binary distfiles URLs being present only in comments inside the ebuild?

 # USE=-binary emerge --nodeps --fetchonly -1 ghc

>>> Fetching (1 of 1) dev-lang/ghc-8.6.5::haskell
!!! Failed to set new SELinux execution context. Is your current SELinux context allowed to run Portage?
 * ghc-8.6.5-src.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                    [ ok ]
>>> Downloading 'http://distfiles.gentoo.org/distfiles/ghc-bin-8.6.5-x86_64-pc-linux-gnu.tbz2'
!!! Failed to set new SELinux execution context. Is your current SELinux context allowed to run Portage?
--2019-07-11 09:49:46--  http://distfiles.gentoo.org/distfiles/ghc-bin-8.6.5-x86_64-pc-linux-gnu.tbz2
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
2019-07-11 09:49:46 ERROR 404: Not Found.

>>> Downloading 'https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-8.6.5-x86_64-pc-linux-gnu.tbz2'
!!! Failed to set new SELinux execution context. Is your current SELinux context allowed to run Portage?
--2019-07-11 09:49:47--  https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-8.6.5-x86_64-pc-linux-gnu.tbz2
Resolving slyfox.uni.cx... 81.147.8.7, 2001:470:1f1c:a0f::2
Connecting to slyfox.uni.cx|81.147.8.7|:443... ^C
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2019-07-11 20:24:12 UTC
(In reply to Andrey Utkin from comment #0)
> Distfiles from this host are downloaded even with `binary` USE flag disabled.

It is by design as not all host ghc versions can bootstrap a particular version.

To use host's ghc you can use USE=ghcbootstrap.

> Curious: how does this ghc ebuild hackery works, with binary distfiles URLs
> being present only in comments inside the ebuild?

They are not comments for x86 and amd64:

    arch_binaries="$arch_binaries amd64? ( https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-${PV}-x86_64-pc-linux-gnu.tbz2 )"
    [[ -n $arch_binaries ]] && SRC_URI+=" !ghcbootstrap? ( $arch_binaries )"

>  # USE=-binary emerge --nodeps --fetchonly -1 ghc
> 
...
> >>> Downloading 'https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-8.6.5-x86_64-pc-linux-gnu.tbz2'
> !!! Failed to set new SELinux execution context. Is your current SELinux
> context allowed to run Portage?
> --2019-07-11 09:49:47-- 
> https://slyfox.uni.cx/~slyfox/distfiles/ghc-bin-8.6.5-x86_64-pc-linux-gnu.
> tbz2
> Resolving slyfox.uni.cx... 81.147.8.7, 2001:470:1f1c:a0f::2
> Connecting to slyfox.uni.cx|81.147.8.7|:443... ^C

Should work now. DNS registrar had a short outage delegating uni.cx properly for a while. I'll move 8.6.5 to mirrors as well.
Comment 2 Andriy Utkin (RETIRED) gentoo-dev 2019-07-16 19:25:27 UTC
Should we mark this ticket resolved?
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-07-17 21:17:58 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5434e5130e1cde63875406c47abda480646f22e will eventually mirror binaries onto gentoo mirrors.