Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724792 - net-p2p/transmission-3.00 : One or more CMake variables were not used by the project: CMAKE_CXX_FLAGS
Summary: net-p2p/transmission-3.00 : One or more CMake variables were not used by the ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords: QAglobalscope
Depends on:
Blocks:
 
Reported: 2020-05-23 16:25 UTC by Toralf Förster
Modified: 2020-05-24 02:33 UTC (History)
0 users

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


Attachments
etc.portage.tbz2 (etc.portage.tbz2,21.24 KB, application/x-bzip)
2020-05-23 16:25 UTC, Toralf Förster
Details
net-p2p:transmission-3.00:20200523-161902.log (net-p2p:transmission-3.00:20200523-161902.log,132.80 KB, text/plain)
2020-05-23 16:25 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-05-23 16:25:48 UTC
  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-libressl_abi32+64-20200516-121558

  -------------------------------------------------------------------
Comment 1 Toralf Förster gentoo-dev 2020-05-23 16:25:53 UTC
Created attachment 641178 [details]
etc.portage.tbz2
Comment 2 Toralf Förster gentoo-dev 2020-05-23 16:25:56 UTC
Created attachment 641180 [details]
net-p2p:transmission-3.00:20200523-161902.log
Comment 3 Mike Gilbert gentoo-dev 2020-05-23 16:51:09 UTC
> * One or more CMake variables were not used by the project:
> *   CMAKE_CXX_FLAGS
> *   CMAKE_C_FLAGS

I think this some flaw in cmake.eclass. The user's CFLAGS/CXXFLAGS appear in the build log, so I'm not sure why it is complaining.
Comment 4 Mike Gilbert gentoo-dev 2020-05-23 16:56:43 UTC
Oh, I see. The build system calls cmake for a couple of subprojects, and passes CMAKE_CXX_FLAGS as an argument.

> [104/302] cd /x/portage/net-p2p/transmission-3.00/work/transmission-3.00_build/third-party/utp/src/utp-build && /usr/bin/cmake -Wno-dev -DCMAKE_TOOLCHAIN_FILE:PATH=/x/portage/net-p2p/transmission-3.00/work/transmission-3.00_build/gentoo_toolchain.cmake -DCMAKE_USER_MAKE_RULES_OVERRIDE=/x/portage/net-p2p/transmission-3.00/work/transmission-3.00_build/gentoo_rules.cmake "-DCMAKE_C_FLAGS:STRING=-O2 -pipe -march=amdfam10" "-DCMAKE_CXX_FLAGS:STRING=-O2 -pipe -march=amdfam10" -DCMAKE_BUILD_TYPE:STRING=Gentoo -DCMAKE_INSTALL_PREFIX:PATH=/x/portage/net-p2p/transmission-3.00/work/transmission-3.00_build/third-party/utp -GNinja /x/portage/net-p2p/transmission-3.00/work/transmission-3.00_build/third-party/utp/src/utp && /usr/bin/cmake -E touch /x/portage/net-p2p/transmission-3.00/work/transmission-3.00_build/third-party/utp/src/utp-stamp/utp-configure

I'm not sure how to deal with that.
Comment 5 Mike Gilbert gentoo-dev 2020-05-23 17:09:00 UTC
I'm just going to call this CANTFIX.
Comment 6 Andreas Sturmlechner gentoo-dev 2020-05-23 17:42:26 UTC
I checked and these messages are produced by the unmodified upstream cmake of transmission, nothing to do with us.

What an awful mess.
Comment 7 Larry the Git Cow gentoo-dev 2020-05-24 02:33:32 UTC
The bug has been closed via the following commit(s):

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

commit 2c2c3883f3500dc67e6d7e9c789d815abc9d622a
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2020-05-24 02:30:02 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-05-24 02:33:18 +0000

    net-p2p/transmission: disable cmake warning for subprojects
    
    Closes: https://bugs.gentoo.org/724792
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 .../files/cmake-unused-command-line.patch           | 21 +++++++++++++++++++++
 net-p2p/transmission/transmission-3.00.ebuild       |  4 ++++
 2 files changed, 25 insertions(+)