[LLVMbugs] [Bug 23843] New: building rpm will include upward workspace directory

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jun 14 04:22:10 PDT 2015


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: unassignedbugs at nondot.org
          Reporter: tps at vr-web.de
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150614/111a01e2/attachment.html>


More information about the llvm-bugs mailing list