Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705410 - net-libs/libproxy-0.4.15[perl]: multiple rules generate tests
Summary: net-libs/libproxy-0.4.15[perl]: multiple rules generate tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-14 12:44 UTC by Craig Andrews
Modified: 2020-01-16 19:42 UTC (History)
7 users (show)

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


Attachments
libproxy-0.4.15-perl-test-target-removal.patch (libproxy-0.4.15-perl-test-target-removal.patch,430 bytes, patch)
2020-01-15 19:28 UTC, Attila Tóth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2020-01-14 12:44:34 UTC
Package:    net-libs/libproxy-0.4.15
 * Repository: gentoo
 * Maintainer: freedesktop-bugs@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux networkmanager perl userland_GNU
 * FEATURES:   ccache network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox

---
CMake Warning (dev) at bindings/perl/t/CMakeLists.txt:1 (add_custom_target):
  Policy CMP0037 is not set: Target names should not be reserved and should                             match a validity pattern.  Run "cmake --help-policy CMP0037" for policy
  details.  Use the cmake_policy command to set the policy and suppress this                            warning.
  warning.
  The target name "test" is reserved when CTest testing is enabled.  It may
  result in undefined behavior.                                                                       This warning is for project developers.  Use -Wno-dev to suppress it.
-- Configuring done                                                                                   -- Generating done                                                                                    -- Build files have been written to: /var/tmp/portage/net-libs/libproxy-0.4.15/work/libproxy-0.4.15_build-abi_x86_64.amd64                                                                                  >>> Source configured.
>>> Compiling source in /var/tmp/portage/net-libs/libproxy-0.4.15/work/libproxy-0.4.15 ...             * abi_x86_64.amd64: running multilib-minimal_abi_src_compile                                          * Working in BUILD_DIR: "/var/tmp/portage/net-libs/libproxy-0.4.15/work/libproxy-0.4.15_build-abi_x86_64.amd64"
ninja -v -j5 -l0
ninja: error: build.ninja:1315: multiple rules generate test [-w dupbuild=err]
---

Reproducible: Always
Comment 1 Ben Kohler gentoo-dev 2020-01-14 13:22:20 UTC
Initial testing didn't catch this since most people would not enable USE=perl on this.
Comment 2 Attila Tóth 2020-01-15 19:28:53 UTC
Created attachment 603410 [details, diff]
libproxy-0.4.15-perl-test-target-removal.patch

Possible workaround
Comment 3 Brandon Penglase 2020-01-15 23:51:45 UTC
(In reply to Ben Kohler from comment #1)
> Initial testing didn't catch this since most people would not enable
> USE=perl on this.

I can confirm that building with USE=-perl does compile.
Comment 4 Larry the Git Cow gentoo-dev 2020-01-16 19:42:31 UTC
The bug has been closed via the following commit(s):

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

commit bc0a50d2bcf7e361d8b9a31f316720ebc751804a
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-01-16 19:41:21 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-01-16 19:41:47 +0000

    net-libs/libproxy: Drop USE perl
    
    No revdeps. Feel free to revert after fixing build system (upstream!).
    
    Closes: https://bugs.gentoo.org/705410
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 net-libs/libproxy/libproxy-0.4.15-r1.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)