[ovs-dev] [PATCH] rhel: Fix builds failures because of libraries in /usr/lib.

Ben Pfaff blp at nicira.com
Wed Dec 18 21:10:44 UTC 2013


On Wed, Dec 18, 2013 at 09:08:56AM -0800, Gurucharan Shetty wrote:
> Reported-by: Igor Sever <igor at xorops.com>
> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>

Thanks for fixing the problem.

These commands scare the crap out of me though, because what if
$RPM_BUILD_ROOT is somehow undefined and we end up blowing away every
library on the system?  I think that commands of the form
        cd "$RPM_BUILD_ROOT" && rm -f usr/lib/lib*
would be marginally safer at least.

> +rm -f $RPM_BUILD_ROOT/usr/lib/lib*
> +rm -rf $RPM_BUILD_ROOT/usr/lib

Thanks,

Ben.



More information about the dev mailing list