Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734080 - app-portage/g-sorcery-0.2.1-r1: emerge of generated ebuilds fails without FEATURES=-network-sandbox
Summary: app-portage/g-sorcery-0.2.1-r1: emerge of generated ebuilds fails without FEA...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Layman Overlay Manager project
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2020-07-27 11:47 UTC by CaptainBlood
Modified: 2021-05-04 17:27 UTC (History)
1 user (show)

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


Attachments
failed build log (app-emacs:swiper-20200503.1102:20200727-114415.log,1.60 KB, text/x-log)
2020-07-27 11:49 UTC, CaptainBlood
Details
emerge --info (emerge-info.txt,9.78 KB, text/plain)
2020-07-27 19:20 UTC, CaptainBlood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CaptainBlood 2020-07-27 11:47:32 UTC
mrg swiper 

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

Calculating dependencies  ... done!
[ebuild   R   ~] app-emacs/swiper-20200503.1102 

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-emacs/swiper-20200503.1102::melpa
>>> Failed to emerge app-emacs/swiper-20200503.1102, Log file:
>>>  '/var/log/portage/app-emacs:swiper-20200503.1102:20200727-114415.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 3.23, 3.22, 2.99
 * Package:    app-emacs/swiper-20200503.1102
 * Repository: melpa
 * Maintainer: jauhien@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Emacs version: 26.3
>>> Unpacking source...
--2020-07-27 14:44:16--  http://melpa.org/packages/swiper-20200503.1102.el
Resolving melpa.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address 'melpa.org'
 * ERROR: app-emacs/swiper-20200503.1102::melpa failed (unpack phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  125:  Called src_unpack
 *   environment, line 1076:  Called gs-elpa_src_unpack
 *   environment, line 1028:  Called g-sorcery_src_unpack
 *   environment, line  994:  Called g-sorcery_fetch
 *   environment, line  987:  Called die
 * The specific snippet of code:
 *           $GSORCERY_FETCH_CMD ${REPO_URI}${SOURCEFILE} || die;
 * 
 * If you need support, post the output of `emerge --info '=app-emacs/swiper-20200503.1102::melpa'`,
 * the complete build log and the output of `emerge -pqv '=app-emacs/swiper-20200503.1102::melpa'`.
 * The complete build log is located at '/var/log/portage/app-emacs:swiper-20200503.1102:20200727-114415.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/app-emacs/swiper-20200503.1102/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emacs/swiper-20200503.1102/temp/environment'.
 * Working directory: '/var/cache/distfiles'
 * S: '/var/tmp/portage/app-emacs/swiper-20200503.1102/work/swiper-20200503.1102'
amd64 ~ # FEATURES=-network-sandbox mrg swiper
These are the packages that would be merged, in reverse order:

Calculating dependencies  .... done!
[ebuild   R   ~] app-emacs/swiper-20200503.1102 

>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-emacs/swiper-20200503.1102::melpa
>>> Installing (1 of 1) app-emacs/swiper-20200503.1102::melpa
>>> Jobs: 1 of 1 complete                           Load avg: 3.69, 3.35, 3.05
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

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

Reproducible: Always
Comment 1 CaptainBlood 2020-07-27 11:49:13 UTC
Created attachment 650954 [details]
failed build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-27 15:01:23 UTC
Please include emerge --info too.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2020-07-27 15:48:56 UTC
To be honest, I doubt we can do anything about auto-detecting and disabling network-sandbox when needed.   Especially since the network-sandbox is default for security reasons.

If there is an alternative to disabling the network-sandbox for gs-elpa generated ebuilds, I am open to suggestions.
Comment 4 CaptainBlood 2020-07-27 19:20:59 UTC
Created attachment 651054 [details]
emerge --info
Comment 5 CaptainBlood 2020-07-27 19:25:34 UTC
(In reply to Brian Dolbec from comment #3)
> To be honest, I doubt we can do anything about auto-detecting and disabling
> network-sandbox when needed.   Especially since the network-sandbox is
> default for security reasons.
> 
> If there is an alternative to disabling the network-sandbox for gs-elpa
> generated ebuilds, I am open to suggestions.

From a user point of view, network-sandbox cancelling requirement is rather new [6 to 8 months IIRC).
Maybe this is linked to network-sandbox switch to default. Don't how old this is.
Thks 4 ur attention, interest & support.
Comment 6 Ulrich Müller gentoo-dev 2021-05-03 05:33:12 UTC
(In reply to Brian Dolbec from comment #3)
> To be honest, I doubt we can do anything about auto-detecting and disabling
> network-sandbox when needed.   Especially since the network-sandbox is
> default for security reasons.
> 
> If there is an alternative to disabling the network-sandbox for gs-elpa
> generated ebuilds, I am open to suggestions.

Indeed, network-sandbox must be disabled for src_unpack(). Presumably this should be done in g-sorcery.eclass. I'll take a look into it.
Comment 7 Larry the Git Cow gentoo-dev 2021-05-04 15:50:35 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/g-sorcery.git/commit/?id=13e68826557ccc22b6968814066f5442ccf67b3c

commit 13e68826557ccc22b6968814066f5442ccf67b3c
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2021-05-03 21:24:39 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2021-05-04 15:48:09 +0000

    g-sorcery.eclass: Add live property
    
    This will disable the network-sandbox during the unpack phase.
    
    Bug: https://bugs.gentoo.org/734080
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 g_sorcery/data/g-sorcery.eclass | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
Comment 8 Larry the Git Cow gentoo-dev 2021-05-04 17:27:22 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cc2528773c80050f10b73d2e118851ef4a1394b

commit 6cc2528773c80050f10b73d2e118851ef4a1394b
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2021-05-04 16:28:26 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2021-05-04 17:26:03 +0000

    app-portage/g-sorcery: Version bump to 0.2.2
    
    Closes: https://bugs.gentoo.org/734080
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 app-portage/g-sorcery/Manifest               |  1 +
 app-portage/g-sorcery/g-sorcery-0.2.2.ebuild | 47 ++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)