svn-all-fast-export / svn2git

:octopus: A fast-import based converter for an svn repo to git repos
GNU General Public License v3.0
262 stars 100 forks source link

Dockerfile fails to build #134

Closed s3ts closed 3 years ago

s3ts commented 3 years ago

Tried latest, fails to build.

git checkout d8084f926312eddf3309d5f36e22f32eaa5f15c8 <-- this seems to work.

taehkim$ docker build -t svn2git . [+] Building 93.2s (8/9)
=> [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 367B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/debian:8.11 1.6s => [internal] load build context 0.0s => => transferring context: 663.04kB 0.0s => [1/5] FROM docker.io/library/debian:8.11@sha256:32ad5050caffb2c7e969dac873bce2c370015c2256ff984b70c1c08b3a2816a0 6.2s => => resolve docker.io/library/debian:8.11@sha256:32ad5050caffb2c7e969dac873bce2c370015c2256ff984b70c1c08b3a2816a0 0.0s => => sha256:32ad5050caffb2c7e969dac873bce2c370015c2256ff984b70c1c08b3a2816a0 982B / 982B 0.0s => => sha256:23f6c1ca631220b4a17c659e70e4c20092965590b406b1fb02780475680622f4 529B / 529B 0.0s => => sha256:3aaeab7a47777b5ca21fc6de40a6f9e7ee7ebb7302e7a025795eb9e73200c404 1.46kB / 1.46kB 0.0s => => sha256:b82b9923b08dfd4c2a83d1669b67a3a0c12f2d17fc989315c05f201eabc33b52 54.39MB / 54.39MB 3.7s => => extracting sha256:b82b9923b08dfd4c2a83d1669b67a3a0c12f2d17fc989315c05f201eabc33b52 2.3s => [2/5] RUN apt update && apt install -y make g++ libapr1-dev libsvn-dev libqt4-dev git subversion && rm -rf /var/lib/apt/lists/* && mkdir /usr/local/svn2git 83.2s => [3/5] ADD . /usr/local/svn2git 0.0s => ERROR [4/5] RUN cd /usr/local/svn2git && qmake && make 2.1s


[4/5] RUN cd /usr/local/svn2git && qmake && make:

7 0.239 cd src/ && /usr/lib/x86_64-linux-gnu/qt4/bin/qmake /usr/local/svn2git/src/src.pro -o Makefile

7 0.243 /usr/local/svn2git/src/src.pro:1: defined(function, type): unexpected type [var].

7 0.243 /usr/local/svn2git/src/src.pro:4: defined(function, type): unexpected type [var].

7 0.243 /usr/local/svn2git/src/src.pro:9: defined(function, type): unexpected type [var].

7 0.257 cd src/ && make -f Makefile

7 0.265 make[1]: Entering directory '/usr/local/svn2git/src'

7 0.265 g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DVER="\"71d254eeef991901595fefa3fb0d7074660ae17e\"" -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I../../../share/qt4/mkspecs/linux-g++-64 -I. -I../../../include/qt4/QtCore -I../../../include/qt4 -I. -I../../../include/subversion-1 -I/usr/local/include/subversion-1 -I../../../include/apr-1.0 -I/usr/include/apr-1 -I/usr/local/include/apr-1 -I. -o ruleparser.o ruleparser.cpp

7 1.678 g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DVER="\"71d254eeef991901595fefa3fb0d7074660ae17e\"" -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I../../../share/qt4/mkspecs/linux-g++-64 -I. -I../../../include/qt4/QtCore -I../../../include/qt4 -I. -I../../../include/subversion-1 -I/usr/local/include/subversion-1 -I../../../include/apr-1.0 -I/usr/include/apr-1 -I/usr/local/include/apr-1 -I. -o repository.o repository.cpp

7 2.002 repository.cpp: In constructor 'LoggingQProcess::LoggingQProcess(QString)':

7 2.002 repository.cpp:48:20: error: 'errorOccurred' is not a member of 'QProcess'

7 2.002 connect(this, &QProcess::errorOccurred, this,

7 2.002 ^

7 2.002 repository.cpp:51:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11

7 2.002 });

7 2.002 ^

7 2.122 make[1]: *** [repository.o] Error 1

7 2.122 Makefile:221: recipe for target 'repository.o' failed

7 2.122 make[1]: Leaving directory '/usr/local/svn2git/src'

7 2.122 make: *** [sub-src-make_default] Error 2

7 2.122 Makefile:39: recipe for target 'sub-src-make_default' failed


executor failed running [/bin/sh -c cd /usr/local/svn2git && qmake && make]: exit code: 2

Marty commented 3 years ago

I have the same error. Any suggestions?

Edit: Didn't read carefully enough. git checkout d8084f9 as suggested builds successfully.

tnyblom commented 3 years ago

Try this branch: tnyblom-debian-11-docker Probably just a too old debian image. Will try and test later after work.

Marty commented 3 years ago

Try this branch: tnyblom-debian-11-docker

@tnyblom Unfortunately this did not work, it fails with this message: Unable to locate package libqt4-dev

tnyblom commented 3 years ago

Should be fixed now