Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1873237 - rpmdev-newspec create empty file
Summary: rpmdev-newspec create empty file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmdevtools
Version: 33
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-27 17:00 UTC by Martin
Modified: 2020-10-06 00:16 UTC (History)
10 users (show)

Fixed In Version: rpmdevtools-9.2-1.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-06 00:16:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
workaround (1.04 KB, patch)
2020-09-12 08:30 UTC, Martin
no flags Details | Diff

Description Martin 2020-08-27 17:00:27 UTC
Description of problem:
Creating news spec always end with empty file


[martin@localhost SPECS]$ LANG=C rpmdev-newspec somepackage
sed: -e expression #1, char 309: unknown command: `f'
somepackage.spec created; type minimal, rpm version >= 4.16.


Version-Release number of selected component (if applicable):
rpmdevtools-9.1-1.fc33.noarch

How reproducible:
always

Steps to Reproduce:
1.rpmdev-newspec somepackage
2.open somepackage.spec
3.file is empty

Actual results:
file is empty

Expected results:
creating base rpm spec section in spec file

Additional info:

Comment 1 Miro Hrončok 2020-09-02 18:18:33 UTC
Yes, this is kinda bad:

$ rpmdev-newspec -t python
sed: -e expression #1, char 285: unknown command: `f'
newpackage.spec created; type python, rpm version >= 4.16.

$ wc -l newpackage.spec 
0 newpackage.spec

Comment 2 Martin 2020-09-12 08:30:10 UTC
Created attachment 1714634 [details]
workaround

line 296 - 300 are bogus

Comment 3 Fedora Update System 2020-10-05 22:50:20 UTC
FEDORA-2020-518278a39e has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-518278a39e

Comment 4 Fedora Update System 2020-10-06 00:16:33 UTC
FEDORA-2020-518278a39e has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.