Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499040 - sci-electronics/kicad should not (unconditionally?) depend on x11-libs/wxGTK[gnome]
Summary: sci-electronics/kicad should not (unconditionally?) depend on x11-libs/wxGTK[...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zoltan Puskas
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-01-23 13:43 UTC by Xavier Miller (RETIRED)
Modified: 2015-11-01 09:52 UTC (History)
0 users

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


Attachments
patch to remove bad wx test in common.h (kicad-common-h-wx-remove.patch,461 bytes, patch)
2014-01-23 13:44 UTC, Xavier Miller (RETIRED)
Details | Diff
patch for kicad-20130518.ebuild (kicad-20130518.ebuild.patch,685 bytes, patch)
2014-01-23 13:45 UTC, Xavier Miller (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2014-01-23 13:43:31 UTC
sci-electronics/kicad fails if wxGTK is not compiled with the USE="gnome" flag.

This is only because a buggy test in include/common.h:

#if defined( __WXGTK__ )
#   if !wxUSE_LIBGNOMEPRINT && !wxUSE_GTKPRINT && !SWIG
#       error "You must use '--with-gnomeprint' or '--with-gtkprint' in your wx library configuration."
#   endif
#endif 

AFAIK, there is no wxUSE_GTKPRINT int wxGTK and since wxGTK is compiled with --enable-gtkprint, that test is not useful on Gentoo.

So, here is a patch to remove that test and an other patch to remove the dependancy on wxGTK[gnome]

It works on my ~amd64 config.

Reproducible: Always
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2014-01-23 13:44:00 UTC
Created attachment 368548 [details, diff]
patch to remove bad wx test in common.h
Comment 2 Xavier Miller (RETIRED) gentoo-dev 2014-01-23 13:45:14 UTC
Created attachment 368550 [details, diff]
patch for kicad-20130518.ebuild
Comment 3 genbug 2015-04-27 14:21:23 UTC
(In reply to Xavier Miller from comment #2)
> Created attachment 368550 [details, diff] [details, diff]
> patch for kicad-20130518.ebuild

thanks Xavier. I've just been chasing around all morning trying to figure out why this damn +gnome option was in the ebuild. I've just spent about 2h rebuilding wxGTK and kicad, now I find out it isn't even needed !

It looks like I'll have to move this out to a local overlay directory and  use your patches.

Then it really needs to get updated. 2013 is horribly old for Gentoo. 

There's also an archive of compoent libraries that needs pulling in too:
https://www.archlinux.org/packages/community/any/kicad-library-bzr/

That should probably be on USE flag for kicad ebuild.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2015-11-01 09:52:19 UTC
Author: Zoltan Puskas <zoltan@sinustrom.info>
Date:   Tue Oct 27 02:41:27 2015 +0000

    sci-electronics/kicad: bump to KiCad-4.0.0-rc1
    
    New use flags: examples, github, i18n, minimal, python, webkit.
    More languages for i18n. Package source now downloads from project
    website. Update dependencies and address wxwidgets upgrade issue.
    USE flag 'debug' made functional in the bumped ebuild. Remove
    outdated kicad-20130518.ebuild
    
    Gentoo-Bug: #560768
    Gentoo-Bug: #499040
    Gentoo-Bug: #560766