Re: Gentoo Linux Ebuild

Participants: mizerydearia
Quote from: satoshi on August 27, 2010, 12:49:43 AM

Last time I tried $(shell /usr/bin/wx-config), there was immediate hollering about build problems with it. There wasn’t time to investigate at the time.

One problem with $(shell /usr/bin/wx-config) is it will pick up any version (wx 2.8 ) and any configuration (non-UTF-8 ) of wxWidgets that happens to be there. -lwx_gtk2ud-2.9 only matches the right configuration. It fails if wxWidgets was built with the wrong configuration.

For reference purpose, Gentoo has the following work-around for specific wxWidgets versions:

Code:$ eselect wxwidgets list Available wxWidgets profiles: [1] gtk2-ansi-release-2.6 [2] gtk2-unicode-2.9 * [3] gtk2-unicode-release-2.6 [4] gtk2-unicode-release-2.8

$ /usr/bin/wx-config —version 2.9.1

eselect wxwidgets set 1

Setting wxWidgets profile to gtk2-ansi-release-2.6

$ /usr/bin/wx-config —version 2.6.4 I’m not sure about other distros though.

Quote from: satoshi on August 27, 2010, 12:49:43 AM

QuoteThis is because on my system the path is /usr/include/wx-2.9/wx/wx.h Why is it there? Was it included by the OS, or did you have to build it? If you built it, I wonder why it would put itself in a different place.

Quote from: bonsaikitten necrodearia: it is there because that’s the correct location necrodearia: it is not in /usr/local because that’s not the correct location further questions might be resolved by reading FHS http://www.pathname.com/fhs/

Gentoo Linux is designed so that all (99.99%) packages are compiled from source, so yes, I compiled wxGTK using an ebuild from Portage, the Gentoo Linux package management software.

Quote from: BioMike on August 27, 2010, 5:22:35 AM
  1. Remind that you will need to fix the header.

I don’t understand this. Which header?

Quote from: BioMike on August 27, 2010, 5:22:35 AM
  1. /home/bticoin?

I don’t see where I misspelled bitcoin. Which file?

Quote from: BioMike on August 27, 2010, 5:22:35 AM
  1. Strip optimizations from the Makefile and let the user provide them (or strip them properly)

I am uncertain what “optimizations” are.

Quote from: BioMike on August 27, 2010, 5:22:35 AM
  1. Don’t build static code. I have a Makefile that builds dynamic code. If you want I can send it to you. You will need to make changes to it.

I am not familiar with which parts of code are static and could be converted to dynamic. I only prepared an ebuild because it seems nobody else has. I am not skilled enough to perfect the ebuild, however, if anyone else would like to contribute towards making it better, I set up a git repository: http://github.com/mizerydearia/bitcoin_gentoo_ebuild