On 7 November 2012 14:26, Ciprian Teodorov <ciprian.teodorov@gmail.com> wrote:
Hi guys,
While trying to compile the NBCog vm on my MacOS machine I have found a strange issue... I do not know if it comes from my machine configuration or if it is more general than that... Mainly after loading the cairo package the compilation process fails to unpack the cairo.tgz archive... It seems that the extension of the package changes (the downloaded package has a .tar.xz extension, which gets dropped and replaced by .tgz) and my "tar" install can't cope with that....
I have fixed it temporarily as shown bellow:
CMCairo>>unpack "..."
gen set: #unpackTarget toString: '${libSourcesDir}/touch.cmake'. gen puts: 'add_custom_command(OUTPUT "${unpackTarget}" COMMAND tar -Jxf "${libName}.tgz" COMMAND touch "${unpackTarget}" COMMENT "Unpacking ${libName} ... " ) '.
by
CMCairo>>unpack "..." gen set: #unpackTarget toString: '${libSourcesDir}/touch.cmake'. gen puts: 'add_custom_command(OUTPUT "${unpackTarget}" COMMAND cp "${libName}.tgz" "${libName}.tar.xz" COMMAND unxz "${libName}.tar.xz" COMMAND tar xf "${libName}.tar" COMMAND touch "${unpackTarget}" COMMENT "Unpacking ${libName} ... " ) '.
Is this a known issue, or my "tar" install is wrong?
yes it is known.. i had to install 7z support for tar. this is because MacOS is number of years behind the most recent release of tar, which supports 7z compressing by default :) And with your config, i am not sure that default MacOS installation having unxz utility installed. If yes, then , of course it makes sense to change config to what is proposed by you. And if not, then it is better to leave a note in class & methods comments to indicate that people should install more recent tar utility.
Cheers, Ciprian
-- Dr. Ciprian TEODOROV Ingénieur Développement CAO
tél : 06 08 54 73 48 mail : ciprian.teodorov@gmail.com www.teodorov.ro
-- Best regards, Igor Stasenko.