Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 607146

Summary: =app-portage/portage-utils-0.62 built with sys-devel/clang - qsearch confuses package name with category
Product: Portage Development Reporter: Xuefer <xuefer>
Component: ToolsAssignee: SpanKY <vapier>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info portage-utils

Description Xuefer 2017-01-25 08:10:01 UTC
Created attachment 461328 [details]
emerge --info portage-utils

# qsearch portage-utils
app-portage/app-portage small and fast portage helper tools written in C

it is expected to be "app-portage/portage-utils ..."
Comment 1 Xuefer 2017-01-25 08:11:57 UTC
>>> Compiling source in /usr/src/portage/portage/app-portage/portage-utils-0.62/work/portage-utils-0.62 ...
make -j8 NLS=yes
: q : qatom : qcache : qcheck : qdepends : qfile : qgrep : qlist : qlop : qmerge : qpkg : qsearch : qsize : qtbz2 : quse : qxpak :
clang -O2 -pipe -march=ivybridge -O2 -pipe -Wno-error=varargs -Wno-error=parentheses-equality -fno-lto -std=gnu99 -Wl,-O1 -Wl,--as-needed -Wl,--enable-new-dtags -Wl,--sort-common -Xcompiler
-fno-lto main.c -o q -liniparser
clang-4.0: warning: argument unused during compilation: '-Xcompiler' [-Wunused-command-line-argument]
main.c:1364:26: warning: the value of the size argument in 'strncat' is too large, might lead to a buffer overflow [-Wstrncat-size]
                        strncat(buf, "/SLOT", sizeof(buf));
                                              ^~~~~~~~~~~
main.c:1364:26: note: change the argument to be the free space in the destination buffer minus the terminating null byte
                        strncat(buf, "/SLOT", sizeof(buf));
                                              ^~~~~~~~~~~
                                              sizeof(buf) - strlen(buf) - 1
In file included from main.c:1415:
In file included from ./include_applets.h:15:
./qmerge.c:776:27: warning: address of array 'pkg->CATEGORY' will always evaluate to 'true' [-Wpointer-bool-conversion]
        if (!pkg->PF[0] || !pkg->CATEGORY) {
                           ~~~~~~^~~~~~~~
2 warnings generated.
>>> Source compiled.


qcheck is not affected

# qcheck portage-utils
Checking app-portage/portage-utils-0.62 ...
  * 48 out of 48 files are good
Comment 2 SpanKY gentoo-dev 2017-01-26 00:46:16 UTC
pretty sure this is already fixed in 0.64.  when reporting bugs, you should usually check the latest version in the tree to see if it's already fixed.

*** This bug has been marked as a duplicate of bug 598974 ***