[Monetdb-developers] Packages for OSX (homebrew)
Hi all, over the weekend I packaged MonetDB-Oct2010-SP1 for homebrew, an increasingly popular git-based package manager for OSX. For more info about homebrew please see: http://mxcl.github.com/homebrew/ The package can be found at https://github.com/gmodena/homebrew/blob/master/Library/Formula/monetdb.rb I will be doing some more tests, tweaks and clean ups during the week, if everything works well I'd like to try to get the package included in the official repository. Please let me know if you have any comment or feedback. = Synopsis = # Install x86/x86_64 binaries $ brew install monetdb # Build from superball source $ brew install --superball monetdb = Features = - possibility to install either from binaries (x86/x86_64) or building from source (superball). Binaries are picked given the detected architecture. - plist file for (optionally) starting merovingian at boot/login = TODO = - add the possibility to build&install from the hg repository Cheers -- Gabriele
Hi Gabriele, I am not using homebrew (and I also don't know of anyone else who is). But the package definition seems reasonably straight forward, so we will see if it can gain some traction (especially with respect to the mac app store). One thing did strike me as odd in your code, though: When installing from the binary archive the absolute file names of the library dependencies are hard-coded into the mach-o binaries. This would break the installation unless installed into the standard prefix (/usr/local). That can be changed using apples install_name_tool. I can't find any code to do that in your package definition. Does homebrew do that for you? Did you only install in the standard prefix? Did you maybe "happen" to have a copy of monet (and thus the libraries) in /usr/local? Also you should change your launchd-description to set the path to the monetdb.conf file in the environment variable MONETDB5CONF. kind regards holger On Jan 17, 2011, at 3:24 PM, Gabriele Modena wrote:
Hi all, over the weekend I packaged MonetDB-Oct2010-SP1 for homebrew, an increasingly popular git-based package manager for OSX.
For more info about homebrew please see: http://mxcl.github.com/homebrew/
The package can be found at https://github.com/gmodena/homebrew/blob/master/Library/Formula/monetdb.rb
I will be doing some more tests, tweaks and clean ups during the week, if everything works well I'd like to try to get the package included in the official repository.
Please let me know if you have any comment or feedback.
= Synopsis =
# Install x86/x86_64 binaries $ brew install monetdb
# Build from superball source $ brew install --superball monetdb
= Features = - possibility to install either from binaries (x86/x86_64) or building from source (superball). Binaries are picked given the detected architecture. - plist file for (optionally) starting merovingian at boot/login
= TODO = - add the possibility to build&install from the hg repository
Cheers -- Gabriele
------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
Hi Gabriele, I am not using homebrew (and I also don't know of anyone else who is). But the package definition seems reasonably straight forward, so we will see if it can gain some traction (especially with respect to the mac app store). One thing did strike me as odd in your code, though: When installing from the binary archive the absolute file names of the library dependencies are hard-coded into the mach-o binaries. This would break the installation unless installed into the standard prefix (/usr/local). That can be changed using apples install_name_tool. I can't find any code to do that in your package definition. Does homebrew do that for you? Did you only install in the standard prefix? Did you maybe "happen" to have a copy of monet (and thus the libraries) in /usr/local? Also you should change your launchd-description to set the path to the monetdb.conf file in the environment variable MONETDB5CONF. kind regards holger On Jan 17, 2011, at 3:24 PM, Gabriele Modena wrote:
Hi all, over the weekend I packaged MonetDB-Oct2010-SP1 for homebrew, an increasingly popular git-based package manager for OSX.
For more info about homebrew please see: http://mxcl.github.com/homebrew/
The package can be found at https://github.com/gmodena/homebrew/blob/master/Library/Formula/monetdb.rb
I will be doing some more tests, tweaks and clean ups during the week, if everything works well I'd like to try to get the package included in the official repository.
Please let me know if you have any comment or feedback.
= Synopsis =
# Install x86/x86_64 binaries $ brew install monetdb
# Build from superball source $ brew install --superball monetdb
= Features = - possibility to install either from binaries (x86/x86_64) or building from source (superball). Binaries are picked given the detected architecture. - plist file for (optionally) starting merovingian at boot/login
= TODO = - add the possibility to build&install from the hg repository
Cheers -- Gabriele
------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
On 17-01-2011 22:54:15 +0100, Holger Pirk wrote:
Hi Gabriele,
I am not using homebrew (and I also don't know of anyone else who is). But the package definition seems reasonably straight forward, so we will see if it can gain some traction (especially with respect to the mac app store).
One thing did strike me as odd in your code, though: When installing from the binary archive the absolute file names of the library dependencies are hard-coded into the mach-o binaries. This would break the installation unless installed into the standard prefix (/usr/local). That can be changed using apples install_name_tool. I can't find any code to do that in your package definition. Does homebrew do that for you? Did you only install in the standard prefix? Did you maybe "happen" to have a copy of monet (and thus the libraries) in /usr/local?
Technically, this can be worked around, but the real issue is that the sources internally reference this location as well, which is much more than just a library resolution problem. It seems merovingian just solves the internal references problem transparently for the way the homebrew module installs it, with its MONETDB5CONF variable. While install_name_tool rocks, I much more prefer the solution where a build itself sets @executable_path or alike entries. But maybe that is just wishful thinking.
On Mon, Jan 17, 2011 at 10:54 PM, Holger Pirk
One thing did strike me as odd in your code, though: When installing from the binary archive the absolute file names of the library dependencies are hard-coded into the mach-o binaries. This would break the installation unless installed into the standard prefix (/usr/local).
I was aware of this problem and did not not know install_name_tool. I will look into a workaround tonight. Thanks for the hint! -- Gabriele
participants (3)
-
Fabian Groffen
-
Gabriele Modena
-
Holger Pirk