Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 858797 - x11-misc/polybar-3.6.3 attempts to install files outside prefix
Summary: x11-misc/polybar-3.6.3 attempts to install files outside prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: John Helmert III
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-07-18 13:15 UTC by slondr
Modified: 2022-07-20 15:49 UTC (History)
3 users (show)

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


Attachments
the output of build.log (build.log,120.39 KB, text/plain)
2022-07-18 13:15 UTC, slondr
Details
fix-prefix-etc.patch (fix-prefix-etc.patch,351 bytes, patch)
2022-07-18 21:20 UTC, John Helmert III
Details | Diff
build.log, after applying proposed patch (build.log,120.85 KB, text/plain)
2022-07-19 13:18 UTC, slondr
Details
Fixed version of the previous patch (fix-prefix-etc-fixed.patch,350 bytes, patch)
2022-07-19 21:11 UTC, Patrick Ziegler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description slondr 2022-07-18 13:15:28 UTC
Created attachment 792155 [details]
the output of build.log

Hi, I am attempting to upgrade from polybar 3.5.7 to polybar 3.6.3 in my prefix, but the build fails with "Aborting due to QA concerns: there are files installed outside the prefix". I've attached the complete build logs. 

I previously asked in IRC if this is something to be reported as a bug here or upstream, and was recommended to discuss with upstream first. I did so at [1], and was told it's a packaging problem to be reported to the ebuild maintainers.

I am not sure if this is related, but there was a commit[2] 10 months ago which edited CMakeLists.txt to hard-code /etc as the installation directory.

[1] https://github.com/polybar/polybar/discussions/2763
[2] https://github.com/polybar/polybar/commit/282b0f4e73e9cbb68afd6e168c472e3f422e9a6f
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-07-18 21:20:25 UTC
Created attachment 792209 [details, diff]
fix-prefix-etc.patch

Can you try throwing this patch into your prefix's /etc/portage/x11-misc/polybar dir and rebuilding polybar?
Comment 2 slondr 2022-07-19 12:45:23 UTC
Sadly that didn't help, the build output says it's applying the patch but I get the same QA error at the end.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-19 12:47:00 UTC
(In reply to slondr from comment #2)
> Sadly that didn't help, the build output says it's applying the patch but I
> get the same QA error at the end.

Can you share the new log please?
Comment 4 slondr 2022-07-19 13:18:24 UTC
Created attachment 792395 [details]
build.log, after applying proposed patch
Comment 5 slondr 2022-07-19 13:19:11 UTC
I uploaded the new build.log, although I believe I selected the wrong content type.
Comment 6 Larry the Git Cow gentoo-dev 2022-07-19 16:43:44 UTC
The bug has been referenced in the following commit(s):

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

commit d56ad80de71cba63e8862ea32fabd6f31b8cdf00
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2022-07-19 16:42:50 +0000
Commit:     John Helmert III <ajak@gentoo.org>
CommitDate: 2022-07-19 16:43:40 +0000

    x11-misc/polybar: fix prefix installation
    
    Bug: https://bugs.gentoo.org/858797
    Signed-off-by: John Helmert III <ajak@gentoo.org>

 .../polybar/files/polybar-3.6.3-fix-prefix.patch   | 13 +++++
 x11-misc/polybar/polybar-3.6.3-r1.ebuild           | 64 ++++++++++++++++++++++
 2 files changed, 77 insertions(+)
Comment 7 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-07-19 17:04:05 UTC
Can you remove the patch from /etc/portage/patches and try the -r1?
Comment 8 Patrick Ziegler 2022-07-19 21:11:00 UTC
Created attachment 792452 [details, diff]
Fixed version of the previous patch

There seems to be a typo in the original patch, it should be `CMAKE_INSTALL_SYSCONFDIR` and not `CMAKE_INSTALL_SYSCONF_DIR`
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-19 21:22:51 UTC
(In reply to Patrick Ziegler from comment #8)
> Created attachment 792452 [details, diff] [details, diff]
> Fixed version of the previous patch
> 
> There seems to be a typo in the original patch, it should be
> `CMAKE_INSTALL_SYSCONFDIR` and not `CMAKE_INSTALL_SYSCONF_DIR`

Ins't that fixed in the version ajak committed?
Comment 10 Patrick Ziegler 2022-07-19 21:25:26 UTC
> Ins't that fixed in the version ajak committed?

Yes, I only noticed that later. Apologies for the noise
Comment 11 slondr 2022-07-20 13:03:38 UTC
I can confirm that updating to the -r1 worked, and I'm happily on polybar 3.6.3 now. Thank you!
Comment 12 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-07-20 15:49:17 UTC
Happy to hear!