[opensuse-packaging] line starting with %ghost [bugzilla-3.4.2]
Hello, What does the following line do, I found in in the %files part of bugzilla.spec , Ive not heard of %ghost before, the line reads as: %ghost %{bzinstallprefix}/bugzilla/bugzilla-req How can this error be resolved ? build20 started "build bugzilla.spec" at Mon Sep 21 14:47:01 UTC 2009. Processing files: bugzilla-3.4.2-3.1.noarch error: File not found: /usr/src/packages/BUILDROOT/bugzilla-3.4.2-3.1.x86_64/usr/share/bugzilla/bugzilla-req Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.EyV1Q6 + umask 022 + cd /usr/src/packages/BUILD + cd bugzilla-3.4.2 + DOCDIR=/usr/src/packages/BUILDROOT/bugzilla-3.4.2-3.1.x86_64/usr/share/doc/packages/bugzilla + export DOCDIR + rm -rf /usr/src/packages/BUILDROOT/bugzilla-3.4.2-3.1.x86_64/usr/share/doc/packages/bugzilla + /bin/mkdir -p /usr/src/packages/BUILDROOT/bugzilla-3.4.2-3.1.x86_64/usr/share/doc/packages/bugzilla + cp -pr README /usr/src/packages/BUILDROOT/bugzilla-3.4.2-3.1.x86_64/usr/share/doc/packages/bugzilla + cp -pr README.fedora /usr/src/packages/BUILDROOT/bugzilla-3.4.2-3.1.x86_64/usr/share/doc/packages/bugzilla + exit 0 RPM build errors: File not found: /usr/src/packages/BUILDROOT/bugzilla-3.4.2-3.1.x86_64/usr/share/bugzilla/bugzilla-req System halted. other ===== bugzilla.spec https://build.opensuse.org/package/view_file?file=bugzilla.spec&package=bugzilla-3.4.2&project=home%3Adoiggl Last log https://build.opensuse.org/package/live_build_log?arch=x86_64&package=bugzilla-3.4.2&project=home%3Adoiggl&repository=openSUSE_Factory Project https://build.opensuse.org/package/show?package=bugzilla-3.4.2&project=home%3Adoiggl Originally sourced from # rpm2cpio bugzilla-3.4.2-1.fc12.src.rpm | cpio -ivd bugzilla.spec bugzilla.spec 4850 blocks Help appreciated thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tuesday 22 of September 2009 08:53:21 doiggl@velocitynet.com.au wrote:
Hello, What does the following line do, I found in in the %files part of bugzilla.spec , Ive not heard of %ghost before, the line reads as:
%ghost %{bzinstallprefix}/bugzilla/bugzilla-req
The %ghost definition is in maximum rpm [1]. Ghost files are owned by package, but rpm does not take care about their modification. [1] http://www.rpm.org/max-rpm-snapshot/s1-rpm-inside-files-list- directives.html
How can this error be resolved ?
build20 started "build bugzilla.spec" at Mon Sep 21 14:47:01 UTC 2009.
Processing files: bugzilla-3.4.2-3.1.noarch error: File not found: /usr/src/packages/BUILDROOT/bugzilla-3.4.2-3.1.x86_64/usr/share/bugzilla/bu gzilla-req Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.EyV1Q6
The ghost file must exists in BUILDROOT (seems to be that this is not required by Fedora rpm). You can use touch in %install section to create it: touch %{buildroot}%{bzinstallprefix}/bugzilla/bugzilla-req Regards Michal Vyskocil
Michal Vyskocil wrote:
The ghost file must exists in BUILDROOT (seems to be that this is not required by Fedora rpm). You can use touch in %install section to create it:
touch %{buildroot}%{bzinstallprefix}/bugzilla/bugzilla-req
This is already fixed in RPM 4.7.1 we are using in openSUSE 11.2 (%ghost files don't have to appear in buildroot, but you must provide the %attr tag to in %filelist - see http://stick.gk2.sk/blog/2009/09/new-rpm-in-opensuse-factory/ for example). -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o openSUSE Community Multiplier Team Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
doiggl@velocitynet.com.au
-
Michal Vyskocil
-
Pavol Rusnak