Re: UseSWIG.cmake is borked - need help with workaround

2011-07-21 Thread Richard Shaw
On Wed, Jul 20, 2011 at 9:29 PM, Ankur Sinha sanjay.an...@gmail.com wrote:
 Hello,

 In the cmake version residing in rawhide, the UseSWIG.cmake file is
 broken. Upstream is aware of this. I've also filed a bug with fedora
 here[1].

 I'd like to find a temporary solution to this. gdcm cannot build in
 rawhide, and a lot of fedora-medical related packages are failing to
 build in rawhide because of this.

 I have the fedora 15 version of the UseSWIG.cmake file, which worked
 correctly. How can I use this in my mock build? I need to *force* cmake
 to use this file instead of it's own module.

I can think of two possible solutions:

1. It will take a lot more steps but you can try to use the F15 file,
something like:
# mock -r fedora-rawhide-x86_64 --init
# mock -r fedora-rawhide-x86_64 --install cmake (or the correct
package that supplies that file)
# mock -r fedora-rawhide-x86_64 --copyin /path/to/F15/UseSWIG.cmake
# mock -r fedora-rawhide-x86_64 --shell (copy the file over the rawhide version)
# mock -r fedora-rawhide-x86_64 --no-clean /path/to/srpm

I may have missed something as I wrote that from memory, but it should
be close...

2. Use the whole F15 cmake package, similar to above but you can skip
--copyin and --shell

Richard
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: UseSWIG.cmake is borked - need help with workaround

2011-07-21 Thread John5342
On Thu, Jul 21, 2011 at 03:29, Ankur Sinha sanjay.an...@gmail.com wrote:
 Hello,

 In the cmake version residing in rawhide, the UseSWIG.cmake file is
 broken. Upstream is aware of this. I've also filed a bug with fedora
 here[1].

 I'd like to find a temporary solution to this. gdcm cannot build in
 rawhide, and a lot of fedora-medical related packages are failing to
 build in rawhide because of this.

 I have the fedora 15 version of the UseSWIG.cmake file, which worked
 correctly. How can I use this in my mock build? I need to *force* cmake
 to use this file instead of it's own module.

 I've placed the f15-UseSWIG.cmake in the project/CMake directory, but
 Cmake still finds its own broken module. What else does one need to do
 here?

 [1] https://bugzilla.redhat.com/show_bug.cgi?id=723652

If the problem is purely with the actual UseSWIG.cmake file and not
with the supporting tools then as a temporary workaround you can stick
the old UseSWIG.cmake file in a directory of it's own and somewhere in
the CMakeLists.txt before include(UseSWIG) (easiest somewhere near
the top of the root CMakeLists.txt file) put a line similar to the
following:

set(CMAKE_MODULE_PATH path ${CMAKE_MODULE_PATH})

where path could be the absolute path to the directory containing
the UseSWIG.cmake module or ${CMAKE_CURRENT_SOURCE_DIR}/relative/path.
The quotes are needed though i believe.

That way your file should be found before any others. The only
exception is if UseSWIG is included from another module in the
standard cmake modules directory. If that's the case then cmake will
always search there first. To return to the old behaviour where
CMAKE_MODULE_PATH is always used first add cmake_policy(SET CMP0017
OLD) to the CMakeLists.txt file.

All of this is based on the documentation at [1]. I haven't tested any
of it myself.

[1] http://www.cmake.org/cmake/help/cmake-2-8-docs.html

-- 
There are 10 kinds of people in the world: Those who understand binary
and those who don't...
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: UseSWIG.cmake is borked - need help with workaround

2011-07-21 Thread Ankur Sinha
On Thu, 2011-07-21 at 08:17 -0500, Richard Shaw wrote:
 I can think of two possible solutions:
 
 1. It will take a lot more steps but you can try to use the F15 file,
 something like:
 # mock -r fedora-rawhide-x86_64 --init
 # mock -r fedora-rawhide-x86_64 --install cmake (or the correct
 package that supplies that file)
 # mock -r fedora-rawhide-x86_64 --copyin /path/to/F15/UseSWIG.cmake
 # mock -r fedora-rawhide-x86_64 --shell (copy the file over the
 rawhide version)
 # mock -r fedora-rawhide-x86_64 --no-clean /path/to/srpm
 
 I may have missed something as I wrote that from memory, but it should
 be close...
 
 2. Use the whole F15 cmake package, similar to above but you can skip
 --copyin and --shell
 
 Richard 

Hi Richard,

I can build it on my local machine already. I just had to grab the old
cmake package and place it in a local mock repo. This isn't the issue
however, I am looking for a way to get it to build correctly in koji,
the fedora build system. These hacks aren't applicable there :/

-- 
Thanks, 
Regards,
Ankur: FranciscoD

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/


-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: UseSWIG.cmake is borked - need help with workaround

2011-07-21 Thread Ankur Sinha
On Thu, 2011-07-21 at 15:49 +0100, John5342 wrote:
 If the problem is purely with the actual UseSWIG.cmake file and not
 with the supporting tools then as a temporary workaround you can stick
 the old UseSWIG.cmake file in a directory of it's own and somewhere in
 the CMakeLists.txt before include(UseSWIG) (easiest somewhere near
 the top of the root CMakeLists.txt file) put a line similar to the
 following:
 
 set(CMAKE_MODULE_PATH path ${CMAKE_MODULE_PATH})
 
 where path could be the absolute path to the directory containing
 the UseSWIG.cmake module or ${CMAKE_CURRENT_SOURCE_DIR}/relative/path.
 The quotes are needed though i believe.
 
 That way your file should be found before any others. The only
 exception is if UseSWIG is included from another module in the
 standard cmake modules directory. If that's the case then cmake will
 always search there first. To return to the old behaviour where
 CMAKE_MODULE_PATH is always used first add cmake_policy(SET CMP0017
 OLD) to the CMakeLists.txt file.
 
 All of this is based on the documentation at [1]. I haven't tested any
 of it myself.
 
 [1] http://www.cmake.org/cmake/help/cmake-2-8-docs.html
 
 

Hi John,

I've been trying this already. I hadn't realized that the location of
inclusion of swig had to be kept in mind. I'll go retry. 

-- 
Thanks, 
Regards,
Ankur: FranciscoD

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/


-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


Re: UseSWIG.cmake is borked - need help with workaround

2011-07-21 Thread Orion Poplawski
On 07/20/2011 08:29 PM, Ankur Sinha wrote:
 Hello,

 In the cmake version residing in rawhide, the UseSWIG.cmake file is
 broken. Upstream is aware of this. I've also filed a bug with fedora
 here[1].

 I'd like to find a temporary solution to this. gdcm cannot build in
 rawhide, and a lot of fedora-medical related packages are failing to
 build in rawhide because of this.

 I have the fedora 15 version of the UseSWIG.cmake file, which worked
 correctly. How can I use this in my mock build? I need to *force* cmake
 to use this file instead of it's own module.

 I've placed the f15-UseSWIG.cmake in the project/CMake directory, but
 Cmake still finds its own broken module. What else does one need to do
 here?

 [1] https://bugzilla.redhat.com/show_bug.cgi?id=723652


Updated cmake should now be in rawhide.

-- 
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA DivisionFAX: 303-415-9702
3380 Mitchell Lane  or...@cora.nwra.com
Boulder, CO 80301  http://www.cora.nwra.com
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel


UseSWIG.cmake is borked - need help with workaround

2011-07-20 Thread Ankur Sinha
Hello,

In the cmake version residing in rawhide, the UseSWIG.cmake file is
broken. Upstream is aware of this. I've also filed a bug with fedora
here[1].

I'd like to find a temporary solution to this. gdcm cannot build in
rawhide, and a lot of fedora-medical related packages are failing to
build in rawhide because of this. 

I have the fedora 15 version of the UseSWIG.cmake file, which worked
correctly. How can I use this in my mock build? I need to *force* cmake
to use this file instead of it's own module.

I've placed the f15-UseSWIG.cmake in the project/CMake directory, but
Cmake still finds its own broken module. What else does one need to do
here?

[1] https://bugzilla.redhat.com/show_bug.cgi?id=723652

-- 
Thanks, 
Regards,
Ankur: FranciscoD

http://fedoraproject.org/wiki/User:Ankursinha
http://dodoincfedora.wordpress.com/


-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel