Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120533 - ebuild request: kicad
Summary: ebuild request: kicad
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Denis Dupeyron (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-27 07:39 UTC by Urriellu
Modified: 2006-05-27 14:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kicad-0.0.20060118.ebuild (kicad-0.0.20060118.ebuild,1.54 KB, text/plain)
2006-02-19 16:23 UTC, Radek Podgorny
Details
libs.linux.patch (libs.linux.patch,1.26 KB, patch)
2006-02-19 16:23 UTC, Radek Podgorny
Details | Diff
makefiles.patch (makefiles.patch,29.20 KB, patch)
2006-02-19 16:23 UTC, Radek Podgorny
Details | Diff
kicad-20060321.ebuild (kicad-20060321.ebuild,2.40 KB, text/plain)
2006-03-25 16:37 UTC, Denis Dupeyron (RETIRED)
Details
kicad-20060321.patch (kicad-20060321.patch,11.18 KB, text/plain)
2006-03-25 16:38 UTC, Denis Dupeyron (RETIRED)
Details
kicad-20060321.ebuild (kicad-20060321.ebuild,2.79 KB, text/plain)
2006-03-27 08:12 UTC, Denis Dupeyron (RETIRED)
Details
kicad-20060321.patch (kicad-20060321.patch,11.75 KB, text/plain)
2006-03-27 08:14 UTC, Denis Dupeyron (RETIRED)
Details
kicad-20060328.ebuild (kicad-20060328.ebuild,2.79 KB, text/plain)
2006-04-01 12:17 UTC, Denis Dupeyron (RETIRED)
Details
kicad-20060328.patch (kicad-20060328.patch,5.40 KB, text/plain)
2006-04-01 12:18 UTC, Denis Dupeyron (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Urriellu 2006-01-27 07:39:25 UTC
Kicad is an open source (GPL) software for the creation of electronic schematic diagrams and printed circuit board artwork. 

Homepage: http://www.lis.inpg.fr/realise_au_lis/kicad/
Comment 1 Radek Podgorny 2006-02-19 16:23:05 UTC
Created attachment 80229 [details]
kicad-0.0.20060118.ebuild

First shot at the ebuild. Compiles fine under amd64. Not tested thoroughly, yet...
Comment 2 Radek Podgorny 2006-02-19 16:23:23 UTC
Created attachment 80230 [details, diff]
libs.linux.patch
Comment 3 Radek Podgorny 2006-02-19 16:23:41 UTC
Created attachment 80231 [details, diff]
makefiles.patch
Comment 4 Radek Podgorny 2006-02-19 16:24:10 UTC
...I forgot to mention, I recommend sci-electronics...
Comment 5 Brennan Sharp 2006-02-25 01:46:26 UTC
Firstly, thanks for the ebuild. I was working toward my first ebuild with kicad,  but had only got as far as sorting out necessary patches and a build script. 

FYI, your ebuild ran successfully on my x86 system, given the necessary extra keyword. Note also that 20010119 kicad sources are available, which used after making the trivial changes to your ebuild.

There is a collection of additional materials from the kicad site: component library, demos, help, modules, template. Have you any intention of writing ebuilds to fetch and install these? If not, I'd be willing to make some/all of these - a learning exercise for me.




(In reply to comment #1)
> Created an attachment (id=80229) [edit]
> kicad-0.0.20060118.ebuild
> 
> First shot at the ebuild. Compiles fine under amd64. Not tested thoroughly,
> yet...
> 

Comment 6 Radek Podgorny 2006-02-25 04:40:16 UTC
(In reply to comment #5)
> Firstly, thanks for the ebuild. I was working toward my first ebuild with
> kicad,  but had only got as far as sorting out necessary patches and a build
> script. 

You're welcome...

> FYI, your ebuild ran successfully on my x86 system, given the necessary extra
> keyword. Note also that 20010119 kicad sources are available, which used after
> making the trivial changes to your ebuild.

I didn't use the latest version because it was in different dir than the others so when new version is released, the link becomes dead. :-(

> There is a collection of additional materials from the kicad site: component
> library, demos, help, modules, template. Have you any intention of writing
> ebuilds to fetch and install these? If not, I'd be willing to make some/all of
> these - a learning exercise for me.
> 

Feel free to continue, my ebuild was meant as a starting point. I don't even use kicad :-)
Comment 7 Brennan Sharp 2006-03-08 01:55:30 UTC
The author of kicad has obliged by making the current-version sources also available in the old_versions collection. The ebuilds can now easily use the current release and I'm having a go at making an updated ebuild based on Radek's original ebuild.

Also, the support material I mentioned might be better handled out of portage as there is no version numbering. 
Comment 8 Denis Dupeyron (RETIRED) gentoo-dev 2006-03-25 16:37:27 UTC
Created attachment 83122 [details]
kicad-20060321.ebuild

Could you guys please try this ebuild ? It's for the latest available version, and it installs all additional material (libraries, modules, templates, demos, etc...) plus Wings for 3D models.
Comment 9 Denis Dupeyron (RETIRED) gentoo-dev 2006-03-25 16:38:49 UTC
Created attachment 83123 [details]
kicad-20060321.patch

Patch that goes with the ebuild above.
Comment 10 Radek Podgorny 2006-03-25 17:14:40 UTC
Can you please make it selectable (using the USE flag) to decide whether you want the docs/demos/whatever installed? It's too much bloat... :-(
Comment 11 Urriellu 2006-03-26 10:03:12 UTC
Denis, just to confirm: it works fine here.
Comment 12 Denis Dupeyron (RETIRED) gentoo-dev 2006-03-27 08:12:49 UTC
Created attachment 83238 [details]
kicad-20060321.ebuild

New ebuild. Changelog :
* Cleaned-up wxGTK setup and added opengl detection.
* Added desktop menu entry.
* Added evince support to already existing xpdf, gpdf, and konqueror support (this will be reported upstream).

Radek : I understand your problem with the total size. However adding a USE flag isn't something that I can't decide alone. So, I talked about this issue with a gentoo dev, and he said in that particular case it wasn't an option.
Comment 13 Denis Dupeyron (RETIRED) gentoo-dev 2006-03-27 08:14:42 UTC
Created attachment 83239 [details]
kicad-20060321.patch

The new patch that goes with the ebuild above.
Comment 14 Denis Dupeyron (RETIRED) gentoo-dev 2006-04-01 12:17:46 UTC
Created attachment 83649 [details]
kicad-20060328.ebuild

Here's an ebuild for the newly released kicad-2006-03-28.
Comment 15 Denis Dupeyron (RETIRED) gentoo-dev 2006-04-01 12:18:35 UTC
Created attachment 83650 [details]
kicad-20060328.patch

Patch for the above ebuild.
Comment 16 Brennan Sharp 2006-04-01 20:32:10 UTC
Paul, FYI your ebuild worked for me too - many thanks.
Can I draw your attention though, to comment 6 from Radek regarding the location of the current kicad sources? Since then, as in Comment 8 from me, the kicad author has obliged by adding a copy of the current sources to old_versions. This ought to prevent older kicad ebuilds from breaking when new sources are released.

Regarding the bloat problem, I agree with Radek that control over the installation of docs, demos, library files etc. should be an option. Instead of a USE flag, do you think that a set of ebuilds would work? For example, kicad-component_doc, kicad-library, kicad-help etc.

The component doc is a collection of technical data sheets for the library components. A PCB designer is quite probably already in possession of the required data sheets prior to design entry in kicad, so component_docs is not essential. I think I see your reason for using the precompiled version in addition to the current sources. I would propose that library updates could be handled using an rsync-like action to avoid the duplication that can be expected with frequent kicad updates.
Comment 17 Denis Dupeyron (RETIRED) gentoo-dev 2006-04-13 13:32:06 UTC
Kicad is now in CVS. So give it a few hours and then you can emerge it.
Comment 18 Thierry Terrier 2006-04-25 10:20:04 UTC
Testing on amd64:
eeschema doesn't link even with wxwidget >= 2.6.3.2
Comment 19 Denis Dupeyron (RETIRED) gentoo-dev 2006-05-09 14:36:34 UTC
(In reply to comment #18)
> Testing on amd64:
> eeschema doesn't link even with wxwidget >= 2.6.3.2

OK. You should have reopened the bug, though, because I found you report only by luck.

Could we please get more details on the linking failure, as well as the output of 'emerge info' on your system ? 

Denis.
Comment 20 Thierry Terrier 2006-05-10 02:31:21 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > Testing on amd64:
> > eeschema doesn't link even with wxwidget >= 2.6.3.2
> 
> OK. You should have reopened the bug, though, because I found you report only
> by luck.
> 
> Could we please get more details on the linking failure, as well as the output
> of 'emerge info' on your system ? 
> 
> Denis.

Hi,
Sorry but if I remember correctly, I wasn't able to change the bug status because I wasn't the 'owner' of this bug.
It's seems to be a problem with wxwidget too old version.
I have tried with wxGTK-2.6.2-r1 and =x11-libs/wxGTK-2.6.3.2 ~amd64.
Please find here after the error messages and the output of emmerge -info.
--Thierry

pinedit.o: In function `WinEDA_PinPropertiesFrame::WinEDA_PinPropertiesFrame()':
pinedit.cpp:(.text+0x9f): undefined reference to `vtable for WinEDA_PinPropertiesFrame'
pinedit.o: In function `WinEDA_PinPropertiesFrame::WinEDA_PinPropertiesFrame()':
pinedit.cpp:(.text+0x20f): undefined reference to `vtable for WinEDA_PinPropertiesFrame'
pinedit.o: In function `WinEDA_PinPropertiesFrame::WinEDA_PinPropertiesFrame(WinEDA_LibeditFrame*, int, wxString const&, wxPoint const&, wxSize const&, long)':
pinedit.cpp:(.text+0x2b2b): undefined reference to `vtable for WinEDA_PinPropertiesFrame'
pinedit.o: In function `WinEDA_PinPropertiesFrame::WinEDA_PinPropertiesFrame(WinEDA_LibeditFrame*, int, wxString const&, wxPoint const&, wxSize const&, long)':
pinedit.cpp:(.text+0x35db): undefined reference to `vtable for WinEDA_PinPropertiesFrame'
symbtext.o: In function `WinEDA_bodytext_PropertiesFrame::WinEDA_bodytext_PropertiesFrame()':
symbtext.cpp:(.text+0x9f): undefined reference to `vtable for WinEDA_bodytext_PropertiesFrame'
symbtext.o: In function `WinEDA_bodytext_PropertiesFrame::WinEDA_bodytext_PropertiesFrame()':
symbtext.cpp:(.text+0x20f): undefined reference to `vtable for WinEDA_bodytext_PropertiesFrame'
symbtext.o: In function `WinEDA_bodytext_PropertiesFrame::WinEDA_bodytext_PropertiesFrame(WinEDA_LibeditFrame*, int, wxString const&, wxPoint const&, wxSize const&, long)':
symbtext.cpp:(.text+0x1494): undefined reference to `vtable for WinEDA_bodytext_PropertiesFrame'
symbtext.o: In function `WinEDA_bodytext_PropertiesFrame::WinEDA_bodytext_PropertiesFrame(WinEDA_LibeditFrame*, int, wxString const&, wxPoint const&, wxSize const&, long)':
symbtext.cpp:(.text+0x1984): undefined reference to `vtable for WinEDA_bodytext_PropertiesFrame'
collect2: ld returned 1 exit status
make[1]: *** [eeschema] Error 1


Gentoo Base System version 1.6.14
Portage 2.0.54 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r7-amd64 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7-amd64 x86_64 AMD Athlon(tm) 64 Processor 3400+
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="fr en"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa arts audiofile avi berkdb bitmap-fonts busybox bzip2 cdr cli crypt cups curl dhcp dri dvd eds emboss encode expat extensions fam flac foomaticdb fortran ftp gcc gdb gif gimp gpm gstreamer gtk gtk2 iconv idn ieee1394 imlib iptables isdnlog java javascript jpeg kde lcms lm_sensors logrotate lzw lzw-tiff mad md5sum mng mozilla mp3 mpeg ncurses nls nptl nsplugin ogg opengl pam pcre pdflib perl png pppd python qt quicktime readline reflection scanner sdl session spell spl ssl syslog tcpd tiff truetype truetype-fonts type1-fonts udev urandom usb video_cards_nvidia vorbis vxwindows xft xine xml2 xmms xorg xpm xprint xv zlib linguas_fr linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
Comment 21 Denis Dupeyron (RETIRED) gentoo-dev 2006-05-14 11:29:35 UTC
> Sorry but if I remember correctly, I wasn't able to change the bug status
> because I wasn't the 'owner' of this bug.

Actually, opening a new one was probably the best choice.


> It's seems to be a problem with wxwidget too old version.
> I have tried with wxGTK-2.6.2-r1 and =x11-libs/wxGTK-2.6.3.2 ~amd64.

I don't think so. I may be wrong, but I'm convinced that's a real bug from Kicad itself. The problem is I don't have access to an amd64 machine as often as I'd like. When I tried this ebuild on one, it worked without a hitch so I marked it ~amd64.

So here's the deal. You contact me directly by email, and we'll sort this out together. Something tells me you might prefer to use French, so feel free to do so.

Denis.
Comment 22 Denis Dupeyron (RETIRED) gentoo-dev 2006-05-27 14:22:20 UTC
Case closed.