Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93947 - nano - unused dependencies
Summary: nano - unused dependencies
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 07:25 UTC by UncleOwen
Modified: 2005-05-29 22:03 UTC (History)
0 users

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


Attachments
Proposed patch #1 (nano-1.3.7-fix-depend.patch,670 bytes, patch)
2005-05-25 07:27 UTC, UncleOwen
Details | Diff
Proposed patch #2 (nano-1.3.7-fix-logic.patch,1.01 KB, patch)
2005-05-25 07:30 UTC, UncleOwen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description UncleOwen 2005-05-25 07:25:21 UTC
Nano supports both ncurses and slang, but only one at a time. Which one is used
is determined by the use-flags ncurses and slang, according to the following table:

USE                | Library used | ncurses in DEPEND | slang in DEPEND
ncurses && slang   | ncurses      | yes               | yes
ncurses && !slang  | ncurses      | yes               | no
!ncurses && slang  | slang        | yes               | yes
!ncurses && !slang | ncurses      | yes               | no

Reproducible: Always
Steps to Reproduce:
Comment 1 UncleOwen 2005-05-25 07:27:51 UTC
Created attachment 59791 [details, diff]
Proposed patch #1

This patch removes the unnecessary depends, so that it looks like this:

USE		   | Library used | ncurses in DEPEND | slang in DEPEND
ncurses && slang   | ncurses	  | yes 	      | no
ncurses && !slang  | ncurses	  | yes 	      | no
!ncurses && slang  | slang	  | no		      | yes
!ncurses && !slang | ncurses	  | yes 	      | no
Comment 2 UncleOwen 2005-05-25 07:30:42 UTC
Created attachment 59792 [details, diff]
Proposed patch #2

Alternatively, since this is effectively a simple toggle, one could do away
with one of the use-flags. This patch removes ncurses from IUSE, the result is
like this:

USE    | Library used | ncurses in DEPEND | slang in DEPEND
slang  | slang	      | no		  | yes
!slang | ncurses      | yes		  | no
Comment 3 UncleOwen 2005-05-25 07:46:49 UTC
I just noticed, ncurses is a dep of slang, but anyway...
Comment 4 SpanKY gentoo-dev 2005-05-29 22:03:59 UTC
fixed in cvs