Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716162 - app-portage/genlop-0.30.10-r2: executing genlop without parameters produces bad error message
Summary: app-portage/genlop-0.30.10-r2: executing genlop without parameters produces b...
Status: RESOLVED DUPLICATE of bug 447436
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-04-04 11:08 UTC by Johannes Willem (Hans) Fernhout
Modified: 2023-07-18 22:00 UTC (History)
2 users (show)

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


Attachments
Patch to avoid the use of a not initialized variable $logfiles[0] in the help message (genlop-bug-716162.patch,576 bytes, patch)
2020-05-31 11:50 UTC, Johannes Willem (Hans) Fernhout
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Willem (Hans) Fernhout 2020-04-04 11:08:52 UTC
If genlop is executed without parameters it gives a weird and unnecessary error message "Use of uninitialized value in concatenation (.) or string at /usr/bin/genlop line 354."

Reproducible: Always

Steps to Reproduce:
# genlop
Use of uninitialized value in concatenation (.) or string at /usr/bin/genlop line 354.
Usage: genlop  [options] [-f logfile] [category/package]

Options:

  -c  display the currently compiling packages (if any)
Actual Results:  
Use of uninitialized value in concatenation (.) or string at /usr/bin/genlop line 354.
Usage: genlop  [options] [-f logfile] [category/package]

Options:

  -c  display the currently compiling packages (if any)
(and more options)

Expected Results:  
Usage: genlop  [options] [-f logfile] [category/package]

Options:

  -c  display the currently compiling packages (if any)

Alternatively maybe the default parameter should be -c or --current because that might be the most common use.
Comment 1 Johannes Willem (Hans) Fernhout 2020-05-31 11:50:49 UTC
Created attachment 642874 [details, diff]
Patch to avoid the use of a not initialized variable $logfiles[0] in the help message
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-18 22:00:59 UTC

*** This bug has been marked as a duplicate of bug 447436 ***