ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Andrey Rahmatullin <wrar@altlinux.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] RFC: %cmake
Date: Tue, 24 Nov 2009 16:30:24 +0500
Message-ID: <20091124113023.GR25872@wrars-comp.wrarsdomain> (raw)
In-Reply-To: <20091122231157.GA24229@wo.int.altlinux.org>


[-- Attachment #1.1: Type: text/plain, Size: 1493 bytes --]

On Mon, Nov 23, 2009 at 02:11:58AM +0300, Dmitry V. Levin wrote:
> Please fix build of cdrkit-1.1.9.832-alt3:
> 
> In file included from /usr/src/RPM/BUILD/cdrkit-1.1.9.832/libunls/nls_base.c:42:
> /usr/src/RPM/BUILD/cdrkit-1.1.9.832/libunls/../include/mconfig.h:59:70: error: xconfig.h: No such file or directory
Готово. На старых cmake, правда, собираться не будет, но изменение
для получения универсального патча тривиально (сейчас патч меняет старый
путь на новый, вместо этого можно добавлять новый, оставляя старый).

Раньше configure_file() клал результаты в корень бинарного дерева, сейчас
сохраняет пути:

Teach configure_file to handle relative paths

The configure_file() command now converts relative output paths to full
paths using the current binary directory.  Input relative paths were
already converted using the current source directory, but this behavior
was not previously documented.

http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/cmConfigureFileCommand.cxx?revision=1.36&root=CMake&view=markup

Кажется, обычно это незаметно, т.к. config.h.in лежит в корне. В cdrkit
xconfig.h.in лежит в /include и до 2.8.0 xconfig.h создавался в /build/, а
теперь создаётся в /build/include/.

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):

> Да ты никак на памятник при жизни набиваешься, от встроенных
> пользователей? ;-)
Ну, это... (скромно потупив взор)... не первый.
В смысле, памятник :-)
		-- morozov in sisyphus@

[-- Attachment #1.2: cdrkit-1.1.9-alt-cmake2.8-fix.patch --]
[-- Type: text/plain, Size: 5862 bytes --]

diff --git a/cdrkit/genisoimage/CMakeLists.txt b/cdrkit/genisoimage/CMakeLists.txt
index 8ea911e..2b552bd 100644
--- a/cdrkit/genisoimage/CMakeLists.txt
+++ b/cdrkit/genisoimage/CMakeLists.txt
@@ -3,7 +3,7 @@ PROJECT (MKISOFS C)
 INCLUDE(../include/AddScgBits.cmake)
 INCLUDE(../include/AddSchilyBits.cmake)
 
-INCLUDE_DIRECTORIES(../include ../libhfs_iso ../wodim ${CMAKE_BINARY_DIR})
+INCLUDE_DIRECTORIES(../include ../libhfs_iso ../wodim ${CMAKE_BINARY_DIR}/include)
 
 INCLUDE(CheckIncludeFiles)
 CHECK_INCLUDE_FILES("magic.h" USE_MAGIC)
diff --git a/cdrkit/icedax/CMakeLists.txt b/cdrkit/icedax/CMakeLists.txt
index 79b99ec..924d79b 100644
--- a/cdrkit/icedax/CMakeLists.txt
+++ b/cdrkit/icedax/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (icedax C)
-INCLUDE_DIRECTORIES(../include ../wodim ../libparanoia ${CMAKE_BINARY_DIR})
+INCLUDE_DIRECTORIES(../include ../wodim ../libparanoia ${CMAKE_BINARY_DIR}/include)
 include(../include/AddScgBits.cmake)
 include(../include/AddSchilyBits.cmake)
 include(../include/AddNetworkBits.cmake)
diff --git a/cdrkit/libedc/CMakeLists.txt b/cdrkit/libedc/CMakeLists.txt
index e33a5b5..c267864 100644
--- a/cdrkit/libedc/CMakeLists.txt
+++ b/cdrkit/libedc/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (LIBEDC C)
-INCLUDE_DIRECTORIES(../include . ${CMAKE_BINARY_DIR})
+INCLUDE_DIRECTORIES(../include . ${CMAKE_BINARY_DIR}/include)
 
 AUX_SOURCE_DIRECTORY(. LIBEDC_SRCS)
 
diff --git a/cdrkit/libhfs_iso/CMakeLists.txt b/cdrkit/libhfs_iso/CMakeLists.txt
index bae664c..30d8cb1 100644
--- a/cdrkit/libhfs_iso/CMakeLists.txt
+++ b/cdrkit/libhfs_iso/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (LIBhfs_iso C)
-INCLUDE_DIRECTORIES(../include ../libhfs_iso ../wodim ${CMAKE_BINARY_DIR})
+INCLUDE_DIRECTORIES(../include ../libhfs_iso ../wodim ${CMAKE_BINARY_DIR}/include)
 ADD_DEFINITIONS(-DUSE_LARGEFILES -DABORT_DEEP_ISO_ONLY -DAPPLE_HYB -DUDF -DDVD_VIDEO -DSORTING -DHAVE_CONFIG_H -DUSE_LIBSCHILY -DUSE_SCG)
 
 
diff --git a/cdrkit/libparanoia/CMakeLists.txt b/cdrkit/libparanoia/CMakeLists.txt
index 006ae0a..94847e4 100644
--- a/cdrkit/libparanoia/CMakeLists.txt
+++ b/cdrkit/libparanoia/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (LIBparanoia C)
-INCLUDE_DIRECTORIES(../include ${CMAKE_BINARY_DIR} ../wodim)
+INCLUDE_DIRECTORIES(../include ${CMAKE_BINARY_DIR}/include ../wodim)
 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
 SET(LIBparanoia_SRCS gap.c isort.c overlap.c p_block.c paranoia.c pmalloc.c)
 
diff --git a/cdrkit/librols/CMakeLists.txt b/cdrkit/librols/CMakeLists.txt
index 2158f94..427ca8c 100644
--- a/cdrkit/librols/CMakeLists.txt
+++ b/cdrkit/librols/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (LIBROLS C)
-INCLUDE_DIRECTORIES(../include ../libhfs_iso ${CMAKE_BINARY_DIR} ../wodim)
+INCLUDE_DIRECTORIES(../include ../libhfs_iso ${CMAKE_BINARY_DIR}/include ../wodim)
 
 SET(LIBROLS_SRCS  astoi.c astoll.c astoull.c breakline.c cmpbytes.c comerr.c error.c fexec.c fillbytes.c getargs.c getav0.c getdomainname.c geterrno.c gethostid.c gethostname.c getpagesize.c handlecond.c movebytes.c raisecond.c rename.c saveargs.c seterrno.c spawn.c strcatl.c strdup.c streql.c swabbytes.c usleep.c stdio/cvmod.c stdio/dat.c stdio/fcons.c stdio/fdown.c stdio/fdup.c stdio/ffileread.c stdio/ffilewrite.c stdio/fgetline.c stdio/file_raise.c stdio/fileclose.c stdio/fileluopen.c stdio/filemopen.c stdio/fileopen.c  stdio/filepos.c stdio/fileread.c stdio/filereopen.c stdio/fileseek.c stdio/filesize.c stdio/filestat.c stdio/filewrite.c stdio/flag.c stdio/flush.c stdio/fpipe.c stdio/niread.c stdio/niwrite.c stdio/nixread.c stdio/nixwrite.c stdio/openfd.c stdio/peekc.c default.c)
 
diff --git a/cdrkit/libunls/CMakeLists.txt b/cdrkit/libunls/CMakeLists.txt
index 6faf636..48bd75d 100644
--- a/cdrkit/libunls/CMakeLists.txt
+++ b/cdrkit/libunls/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (LIBunls C)
-INCLUDE_DIRECTORIES(../include ../libhfs_iso ../wodim ${CMAKE_BINARY_DIR})
+INCLUDE_DIRECTORIES(../include ../libhfs_iso ../wodim ${CMAKE_BINARY_DIR}/include)
 ADD_DEFINITIONS(-DHAVE_CONFIG_H)
 
     IF(HAVE_ICONV_H)
diff --git a/cdrkit/libusal/CMakeLists.txt b/cdrkit/libusal/CMakeLists.txt
index 1e59dc5..2e87017 100644
--- a/cdrkit/libusal/CMakeLists.txt
+++ b/cdrkit/libusal/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (LIBSCG C)
-INCLUDE_DIRECTORIES(../include ${CMAKE_BINARY_DIR})
+INCLUDE_DIRECTORIES(../include ${CMAKE_BINARY_DIR}/include)
 include(../include/AddScgBits.cmake)
 ADD_DEFINITIONS(-DUSE_RCMD_RSH)
 
diff --git a/cdrkit/netscsid/CMakeLists.txt b/cdrkit/netscsid/CMakeLists.txt
index 9d2263c..8eaab8c 100644
--- a/cdrkit/netscsid/CMakeLists.txt
+++ b/cdrkit/netscsid/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (netscsid C)
-INCLUDE_DIRECTORIES(../include ../wodim ${CMAKE_BINARY_DIR} )
+INCLUDE_DIRECTORIES(../include ../wodim ${CMAKE_BINARY_DIR}/include )
 INCLUDE(../include/AddScgBits.cmake)
 INCLUDE(../include/AddSchilyBits.cmake)
 INCLUDE(../include/AddNetworkBits.cmake)
diff --git a/cdrkit/readom/CMakeLists.txt b/cdrkit/readom/CMakeLists.txt
index 35a7b6d..a71e2fc 100644
--- a/cdrkit/readom/CMakeLists.txt
+++ b/cdrkit/readom/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (READECD C)
-INCLUDE_DIRECTORIES(../include ../wodim ${CMAKE_BINARY_DIR})
+INCLUDE_DIRECTORIES(../include ../wodim ${CMAKE_BINARY_DIR}/include)
 INCLUDE(../include/AddScgBits.cmake)
 INCLUDE(../include/AddSchilyBits.cmake)
 
diff --git a/cdrkit/wodim/CMakeLists.txt b/cdrkit/wodim/CMakeLists.txt
index 80f3f12..1cb97f5 100644
--- a/cdrkit/wodim/CMakeLists.txt
+++ b/cdrkit/wodim/CMakeLists.txt
@@ -1,5 +1,5 @@
 PROJECT (CDRECORD C)
-INCLUDE_DIRECTORIES(../include ../libedc ${CMAKE_BINARY_DIR})
+INCLUDE_DIRECTORIES(../include ../libedc ${CMAKE_BINARY_DIR}/include)
 INCLUDE(../include/AddScgBits.cmake)
 include(../include/AddSchilyBits.cmake)
 

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

      reply	other threads:[~2009-11-24 11:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-16 20:05 Andrey Rahmatullin
2009-11-16 21:44 ` [devel] RFC: %cmake [JT] Vitaly Lipatov
2009-11-17 10:05 ` [devel] RFC: %cmake Max Ivanov
2009-11-17 14:18 ` Michael Shigorin
2009-11-17 16:28 ` Slava Dubrovskiy
2009-11-17 17:09 ` Andrey Rahmatullin
2009-11-17 17:13 ` Sergey V Turchin
2009-11-21 14:43 ` Andrey Rahmatullin
2009-11-22 23:11   ` Dmitry V. Levin
2009-11-24 11:30     ` Andrey Rahmatullin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091124113023.GR25872@wrars-comp.wrarsdomain \
    --to=wrar@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git