thomasvs / morituri

For those about to RIP - a Unix CD ripper preferring accuracy over speed
GNU General Public License v3.0
301 stars 42 forks source link

building has issues #147

Open hwroitzsch opened 8 years ago

hwroitzsch commented 8 years ago

Today I tried building morituri again and this is what happened:

+ aclocal -I m4
+ autoconf
+ automake -a
Makefile.am:45: warning: '%'-style pattern rules are a GNU make extension
m4/pychecker.mk:26: warning: shell basename `pwd`: non-POSIX variable name
m4/pychecker.mk:26: (probably a GNU make extension)
Makefile.am:48:   'm4/pychecker.mk' included from here
m4/pychecker.mk:27: warning: if $(subst _build,,$(thisdir: non-POSIX variable name
m4/pychecker.mk:27: (probably a GNU make extension)
Makefile.am:48:   'm4/pychecker.mk' included from here
m4/pychecker.mk:27: warning: shell pwd: non-POSIX variable name
m4/pychecker.mk:27: (probably a GNU make extension)
Makefile.am:48:   'm4/pychecker.mk' included from here
m4/pychecker.mk:29: warning: filter-out $(PYCHECKER_BLACKLIST: non-POSIX variable name
m4/pychecker.mk:29: (probably a GNU make extension)
Makefile.am:48:   'm4/pychecker.mk' included from here
m4/pychecker.mk:29: warning: wildcard $(PYCHECKER_WHITELIST: non-POSIX variable name
m4/pychecker.mk:29: (probably a GNU make extension)
Makefile.am:48:   'm4/pychecker.mk' included from here
configure.ac:58: error: required file 'morituri/rip/Makefile.in' not found
configure.ac:58: error: required file 'morituri/common/Makefile.in' not found
configure.ac:58: error: required file 'morituri/configure/Makefile.in' not found
configure.ac:58: error: required file 'morituri/configure/uninstalled.py.in' not found
configure.ac:58: error: required file 'morituri/configure/installed.py.in' not found
configure.ac:58: error: required file 'morituri/extern/Makefile.in' not found
configure.ac:58: error: required file 'morituri/image/Makefile.in' not found
configure.ac:58: error: required file 'morituri/program/Makefile.in' not found
configure.ac:58: error: required file 'morituri/result/Makefile.in' not found
configure.ac:58: error: required file 'morituri/test/Makefile.in' not found
morituri/Makefile.am:45: warning: '%'-style pattern rules are a GNU make extension
m4/pychecker.mk:26: warning: shell basename `pwd`: non-POSIX variable name
m4/pychecker.mk:26: (probably a GNU make extension)
morituri/Makefile.am:48:   'm4/pychecker.mk' included from here
m4/pychecker.mk:27: warning: if $(subst _build,,$(thisdir: non-POSIX variable name
m4/pychecker.mk:27: (probably a GNU make extension)
morituri/Makefile.am:48:   'm4/pychecker.mk' included from here
m4/pychecker.mk:27: warning: shell pwd: non-POSIX variable name
m4/pychecker.mk:27: (probably a GNU make extension)
morituri/Makefile.am:48:   'm4/pychecker.mk' included from here
m4/pychecker.mk:29: warning: filter-out $(PYCHECKER_BLACKLIST: non-POSIX variable name
m4/pychecker.mk:29: (probably a GNU make extension)
morituri/Makefile.am:48:   'm4/pychecker.mk' included from here
m4/pychecker.mk:29: warning: wildcard $(PYCHECKER_WHITELIST: non-POSIX variable name
m4/pychecker.mk:29: (probably a GNU make extension)
morituri/Makefile.am:48:   'm4/pychecker.mk' included from here
+ exit 1
xiaolong@xiaolong-VPCF13J0E:~/applications/morituri-master$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking nano version... 1
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a Python interpreter with version >= 2.3... python
checking for python... /home/xiaolong/development/anaconda3/bin/python
checking for python version... 3.4
checking for python platform... linux
checking for python script directory... ${prefix}/lib/python3.4/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.4/site-packages
  File "<string>", line 1
    import sys ; print sys.version[:3]
                         ^
SyntaxError: invalid syntax
configure: Installing python code in /usr/local/lib/python/site-packages
configure: Setting plugins directory to /usr/local/lib/morituri/plugins
  File "<string>", line 1
    from morituri.configure import configure; print configure.revision
                                                            ^
SyntaxError: invalid syntax
configure: Setting revision to 
checking for epydoc... no
checking for pychecker... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating bin/rip
config.status: creating etc/bash_completion.d/bash-compgen
config.status: creating Makefile
config.status: creating bin/Makefile
config.status: creating etc/Makefile
config.status: creating etc/bash_completion.d/Makefile
config.status: creating m4/Makefile
config.status: error: cannot find input file: `morituri/Makefile.in'

There seem to be several issues. This is how I tried:

  1. download the zip from master branch and extract it
  2. cd into the extracted folder (morituri-master)
  3. git clone git://github.com/thomasvs/morituri.git
  4. cd morituri
  5. git submodule init
  6. git submodule update
  7. cd .. (! This step is not in the guide, but in the morituri folder there was no autogen.sh, so I think I have to go up again.)
  8. ./autogen.sh

EDIT: Could it be that you coded some of it in old python 2 style and some of it in new style? I have python 2.7 as well as 3.4 and 3.5 on my system, so it should have plenty to choose from.

hwroitzsch commented 8 years ago

There seems to be something wrong with the naming of files and directories. There is a file named configure but also a directory named the same. They're in separate folders, but both of them are required to be in the same folder, according to this error:

xiaolong@xiaolong-VPCF13J0E:~/applications/morituri-master/morituri$ ../autogen.sh 
+ aclocal -I m4
+ autoconf
autom4te: cannot open >configure: Is a directory
+ exit 1
xiaolong@xiaolong-VPCF13J0E:~/applications/morituri-master/morituri$ ../autogen.sh 
+ aclocal -I m4
+ autoconf
+ automake -a
configure.ac:58: error: required file 'morituri/Makefile.in' not found
configure.ac:58: error: required file 'morituri/rip/Makefile.in' not found
configure.ac:58: error: required file 'morituri/common/Makefile.in' not found
configure.ac:58: error: required file 'morituri/configure/Makefile.in' not found
configure.ac:58: error: required file 'morituri/configure/uninstalled.py.in' not found
configure.ac:58: error: required file 'morituri/configure/installed.py.in' not found
configure.ac:58: error: required file 'morituri/extern/Makefile.in' not found
configure.ac:58: error: required file 'morituri/image/Makefile.in' not found
configure.ac:58: error: required file 'morituri/program/Makefile.in' not found
configure.ac:58: error: required file 'morituri/result/Makefile.in' not found
configure.ac:58: error: required file 'morituri/test/Makefile.in' not found
Makefile.am:8: error: required directory ./configure does not exist
+ exit 1

(In between the calls of autogen, I moved them and renamed them, as two times the same name is not allowed in the same folder.)

EDIT: This does not happen, when autogen.sh is called from one directory up, but then the other error of the OP appears.