Ticket #87 (closed defect: fixed)
pbsrc content should be put in SOURCES directory when building RPMs
| Reported by: | ndoualot | Owned by: | bruno |
|---|---|---|---|
| Priority: | major | Milestone: | 0.11.1 |
| Component: | pb | Version: | 0.10.1 |
| Keywords: | Cc: |
Description
Right now, the pbsrc content is in the SPECS folder
rpmbuild fails to found those referenced files:
error: Bad file: /home/ndo/lighttpd/build/SOURCES/logo-hpintel.jpg.all: No such file or directory
error: Bad file: /home/ndo/lighttpd/build/SOURCES/lighttpd.sh.rhel: No such file or directory
error: Bad file: /home/ndo/lighttpd/build/SOURCES/lighttpd.run.rhel: No such file or directory
error: Bad file: /home/ndo/lighttpd/build/SOURCES/lighttpd.conf.all: No such file or directory
error: Bad file: /home/ndo/lighttpd/build/SOURCES/index.html.tmpl.all: No such file or directory
RPM build errors:
Bad file: /home/ndo/lighttpd/build/SOURCES/logo-hpintel.jpg.all: No such file or directory
Bad file: /home/ndo/lighttpd/build/SOURCES/lighttpd.sh.rhel: No such file or directory
Bad file: /home/ndo/lighttpd/build/SOURCES/lighttpd.run.rhel: No such file or directory
Bad file: /home/ndo/lighttpd/build/SOURCES/lighttpd.conf.all: No such file or directory
Bad file: /home/ndo/lighttpd/build/SOURCES/index.html.tmpl.all: No such file or directory
Change History
comment:1 follow-up: ↓ 2 Changed 2 years ago by bruno
- Status changed from new to assigned
- Milestone set to 0.10.2
comment:2 in reply to: ↑ 1 ; follow-up: ↓ 3 Changed 2 years ago by ndoualot
Replying to bruno:
In fact when using pbsrc, the spec file is modified to generate Source1, Source2, ... entries in order to point to these additional sources.
This works fine after the r1218 commit, but thinks doesn't work well for the source rpm.
What pb could do automatically, is move at build time all the files found under the pbsrc dir under pbconf to SOURCES for rpm build. Wold that be ok for you ?
This what I meant with this bug report.
I don't know if it is a task for ProjectBuilder? or for the packager to put the files under SOURCES for the src.rpm creation.
Remains to see what to do for other types of build...
comment:3 in reply to: ↑ 2 Changed 2 years ago by bruno
Replying to ndoualot:
Replying to bruno:
What pb could do automatically, is move at build time all the files found under the pbsrc dir under pbconf to SOURCES for rpm build. Wold that be ok for you ?
This what I meant with this bug report.
Ok, we're on the same page then :-)
I don't know if it is a task for ProjectBuilder? or for the packager to put the files under SOURCES for the src.rpm creation.
Well, as pb does the .spec modification, it seems important to me that it also put the sources at the right place, which is not difficult as it know where they are and where to put them. Will work on a patch for that.
Remains to see what to do for other types of build...
Still true.

In fact when using pbsrc, the spec file is modified to generate Source1, Source2, ... entries in order to point to these additional sources.
What pb could do automatically, is move at build time all the files found under the pbsrc dir under pbconf to SOURCES for rpm build. Wold that be ok for you ?
Remains to see what to do for other types of build...