Bug 3800

Summary: Source archive required even with --nosource
Product: Sisyphus Reporter: Mikhail Zabaluev <mhz>
Component: rpm-buildAssignee: placeholder <placeholder>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: normal    
Priority: P4 CC: arseny, glebfm, imz, ldv, mike, placeholder, vt
Version: unstable   
Hardware: all   
OS: Linux   

Description Mikhail Zabaluev 2004-03-07 14:32:26 MSK
"rpmbuild -bs --nosource N package.spec" fails if the source number N is not
present in the source directory.

Steps to Reproduce:
1. Get a specfile (in my case, j2se1.4-sun)
2. Make sure the file specified with Source0 is not in the source directory, all
other sources and patches are present.
3. Issue a build command: rpmbuild -bs --nosource 0 j2se1.4-sun.spec
Actual Results:  
ошибка: Неверный файл /home/mhz/RPM/SOURCES/j2sdk-1_4_2_03-linux-i586.bin: No
such file or directory

Expected Results:  
A .nosrc.rpm package should be built without errors.
Comment 1 Michael Shigorin 2005-10-19 12:58:37 MSD
актуально для rpm-4.0.4-alt47...
Comment 2 Dmitry V. Levin 2006-01-10 02:42:23 MSK
А как же иначе, rpmbuild нуждается в информации о файле, даже если он его не
запаковывает.  Или вы предлагаете не паковать информацию тоже?
Comment 3 Mikhail Zabaluev 2006-01-10 03:32:49 MSK
Понял, снимаю.