Fossil SCM
(cherry-pick): Fix [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847556#10|Debian bug 847556]: Cannot clone/sync over HTTPS
Commit
7be745f306cb63d2408620c9fb2642431e7cb160f69cfe003e75bdd76f61914c
Parent
83e3445f672b02c…
3 files changed
+1
-1
+1
-1
+5
-6
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | |
| 6 | 6 | ### Now install some additional parts we will need for the build |
| 7 | 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | 8 | |
| 9 | 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | -ENV FOSSIL_INSTALL_VERSION release | |
| 10 | +ENV FOSSIL_INSTALL_VERSION branch-2.1 | |
| 11 | 11 | |
| 12 | 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 | 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION release |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION branch-2.1 |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
+1
-1
| --- Dockerfile | ||
| +++ Dockerfile | ||
| @@ -5,11 +5,11 @@ | ||
| 5 | 5 | |
| 6 | 6 | ### Now install some additional parts we will need for the build |
| 7 | 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | 8 | |
| 9 | 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | -ENV FOSSIL_INSTALL_VERSION release | |
| 10 | +ENV FOSSIL_INSTALL_VERSION branch-2.1 | |
| 11 | 11 | |
| 12 | 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 | 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION release |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
| --- Dockerfile | |
| +++ Dockerfile | |
| @@ -5,11 +5,11 @@ | |
| 5 | |
| 6 | ### Now install some additional parts we will need for the build |
| 7 | RUN dnf update -y && dnf install -y gcc make zlib-devel openssl-devel tar && dnf clean all && groupadd -r fossil -g 433 && useradd -u 431 -r -g fossil -d /opt/fossil -s /sbin/nologin -c "Fossil user" fossil |
| 8 | |
| 9 | ### If you want to build "trunk", change the next line accordingly. |
| 10 | ENV FOSSIL_INSTALL_VERSION branch-2.1 |
| 11 | |
| 12 | RUN curl "http://core.tcl.tk/tcl/tarball/tcl-src.tar.gz?name=tcl-src&uuid=release" | tar zx |
| 13 | RUN cd tcl-src/unix && ./configure --prefix=/usr --disable-load && make && make install |
| 14 | RUN curl "http://www.fossil-scm.org/index.html/tarball/fossil-src.tar.gz?name=fossil-src&uuid=${FOSSIL_INSTALL_VERSION}" | tar zx |
| 15 | RUN cd fossil-src && ./configure --disable-fusefs --json --with-th1-docs --with-th1-hooks --with-tcl --with-tcl-stubs --with-tcl-private-stubs |
| 16 |
+5
-6
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -252,14 +252,12 @@ | ||
| 252 | 252 | hasSavedCertificate = 1; |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | 255 | if( pUrlData->useProxy ){ |
| 256 | 256 | int rc; |
| 257 | - BIO *sBio; | |
| 258 | - char *connStr; | |
| 259 | - connStr = mprintf("%s:%d", g.url.name, pUrlData->port); | |
| 260 | - sBio = BIO_new_connect(connStr); | |
| 257 | + char *connStr = mprintf("%s:%d", g.url.name, pUrlData->port); | |
| 258 | + BIO *sBio = BIO_new_connect(connStr); | |
| 261 | 259 | free(connStr); |
| 262 | 260 | if( BIO_do_connect(sBio)<=0 ){ |
| 263 | 261 | ssl_set_errmsg("SSL: cannot connect to proxy %s:%d (%s)", |
| 264 | 262 | pUrlData->name, pUrlData->port, ERR_reason_error_string(ERR_get_error())); |
| 265 | 263 | ssl_close(); |
| @@ -293,12 +291,13 @@ | ||
| 293 | 291 | #endif |
| 294 | 292 | |
| 295 | 293 | SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); |
| 296 | 294 | |
| 297 | 295 | if( !pUrlData->useProxy ){ |
| 298 | - BIO_set_conn_hostname(iBio, pUrlData->name); | |
| 299 | - BIO_ctrl(iBio,BIO_C_SET_CONNECT,3,(char *)&pUrlData->port); | |
| 296 | + char *connStr = mprintf("%s:%d", pUrlData->name, pUrlData->port); | |
| 297 | + BIO_set_conn_hostname(iBio, connStr); | |
| 298 | + free(connStr); | |
| 300 | 299 | if( BIO_do_connect(iBio)<=0 ){ |
| 301 | 300 | ssl_set_errmsg("SSL: cannot connect to host %s:%d (%s)", |
| 302 | 301 | pUrlData->name, pUrlData->port, ERR_reason_error_string(ERR_get_error())); |
| 303 | 302 | ssl_close(); |
| 304 | 303 | return 1; |
| 305 | 304 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -252,14 +252,12 @@ | |
| 252 | hasSavedCertificate = 1; |
| 253 | } |
| 254 | |
| 255 | if( pUrlData->useProxy ){ |
| 256 | int rc; |
| 257 | BIO *sBio; |
| 258 | char *connStr; |
| 259 | connStr = mprintf("%s:%d", g.url.name, pUrlData->port); |
| 260 | sBio = BIO_new_connect(connStr); |
| 261 | free(connStr); |
| 262 | if( BIO_do_connect(sBio)<=0 ){ |
| 263 | ssl_set_errmsg("SSL: cannot connect to proxy %s:%d (%s)", |
| 264 | pUrlData->name, pUrlData->port, ERR_reason_error_string(ERR_get_error())); |
| 265 | ssl_close(); |
| @@ -293,12 +291,13 @@ | |
| 293 | #endif |
| 294 | |
| 295 | SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); |
| 296 | |
| 297 | if( !pUrlData->useProxy ){ |
| 298 | BIO_set_conn_hostname(iBio, pUrlData->name); |
| 299 | BIO_ctrl(iBio,BIO_C_SET_CONNECT,3,(char *)&pUrlData->port); |
| 300 | if( BIO_do_connect(iBio)<=0 ){ |
| 301 | ssl_set_errmsg("SSL: cannot connect to host %s:%d (%s)", |
| 302 | pUrlData->name, pUrlData->port, ERR_reason_error_string(ERR_get_error())); |
| 303 | ssl_close(); |
| 304 | return 1; |
| 305 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -252,14 +252,12 @@ | |
| 252 | hasSavedCertificate = 1; |
| 253 | } |
| 254 | |
| 255 | if( pUrlData->useProxy ){ |
| 256 | int rc; |
| 257 | char *connStr = mprintf("%s:%d", g.url.name, pUrlData->port); |
| 258 | BIO *sBio = BIO_new_connect(connStr); |
| 259 | free(connStr); |
| 260 | if( BIO_do_connect(sBio)<=0 ){ |
| 261 | ssl_set_errmsg("SSL: cannot connect to proxy %s:%d (%s)", |
| 262 | pUrlData->name, pUrlData->port, ERR_reason_error_string(ERR_get_error())); |
| 263 | ssl_close(); |
| @@ -293,12 +291,13 @@ | |
| 291 | #endif |
| 292 | |
| 293 | SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); |
| 294 | |
| 295 | if( !pUrlData->useProxy ){ |
| 296 | char *connStr = mprintf("%s:%d", pUrlData->name, pUrlData->port); |
| 297 | BIO_set_conn_hostname(iBio, connStr); |
| 298 | free(connStr); |
| 299 | if( BIO_do_connect(iBio)<=0 ){ |
| 300 | ssl_set_errmsg("SSL: cannot connect to host %s:%d (%s)", |
| 301 | pUrlData->name, pUrlData->port, ERR_reason_error_string(ERR_get_error())); |
| 302 | ssl_close(); |
| 303 | return 1; |
| 304 |