Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806466 - dev-lang/rust-1.55.0 installs files that contain writable and executable sections
Summary: dev-lang/rust-1.55.0 installs files that contain writable and executable sect...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-05 06:34 UTC by Agostino Sarubbo
Modified: 2021-11-02 21:05 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,283.31 KB, application/x-xz)
2021-08-05 06:34 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-08-05 06:34:02 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/rust-1.54.0 installs files that contain writable and executable sections.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
For binary packages it is enough to hide the QA warning.
Comment 1 Agostino Sarubbo gentoo-dev 2021-08-05 06:34:09 UTC
Created attachment 730202 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2021-10-01 11:49:23 UTC
tinderbox has reproduced this issue with version 1.55.0 - Updating summary.
Comment 3 12101111 2021-10-05 09:17:53 UTC
lib.rmeta is not used during linking. It's contain some data only read by rustc.

https://rustc-dev-guide.rust-lang.org/backend/libs-and-metadata.html#metadata
Comment 4 Larry the Git Cow gentoo-dev 2021-10-07 15:48:32 UTC
The bug has been closed via the following commit(s):

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

commit 4b2775ec461086a7299d277193f485947d78f817
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-10-07 15:47:48 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-10-07 15:48:14 +0000

    dev-lang/rust: silence rmeta QA WX warnings
    
    Closes: https://bugs.gentoo.org/806466
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-lang/rust/rust-1.52.1.ebuild | 6 ++++++
 dev-lang/rust/rust-1.53.0.ebuild | 6 ++++++
 dev-lang/rust/rust-1.54.0.ebuild | 6 ++++++
 dev-lang/rust/rust-1.55.0.ebuild | 6 ++++++
 4 files changed, 24 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2021-11-02 21:05:42 UTC
The bug has been referenced in the following commit(s):

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

commit 90086b35b98db16492aff36bae392ffafc64f66b
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-11-02 21:02:31 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-11-02 21:03:21 +0000

    dev-lang/rust: adjust QA_EXECSTACK variable again
    
    Bug: https://bugs.gentoo.org/806466
    Closes: https://bugs.gentoo.org/819402
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-lang/rust/rust-1.52.1.ebuild    | 3 +--
 dev-lang/rust/rust-1.53.0.ebuild    | 3 +--
 dev-lang/rust/rust-1.54.0.ebuild    | 3 +--
 dev-lang/rust/rust-1.55.0.ebuild    | 3 +--
 dev-lang/rust/rust-1.56.0-r1.ebuild | 3 +--
 dev-lang/rust/rust-1.56.1.ebuild    | 3 +--
 6 files changed, 6 insertions(+), 12 deletions(-)

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

commit b37dece3267ea2c18016c66180b57dc7573e384a
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-11-02 20:57:17 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-11-02 21:03:20 +0000

    dev-lang/rust-bin: add QA_EXECSTACK for rmeta sections
    
    Bug: https://bugs.gentoo.org/806466
    Closes: https://bugs.gentoo.org/806468
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 dev-lang/rust-bin/rust-bin-1.52.1.ebuild | 5 +++++
 dev-lang/rust-bin/rust-bin-1.53.0.ebuild | 5 +++++
 dev-lang/rust-bin/rust-bin-1.54.0.ebuild | 5 +++++
 dev-lang/rust-bin/rust-bin-1.55.0.ebuild | 5 +++++
 dev-lang/rust-bin/rust-bin-1.56.0.ebuild | 5 +++++
 dev-lang/rust-bin/rust-bin-1.56.1.ebuild | 5 +++++
 6 files changed, 30 insertions(+)