I get an obscure failures on running acprep from HEAD:
$ ./acprep
acprep: INFO: Invoking primary phase: config
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
Submodule 'lib/utfcpp' (git://
github.com/jwiegley/utfcpp.git) registered for path 'lib/utfcpp'
Cloning into 'lib/utfcpp'...
remote: Counting objects: 37, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 37 (delta 10), reused 36 (delta 9)
Receiving objects: 100% (37/37), 21.40 KiB, done.
Resolving deltas: 100% (10/10), done.
Submodule path 'lib/utfcpp': checked out '2233ec933f5661c7050b94d3b14f5f9f51ae3d55'
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Linux
acprep: INFO: Setting up build flavor => debug
acprep: ERROR: Caught exception
Traceback (most recent call last):
File "./acprep", line 205, in run
exit_code = self.main(*main_args)
File "./acprep", line 342, in main
PrepareBuild.__dict__['phase_' + cmd](self, *args)
File "./acprep", line 888, in phase_config
self.phase_configure(*args)
File "./acprep", line 856, in phase_configure
environ, conf_args = self.configure_environment()
File "./acprep", line 814, in configure_environment
if self.build_directory() == self.source_dir:
File "./acprep", line 416, in build_directory
self.options.build_dir = join(self.products_directory(),
File "./acprep", line 402, in products_directory
if not self.options.products_dir:
AttributeError: Values instance has no attribute 'products_dir'
$ ./acprep --debug --verbose --loglevel=DEBUG
acprep: INFO: Invoking primary phase: config
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
acprep: DEBUG: Executing command: git submodule init
Submodule 'lib/utfcpp' () registered for path 'lib/utfcpp'
acprep: DEBUG: Executing command: git submodule update
acprep: INFO: Executing phase: configure
acprep: DEBUG: Executing command: uname -s
acprep: INFO: System type is => Linux
acprep: INFO: Setting up build flavor => debug
Traceback (most recent call last):
File "./acprep", line 1094, in <module>
PrepareBuild().run()
File "./acprep", line 205, in run
exit_code = self.main(*main_args)
File "./acprep", line 342, in main
PrepareBuild.__dict__['phase_' + cmd](self, *args)
File "./acprep", line 888, in phase_config
self.phase_configure(*args)
File "./acprep", line 856, in phase_configure
environ, conf_args = self.configure_environment()
File "./acprep", line 814, in configure_environment
if self.build_directory() == self.source_dir:
File "./acprep", line 416, in build_directory
self.options.build_dir = join(self.products_directory(),
File "./acprep", line 402, in products_directory
if not self.options.products_dir:
AttributeError: Values instance has no attribute 'products_dir'
$ git describe
cpp-rewrite-2006-3108-g571d711
$ uname -m; lsb_release -a
x86_64
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (wheezy)
Release: testing
Codename: wheezy
Adding --products=/nonexistent to the command line did not appear to
have any effect. The suggested commands in README-1ST (./acprep update,
mkdir build, ./acprep opt/debug make) also did not appear to help.
./acprep dependencies passes without error. No config.log is generated
(unsurprising, as it has yet to get as far as generating a
configure.ac
or whatever).
Glancing at the acprep source, I don't see why an in-house thing is
needed instead of simply using autoreconf (
configure.ac) and a README
that says "on <platform> the build dependencies are <package list>".
UPDATE: hmm, it looks like when I did a clone, it put me on the "next"
branch by default. If I switch to "master", acprep gets further,
complaining about missing boost_unit_test_framework. I guess this is a
recent build dep because it is not mentioned in Debian's
3.0.0~20120421+7cc550f-1 Build-Depends. Looks like it's called
libboost-test-dev (not -UNIT-test-) on Debian. It's built now, yay!
PS: I get a different issue trying it in the latest Debian package,
though acprep is not needed there.
$ apt-get source ledger/experimental
Reading package lists... Done
Building dependency tree
Reading state information... Done
Need to get 1,601 kB of source archives.
Get:1
http://mirror.internode.on.net/pub/debian/ experimental/main ledger 3.0.0~20120421+7cc550f-1 (dsc) [1,390 B]
Get:2
http://mirror.internode.on.net/pub/debian/ experimental/main ledger 3.0.0~20120421+7cc550f-1 (tar) [1,594 kB]
Get:3
http://mirror.internode.on.net/pub/debian/ experimental/main ledger 3.0.0~20120421+7cc550f-1 (diff) [5,344 B]
Fetched 1,601 kB in 0s (5,474 kB/s)
dpkg-source: info: extracting ledger in ledger-3.0.0~20120421+7cc550f
dpkg-source: info: unpacking ledger_3.0.0~20120421+7cc550f.orig.tar.gz
dpkg-source: info: unpacking ledger_3.0.0~20120421+7cc550f-1.debian.tar.gz
$ cd ledger*/
$ ./acprep
acprep: INFO: Invoking primary phase: config
acprep: INFO: Executing phase: config
acprep: INFO: Executing phase: submodule
acprep: INFO: Executing phase: autoconf
acprep: INFO: Executing phase: configure
acprep: INFO: System type is => Linux
acprep: INFO: Looking for Boost in /opt/local/lib64...
acprep: INFO: Looking for Boost in /usr/local/lib64...
acprep: INFO: Looking for Boost in /sw/lib64...
acprep: INFO: Looking for Boost in /usr/lib64...
acprep: INFO: Looking for Boost in /opt/local/lib...
acprep: INFO: Looking for Boost in /usr/local/lib...
acprep: INFO: Looking for Boost in /sw/lib...
acprep: INFO: Looking for Boost in /usr/lib...
acprep: INFO: Found a Boost library: /usr/lib/libboost_regex.so.1.49.0
acprep: INFO: Found a Boost suffix =>
acprep: INFO: Found a Boost file suffix => .so
acprep: INFO: Boost was found here:
acprep: INFO: Boost home path => /usr
acprep: INFO: Boost include path => /usr/include
acprep: INFO: Boost library path => /usr/lib
acprep: INFO: Boost suffix =>
acprep: INFO: Boost file suffix => .so
acprep: INFO: Noticing include directory => /usr/local/include
acprep: INFO: Noticing include directory => /usr/include/python2.7
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Logged from file acprep, line 615