On Thu, May 03, 2007, Olivier Kaloudoff wrote:
>Hello list,
>
> just a question to understand a point about the openpkg rpmbuild
>process ..
>
> did a "openpkg rpmbuild -ba *spec --nodeps" today on latest
>postfix.spec (1.257). --nodeps is to bypass the dependency for openpkg >=
>20060823 .
>
> In my .spec file, whoson patch option is set to no, but at the
>end of the build process, I get:
>
>(...)
>rpmtool:files: pass 1 (preparation and syntactical expansions)
>rpmtool:files: pass 2 (filesystem-based expansions)
>rpmtool:files: pass 3 (duplication removal and cleanup)
>+ exit 0
>error: Bad file: /openpkg/RPM/SRC/postfix/postfix-2.4.0-whoson.patch: No
>such file or directory
The rpmbuild process looks for all files declared in Source and
Patch lines, complaining loudly if something is missing.
I generally create a file, build.sh, in the SRC/package directory
with the options I want to use specified such as the one below
for postfix on this machine. Then I can type ``./build.sh -ba''
to build everything, or ``./build.sh -bp'' to run the setup only.
#!/bin/sh
openpkg rpm "$@" \
--define 'with_fdsetsize no' \
--define 'with_fsl yes' \
--define 'with_ldap yes' \
--define 'with_mysql yes' \
--define 'with_pgsql no' \
--define 'with_sasl yes' \
--define 'with_ssl yes' \
--define 'with_whoson yes' \
postfix.spec
#end of script
Doing it this way, I avoid having to hack the spec file (or
remember what options I used).
Bill
--
INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software, LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
If you want government to intervene domestially, you're a liberal. If you
want government to intervene overseas, you're a conservative. If you want
government to intervene everywhere, you're a moderate. If you don't want
government to intervene anywhare, you're an extremist -- Joseph Sobran
______________________________________________________________________
OpenPKG http://openpkg.org
User Communication List [email protected]