Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883585 - app-shells/powerline-2.7-r2 installs more files with clang stricter
Summary: app-shells/powerline-2.7-r2 installs more files with clang stricter
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-29 12:32 UTC by Agostino Sarubbo
Modified: 2022-11-30 14:34 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-11-29 12:32:51 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-shells/powerline-2.7-r2 installs less files with clang stricter.
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
To reproduce this issue:
1) Install the package with CC=clang - CXX=clang++
2) Put the list of the installed files into a file ( qlist -e PACKAGE:SLOT | sort | uniq > /tmp/qlist1 )
3) Install the package with CC=clang - CXX=clang++ - CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types
4) Put the list of the installed files into a file ( qlist -e PACKAGE:SLOT | sort | uniq > /tmp/qlist2 )
5) See the diff between the two files ( diff -ru /tmp/qlist_1 /tmp/qlist_2 )

On this machine:
- the installed files with clang are 1824
- the installed files with clang stricter are 1827

This type of report comes from a check that is a bit outside of the tinderbox, that's the reason because build.log was not provided (however in cases like these the build.log doesn't help much) but if you need further help to diagnose this issue feel free to ask.

In any case I'm providing a diff.
Comment 1 Agostino Sarubbo gentoo-dev 2022-11-29 12:33:03 UTC
DIFF:
--- /dev/fd/63  2022-11-26 06:26:58.063817431 +0100
+++ /dev/fd/62  2022-11-26 06:26:58.063817431 +0100
@@ -3,17 +3,14 @@
 /usr/bin/powerline-daemon
 /usr/bin/powerline-lint
 /usr/bin/powerline-render
-/usr/lib/python-exec/python3.10/powerline
 /usr/lib/python-exec/python3.10/powerline-config
 /usr/lib/python-exec/python3.10/powerline-daemon
 /usr/lib/python-exec/python3.10/powerline-lint
 /usr/lib/python-exec/python3.10/powerline-render
-/usr/lib/python-exec/python3.8/powerline
 /usr/lib/python-exec/python3.8/powerline-config
 /usr/lib/python-exec/python3.8/powerline-daemon
 /usr/lib/python-exec/python3.8/powerline-lint
 /usr/lib/python-exec/python3.8/powerline-render
-/usr/lib/python-exec/python3.9/powerline
 /usr/lib/python-exec/python3.9/powerline-config
 /usr/lib/python-exec/python3.9/powerline-daemon
 /usr/lib/python-exec/python3.9/powerline-lint
Comment 2 Agostino Sarubbo gentoo-dev 2022-11-29 12:33:50 UTC
I really don't know why, but this is a 'viceversa' case.

Clang-stricter installs more files than simple clang, dunno why.
Comment 3 Ionen Wolkens gentoo-dev 2022-11-30 14:34:51 UTC
I can't reproduce but there's three version of /usr/bin/powerline, a built .c (skipped if compiler test fails), a shell script (requires socat or else is skipped), and a python version.

Not sure what could cause it to skip the python version too.

Note this also always call 'cc', CC env is ignored. clang-common[stricter] should have no impact unless cc -> clang, but if passed CFLAGS directly it could have some impact.

I seem to be getting the C version fine with normal gcc, unless I pass some CFLAGS to make it fail then it gives me the shell script given I have socat.