[opensuse-packaging] Re: moving a file and deleting a directory [cricket-1.0.5]
Hello, In my spec file I have to move and delete a directory. Currently in the %install section I have this: # move 50_cricket.conf to an Apache2 location mkdir -p %{buildroot}%{apache_sysconfdir}/conf.d /bin/mv -v %{buildroot}/etc/httpd/conf.d/50_cricket.conf %{buildroot}%{apache_sysconfdir}/conf.d/50_cricket.conf # remove directory /bin/rmdir %{buildroot}/etc/httpd/conf.d I'm trying to use the lines above to get around some old errors i had earlier: see http://lists.opensuse.org/opensuse-buildservice/2009-07/msg00226.html { cricket: "/etc/httpd/conf.d/50_cricket.conf" is not allowed anymore in SuSE Linux. cricket-1.0.5-13.1.x86_64.rpm: directories not owned by a package: - /etc/httpd - /etc/httpd/conf.d System halted. } The errors I get now, are these. Checking permissions and ownerships - using the permissions files /tmp/Check.perms.4QTAip setting /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/ to root:root 0755. (wrong owner/group abuild:abuild) setting /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/etc/ to root:root 0755. (wrong owner/group abuild:abuild) setting /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/usr/ to root:root 0755. (wrong owner/group abuild:abuild) setting /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/var/log/ to root:root 0755. (wrong owner/group abuild:abuild) setting /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/var/cache/ to root:root 0755. (wrong owner/group abuild:abuild) + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-debug + /usr/lib/rpm/brp-check-la + /usr/lib/rpm/brp-symlink + /usr/lib/rpm/brp-desktop WARNING: '/usr/lib/rpm/brp-desktop.data/suse-screensavers.menu' does not exist WARNING: '/usr/lib/rpm/brp-desktop.data/preferences-gnome.menu' does not exist WARNING: '/usr/lib/rpm/brp-desktop.data/applications-kmenuedit.menu' does not exist + /usr/lib/rpm/brp-rpath + /usr/lib/rpm/brp-pie + /usr/lib/rpm/brp-rootfs + /usr/lib/rpm/brp-tcl + /usr/lib/rpm/brp-check-python + /usr/lib/rpm/brp-check-bytecode-version + /usr/lib/rpm/brp-boot-scripts + /usr/lib/rpm/brp-hook Processing files: cricket-1.0.5-20.1.x86_64 error: File not found by glob: /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/etc/httpd/conf.d/* Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.jro3m9 + umask 022 + cd /usr/src/packages/BUILD + cd cricket-1.0.5 + DOCDIR=/usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/usr/share/doc/packages/cricket + export DOCDIR + rm -rf /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/usr/share/doc/packages/cricket + /bin/mkdir -p /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/usr/share/doc/packages/cricket + cp -pr CHANGES COPYING DEV-INFO README THANKS TODO VERSION doc sample-config /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/usr/share/doc/packages/cricket + exit 0 RPM build errors: File not found by glob: /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/etc/httpd/conf.d/* System halted. Question how can these errors be fixed ? other ===== cricket.spec https://build.opensuse.org/package/edit_file?file=cricket.spec&package=cricket-6.0.el5.rf&project=home%3Adoiggl Last log https://build.opensuse.org/package/live_build_log?arch=x86_64&package=cricket-6.0.el5.rf&project=home%3Adoiggl&repository=openSUSE_Factory Project https://build.opensuse.org/package/show?package=cricket-6.0.el5.rf&project=home%3Adoiggl Help appreciated thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 9/21/2009 at 7:10, <doiggl@velocitynet.com.au> wrote: RPM build errors: File not found by glob: /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/etc/httpd/conf.d/* System halted.
By moving the files around the file list needs to be adjusted too. The easiest will be to use the variable you introduced (apache_sysconfdir) also in the file list. %files %{apache_sysconfdir}/conf.d/* Then this error will magically disappear. Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Mon, 21 Sep 2009 10:25:09 +0200, "Dominique Leuenberger" <Dominique.Leuenberger@TMF-Group.com> wrote:
On 9/21/2009 at 7:10, <doiggl@velocitynet.com.au> wrote: RPM build errors: File not found by glob: /usr/src/packages/BUILDROOT/cricket-1.0.5-20.1.x86_64/etc/httpd/conf.d/* System halted.
By moving the files around the file list needs to be adjusted too. The easiest will be to use the variable you introduced (apache_sysconfdir) also in the file list.
%files %{apache_sysconfdir}/conf.d/*
Then this error will magically disappear.
Dominique
Thanks Dominique Some errors did get resolved. Now I get this error but its not clear to me about which line in the spec file its referring to. RPM build errors: File not found by glob: /usr/src/packages/BUILDROOT/cricket-1.0.5-21.1.x86_64/etc/httpd/conf.d/* File must begin with "/": %{apache_sysconfdir}/conf.d/* System halted. Am I correct in that I have to remark a line out ,if so which one. cricket.spec https://build.opensuse.org/package/edit_file?file=cricket.spec&package=cricket-6.0.el5.rf&project=home%3Adoiggl other ===== cricket.spec https://build.opensuse.org/package/edit_file?file=cricket.spec&package=cricket-6.0.el5.rf&project=home%3Adoiggl Last log https://build.opensuse.org/package/live_build_log?arch=x86_64&package=cricket-6.0.el5.rf&project=home%3Adoiggl&repository=openSUSE_Factory Project https://build.opensuse.org/package/show?package=cricket-6.0.el5.rf&project=home%3Adoiggl Help appreciated thanks Glenn -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello, on Dienstag, 22. September 2009, doiggl@velocitynet.com.au wrote:
File not found by glob: /usr/src/packages/BUILDROOT/cricket-1.0.5-21.1.x86_64/etc/httpd/conf. d/* File must begin with "/": %{apache_sysconfdir}/conf.d/* System halted.
Am I correct in that I have to remark a line out ,if so which one. cricket.spec https://build.opensuse.org/package/edit_file?file=cricket.spec&packag e=cricket-6.0.el5.rf&project=home%3Adoiggl
Your %files section contains %config(noreplace) %{httpd_dir}/* and this is defined as %define httpd_dir %{_sysconfdir}/httpd/conf.d/ Since your %files also contains %{apache_sysconfdir}/conf.d/* already, removing the %{httpd_dir} line in %files should fix your problem. You should also remove the %define httpd_dir since this variable is then no longer needed. Regards, Christian Boltz -- Und wann nimmt das endlich ein Ende? Heute morgen mußte ich mehr als 60 Stück dieser Dinger löschen. Wenn's so weitergeht, kann ich bald den tausendensten Wurm begrüßen. Soll ich dem vielleicht noch einen Preis ausloben? [Helga Fischer in suse-linux] -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (3)
-
Christian Boltz
-
doiggl@velocitynet.com.au
-
Dominique Leuenberger