First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 156146
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Jeroen Roovers <jer@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Martin von Gagern <Martin.vGagern@gmx.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
euses-2.5.2-getportdir.patch euses-2.5.2-getportdir.patch patch Martin von Gagern 2006-11-24 10:48 0000 617 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 156146 depends on: Show dependency tree
Show dependency graph
Bug 156146 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-11-24 10:16 0000
Whenever I try to use euses to find information about some USE flag, I only get
a single line saying "Do you Gentoo?".

A little ltrace reveals that euses checks PORTDIR and continues with "(null)"
as value for PORTDIR. Looking at the source, the result from getenv is
unconditionally passed to snprintf, and later on only its lengh is checked to
be nonzero. So a nonexistant environment variable becoms a NULL pointer
returned from getenv becomes the string "(null)" becomes euses idea of a valid
PORTDIR.

------- Comment #1 From Martin von Gagern 2006-11-24 10:48:35 0000 -------
Created an attachment (id=102671) [edit]
euses-2.5.2-getportdir.patch

This at least lets getportdir check if the environment variable is set. If so,
use it, if not, check make.globales and make.conf.

------- Comment #2 From Jeroen Roovers 2006-11-24 14:19:29 0000 -------
Sorry, I thought I had already fixed that. Seems I didn't publish the fixed
version yet. 2.5.3 is in the tree with a fix similar to your patch. Thank you
very much for the bug report.

------- Comment #3 From Jeroen Roovers 2006-11-24 14:20:01 0000 -------
Forgot an option.

First Last Prev Next    No search results available      Search page      Enter new bug