qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Stitcher <astitc...@apache.org>
Subject Re: cmake install seems to tamper with interpreter directive
Date Wed, 06 Sep 2017 21:23:57 GMT
On Wed, 2017-09-06 at 22:11 +0100, Chris Richardson wrote:
> ...
> CMake: 1, distutils: nil.

Thank you, thank you.

I was trying to understand this incoherent behaviour not quite
believing it could exist in cmake.

All-in-all cmake is like democracy (according to Churchill) - "...
democracy is the worst form of government except all those other
forms..."

Andrew
> 
> 
> 
> On 6 September 2017 at 20:00, Ken Giusti <kgiusti@redhat.com> wrote:
> 
> > Alan -
> > 
> > Hate cmake?  Maybe you'd be interested in automake instead.
> > 
> > /me ducks
> > 
> > ;)
> > 
> > On Wed, Sep 6, 2017 at 2:44 PM, Alan Conway <aconway@redhat.com>
> > wrote:
> > > On Wed, Sep 6, 2017 at 12:58 PM, Gordon Sim <gsim@redhat.com>
> > > wrote:
> > > 
> > > > It seems that the install directive for PROGRAMS in cmake
> > > > somehow
> > > > evaluates and rewrites the interpreter directive in some way.
> > > > 
> > > > E.g. in dispatch there is:
> > > > 
> > > > install(PROGRAMS
> > > > >     ${CMAKE_CURRENT_SOURCE_DIR}/tools/qdstat
> > > > >     ${CMAKE_CURRENT_SOURCE_DIR}/tools/qdmanage
> > > > >     DESTINATION bin)
> > > > > 
> > > > 
> > > > The first line of both those scripts is:
> > > > 
> > > > #!/usr/bin/env python
> > > > > 
> > > > 
> > > > But when you install, it rewrites that to whatever that
> > > > evaluates to.
> > 
> > This
> > > > is not really what is wanted when building an install image for
> > > > installation in some other system (e.g. an rpm or a docker
> > > > image), where
> > > > the setup may be different.
> > > > 
> > > > Does anyone know of a simple way to prevent this?
> > > > 
> > > > 
> > > 
> > > That boggles my mind. I tried install(FILES...) and it does the
> > > same
> > > thing!!@#????
> > > The cmake docs do not mention anything about such
> > > transformations,
> > > anywhere. The string "#!" does not even occur in the docs. The
> > > install
> > 
> > doc
> > > says it simply copies the files, which is clearly a lie. Since
> > > there's no
> > > mention that this "feature" even exists, I've no idea how to turn
> > > it off
> > 
> > -
> > > install won't allow a COPYONLY tag like configure_file, I tried.
> > > Sigh.
> > 
> > Did
> > > I mention I hate cmake?
> > 
> > 
> > 
> > --
> > -K
> > 
> > -----------------------------------------------------------------
> > ----
> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: users-help@qpid.apache.org
> > 
> > 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message