hi
I want to add a separate configuration file (61-wqy-bitmapsong.conf) to package wqy-bitmap-fonts, after reading some examples, I used the following syntax to make this change
.... Source0: http://url of the upstream package Source1: 61-wqy-bitmapsong.conf # the additional file ....
%setup -q -n %{wqyroot} ... %install ... install -p -m644 %{SOURCE1} %{buildroot}%{fontconfigdir}/ ...
then I copied 61-wqy-bitmapsong.conf to "devel" directory, and "cvs add 61-wqy-bitmapsong.conf". However, it failed when I test the build with "make i386", the error message is
File Not found: ..../wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf Installed (but unpackaged) file(s) found /etc/fonts/conf.d/61-wqy-bitmapsong.conf
did I miss anything? where should I put the 61-wqy-bitmapsong.conf when commit to cvs?
thank you
Qianqian
Qianqian Fang wrote, at 12/12/2007 03:39 AM +9:00:
hi
I want to add a separate configuration file (61-wqy-bitmapsong.conf) to package wqy-bitmap-fonts, after reading some examples, I used the following syntax to make this change
.... Source0: http://url of the upstream package Source1: 61-wqy-bitmapsong.conf # the additional file ....
%setup -q -n %{wqyroot} ... %install ... install -p -m644 %{SOURCE1} %{buildroot}%{fontconfigdir}/ ...
then I copied 61-wqy-bitmapsong.conf to "devel" directory, and "cvs add 61-wqy-bitmapsong.conf". However, it failed when I test the build with "make i386", the error message is
File Not found: ..../wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf Installed (but unpackaged) file(s) found /etc/fonts/conf.d/61-wqy-bitmapsong.conf
did I miss anything? where should I put the 61-wqy-bitmapsong.conf when commit to cvs?
Well, the problem is not there. Actually the build log says /etc/fonts/conf.d/61-wqy-bitmapsong.conf is found but your spec file reads:
---------------------------------------------- %files .................... %config(noreplace) %{fontconfdir}/%{SOURCE1} ---------------------------------------------- Here SOURCE1 is expanded to %_sourcedir/`basename %SOURCE1`. As the result %{fontconfdir}/%{SOURCE1} is not found but /etc/fonts/conf.d/61-wqy-bitmapsong.conf is left installed but not registered.
Regards, Mamoru Tasaka mtasaka@ioa.s.u-tokyo.ac.jp
On Tuesday 11 December 2007 19:39:26 Qianqian Fang wrote:
File Not found: ..../wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf Installed (but unpackaged) file(s) found /etc/fonts/conf.d/61-wqy-bitmapsong.conf
I tried to compile your package, and I got the following error: RPM build errors: File not found: /var/tmp/wqy-bitmap-fonts-0.9.9-2.fc9-root-lrineau/etc/fonts/conf.d/home/lrineau/Fedora/wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf
Its your %files section that is incorrect!
Change this: %config(noreplace) %{fontconfdir}/%{SOURCE1} to that: %config(noreplace) %{fontconfdir}/61-wqy-bitmapsong.conf or even: %config(noreplace) %{fontconfdir}/*.conf
The explanation of the error is that ${SOURCE1} is expanded to a full path, and not just a file name. That is why the error log shows a very long path.
hi Laurent and Mamoru
thank you so much, that solved the problem!
Qianqian
Laurent Rineau wrote:
On Tuesday 11 December 2007 19:39:26 Qianqian Fang wrote:
File Not found: ..../wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf Installed (but unpackaged) file(s) found /etc/fonts/conf.d/61-wqy-bitmapsong.conf
I tried to compile your package, and I got the following error: RPM build errors: File not found: /var/tmp/wqy-bitmap-fonts-0.9.9-2.fc9-root-lrineau/etc/fonts/conf.d/home/lrineau/Fedora/wqy-bitmap-fonts/devel/61-wqy-bitmapsong.conf
Its your %files section that is incorrect!
Change this: %config(noreplace) %{fontconfdir}/%{SOURCE1} to that: %config(noreplace) %{fontconfdir}/61-wqy-bitmapsong.conf or even: %config(noreplace) %{fontconfdir}/*.conf
The explanation of the error is that ${SOURCE1} is expanded to a full path, and not just a file name. That is why the error log shows a very long path.