Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670944 - =dev-lang/nasm-2.14: sandbox issue (>=media-libs/libjpeg-turbo-2.0.0 fails)
Summary: =dev-lang/nasm-2.14: sandbox issue (>=media-libs/libjpeg-turbo-2.0.0 fails)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sergei Trofimovich (RETIRED)
URL: https://bugzilla.nasm.us/show_bug.cgi...
Whiteboard:
Keywords:
: 671078 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-11-11 18:29 UTC by Toralf Förster
Modified: 2018-12-08 18:54 UTC (History)
21 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.02 KB, text/plain)
2018-11-11 18:29 UTC, Toralf Förster
Details
CMakeCache.txt (CMakeCache.txt,27.54 KB, text/plain)
2018-11-11 18:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,19.10 KB, text/plain)
2018-11-11 18:29 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.17 KB, application/x-bzip)
2018-11-11 18:29 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,13.49 KB, application/x-bzip)
2018-11-11 18:29 UTC, Toralf Förster
Details
media-libs:libjpeg-turbo-2.0.0:20181111-151144.log (media-libs:libjpeg-turbo-2.0.0:20181111-151144.log,5.92 KB, text/plain)
2018-11-11 18:29 UTC, Toralf Förster
Details
sandbox-5712.log (sandbox-5712.log,259 bytes, text/plain)
2018-11-11 18:29 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-11-11 18:29:11 UTC
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: fopen_wr
S: deny

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib_libressl_20181110-220243

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)




emerge -qpvO media-libs/libjpeg-turbo
[ebuild  N    ] media-libs/libjpeg-turbo-2.0.0  USE="-java -static-libs"
Comment 1 Toralf Förster gentoo-dev 2018-11-11 18:29:13 UTC
Created attachment 554876 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-11-11 18:29:16 UTC
Created attachment 554878 [details]
CMakeCache.txt
Comment 3 Toralf Förster gentoo-dev 2018-11-11 18:29:19 UTC
Created attachment 554880 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-11-11 18:29:22 UTC
Created attachment 554882 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-11-11 18:29:24 UTC
Created attachment 554884 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-11-11 18:29:27 UTC
Created attachment 554886 [details]
media-libs:libjpeg-turbo-2.0.0:20181111-151144.log
Comment 7 Toralf Förster gentoo-dev 2018-11-11 18:29:30 UTC
Created attachment 554888 [details]
sandbox-5712.log
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-11-13 13:10:38 UTC
Build fails with =dev-lang/nasm-2.14
CCing nasm package maintainer...
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2018-11-13 14:16:58 UTC
*** Bug 671078 has been marked as a duplicate of this bug. ***
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-13 20:01:47 UTC
'/?' looks like an attempt to pass windows-style option to nasm. Reproduced locally. 

Looking at the log it's part of cmake autodetection:

   * ACCESS DENIED:  fopen_wr:     /?
  -- The ASM_NASM compiler identification is NASM

Running
    # nasm '/?'
creates an empty file. Which is unexpected as there is no input to nasm.

Previous behaviour was
    # nasm '/?'
    nasm: warning: file name already has no extension: output will be in `nasm.out'
    nasm: fatal: unable to open input file `/?'

Masking >=nasm-2.14 for now.
Comment 11 Larry the Git Cow gentoo-dev 2018-11-13 20:05:38 UTC
The bug has been referenced in the following commit(s):

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

commit d09ad3d85d31fb36deec08d16e1e1424a75f0a52
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-11-13 20:03:54 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-11-13 20:05:29 +0000

    package.mask: mask >=dev-lang/nasm-2.14, bug #670944
    
    New version started creating files when input file is not set.
    This is unexpected behaviour change and causes sandbox violations.
    
    Reported-by: Toralf Förster
    Reported-by: jorgicio
    Bug: https://bugs.gentoo.org/670944
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2018-11-13 23:51:57 UTC
Filed upstream bug:
    https://bugzilla.nasm.us/show_bug.cgi?id=3392529
Comment 13 Larry the Git Cow gentoo-dev 2018-12-08 18:54:52 UTC
The bug has been closed via the following commit(s):

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

commit bf9717d96a7b02a3d428b0d68c690bd24c13ccd7
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-12-08 18:51:16 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-12-08 18:54:44 +0000

    profiles/package.mask: unmask >=nasm-2.14, bug #670944
    
    dev-lang/nasm-2.14-r1 has the fix.
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/670944
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 profiles/package.mask | 6 ------
 1 file changed, 6 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=416dae40d938b83ecdc44de5e76f04721d5cf066

commit 416dae40d938b83ecdc44de5e76f04721d5cf066
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2018-12-08 18:50:01 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2018-12-08 18:54:43 +0000

    dev-lang/nasm: backport default filename fix, bug #670944
    
    Pulled upstream fix for input==output for single-argument
    invocation from https://bugzilla.nasm.us/show_bug.cgi?id=3392529
    
    Reported-by: Toralf Förster
    Bug: https://bugs.gentoo.org/670944
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../files/nasm-2.14-default-path-BR-3392529.patch  | 41 ++++++++++++++++++++++
 .../nasm/{nasm-2.14.ebuild => nasm-2.14-r1.ebuild} |  1 +
 2 files changed, 42 insertions(+)