https://llvm.org/bugs/show_bug.cgi?id=23843

            Bug ID: 23843
           Summary: building rpm will include upward workspace directory
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

If you set up

/var/lib/jenkins/sharedspace/llvm/llmv/<all-llvm-source>
/var/lib/jenkins/sharedspace/build

then

cd /var/lib/jenkins/sharedspace/build
cmake -G "Unix Makefiles" ../llvm
make
cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -D CPACK_RPM_SPEC_INSTALL_POST="/bin/true"
-G RPM

will include /var/lib/jenkins into the rpm (no files, only the directory).

installing build rpm leads to an error:
rpm -vhU /var/lib/jenkins/sharedspace/llvm/build/LLVM-3.7.0svn-Linux.rpm
Vorbereiten... ########################################
    Datei /var/lib/jenkins aus der Installation von llvm-3.7.0svn-1.x86_64
kollidiert mit der Datei aus dem Paket jenkins-1.617-1.1.noarch

If installed on a system without jenkins, install runs fine, but creates an
empty directory "/var/lib/jenkins".
At some point the procedures include, in all cases, a directory "../.." up from
the build-directory. The most bad thing: this directory might be removed
completely in case of deinstalling with option --purge given. If your build
directory is "/xxy/xxz" you end up with "/" deleted (but you have to be really
ignorant to achieve this ;-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to