Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 457830 - media-gfx/freecad-0.13 version bump
Summary: media-gfx/freecad-0.13 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
: 475168 (view as bug list)
Depends on: 498592
Blocks:
  Show dependency tree
 
Reported: 2013-02-16 13:58 UTC by justXi
Modified: 2014-04-24 13:29 UTC (History)
9 users (show)

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


Attachments
Ebuild for freecad-0.13 (freecad-0.13.1830.ebuild,1.88 KB, text/plain)
2013-02-16 13:58 UTC, justXi
Details
ebuild chaged x11-libs/qt-* to dev-qt/qt* (freecad-0.13.1830.ebuild,1.87 KB, text/plain)
2013-03-05 20:19 UTC, uran238
Details
Modified ebuild to include the removeqt3support patch. (freecad-0.13.1830.ebuild,1.87 KB, text/plain)
2013-03-10 14:12 UTC, Thimo Langbehn
Details
qt3support.patch ported to freecad-0.13.1830 as removeqt3support.patch (freecad-0.13.1830-removeqt3support.patch,1.78 KB, patch)
2013-03-10 14:14 UTC, Thimo Langbehn
Details | Diff
freecad.ebuild: Add dependency to libspnav to enable use of space-navigator. (freecad-0.13.1830_spacenavigator.patch,456 bytes, patch)
2013-03-23 14:43 UTC, Thimo Langbehn
Details | Diff
freecad 0.13.1839 (freecad-0.13.1830.ebuild,3.98 KB, text/plain)
2013-04-27 13:15 UTC, Jimmy.Jazz
Details
freecad-0.13.1830.ebuild (freecad-0.13.1830.ebuild,3.97 KB, text/plain)
2014-01-06 14:54 UTC, Fabio Rossi
Details
freecad-0.13.1830-CMakefile.patch (freecad-0.13.1830-CMakefile.patch,1.00 KB, patch)
2014-01-06 14:55 UTC, Fabio Rossi
Details | Diff
freecad-0.13.1830-avoid-include-salome.patch (freecad-0.13.1830-avoid-include-salome.patch,561 bytes, patch)
2014-01-06 14:55 UTC, Fabio Rossi
Details | Diff
freecad-0.13.1830-cmake-2.8.12.patch (freecad-0.13.1830-cmake-2.8.12.patch,10.69 KB, patch)
2014-01-06 14:56 UTC, Fabio Rossi
Details | Diff
freecad-0.12.5284-occ-6.6.patch (freecad-0.12.5284-occ-6.6.patch,2.33 KB, patch)
2014-01-06 14:59 UTC, Fabio Rossi
Details | Diff
freecad-0.13.1830.ebuild (freecad-0.13.1830.ebuild,4.12 KB, text/plain)
2014-01-19 17:28 UTC, Fabio Rossi
Details
freecad-0.13.1830-occ-6.7.patch (freecad-0.13.1830-occ-6.7.patch,2.30 KB, patch)
2014-01-19 17:29 UTC, Fabio Rossi
Details | Diff
freecad-0.13.1830-no-machdist.patch (freecad-0.13.1830-no-machdist.patch,485 bytes, patch)
2014-01-19 17:30 UTC, Fabio Rossi
Details | Diff
freecad-0.13.1830.ebuild (freecad-0.13.1830.ebuild,4.35 KB, text/plain)
2014-01-25 19:59 UTC, Fabio Rossi
Details
freecad-0.13.1830-startpage-links.patch (freecad-0.13.1830-startpage-links.patch,5.42 KB, patch)
2014-01-25 20:01 UTC, Fabio Rossi
Details | Diff
build log (freecad-0.13.1830.build.xz,3.62 KB, application/x-xz)
2014-02-10 16:36 UTC, Helmut Jarausch
Details
cmake error log (freecad-0.13.1830.CMakeError.log,6.39 KB, text/plain)
2014-02-10 16:37 UTC, Helmut Jarausch
Details
cmakeoutput (freecad-0.13.1830.CMakeOutput.log.xz,4.13 KB, application/x-xz)
2014-02-10 16:38 UTC, Helmut Jarausch
Details
freecad-0.13.1830.ebuild.patch (freecad-0.13.1830.ebuild.patch,1.77 KB, patch)
2014-03-04 01:53 UTC, Andrew Savchenko
Details | Diff
freecad-0.13.1830.ebuild (freecad-0.13.1830.ebuild,4.49 KB, text/plain)
2014-03-06 00:13 UTC, Fabio Rossi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description justXi 2013-02-16 13:58:46 UTC
Created attachment 339066 [details]
Ebuild for freecad-0.13

New ebuild for latest stable freecad. It is based on the ebuild for freecad-0.12.
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-02-16 21:34:42 UTC
I would be interested in doing a non-maintainer commit to bring this to the latest version, since there is no maintainer.

Is there a reason why you removed all the patches? Or did you do that just because they didn't apply?

Working patches:

       "${FILESDIR}/${PN}-0.12.5284-gcc46.patch"
       "${FILESDIR}/${PN}-0.12.5284-glu.patch"
       "${FILESDIR}/${PN}-0.12.5284-nodir.patch"
       "${FILESDIR}/${PN}-0.12.5284-qt3support.patch"

Broken patches:

       "${FILESDIR}/${PN}-0.12.5284-removeoldswig.patch"
       "${FILESDIR}/${PN}-0.12.5284-nopivy.patch"
       "${FILESDIR}/${PN}-0.12.5284-boost148.patch"

We need to look which ones of these can be corrected, which one were fixed by upstream and which ones we can drop. We can't just drop them all, that's likely to go against the statuses of previous bugs.
Comment 2 justXi 2013-02-17 09:29:20 UTC
I assumed that some or all problems should be solved with current state of software in portage and then I tried to build without patches first. For me that worked. Due to the fact I could not figure out any errors I spent no time renaming and applying the previous patches. 

But I would test it again while keeping it with the working patches. Would you upload a patch against the ebuild in portage?

Further on I think the new USE flags introduced by me should be renamed to "collada" and "matplot" or something like that.
Comment 3 uran238 2013-03-03 18:48:02 UTC
works fine with opencascade-6.5.4 and a small symlink build hack. 
See bug 438466 for details.
Comment 4 uran238 2013-03-04 09:27:36 UTC
I think this ebuild needs something like an env-update, or it will fail to build if the include folder of opencascade has changed (version update). 
At least I didn't need the symlink hack if I did a reboot between updating opencascade and installing freecad.

What's the right thing to do in this case? I would have assumed emerge would start witch a clean and fresh environment.
Comment 5 uran238 2013-03-05 20:19:07 UTC
Created attachment 341036 [details]
ebuild chaged x11-libs/qt-* to dev-qt/qt*
Comment 6 Thimo Langbehn 2013-03-10 14:12:35 UTC
Created attachment 341534 [details]
Modified ebuild to include the removeqt3support patch.
Comment 7 Thimo Langbehn 2013-03-10 14:14:52 UTC
Created attachment 341536 [details, diff]
qt3support.patch ported to freecad-0.13.1830 as removeqt3support.patch
Comment 8 Thimo Langbehn 2013-03-10 14:16:48 UTC
(In reply to comment #1)
> We need to look which ones of these can be corrected, which one were fixed
> by upstream and which ones we can drop. We can't just drop them all, that's
> likely to go against the statuses of previous bugs.

In short, it seems only the qt3support patch is still relevant. The nodir patch might or might not be required in a special build scenario, but it disables functionality.
The adapted ebuild is provided in attachment 341534 [details] (based on attachment #341036 [details]) and the ported qt3support patch in attachment 341536 [details, diff].

Longer version:

>        "${FILESDIR}/${PN}-0.12.5284-gcc46.patch"
This is fixed in 0.13 (the git history does not show a dedicated changeset).

>        "${FILESDIR}/${PN}-0.12.5284-removeoldswig.patch"
This patch could be adapted, but the underlying issue seems to be fixed in 0.13 by: commit 0e7df97961dbd238094b9223efd217502fe1c747 and 1f690c0c817500159c078f2d91ee15a7ebda3cc9 .

>        "${FILESDIR}/${PN}-0.12.5284-glu.patch"
fixed in 0.13 by commit 11654cdd58c516af93441a5f9665f9cc303a06b7

>        "${FILESDIR}/${PN}-0.12.5284-nodir.patch"
This disables the Mods Assembly and Machining_Distortion. I could only find a fixed issue regarding building of Assembly (FreeCAD-Bug #658), but they apparently build just fine in 0.13. This patch seems unneccessary at the moment.

>        "${FILESDIR}/${PN}-0.12.5284-qt3support.patch"
Removes the Qt3 function qPixmapFromMimeSource from ui templates. This function does not exist in Qt4 anymore, probably causing errors if compiled in an environment without the use flag qt3support. This patch should be applied by default (QT4 environment) and pushed to upstream. It will only break something in pure <=qt3 environments.

>        "${FILESDIR}/${PN}-0.12.5284-nopivy.patch"
Seems fixed in 0.13 by commit 1b8998f77da1f237e310c6beef9ab246f99b3a21 .

>        "${FILESDIR}/${PN}-0.12.5284-boost148.patch"
For FreeCAD-Bug #585, which is closed (in 0.13).
Comment 9 Thimo Langbehn 2013-03-23 14:43:27 UTC
Created attachment 342990 [details, diff]
freecad.ebuild: Add dependency to libspnav to enable use of space-navigator.
Comment 10 Jimmy.Jazz 2013-04-27 13:13:39 UTC
I successfully compiled freecad 0.13 but I was unable to configure its internal
browser.
Beside It returns "'module' object has no attribute 'handle'".
Here is the ebuild I have tested.
Comment 11 Jimmy.Jazz 2013-04-27 13:15:11 UTC
Created attachment 346688 [details]
freecad 0.13.1839
Comment 12 Michael Weber (RETIRED) gentoo-dev 2013-04-27 13:32:34 UTC
Comment on attachment 346688 [details]
freecad 0.13.1839

Problem of "sourcing" the env file is the PATH= line,
I take a look at this after fixing the 0.12.... issues.
Comment 13 Michael Weber (RETIRED) gentoo-dev 2013-04-27 16:45:16 UTC
+*freecad-0.13.1830 (27 Apr 2013)
+*freecad-0.12.5284-r3 (27 Apr 2013)
+
+  27 Apr 2013; Michael Weber <xmw@gentoo.org> +freecad-0.12.5284-r3.ebuild,
+  +files/freecad-0.12.5284-no-3rdParty.patch,
+  +files/freecad-0.12.5284-no-permissive.patch,
+  +files/freecad-0.12.5284-occ-6.5.5.patch, +freecad-0.13.1830.ebuild,
+  +files/freecad-0.13.1830-remove-qt3-support.patch, metadata.xml:
+  Taking main, revbump to fix automagic dep on libspnav[x] (bug 454150), add
+  launcher icon (bug 416327), remove bundled libs (bug 467482), fix install
+  path (bug 464854)
+
Comment 14 Robin Kauffman 2013-06-05 22:04:19 UTC
Freecad doesn't build for me without freecad-0.12.5284-no-3rdParty.patch (applies cleanly).  It looks for src/3rdParty (which has been deleted) and fails to configure.  With the patch applied it compiles and merges.
Comment 15 James Porter 2013-08-15 04:46:10 UTC
About time for .14 bump :)
Comment 16 James Porter 2013-08-15 05:03:30 UTC
.13 fails

I see this:
-- Coin3D doc is not installed

yet I have coin with doc flag on.
Comment 17 Priit Laes (IRC: plaes) 2013-09-10 07:29:38 UTC
Besides missing Coin3D doc issue, I can also see following errors during the configure phase:

[snip]
-- Found X11: /usr/lib64/libX11.so
-- Found OpenGL: /usr/lib64/libGL.so  
-- Found OpenGLU: /usr/lib64/libGLU.so
-- Found Spnav: /usr/lib64/libspnav.so  
-- matplotlib-1.2.1 has been found.
-- Platform is 64-bit, set -D_OCC64
-- DEBUG: -g -DFC_DEBUG
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
bzr: ERROR: Not a branch: "/home/tmp/portage/media-gfx/freecad-0.13.1830/work/freecad-0.13.1830/".
svn: E155007: '/home/tmp/portage/media-gfx/freecad-0.13.1830/work/freecad-0.13.1830' is not a working copy
CMake Error at src/CMakeLists.txt:3 (add_subdirectory):
  add_subdirectory given source "3rdParty" which is not an existing
  directory.
[/snip]
Comment 18 Roland 2013-09-18 07:06:31 UTC
Hello,

same Problem here. And first I get the Error Message

matplotlib not found, Plot module will not available until matplotlib is installed!
-- Platform is 64-bit, set -D_OCC64
-- DEBUG: -g -DFC_DEBUG
fatal: Not a git repository (or any parent up to mount point /var/tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
sh: bzr: command not found

I installed 

dev-vcs/bzr
Comment 19 Roland 2013-09-18 07:13:29 UTC
Then I installed 

dev-python/matplotlib


-- matplotlib-1.1.1 has been found.
-- Platform is 64-bit, set -D_OCC64
-- DEBUG: -g -DFC_DEBUG
fatal: Not a git repository (or any parent up to mount point /var/tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
bzr: ERROR: Not a branch: "/var/tmp/portage/media-gfx/freecad-0.13.1830/work/freecad-0.13.1830/".
svn: E155007: '/var/tmp/portage/media-gfx/freecad-0.13.1830/work/freecad-0.13.1830' is not a working copy
CMake Error at src/CMakeLists.txt:3 (add_subdirectory):
  add_subdirectory given source "3rdParty" which is not an existing
  directory.
Comment 20 Roland 2013-09-18 07:30:25 UTC
Hello,

then I get this Warning:

Make Warning at CMakeLists.txt:220 (find_package):
  By not providing "FindOCE.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OCE", but
  CMake did not find one.

  Could not find a package configuration file provided by "OCE" with any of
  the following names:

    OCEConfig.cmake
    oce-config.cmake

  Add the installation prefix of "OCE" to CMAKE_PREFIX_PATH or set "OCE_DIR"
  to a directory containing one of the above files.  If "OCE" provides a
  separate development package or SDK, be sure it has been installed.

is this for this Error


-- Platform is 64-bit, set -D_OCC64
-- DEBUG: -g -DFC_DEBUG
fatal: Not a git repository (or any parent up to mount point /var/tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
bzr: ERROR: Not a branch: "/var/tmp/portage/media-gfx/freecad-0.13.1830/work/freecad-0.13.1830/".
svn: E155007: '/var/tmp/portage/media-gfx/freecad-0.13.1830/work/freecad-0.13.1830' is not a working copy
CMake Error at src/CMakeLists.txt:3 (add_subdirectory):
  add_subdirectory given source "3rdParty" which is not an existing
  directory.
Comment 22 Fabio Rossi 2014-01-06 14:10:19 UTC
*** Bug 475168 has been marked as a duplicate of this bug. ***
Comment 23 Fabio Rossi 2014-01-06 14:54:24 UTC
Created attachment 367176 [details]
freecad-0.13.1830.ebuild
Comment 24 Fabio Rossi 2014-01-06 14:55:27 UTC
Created attachment 367178 [details, diff]
freecad-0.13.1830-CMakefile.patch
Comment 25 Fabio Rossi 2014-01-06 14:55:41 UTC
Created attachment 367180 [details, diff]
freecad-0.13.1830-avoid-include-salome.patch
Comment 26 Fabio Rossi 2014-01-06 14:56:01 UTC
Created attachment 367182 [details, diff]
freecad-0.13.1830-cmake-2.8.12.patch
Comment 27 Fabio Rossi 2014-01-06 14:59:39 UTC
I started from the ebuild in portage where I merged the src_install() from the previous version and added some patches:
- compilation with OCC 6.6
- compilation against cmake 2.8.12.1
- avoid the installation of salome-smesh include files
- coin docs discovery
- starting patching to install files in regular dirs

I have added more dependencies and in the ebuild there are notes about TODO items to be completed.

Please test it :-)
Comment 28 Fabio Rossi 2014-01-06 14:59:56 UTC
Created attachment 367184 [details, diff]
freecad-0.12.5284-occ-6.6.patch
Comment 29 pier 2014-01-09 21:12:26 UTC
(In reply to Fabio Rossi from comment #28)
> Created attachment 367184 [details, diff] [details, diff]
> freecad-0.12.5284-occ-6.6.patch

Alas I keep getting an emerge failure as detailed in:

http://pier.unirc.eu/cestino/freecad.compile.log

where:

pier@gentoo ~ $ cat freecad.compile.log | grep Error 
make[2]: *** [src/3rdParty/salomesmesh/CMakeFiles/StdMeshers.dir/src/StdMeshers/StdMeshers_RadialPrism_3D.cpp.o] Error 1
make[1]: *** [src/3rdParty/salomesmesh/CMakeFiles/StdMeshers.dir/all] Error 2
make: *** [all] Error 2

###################
pier@gentoo ~ $ emerge --info
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.10.17-gentoo x86_64)
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.2
KiB Mem:     4036108 total,    758772 free
KiB Swap:    1748296 total,   1744404 free
Timestamp of tree: Tue, 07 Jan 2014 11:45:01 +0000
ld ld di GNU (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.mdfnet.se/gentoo http://mirror.mdfnet.se/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="it_IT.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync7.de.gentoo.org/gentoo-portage"
USE="X acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm gif gtk iconv ipv6 jpeg mmx modules mudflap multilib ncurses nls nptl openmp oss pam pcre png readline session sse sse2 ssl tcpd tiff unicode v4l wifi zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="i810 vesa fbdev intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 30 Fabio Rossi 2014-01-10 22:43:24 UTC
(In reply to pier from comment #29)

> Alas I keep getting an emerge failure as detailed in:
> 
> http://pier.unirc.eu/cestino/freecad.compile.log

This bug is only for freecad 0.13.1830, nevertheless your problem is already fixed in bug 474794 where you can find the patch
Comment 31 pier 2014-01-13 12:09:43 UTC
(In reply to Fabio Rossi from comment #30)
> (In reply to pier from comment #29)
> 
> > Alas I keep getting an emerge failure as detailed in:
> > 
> > http://pier.unirc.eu/cestino/freecad.compile.log
> 
> This bug is only for freecad 0.13.1830, nevertheless your problem is already
> fixed in bug 474794 where you can find the patch

Thank you Fabio for the hint! Got freecad-0.12.5284 working now.
Comment 32 Fabio Rossi 2014-01-19 17:28:54 UTC
Created attachment 368174 [details]
freecad-0.13.1830.ebuild

Updated version, here are the changes:

- fixed dependency specification on opencascade to force rebuild on slot change
- added pycollada dep where the ebuild is attached in bug #498592
- removed MachDist module because FEM is disabled
- fixed compilation against OCC 6.7
- removed spurious files installed in src_install()
Comment 33 Fabio Rossi 2014-01-19 17:29:29 UTC
Created attachment 368176 [details, diff]
freecad-0.13.1830-occ-6.7.patch
Comment 34 Fabio Rossi 2014-01-19 17:30:00 UTC
Created attachment 368178 [details, diff]
freecad-0.13.1830-no-machdist.patch
Comment 35 Fabio Rossi 2014-01-25 19:59:59 UTC
Created attachment 368712 [details]
freecad-0.13.1830.ebuild

Updated version, here are the changes:

- fixed start page links (new FreeCAD webpage)
- added runtime dep on QT assistant and removed compression of needed docs
Comment 36 Fabio Rossi 2014-01-25 20:01:05 UTC
Created attachment 368714 [details, diff]
freecad-0.13.1830-startpage-links.patch
Comment 37 Helmut Jarausch 2014-02-10 16:32:53 UTC
(In reply to Fabio Rossi from comment #36)
> Created attachment 368714 [details, diff] [details, diff]
> freecad-0.13.1830-startpage-links.patch

I have applied all of your patches but emerge fails with LOTS of
QT4_CREATE_MOC_COMMAND Macro invoked with incorrect arguments for macro

and

-- Coin3D doc is not installed
--2014-02-10 17:19:53--  http://doc.coin3d.org/Coin/coin.tag
Resolving doc.coin3d.org... 88.87.56.183
Connecting to doc.coin3d.org|88.87.56.183|:80... failed: No route to host.

Please see the attachments,
thanks,
Helmut
Comment 38 Helmut Jarausch 2014-02-10 16:36:32 UTC
Created attachment 370032 [details]
build log
Comment 39 Helmut Jarausch 2014-02-10 16:37:16 UTC
Created attachment 370036 [details]
cmake error log
Comment 40 Helmut Jarausch 2014-02-10 16:38:37 UTC
Created attachment 370038 [details]
cmakeoutput
Comment 41 Fabio Rossi 2014-02-10 20:55:26 UTC
(In reply to Helmut Jarausch from comment #37)
> (In reply to Fabio Rossi from comment #36)
> > Created attachment 368714 [details, diff] [details, diff] [details, diff]
> > freecad-0.13.1830-startpage-links.patch
> 
> I have applied all of your patches but emerge fails with LOTS of
> QT4_CREATE_MOC_COMMAND Macro invoked with incorrect arguments for macro

Your log shows that no patches of this bug report are applied :-( You need to download the ebuild and patches of this bug report putting them in a proper overlay. I'd suggest the reading of this guide http://www.gentoo-wiki.info/HOWTO_Installing_3rd_Party_Ebuilds
Comment 42 Helmut Jarausch 2014-02-12 07:51:03 UTC
(In reply to Fabio Rossi from comment #41)
> (In reply to Helmut Jarausch from comment #37)
> > (In reply to Fabio Rossi from comment #36)
> > > Created attachment 368714 [details, diff] [details, diff] [details, diff] [details, diff]
> > > freecad-0.13.1830-startpage-links.patch
> > 
> > I have applied all of your patches but emerge fails with LOTS of
> > QT4_CREATE_MOC_COMMAND Macro invoked with incorrect arguments for macro
> 
> Your log shows that no patches of this bug report are applied :-( You need
> to download the ebuild and patches of this bug report putting them in a
> proper overlay. I'd suggest the reading of this guide
> http://www.gentoo-wiki.info/HOWTO_Installing_3rd_Party_Ebuilds

Yes, emerge did skip my local overlay because your ebuild depends on
dev-python/pycollada  which is NOT in the Gentoo tree.
Having installed an ebuild for pycollada in my local overlay, 
freecad-0.13 did emerge just fine.

So, please, put dev-python/pycollada into Gentoo's tree.
Thanks,
Helmut
Comment 43 Fabio Rossi 2014-02-12 22:15:10 UTC
> Yes, emerge did skip my local overlay because your ebuild depends on
> dev-python/pycollada  which is NOT in the Gentoo tree.
> Having installed an ebuild for pycollada in my local overlay, 
> freecad-0.13 did emerge just fine.
> 
> So, please, put dev-python/pycollada into Gentoo's tree.
> Thanks,
> Helmut

This bug already depends on another bug for pycollada, I can't do more than this
Comment 44 Andrew Savchenko gentoo-dev 2014-03-04 01:53:50 UTC
Created attachment 371698 [details, diff]
freecad-0.13.1830.ebuild.patch

Hi,

(In reply to Fabio Rossi from comment #35)
> Created attachment 368712 [details]
> freecad-0.13.1830.ebuild

A few more fixes:
- migrate to python-single-r1 eclass as repoman asks to do;
- compile and optimize python modules;
- fix some syntax repoman warnings.
Comment 45 Fabio Rossi 2014-03-06 00:02:28 UTC
(In reply to Andrew Savchenko from comment #44)

> (In reply to Fabio Rossi from comment #35)
> > Created attachment 368712 [details]
> > freecad-0.13.1830.ebuild
> 
> A few more fixes:
> - migrate to python-single-r1 eclass as repoman asks to do;
> - compile and optimize python modules;
> - fix some syntax repoman warnings.

Thanks Andrew, updated the ebuild with your patch plus minor corrections.
Comment 46 Fabio Rossi 2014-03-06 00:13:32 UTC
Created attachment 371826 [details]
freecad-0.13.1830.ebuild
Comment 47 Bob Johnson 2014-03-10 03:16:26 UTC
With the ebuild in comment 46 plus the following patches I was able to get freecad-0.13.1830 to build successfully on my mostly-stable amd64 system:

freecad-0.12.5284-occ-6.6.patch
freecad-0.13.1830-avoid-include-salome.patch
freecad-0.13.1830-cmake-2.8.12.patch
freecad-0.13.1830-CMakefile.patch
freecad-0.13.1830-no-machdist.patch
freecad-0.13.1830-occ-6.7.patch
freecad-0.13.1830-remove-qt3-support.patch
freecad-0.13.1830-startpage-links.patch
startpage.patch


Here's my configuration:
# emerge --info freecad
Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.12.13-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:    32953208 total,  25533892 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of tree: Mon, 10 Mar 2014 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo vmware printer-drivers local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA vmware"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vmware /var/lib/layman/printer-drivers /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apache2 berkdb bzip2 cairo cli clucene colord consolekit cracklib crypt cups curl cxx dbus doc dri examples exif fontconfig fortran gcj gd gdbm gif handbook iconv icu ipv6 jack java jbig jpeg jpeg2k kde kipi kpathsea lcms lzma mbox mmx mng modules multilib ncurses nls nptl nsplugin odbc ogg openexr opengl openmp pam pango pcre pdf plasma png policykit postgres qt3support readline scanner semantic-desktop session source spell sse sse2 sse4_1 ssl ssse3 svg t1lib tcpd threads tiff truetype unicode webp xattr xinerama xml xpm zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev vmmouse wacom joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer wiki-publisher" LINGUAS="en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="fbdev intel radeon vesa vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-gfx/freecad-0.13.1830 was built with the following:
USE="" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6"


Like 0.12, it segfaults whenever I try File->New or attempt to load one of the sample projects in /usr/share/freecad. That may be because I'm using the open-source radeon driver on an HD 6450, or simply because FreeCAD is barely alpha-quality code. In any case, at least it builds. 

FYI.
Comment 48 Bob Johnson 2014-03-10 03:21:19 UTC
Oops, forgot to add 'plus the dev-python/pycollada package' from comment 43.
Comment 49 Fabio Rossi 2014-03-10 20:37:56 UTC
(In reply to Bob Johnson from comment #47)
 
> Like 0.12, it segfaults whenever I try File->New or attempt to load one of
> the sample projects in /usr/share/freecad. That may be because I'm using the
> open-source radeon driver on an HD 6450, or simply because FreeCAD is barely
> alpha-quality code. In any case, at least it builds. 
> 
> FYI.

I don't have any crash as you indicate above so I can't reproduce the problem. I'd suggest to contact upstream
Comment 50 Michael Weber (RETIRED) gentoo-dev 2014-04-24 04:50:10 UTC
I could not find #epatch "${FILESDIR}"/startpage.patch.

@Fabio, please take a look at the -0.13.1830-r1 ebuild and give me a nod if I should re-add the regular unstable keywords.

+*freecad-0.13.1830-r1 (24 Apr 2014)
+
+  24 Apr 2014; Michael Weber <xmw@gentoo.org>
+  +files/freecad-0.13.1830-CMakefile.patch,
+  +files/freecad-0.13.1830-avoid-include-salome.patch,
+  +files/freecad-0.13.1830-cmake-2.8.12.patch,
+  +files/freecad-0.13.1830-no-machdist.patch,
+  +files/freecad-0.13.1830-occ-6.7.patch,
+  +files/freecad-0.13.1830-startpage-links.patch, +freecad-0.13.1830-r1.ebuild:
+  Revbump with ebuild by Fabio Rossi (bug 457830).
+
Comment 51 Fabio Rossi 2014-04-24 10:30:34 UTC
(In reply to Michael Weber from comment #50)
> I could not find #epatch "${FILESDIR}"/startpage.patch.
> 
> @Fabio, please take a look at the -0.13.1830-r1 ebuild and give me a nod if
> I should re-add the regular unstable keywords.

You can remove the startpage.patch which was a test and not meant to be included in the ebuild. I have just rebuilt the package on x86 and amd64 systems and it looks fine.