Merge lp:~ted/snapcraft/autoreconf into lp:~snappy-dev/snapcraft/core

Proposed by Ted Gould on 2015-10-19
Status: Merged
Approved by: Ted Gould on 2015-10-19
Approved revision: 249
Merged at revision: 245
Proposed branch: lp:~ted/snapcraft/autoreconf
Merge into: lp:~snappy-dev/snapcraft/core
Diff against target: 35 lines (+9/-2)
2 files modified
snapcraft/plugins/autotools.py (+8/-2)
snapcraft/yaml.py (+1/-0)
To merge this branch: bzr merge lp:~ted/snapcraft/autoreconf
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve on 2015-10-19
Ted Gould Pending
Review via email: mp+274893@code.launchpad.net

This proposal supersedes a proposal from 2015-10-19.

Commit Message

Fixes needed for some autotools builds

Description of the Change

When working on the Ginac example, the build didn't do well without more fixes.

To post a comment you must log in.
Sergio Schvezov (sergiusens) wrote :

Looks good, can you create bug, add it to milestone 0.4 and link to it?

review: Approve
Snappy Tarmac (snappydevtarmac) wrote :

The attempt to merge lp:~ted/snapcraft/autoreconf into lp:snapcraft failed. Below is the output from the failed tests.

snapcraft/plugins/autotools.py:50:80: E501 line too long (93 > 79 characters)

lp:~ted/snapcraft/autoreconf updated on 2015-10-19
249. By Ted Gould on 2015-10-19

PEP8 Fixes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'snapcraft/plugins/autotools.py'
2--- snapcraft/plugins/autotools.py 2015-10-09 17:43:20 +0000
3+++ snapcraft/plugins/autotools.py 2015-10-19 16:01:14 +0000
4@@ -41,11 +41,17 @@
5 'autoconf',
6 'automake',
7 'autopoint',
8+ 'libtool',
9 ])
10
11 def build(self):
12 if not os.path.exists(os.path.join(self.builddir, "configure")):
13- if not self.run(['env', 'NOCONFIGURE=1', './autogen.sh']):
14- return False
15+ if os.path.exists(os.path.join(self.builddir, "autogen.sh")):
16+ if not self.run(['env', 'NOCONFIGURE=1', './autogen.sh'],
17+ cwd=self.builddir):
18+ return False
19+ else:
20+ if not self.run(['autoreconf', '-i'], cwd=self.builddir):
21+ return False
22 return self.run(['./configure', '--prefix='] +
23 self.options.configflags) and super().build()
24
25=== modified file 'snapcraft/yaml.py'
26--- snapcraft/yaml.py 2015-10-16 20:03:36 +0000
27+++ snapcraft/yaml.py 2015-10-19 16:01:14 +0000
28@@ -243,6 +243,7 @@
29 '{0}/usr/local/share/pkgconfig',
30 '$PKG_CONFIG_PATH'
31 ]).format(root, snapcraft.common.get_arch_triplet()))
32+ env.append('PERL5LIB={0}/usr/share/perl5/'.format(root))
33 return env
34
35 def build_env_for_part(self, part):

Subscribers

People subscribed via source and target branches

to all changes: