[opensuse-packaging] finding line in .spec file causing 'File not found' error
Hello, Which line of the spec is triggering the following error as I don’t which line/section is causing it. How can it be fixed Thanks Glenn . . Processing files: bugzilla-3.6-16.1.noarch error: File not found: /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/bugzilla/etc/apache2 error: File not found: /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/bugzilla/etc/apache2/conf.d Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.0PFS4T + umask 022 + cd /usr/src/packages/BUILD + cd bugzilla-3.6 + DOCDIR=/usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/doc/packages/bugzilla + export DOCDIR + rm -rf /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/doc/packages/bugzilla + /bin/mkdir -p /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/doc/packages/bugzilla + cp -pr README README.mdv docs /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/doc/packages/bugzilla + exit 0 RPM build errors: File not found: /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/bugzilla/etc/apache2 File not found: /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/bugzilla/etc/apache2/conf.d System halted. spec file -> https://build.opensuse.org/package/view_file?file=bugzilla3-6.spec&package=bugzilla3-6&project=home%3Adoiggl log file -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=bugzilla3-6&project=home%3Adoiggl&repository=openSUSE_11.2 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 5/12/2010 at 6:21,
wrote: Hello, Which line of the spec is triggering the following error as I don’t which line/section is causing it. How can it be fixed Thanks Glenn . . Processing files: bugzilla-3.6-16.1.noarch error: File not found: /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/bugzilla/etc/ apache2 error: File not found: /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/bugzilla/etc/ apache2/conf.d Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.0PFS4T + umask 022 + cd /usr/src/packages/BUILD + cd bugzilla-3.6 + DOCDIR=/usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/doc/pa ckages/bugzilla + export DOCDIR + rm -rf /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/doc/packages/ bugzilla + /bin/mkdir -p /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/doc/packages/ bugzilla + cp -pr README README.mdv docs /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/doc/packages/ bugzilla + exit 0
RPM build errors: File not found: /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/bugzilla/etc/ apache2 File not found: /usr/src/packages/BUILDROOT/bugzilla-3.6-16.1.x86_64/usr/share/bugzilla/etc/ apache2/conf.d System halted.
spec file -> https://build.opensuse.org/package/view_file?file=bugzilla3-6.spec&package=bu gzilla3-6&project=home%3Adoiggl log file -> https://build.opensuse.org/package/live_build_log?arch=x86_64&package=bugzill a3-6&project=home%3Adoiggl&repository=openSUSE_11.2
That comes from the %files section. As you pointed out in another mail, the path is /etc/apache2, but you specified it as %{_datadir}/%{name}/etc/apache2, which is not the same (datadir == /usr/share, name is the package name). /etc == %{_sysconfdir} hth, Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
doiggl@velocitynet.com.au
-
Dominique Leuenberger