OpenVPN / openvpn3-linux

OpenVPN 3 Linux client
GNU Affero General Public License v3.0
554 stars 148 forks source link

--disable-selinux-build not working #41

Closed SCOTT-HAMILTON closed 3 years ago

SCOTT-HAMILTON commented 3 years ago

Hello, I'm trying to package openvpn3@13_beta for NixOS. I tried to disable the selinux build (that is only needed for distros like fedora) with --disable-selinux-build but I it seems like this switch is ignored :

./configure: line 8859: syntax error near unexpected token `${datarootdir}/selinux/devel,'
./configure: line 8859: `        AX_RECURSIVE_EVAL(${datarootdir}/selinux/devel, selinux_devel_path)'

Reproducing

  1. install nix cf https://nixos.org/guides/install-nix.html
  2. run :
    $ nix-store -r $(nix-instantiate -E 'import (builtins.fetchTarball {
    url = "http://github.com/SCOTT-HAMILTON/Nixpkgs/archive/5041c3e9106cb7180c2401804d3d9d7b2be3f508.tar.gz";
    sha256 = "1v7kpc4lz77sx66dd2bvdqwspk8aim4x1libdw65rxbb7f6dsdj8";
    }) {}' -A openvpn3)

Here is the full build log :

``` building '/nix/store/gypx5m3g5inasi12r72q0dakg1dwzfq8-openvpn3-13_beta.drv'... unpacking sources unpacking source archive /nix/store/yzfv64z1vjbh1c70sskihb5apzcl5x73-source source root is source patching sources Version: fetchgit_2031975261858750 patching script interpreter paths in ./openvpn3-core/scripts/version ./openvpn3-core/scripts/version: interpreter directive changed from "#!/bin/bash" to "/nix/store/jdi2v7ir1sr6vp7pc5x0nhb6lpcmg6xg-bash-4.4-p23/bin/bash" autoreconfPhase autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: /nix/store/d8xbvj4mnw7idjyfm0lcgw1kyld9cfmh-autoconf-2.70/bin/autoconf --force autoreconf: running: /nix/store/d8xbvj4mnw7idjyfm0lcgw1kyld9cfmh-autoconf-2.70/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:27: installing './compile' configure.ac:24: installing './install-sh' configure.ac:24: installing './missing' Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' src/python/Makefile.am:35: installing './py-compile' autoreconf: Leaving directory '.' configuring configure flags: --disable-dependency-tracking --prefix=/nix/store/vrlixi66zh1iali33rnfdl2alq7j6v95-openvpn3-13_beta --disable-selinux-build checking for a BSD-compatible install... /nix/store/lr96h3dlny8aiba9p3rmxcxfda0ijj08-coreutils-8.32/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /nix/store/lr96h3dlny8aiba9p3rmxcxfda0ijj08-coreutils-8.32/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking how to create a pax tar archive... gnutar checking whether make supports nested variables... (cached) yes checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether g++ accepts -g... yes checking for g++ option to enable C++11 features... none needed checking whether make supports the include directive... yes (GNU style) checking dependency style of g++... none checking for gcc... gcc checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking pkg-config is at least version 0.9.0... yes checking how to run the C preprocessor... gcc -E checking for ranlib... ranlib checking whether ln -s works... yes checking for a sed that does not truncate output... /nix/store/4nf4ih03fcq7gk08spjzxvwph1vyx1kr-gnused-4.8/bin/sed checking whether make sets $(MAKE)... (cached) yes checking whether g++ supports C++11 features by default... yes checking whether g++ supports C++14 features by default... yes checking for a Python interpreter with version >= 3.5... python checking for python... /nix/store/d44wd6n98f93hjr6q1d1phhh1hw7a17d-python3-3.8.8/bin/python checking for python version... 3.8 checking for python platform... linux checking for python script directory... ${prefix}/lib/python3.8/site-packages checking for python extension module directory... ${exec_prefix}/lib/python3.8/site-packages checking for liblz4... yes checking for jsoncpp... yes checking for gio-2.0... yes checking for gio-unix-2.0... yes checking for uuid... yes checking for libcap-ng... yes checking for openssl >= 1.0.2... yes configure: Using ASIO source directory: ./vendor/asio configure: Using OpenVPN 3 Core Library directory: ./openvpn3-core checking OpenVPN 3 Core Library version... 3.git:fetchgit:ce0c9963 configure: Using ovpn-dco source directory: ./ovpn-dco ./configure: line 8859: syntax error near unexpected token `${datarootdir}/selinux/devel,' ./configure: line 8859: ` AX_RECURSIVE_EVAL(${datarootdir}/selinux/devel, selinux_devel_path)' builder for '/nix/store/gypx5m3g5inasi12r72q0dakg1dwzfq8-openvpn3-13_beta.drv' failed with exit code 2 error: build of '/nix/store/gypx5m3g5inasi12r72q0dakg1dwzfq8-openvpn3-13_beta.drv' failed ```

NB : I also have to ask if openvpn3 is under agpl3Only or agpl3Plus license cf https://www.gnu.org/licenses/identify-licenses-clearly.html.

dsommers commented 3 years ago

You are missing the autoconf-archive package.

SCOTT-HAMILTON commented 3 years ago

Ok, thank you, it worked. I missed that one when reading threw your README. My mistake.