Mailinglist Archive: opensuse-buildservice (269 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] openSUSE:Factory: only warnings from rpm checks but a build error - why?
- From: Michael E Brown <Michael_E_Brown@xxxxxxxx>
- Date: Thu, 11 Sep 2008 16:02:31 -0500
- Message-id: <20080911210231.GA7721@xxxxxxxxxxxxxxxxxxxxxxxxx>
On Thu, Sep 11, 2008 at 09:39:10PM +0200, Marcus Hüwe wrote:
Shouldn't things like logfiles be %ghost, ie.
%ghost %attr(-, lighttpd, lighttpd)
/srv/www/obs/{webclient,frontend}/log/development.log
And touch the files in %build.
That's the way I handle those in my pkgs, at least.
--
Michael
On 2008-09-11 21:26:18 +0200, Martin Mohring wrote:
Adrian Schröter wrote:Hmm you could ship the file with the package and then add something like
On Donnerstag 11 September 2008 19:22:54 Martin Mohring wrote:Cleaned up all now, except:
Hi,
I have adapted the obs packages to the new rpm checking standards. As a
first starter, I did this for: openSUSE:Tools:Devel/obs-all-svn.
Now I only get warnings (as I see it - correct me if I am wrong), but
still a build error in the end. What did I do wrong?
Logfile:
https://build.opensuse.org/package/live_build_log?arch=i586&package=obs-all
-svn&project=openSUSE%3ATools%3ADevel&repository=openSUSE_Factory
Help would be appeciated !
Just package also the directories with
%dir /etc/lighttpd
%dir /etc/lighttpd/vhosts.d
%post -n obs-api
touch /srv/www/obs/{webclient,frontend}/log/development.log
chown lighttpd:lighttpd
/srv/www/obs/{webclient,frontend}/log/development.log
%restart_on_update lighttpd
This gives the error:
... testing for pre/postinstall scripts that are not idempotent
chown: invalid user: `lighttpd:lighttpd'
postinstall script of obs-api-1.1.0.4986S-2.1.i586.rpm failed
How is that intended to be done?
%attr(-, lighttpd, lighttpd)
/srv/www/obs/{webclient,frontend}/log/development.log
(don't forget to add "PreReq: lighttpd" to the obs-api package)
Shouldn't things like logfiles be %ghost, ie.
%ghost %attr(-, lighttpd, lighttpd)
/srv/www/obs/{webclient,frontend}/log/development.log
And touch the files in %build.
That's the way I handle those in my pkgs, at least.
--
Michael
| < Previous | Next > |