Mailinglist Archive: opensuse-packaging (68 mails)
| < Previous | Next > |
Re: [opensuse-packaging] cleaning the buildroot correctly
- From: andreas.hanke@xxxxxxxxxxxxxx
- Date: Thu, 15 Feb 2007 14:31:29 +0100
- Message-id: <20070215133129.132550@xxxxxxx>
Hi,
> If somebody has created $RPM_BUILD_ROOT as a symlink that points to
> your home dir, then
>
> rm -rf $RPM_BUILD_ROOT
>
> will be save, as it either removes the symlink or fails if you don't
> have permission to remove it, but
>
> rm -rf $RPM_BUILD_ROOT/*
>
> will "clean up" your home dir.
If somebody has created $RPM_BUILD_ROOT as a symlink, %build will correct that securely:
+ /bin/rm -rf /var/tmp/gnucash-docs-2.0.1-build
++ dirname /var/tmp/gnucash-docs-2.0.1-build
+ /bin/mkdir -p /var/tmp
+ /bin/mkdir /var/tmp/gnucash-docs-2.0.1-build
Andreas Hanke
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
> If somebody has created $RPM_BUILD_ROOT as a symlink that points to
> your home dir, then
>
> rm -rf $RPM_BUILD_ROOT
>
> will be save, as it either removes the symlink or fails if you don't
> have permission to remove it, but
>
> rm -rf $RPM_BUILD_ROOT/*
>
> will "clean up" your home dir.
If somebody has created $RPM_BUILD_ROOT as a symlink, %build will correct that securely:
+ /bin/rm -rf /var/tmp/gnucash-docs-2.0.1-build
++ dirname /var/tmp/gnucash-docs-2.0.1-build
+ /bin/mkdir -p /var/tmp
+ /bin/mkdir /var/tmp/gnucash-docs-2.0.1-build
Andreas Hanke
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |