Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913932 - [guru] net-p2p/p2pool-3.10 overwrites CFLAGS/CXXFLAGS or adds uncommon ones
Summary: [guru] net-p2p/p2pool-3.10 overwrites CFLAGS/CXXFLAGS or adds uncommon ones
Status: RESOLVED OBSOLETE
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Adam
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: qa-guru
  Show dependency tree
 
Reported: 2023-09-10 10:31 UTC by Agostino Sarubbo
Modified: 2024-08-02 03:56 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,88.99 KB, text/plain)
2023-09-10 10:31 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 2023-09-10 10:31:57 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-p2p/p2pool-3.6.2 overwrites CFLAGS/CXXFLAGS or adds uncommon ones.
Discovered on: amd64 (internal ref: guru_ci)

NOTE:
This QA check is tinderbox-only, there is the list of the flags that should be dropped out, if you think it is a false positive please let me know.
Comment 1 Agostino Sarubbo gentoo-dev 2023-09-10 10:31:59 UTC
Created attachment 870252 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-10-10 07:36:49 UTC
guru_ci has reproduced this issue with version 3.7 - Updating summary.
Comment 3 Agostino Sarubbo gentoo-dev 2023-11-02 09:01:14 UTC
guru_ci has reproduced this issue with version 3.8 - Updating summary.
Comment 4 Agostino Sarubbo gentoo-dev 2023-12-02 10:56:49 UTC
guru_ci has reproduced this issue with version 3.9 - Updating summary.
Comment 5 Agostino Sarubbo gentoo-dev 2024-01-09 08:04:18 UTC
guru_ci has reproduced this issue with version 3.10 - Updating summary.
Comment 7 Lucio Sauer 2024-08-01 22:13:04 UTC
When you push a commit that resolves a bug (fixes it, makes it obsolete, etc.) please don't mark it as such before the change has been merged into the master branch. AFAIK, tinderboxes don't scan the dev branch so your bug might get reopened.

Also, you can use one of the commit tags outlined here https://www.gentoo.org/glep/glep-0066.html#commit-messages to close bugs automatically once they get merged into master.

Closing bugs with resolution OBSOLETE or PKGREMOVED is possible with the following syntax:
`Closes: https://bugs.gentoo.org/NNNNNN (obsolete)`
`Closes: https://bugs.gentoo.org/NNNNNN (pkgremoved)`
Comment 8 Adam 2024-08-02 00:49:29 UTC
> Closing bugs with resolution OBSOLETE or PKGREMOVED is possible with the
> following syntax:
> `Closes: https://bugs.gentoo.org/NNNNNN (obsolete)`
> `Closes: https://bugs.gentoo.org/NNNNNN (pkgremoved)`

Oh wow, I didn't know you could do that. Thanks. Also. This was a misfile under obsolete when it should have been pkgremoved.

Also, I am not even sure if this is resolved for the 4.0 version of p2pool. These issues pertain to p2pool/feather adding security flags. I remember emailing Agostino about this, and he essentially told me that I should patch out the hardening CFLAGS. So for a while I was patching out these, but I eventually gave up because this extra work of altering the cmakefiles every time they change it pretty much amounts to decreasing the security of the program. 

I'll write a patch for p2pool 4.0 if this issue comes up again. Is there a way to suggest that a package use certain build flags in the same way that a package can have certain USE flags on by default? Or to warn users if they have the upstream security flags turned off in the postinst?

It seems like a bad idea to have the security flags disabled in the default behavior of these ebuilds considering that, as cryptocurrency software, they necessarily are open to the network (allowing for infiltration/exfiltration of data) and exfiltration of data amounts to exfiltration of money.
Comment 9 Viorel Munteanu gentoo-dev 2024-08-02 03:56:15 UTC
PKGREMOVED is only for removing a package altogether.  I see there still are versions of net-p2p/p2pool in the tree, so not PKGREMOVED.