[gnutls-devel] GnuTLS | guile bindings do not build with pkgsrc (on NetBSD) (#996)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon May 11 14:44:14 CEST 2020




Nikita Gillmann commented:


```x86_64--netbsd``` is pretty normal for us (in pkgsrc), I'll track down the file where it is set.

```
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GnuTLS configure 3.6.13, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --disable-openssl-compatibility --disable-libdane --without-idn --without-tpm --disable-valgrind-tests --with-default-trust-store-file=/usr/pkg/share/mozilla-rootcerts/cacert.pem --with-libintl-prefix=/usr --enable-local-libopts --enable-libdane --enable-guile --prefix=/usr/pkg --build=x86_64--netbsd --host=x86_64--netbsd --infodir=/usr/pkg/info --mandir=/usr/pkg/man --enable-option-checking=yes
```
...
```
## ----------- ##
## Core tests. ##
## ----------- ##

configure:4536: checking build system type
configure:4550: result: x86_64--netbsd
configure:4570: checking host system type
configure:4583: result: x86_64--netbsd
```

is produced by configure.

this happens on platforms which don't set the vendor, for which some exist (pkgsrc targets many OS, NetBSD is just an example where it is not done).
This is www/curl:

```
It was created by curl configure -, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --with-ssl=/usr --with-ca-path=/etc/openssl/certs --with-zlib=/u
sr --enable-ipv6 --without-libssh2 --with-gssapi=/usr --with-gssapi-includes=/us
r/include/gssapi --disable-ldap --without-librtmp --with-libidn2 --with-nghttp2=
/usr/pkg --prefix=/usr/pkg --build=x86_64--netbsd --host=x86_64--netbsd --mandir
=/usr/pkg/man --enable-option-checking=yes

## --------- ##
## Platform. ##
## --------- ##

hostname = hex
uname -m = amd64
uname -r = 9.0
uname -s = NetBSD
uname -v = NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020  mkrepro at mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC
```

in http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/mk/bsd.prefs.mk?rev=1.407&content-type=text/x-cvsweb-markup
you are looking for
keyword ```MACHINE_GNU_PLATFORM```
specifically here:
```LOWER_VENDOR?=                     # empty ("arch--opsys")```

in addition to that we usually replace config.status with our own version to make it easier to patch if we require it.
Following that the vendor string can be empty, the check for the vendor string should accept an empty string as well.
Does this explanation make more sense?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/996#note_340183371
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200511/33ac9579/attachment-0001.html>


More information about the Gnutls-devel mailing list