xgsch2pcb won't build with new Automake

Bug #1436941 reported by Stephen Besch
6
This bug affects 1 person
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/pcbmanager.py \
33: nodist_pkglib_PYTHON = config.py

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.

Tags: xgsch2pcb
Revision history for this message
Vladimir Zhbanov (vzhbanov) wrote :

I mark this bug as confirmed, as it is mentioned more than once, please see
  http://www.delorie.com/archives/browse.cgi?p=geda-user/2015/08/06/20:33:08
and add the archive with solution from there.

Cheers,
  Vladimir

Changed in geda:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Vladimir Zhbanov (vzhbanov) wrote :

OK, I've committed the fix from the tarball, because nobody else cares.

Changed in geda:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.