[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Componentized Packaging with TGZ generator
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2013-09-13 15:22:50
Message-ID: CAExHGmR1mHTPPn1wOLe8y+h4Vnsf6wy6TB8HScVSZ_X5wuL8uA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Eric,

On Fri, Sep 13, 2013 at 5:02 PM, Eric Noulard <eric.noulard@gmail.com>wrote:

> 2013/9/13 Andreas Pakulat <apaku@gmx.de>:
> > Hi,
> >
> > I'm having a bit of an issue with the behaviour of the TGZ generator and
> > componentized packagings. The generation of the packages for the various
> > components works just fine, but unfortunately the contents are not as I'd
> > like them to be.
> >
> > It seems like the TGZ generator drops the 'common' prefix from the
> packages,
> > i.e. my packages have
> >
> > bin/foobar
> > lib/libfoobar.so
> >
> > in them, instead of
> >
> > mypackage-1.0.0-Linux32/bin/foobar
> > mypackage-1.0.0-Linux32/lib/libfoobar.so
> >
> > This is quite annoying extacting the packages pollutes a users system in
> a
> > way that makes it hard to remove the stuff again. Its also different from
> > the behaviour when disabling componentized packaging, there TGZ adds the
> > prefix just fine.
> >
> > I've tried avoiding this with CPACK_INCLUDE_TOPLEVEL_DIRECTORIES set to
> 1,
> > but that seems to make no difference. Am I overlooking something in the
> docs
> > of CMake/CPack that can be tuned to get the behaviour that I want?
>
> Yes there is:CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY
>
> cpack --help-variable CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY
>

Ah, thanks a lot, that does work.

I should've considered the builtin docs of course. Unfortunately I only
checked  http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack and
http://www.cmake.org/Wiki/CMake:CPackConfiguration..

Andreas

[Attachment #5 (text/html)]

<div dir="ltr">Hi Eric,<div class="gmail_extra"><br><div class="gmail_quote">On Fri, \
Sep 13, 2013 at 5:02 PM, Eric Noulard <span dir="ltr">&lt;<a \
href="mailto:eric.noulard@gmail.com" \
target="_blank">eric.noulard@gmail.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">2013/9/13 \
Andreas Pakulat &lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt;:<br>

<div><div class="h5">&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m having a bit of an issue with the behaviour of the TGZ generator and<br>
&gt; componentized packagings. The generation of the packages for the various<br>
&gt; components works just fine, but unfortunately the contents are not as \
I&#39;d<br> &gt; like them to be.<br>
&gt;<br>
&gt; It seems like the TGZ generator drops the &#39;common&#39; prefix from the \
packages,<br> &gt; i.e. my packages have<br>
&gt;<br>
&gt; bin/foobar<br>
&gt; lib/libfoobar.so<br>
&gt;<br>
&gt; in them, instead of<br>
&gt;<br>
&gt; mypackage-1.0.0-Linux32/bin/foobar<br>
&gt; mypackage-1.0.0-Linux32/lib/libfoobar.so<br>
&gt;<br>
&gt; This is quite annoying extacting the packages pollutes a users system in a<br>
&gt; way that makes it hard to remove the stuff again. Its also different from<br>
&gt; the behaviour when disabling componentized packaging, there TGZ adds the<br>
&gt; prefix just fine.<br>
&gt;<br>
&gt; I&#39;ve tried avoiding this with CPACK_INCLUDE_TOPLEVEL_DIRECTORIES set to \
1,<br> &gt; but that seems to make no difference. Am I overlooking something in the \
docs<br> &gt; of CMake/CPack that can be tuned to get the behaviour that I want?<br>
<br>
</div></div>Yes there is:CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY<br>
<br>
cpack --help-variable \
CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY<br></blockquote><div><br></div><div>Ah, \
thanks a lot, that does work. <br></div><div><br></div><div>I should&#39;ve \
considered the builtin docs of course. Unfortunately I only checked  <a \
href="http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack">http://www.cmake.org/Wiki/CMake:Component_Install_With_CPack</a> \
and <a href="http://www.cmake.org/Wiki/CMake:CPackConfiguration">http://www.cmake.org/Wiki/CMake:CPackConfiguration</a>..</div>
 <div><br></div><div>Andreas</div></div></div></div>



--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: \
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at \
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic