New version of graph-tool and portfiles for MacOS X

Hi,

I just released a new version of graph-tool (2.2.12), which has a
couple of bug fixes and better support for MacOS X. I've also added a
portfile in the download section of the website, so that people can
easily install it on MacOS X with macports. I've tested it and it
seems to work fine, as long as the Apple version of GCC is used (with
macports GCC from FSF I get strange segfaults).

Please report any problems, and enjoy!

Cheers,
Tiago

A 2011/04/23, às 10:44, Tiago de Paula Peixoto escreveu:

Hi,

I just released a new version of graph-tool (2.2.12), which has a
couple of bug fixes and better support for MacOS X. I've also added a
portfile in the download section of the website, so that people can
easily install it on MacOS X with macports. I've tested it and it
seems to work fine, as long as the Apple version of GCC is used (with
macports GCC from FSF I get strange segfaults).

Please report any problems, and enjoy!

Cheers,
Tiago

--
Tiago de Paula Peixoto <tiago(a)skewed.de>

Hi
i tried to install from portfile but something gone wrong
I follow this tuturial "http://homepage.mac.com/simx/technonova/tips/using_experimental_macports_portfiles.html " to install .
i create a directory : file:///Users/paulolopes/DarwinPorts/local-sources/science/graph-tool, and put the portfile inside the graph-tool directory.
I Executed the portindex command and everything seemed ok,

Total number of ports parsed: 1
Ports successfully parsed: 1
Ports failed: 0
Up-to-date ports skipped: 0

and all the dependences were installed with success, but when the graph-tool was been instaled it failed :S ...

---> Configuring graph-tool
Error: Target org.macports.configure returned: shell command failed (see log for details)
Log for graph-tool is at: /opt/local/var/macports/logs/_Users_paulolopes_DarwinPorts_local-sources_science_graph-tool/main.log
Error: Status 1 encountered during processing.
To report a bug, see <MacPorts Guide;

If anyone installed without problems can, please, tell what i´m doing wrong?

_______________________________________________
graph-tool mailing list
graph-tool(a)skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool

Paulo Lopes

attachment.html (2.85 KB)

main.log (103 KB)

attachment.html (543 Bytes)

Hi Paulo,

i tried to install from portfile but something gone wrong
I follow this tuturial
"http://homepage.mac.com/simx/technonova/tips/using_experimental_macports_portfiles.html
" to install .
i create a directory :
file:///Users/paulolopes/DarwinPorts/local-sources/science/graph-tool,
and put the portfile inside the graph-tool directory.
I Executed the portindex command and everything seemed ok,

Did you rename the file "graph-tool-2.2.12.Portfile" to "Portfile"
inside "/Users/paulolopes/DarwinPorts/local-sources/science/graph-tool"?
If not, you should try that.

and all the dependences were installed with success, but when the
graph-tool was been instaled it failed :S ...

This is really strange. In the log file is the following error:

    :debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_Users_paulolopes_DarwinPorts_local-sources_science python_graph-tool/work" && /usr/bin/bzip2 -dc '/opt/local/var/macports/distfiles/graph-tool/graph-tool-2.2.12.tar.bz2' | /usr/bin/gnutar --no-same-owner -xf -'
    :error:extract Target org.macports.extract returned: /opt/local/var/macports/build/_Users_paulolopes_DarwinPorts_local-sources_science: no such file or directory

which means somehow the work directory for the compilation was not
created properly by macports.

I don't understand what caused this, and it seems like a macports bug,
but my (wild) guess is that this maybe has to do with permissions, and
the fact that you have included the portfile from your home
directory. Could you try making your "local-source" directory outside
your user's home, and owned by root?

Cheers,
Tiago

A 2011/04/27, às 08:53, Tiago de Paula Peixoto escreveu:

Hi Paulo,

i tried to install from portfile but something gone wrong
I follow this tuturial
"http://homepage.mac.com/simx/technonova/tips/using_experimental_macports_portfiles.html
" to install .
i create a directory :
file:///Users/paulolopes/DarwinPorts/local-sources/science/graph-tool,
and put the portfile inside the graph-tool directory.
I Executed the portindex command and everything seemed ok,

Did you rename the file "graph-tool-2.2.12.Portfile" to "Portfile"
inside "/Users/paulolopes/DarwinPorts/local-sources/science/graph-tool"?
If not, you should try that.

Yes i do this i change the name to Portfile, and put the URL in the sources.conf

and all the dependences were installed with success, but when the
graph-tool was been instaled it failed :S ...

This is really strange. In the log file is the following error:

   :debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_Users_paulolopes_DarwinPorts_local-sources_science python_graph-tool/work" && /usr/bin/bzip2 -dc '/opt/local/var/macports/distfiles/graph-tool/graph-tool-2.2.12.tar.bz2' | /usr/bin/gnutar --no-same-owner -xf -'
   :error:extract Target org.macports.extract returned: /opt/local/var/macports/build/_Users_paulolopes_DarwinPorts_local-sources_science: no such file or directory

which means somehow the work directory for the compilation was not
created properly by macports.

I don't understand what caused this, and it seems like a macports bug,
but my (wild) guess is that this maybe has to do with permissions, and
the fact that you have included the portfile from your home
directory. Could you try making your "local-source" directory outside
your user's home, and owned by root?

Now i changed "DarwinPorts/local-source" directory to root like you sugested but this don´t work ...
like the last time the PortIndex command works fine ... but the graph-tool instalation seems don´t work ...

Cheers,
Tiago

--
Tiago de Paula Peixoto <tiago(a)skewed.de>

_______________________________________________
graph-tool mailing list
graph-tool(a)skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool

Paulo Lopes

main.log (85 KB)

Hi,

There does seem to be a minor problem with the 2.2.12 version. It was
packaged without autogen.sh and the pre-configure step in the Portfile
is looking for it:

    pre-configure {
         system "cd ${worksrcpath} && sh autogen.sh"
    }

Until its fixed, you could try the development version- it does pass the
configure stage (for me...)

attachment.html (1.14 KB)

Oops... This has now been fixed in the Portfile. This should be there
only for the devel version. However, the problem Paulo is reporting
seems to be a different one, from what I can tell from the logs he sent
last time.

Cheers,
Tiago

Well, I'm a bit stumped. You could try the corrected version of the
Portfile, which is now on the website, which is working perfectly for me
(I've just tested it). If you get _exactly_ the same error as in the
first time, I suggest you ask the macports people, since they may be
more likely to understand your problem.

Cheers,
Tiago

ok- I only gave a quick glance to the problem. The first issue was the
permissions on the directory I think, the next one was the autogen.sh
thing (from the posted main.log):

    :info:configure sh: autogen.sh: No such file or directory
    :info:configure shell command "cd
    /opt/local/var/macports/build/_DarwinPorts_local-sources_science_graph-tool/work/graph-tool-2.2.12
    && sh autogen.sh" returned error 127
    :error:configure Target org.macports.configure returned: shell
    command failed (see log for details)

This should be fixed now, so no reason why it shouldn't work if he tries
again- works for me with your updated Portfile.

attachment.html (1.79 KB)