Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702314 - x11-misc/redshift-1.12-r3: python_optimize fails if all PYTHON_TARGETS are disabled
Summary: x11-misc/redshift-1.12-r3: python_optimize fails if all PYTHON_TARGETS are di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
: 701882 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-12-09 01:27 UTC by Nuno Silva
Modified: 2020-01-01 20:37 UTC (History)
2 users (show)

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


Attachments
build.log (2019-12-09-redshift,29.16 KB, text/plain)
2019-12-09 01:52 UTC, Nuno Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Silva 2019-12-09 01:27:51 UTC
redshift-1.12-r3 introduced in commit a8afc8263b9ee22ecf1fd1494cc7b7388a612739 added "python_foreach_impl python_optimize" to src_install, which fails if PYTHON_TARGETS is empty for this package.

Reproducible: Always

Steps to Reproduce:
1. PYTHON_TARGETS="" emerge -1 =x11-misc/redshift-1.12-r3
Actual Results:  
src_install fails in _python_validate_useflags

Expected Results:  
Installation succeeds.
Comment 1 Nuno Silva 2019-12-09 01:52:17 UTC
Created attachment 598928 [details]
build.log
Comment 2 Jouni Kosonen 2019-12-09 02:28:54 UTC
That line should probably be within the "if use gtk" -block.
Comment 3 Larry the Git Cow gentoo-dev 2019-12-09 16:59:21 UTC
The bug has been closed via the following commit(s):

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

commit f4cce8e053e6f30a4be2ae9261a1fbcba8557f9f
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2019-12-09 16:57:50 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2019-12-09 16:58:30 +0000

    x11-misc/redshift: Fix for PYTHON_TARGETS= USE=-gtk
    
    Closes: https://bugs.gentoo.org/702314
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>
    Package-Manager: Portage-2.3.80, Repoman-2.3.19

 x11-misc/redshift/redshift-1.12-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 4 Sebastian Pipping gentoo-dev 2020-01-01 20:37:49 UTC
*** Bug 701882 has been marked as a duplicate of this bug. ***