[Bro] Minor install issue with 2.1

Hank Leininger hlein at korelogic.com
Sun Sep 30 19:34:54 PDT 2012


Hello,

When rolling a Gentoo ebuild for 2.1, I ran into a parse error
in the auto-generated build/cmake_install.cmake file, due to
insufficient quoting (so empty strings disappeared from the argument
list in an if() statement).

Sorry if this is a known issue and/or only occurs because of some
peculiarity of my build environment.

The below patch, applied between compilation and installation, fixes it.
But it's not the right fix--I did not trace backward to the creation of
the build/cmake_install.cmake file and fix that.

--- build/cmake_install.cmake.orig	2012-09-30 18:49:31.669030129 -0400
+++ build/cmake_install.cmake	2012-09-30 18:49:07.145028834 -0400
@@ -34,7 +34,7 @@
 
 IF(NOT CMAKE_INSTALL_COMPONENT OR "${CMAKE_INSTALL_COMPONENT}" STREQUAL "Unspecified")
   
-    if (NOT  STREQUAL $ENV{USER} AND NOT $ENV{USER} STREQUAL root)
+    if (NOT "" STREQUAL "$ENV{USER}" AND NOT "$ENV{USER}" STREQUAL root)
         message(STATUS "WARNING: Install is being performed by user "
                 "'$ENV{USER}', but the build directory was configured by "
                 "user ''. This may result in a permissions error "

-- 

Hank Leininger <hlein at korelogic.com>
D24D 2C2A F3AC B9AE CD03  B506 2D57 32E1 686B 6DB3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 447 bytes
Desc: Digital signature
Url : http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20120930/62f65d5a/attachment.bin 


More information about the Bro mailing list