[Pharo-project] unpacking cairo.tgz fails during VM build
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? 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
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.
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 :)
so that has to be installed on OSX or not? If we should update the HOWTOBUILD accordingly?
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.
On 8 November 2012 11:42, Camillo Bruni <camillobruni@gmail.com> wrote:
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 :)
so that has to be installed on OSX or not? If we should update the HOWTOBUILD accordingly?
what i did is installed new tar from ports. i don't know why cairo people decided that switching to 7z compression for their sources is right time. (if you look at releases, they did this recently)
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.
-- Best regards, Igor Stasenko.
participants (3)
-
Camillo Bruni -
Ciprian Teodorov -
Igor Stasenko