Discussion:
No fortune with cmake and file globbing
(too old to reply)
Stephan Witt
2014-10-21 12:17:01 UTC
Permalink
I've noticed some "interesting" effect.

There are some files different from others. E.g. the implementation of the GuiPainter class:

$ ls -l@ lyx/src/frontends/qt4/GuiPainter.*
-rw-r--r--@ 1 stephan staff 17459 20 Okt 12:29 lyx/src/frontends/qt4/GuiPainter.cpp
com.apple.TextEncoding 15
-rw-r--r-- 1 stephan staff 5023 18 Okt 11:53 lyx/src/frontends/qt4/GuiPainter.h

I'm not sure how GuiPainter.cpp got this attributes but it gets stored in the dist archive like that:

$ bunzip2 -c lyx-release/LyX-2.2-2.2.0dev.tar.bz2 | tar tf - | grep GuiPainter
LyX-2.2-2.2.0dev/src/frontends/qt4/._GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.h

And now the consequence with cmake on Linux is: it tries to compile ._GuiPainter.cpp and fails.

Stephan
Kornel Benko
2014-10-21 12:42:25 UTC
Permalink
Post by Stephan Witt
I've noticed some "interesting" effect.
com.apple.TextEncoding 15
-rw-r--r-- 1 stephan staff 5023 18 Okt 11:53 lyx/src/frontends/qt4/GuiPainter.h
$ bunzip2 -c lyx-release/LyX-2.2-2.2.0dev.tar.bz2 | tar tf - | grep GuiPainter
LyX-2.2-2.2.0dev/src/frontends/qt4/._GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.h
And now the consequence with cmake on Linux is: it tries to compile ._GuiPainter.cpp and fails.
Stephan
How got you ._GuiPainter.cpp into the sources?
I will try to omit ".*.cpp" from the GLOB.

Kornel
Kornel Benko
2014-10-21 12:54:13 UTC
Permalink
Post by Kornel Benko
Post by Stephan Witt
I've noticed some "interesting" effect.
com.apple.TextEncoding 15
-rw-r--r-- 1 stephan staff 5023 18 Okt 11:53 lyx/src/frontends/qt4/GuiPainter.h
$ bunzip2 -c lyx-release/LyX-2.2-2.2.0dev.tar.bz2 | tar tf - | grep GuiPainter
LyX-2.2-2.2.0dev/src/frontends/qt4/._GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.h
And now the consequence with cmake on Linux is: it tries to compile ._GuiPainter.cpp and fails.
Stephan
How got you ._GuiPainter.cpp into the sources?
I will try to omit ".*.cpp" from the GLOB.
Try again

Kornel
Stephan Witt
2014-10-21 12:54:56 UTC
Permalink
Post by Kornel Benko
Post by Stephan Witt
I've noticed some "interesting" effect.
com.apple.TextEncoding 15
-rw-r--r-- 1 stephan staff 5023 18 Okt 11:53 lyx/src/frontends/qt4/GuiPainter.h
$ bunzip2 -c lyx-release/LyX-2.2-2.2.0dev.tar.bz2 | tar tf - | grep GuiPainter
LyX-2.2-2.2.0dev/src/frontends/qt4/._GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.h
And now the consequence with cmake on Linux is: it tries to compile ._GuiPainter.cpp and fails.
Stephan
How got you ._GuiPainter.cpp into the sources?
I will try to omit ".*.cpp" from the GLOB.
Kornel
I think hidden files should be excluded from source file list indeed. Thanks.

I've called "make dist" and the tar utility stores the extra attribute information in this file(s).

There are some others (on Linux):
$ find src -name '._*' -print
src/frontends/qt4/._GuiImage.h
src/frontends/qt4/._GuiApplication.h
src/frontends/qt4/._GuiPainter.cpp
src/frontends/qt4/._GuiView.cpp
src/graphics/._GraphicsImage.h
src/insets/._RenderGraphic.h
src/insets/._InsetGraphicsParams.cpp
src/._CursorSlice.h

Stephan
Kornel Benko
2014-10-21 13:03:14 UTC
Permalink
Post by Stephan Witt
Post by Kornel Benko
Post by Stephan Witt
I've noticed some "interesting" effect.
com.apple.TextEncoding 15
-rw-r--r-- 1 stephan staff 5023 18 Okt 11:53 lyx/src/frontends/qt4/GuiPainter.h
$ bunzip2 -c lyx-release/LyX-2.2-2.2.0dev.tar.bz2 | tar tf - | grep GuiPainter
LyX-2.2-2.2.0dev/src/frontends/qt4/._GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.cpp
LyX-2.2-2.2.0dev/src/frontends/qt4/GuiPainter.h
And now the consequence with cmake on Linux is: it tries to compile ._GuiPainter.cpp and fails.
Stephan
How got you ._GuiPainter.cpp into the sources?
I will try to omit ".*.cpp" from the GLOB.
Kornel
I think hidden files should be excluded from source file list indeed. Thanks.
I've called "make dist" and the tar utility stores the extra attribute information in this file(s).
$ find src -name '._*' -print
src/frontends/qt4/._GuiImage.h
src/frontends/qt4/._GuiApplication.h
src/frontends/qt4/._GuiPainter.cpp
src/frontends/qt4/._GuiView.cpp
src/graphics/._GraphicsImage.h
src/insets/._RenderGraphic.h
src/insets/._InsetGraphicsParams.cpp
src/._CursorSlice.h
Stephan
Looks like we have to omit the hidden header files too.

Kornel

Loading...