xgsch2pcb won't build with new Automake
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
Fix Committed
|
Critical
|
Unassigned |
Bug Description
With automake version 1.10, xgsch2pcb compiled without error. After updating to Ubuntu Gnome 14.04.2 LTS (Trusty), the compile fails when autogen.sh calls automake. Here are the errors:
Makefile.am:25: error: 'pkgdir' is not a legitimate directory for 'PYTHON'
Makefile.am:33: error: 'pkgdir' is not a legitimate directory for 'PYTHON'
I struggled for several days trying to fix the 2 offending lines in Makefile.AM with no success:
25: pkglib_PYTHON = lib/xgsch2pcb/
33: nodist_
I did however find a workaround which arose out of a tangential comment about automake versions that popped up in a Google search.
Using synaptic, uninstall "automake" (caution - this also uninstalls - and breaks - gnome-common) and install automake1.10 in it's place. Then (of course, while in the xgsch2pcb source folder):
./autogen.sh ---Succeeds now
./configure
make
make install
Finally, repair the damage done by uninstalling version 1.14 of automake: In synaptic, install automake. This will also ask to install gnome-common. Uncheck the gnome-common install. and then apply. If you try to install both at once, the install will fail since gnome-common is broken. You MUST install automake first. Once automake is installed then reinstall gnome-common.
Now. This is an unfortunate result of someone else changing the rules for automake. Nevertheless, it needs to fixed ASAP.
In point of fact, the devs who wrote the .am file need to deal with this. Either there needs to be 2 files - one for the newer automake and one for the older one, or Makefile.am needs to test for which version of automake is being used. and adjust accordingly.
I mark this bug as confirmed, as it is mentioned more than once, please see www.delorie. com/archives/ browse. cgi?p=geda- user/2015/ 08/06/20: 33:08
http://
and add the archive with solution from there.
Cheers,
Vladimir