Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181309 - app-portage/gentoolkit - euse -i should ignore --ask in EMERGE_DEFAULT_OPTS
Summary: app-portage/gentoolkit - euse -i should ignore --ask in EMERGE_DEFAULT_OPTS
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 237964
  Show dependency tree
 
Reported: 2007-06-08 14:08 UTC by Gokdeniz Karadag
Modified: 2010-11-22 20:36 UTC (History)
2 users (show)

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


Attachments
Patch for euse 0.3.0_rc10 (euse.patch,480 bytes, patch)
2010-04-06 21:04 UTC, Jean-Baptiste Rouault
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gokdeniz Karadag 2007-06-08 14:08:07 UTC
I am using gentoolkit-0.2.3-r1.
When EMERGE_DEFAULT_OPTS contains "--ask", euse -i gives a warning about --ask option. It gives it only in "local use flags" section

global use flags (searching: dvdnav)
************************************************************
no matching entries found

local use flags (searching: dvdnav)
************************************************************
!!! "--ask" should only be used in a terminal. Exiting.
[-    ] dvdnav (media-video/mplayer):
DVD menu navigation support (not supported)


Reproducible: Always

Steps to Reproduce:
1.Put "--ask" in EMERGE_DEFAULT_OPTS
2.run euse -i on a local use flag
3.

Actual Results:  
A warning is displayed

Expected Results:  
euse should not pass the ask option and should filter it out
Comment 1 Sebastian Luther (few) 2009-06-04 07:49:44 UTC
emerge should be called with --ignore-default-opts

--- euse	2009-06-04 09:42:22.000000000 +0200
+++ euse.new	2009-06-04 09:42:18.000000000 +0200
@@ -176,7 +176,7 @@
 
 	# get the currently active USE flags as seen by portage, this has to be after
 	# restoring USE or portage won't see the original environment
-	ACTIVE_FLAGS[9]="$(emerge --info | grep 'USE=' | cut -b 5- | sed -e 's:"::g')" #'
+	ACTIVE_FLAGS[9]="$(emerge --ignore-default-opts --info | grep 'USE=' | cut -b 5- | sed -e 's:"::g')" #'
 	USE_FLAGS_CALCULATED=1
 }
Comment 2 Jared Hancock 2009-08-10 02:37:22 UTC
Fixed in bug #259318
Comment 3 Gokdeniz Karadag 2009-09-20 15:51:30 UTC
(In reply to comment #2)
> Fixed in bug #259318
> 

I could not find the exact patch at #259318 that fixes this bug, but euse does not give warnings now. Marking as fixed
Comment 4 Jean-Baptiste Rouault 2010-04-06 21:04:43 UTC
Created attachment 226773 [details, diff]
Patch for euse 0.3.0_rc10

The attached patch fixes the issue which is stille present in euse 0.3.0_rc10
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2010-04-06 21:14:29 UTC
Confirmed, reopen..
Comment 6 Christian Ruppert (idl0r) gentoo-dev 2010-04-06 21:25:21 UTC
Fixed in svn, thanks!
Comment 7 Paul Varner (RETIRED) gentoo-dev 2010-11-22 20:36:29 UTC
Released in gentoolkit-0.3.0_rc11