[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpm 4.0.3 (the default) on redhat 7.2 doesn't pass --target properly



rpm --define _topdir\ /home/mtaht/hhl201/mobile/freetype \
--define _builddir\ /tmp/ \
--define _srcrpmdir\ /home/mtaht/SRPMS --define _target\ arm_sa_le \
--define _hhl_target_arch\ arm_sa_le --define _rpmdir\ /home/mtaht/RPMS \
--define _hhl_build_id\ custom --define "vendor MontaVista Software, Inc." \
--define "packager <mtaht@mvista.com>" --target=arm_sa_le -ba SPECS/hhl-target-freetype.spec


returns:

--target=arm_sa_le: unknown option

Using --target arm_sa_le has "interesting" results. That way, it mangles what
gets passed to rpmbuild.


The workaround is to call rpmbuild directly, but that doesn't work for all cases.

For example, I'm calling rpm -q --specfile bla.spec to determine some build
info from the specfile. --target's stuff (for example _hhl_cross_dir, which is defined
in a custom macros file) needs to be defined properly to get coherent information back.
--define _target\ arm_sa_le doesn't seem to help.


Any suggestions?










[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []