Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 220086

Summary: dev-util/debugedit-4.4.6-r1: patch to enable options for printing to newline delimited output to stdout AND read-only access
Product: Gentoo Linux Reporter: Christopher Layne <clayne>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED UPSTREAM    
Severity: enhancement CC: base-system, Hugo.Mildenberger
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch
updated patch
small fix to the previous

Description Christopher Layne 2008-05-03 01:54:47 UTC
I got tired of debugedit both dumping nul-delimited data when using "-l /dev/stdout" and it's refusal to even output filenames if it cannot open the source file in read/write mode (e.g. root owned files).

This patch adds the following options:

-p: Print newline delimited output of files.
-r: Open read-only.

Which basically allows one to always dump a list of source files to stdout without editing the original source file at all. This is useful because it allows one to use said files for other purposes like dependencies or in my case, using a debug script which copies the source files of code in progress to a staging directory so that in the case of coredumps, they are still valid for said revision of code (allowing ongoing development of the main tree at the same time).

Reproducible: Always
Comment 1 Christopher Layne 2008-05-03 01:55:58 UTC
Created attachment 151664 [details, diff]
patch
Comment 2 Christopher Layne 2008-05-03 02:30:41 UTC
Created attachment 151667 [details, diff]
updated patch

Updated patch to allow multiple filenames on the command line rather than debugedit just erroring out.
Comment 3 Christopher Layne 2008-05-03 04:02:24 UTC
Created attachment 151669 [details, diff]
small fix to the previous

Previous patches still output a null before the newline, this fixes that.
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2008-05-03 07:15:24 UTC
Is that patch in upstream rpm?
Comment 5 Christopher Layne 2008-05-03 07:17:21 UTC
Not that I know of. It's self-written. As far as I know, there is no longer a maintainer of debugedit.
Comment 6 Olivier Crete (RETIRED) gentoo-dev 2008-12-24 04:07:59 UTC
Upstream is part of RPM, so the maintainer is whoever maintains RPM
Comment 7 Hugo Mildenberger 2009-10-16 18:20:39 UTC
Christopher, could you please take a look at https://bugs.gentoo.org/show_bug.cgi?id=288977. I tested your patch with debugedit-4.4.6-r1 on ~x86, and it works as expected. However, there seem to be an undocumented command line switch "-i".
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-09-19 22:48:35 UTC
If this is still missing and deemed useful, please submit the patch to upstream RPM maintainers.