pax_global_header 0000666 0000000 0000000 00000000064 14767240365 0014530 g ustar 00root root 0000000 0000000 52 comment=e0e97997e1424cf2070c1cee01c66bee65d17b60
libidn-v1.43/ 0000775 0000000 0000000 00000000000 14767240365 0013106 5 ustar 00root root 0000000 0000000 libidn-v1.43/.gitattributes 0000664 0000000 0000000 00000000042 14767240365 0015775 0 ustar 00root root 0000000 0000000 .tarball-version-git export-subst
libidn-v1.43/.gitignore 0000664 0000000 0000000 00000011510 14767240365 0015074 0 ustar 00root root 0000000 0000000 !/gl/top/README-release.diff
*.gcda
*.gcno
*.lo
*.log
*.o
*.trs
*~
/.deps/
/.version
/ABOUT-NLS
/ChangeLog
/GNUmakefile
/INSTALL
/README-release
/aclocal.m4
/autogen.sh
/autom4te.cache/
/autopull.sh
/build-aux/
/config.h
/config.h.in
/config.log
/config.status
/configure
/contrib/doxygen/Doxyfile
/contrib/doxygen/doxygen_sqlite3.db
/contrib/doxygen/html/
/contrib/doxygen/latex/
/csharp/CombiningClass.cs
/csharp/Composition.cs
/csharp/CompositionExclusions.txt
/csharp/DecompositionKeys.cs
/csharp/DecompositionMappings.cs
/csharp/GenerateTables.exe
/csharp/Libidn.dll
/csharp/RFC3454.cs
/csharp/UnicodeData.txt
/csharp/rfc3454.txt
/csharpcomp.sh
/csharpexec.sh
/doc/Makefile.gdoc
/doc/coverage/
/doc/cyclo/cyclo-libidn.html
/doc/example.txt
/doc/example2.txt
/doc/example3.txt
/doc/example4.txt
/doc/example5.txt
/doc/gendocs_template
/doc/gendocs_template_min
/doc/idn-help.texi
/doc/idn.1
/doc/java/html/
/doc/java/stamp-html
/doc/libidn-components.eps
/doc/libidn-components.pdf
/doc/libidn-components.png
/doc/libidn.aux
/doc/libidn.cp
/doc/libidn.cps
/doc/libidn.dvi
/doc/libidn.fn
/doc/libidn.fns
/doc/libidn.html
/doc/libidn.info
/doc/libidn.ky
/doc/libidn.log
/doc/libidn.pdf
/doc/libidn.pg
/doc/libidn.ps
/doc/libidn.t2d/
/doc/libidn.t2p/
/doc/libidn.toc
/doc/libidn.tp
/doc/libidn.vr
/doc/libidn.vrs
/doc/man/
/doc/manual/
/doc/reference/gtkdoc-check.test
/doc/reference/html-build.stamp
/doc/reference/html.stamp
/doc/reference/html/
/doc/reference/libidn-decl-list.txt
/doc/reference/libidn-decl-list.txt.bak
/doc/reference/libidn-decl.txt
/doc/reference/libidn-decl.txt.bak
/doc/reference/libidn-overrides.txt
/doc/reference/libidn-sections.txt
/doc/reference/libidn-undeclared.txt
/doc/reference/libidn-undocumented.txt
/doc/reference/libidn-unused.txt
/doc/reference/libidn.actions
/doc/reference/libidn.args
/doc/reference/libidn.hierarchy
/doc/reference/libidn.interfaces
/doc/reference/libidn.pdf
/doc/reference/libidn.prerequisites
/doc/reference/libidn.signals
/doc/reference/libidn.types
/doc/reference/pdf-build.stamp
/doc/reference/pdf.stamp
/doc/reference/scan-build.stamp
/doc/reference/setup-build.stamp
/doc/reference/sgml-build.stamp
/doc/reference/sgml.stamp
/doc/reference/tmpl-build.stamp
/doc/reference/tmpl.stamp
/doc/reference/tmpl/
/doc/reference/version.xml
/doc/reference/xml/
/doc/stamp-vti
/doc/texi/
/doc/version.texi
/examples/.deps/
/examples/.libs/
/examples/example
/examples/example2
/examples/example3
/examples/example4
/examples/example5
/fuzz/.deps/
/fuzz/libidn_*_fuzzer
/fuzz/libidn_*_fuzzer.new/
/gl/
/gnulib/
/gtk-doc.make
/java/libidn-*.jar
/java/pom.xml
/java/src/main/java/gnu/inet/encoding/CombiningClass.class
/java/src/main/java/gnu/inet/encoding/Composition.class
/java/src/main/java/gnu/inet/encoding/DecompositionKeys.class
/java/src/main/java/gnu/inet/encoding/DecompositionMappings.class
/java/src/main/java/gnu/inet/encoding/IDNA.class
/java/src/main/java/gnu/inet/encoding/IDNAException.class
/java/src/main/java/gnu/inet/encoding/NFKC.class
/java/src/main/java/gnu/inet/encoding/Punycode.class
/java/src/main/java/gnu/inet/encoding/PunycodeException.class
/java/src/main/java/gnu/inet/encoding/RFC3454.class
/java/src/main/java/gnu/inet/encoding/RangeSet$1.class
/java/src/main/java/gnu/inet/encoding/RangeSet$Builder.class
/java/src/main/java/gnu/inet/encoding/RangeSet$Range.class
/java/src/main/java/gnu/inet/encoding/RangeSet$RangeContainsComparator.class
/java/src/main/java/gnu/inet/encoding/RangeSet.class
/java/src/main/java/gnu/inet/encoding/Stringprep.class
/java/src/main/java/gnu/inet/encoding/StringprepException.class
/java/src/main/java/gnu/inet/encoding/classnoinst.stamp
/java/src/util/java/GenerateNFKC.class
/java/src/util/java/GenerateRFC3454$Range.class
/java/src/util/java/GenerateRFC3454.class
/java/src/util/java/TestIDNA.class
/java/src/util/java/TestNFKC.class
/java/src/util/java/classnoinst.stamp
/java/target
/lib/.deps/
/lib/.libs/
/lib/gl/
/lib/gunibreak.h
/lib/gunicomp.h
/lib/gunidecomp.h
/lib/idn-int.h
/lib/libidn.la
/lib/libidn.pc
/lib/m4/
/lib/rfc3454.c
/lib/rfc3454.h
/lib/tlds.c
/libidn-*.tar.gz
/libidn-*.tar.gz.sig
/libtool
/maint.mk
/po/*.gmo
/po/*.po
/po/.gitignore
/po/.reference/
/po/LINGUAS
/po/Makevars
/po/POTFILES
/po/en@boldquot.insert-header
/po/en@quot.insert-header
/po/libidn.pot
/po/remove-potcdate.sed
/po/stamp-po
/pom.xml
/scan.tmp
/src/.deps/
/src/.libs/
/src/idn
/src/idn_cmd.c
/src/idn_cmd.h
/src/libidn_cmd.la
/stamp-h1
/tests/.deps/
/tests/libutils.a
/tests/tst_badutf8
/tests/tst_badutf8nfkc
/tests/tst_idna
/tests/tst_idna2
/tests/tst_idna3
/tests/tst_idna4
/tests/tst_nfkc
/tests/tst_pr29
/tests/tst_punycode
/tests/tst_strerror
/tests/tst_stringprep
/tests/tst_symbols
/tests/tst_tld
/tests/tst_toascii64oob
/tests/tst_toutf8
/tests/tst_utf8crash
/tests/tst_versions
/windows/libidn-*-win??.zip
/windows/libidn-*-win??.zip.sig
/windows/tmp32
/windows/tmp64
Makefile
Makefile.in
TAGS
doc/stamp-gdoc
libidn-v1.43/.gitlab-ci.yml 0000664 0000000 0000000 00000153461 14767240365 0015554 0 ustar 00root root 0000000 0000000 # Copyright (C) 2020-2025 Simon Josefsson
#
# This file is part of GNU Libidn.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
variables:
GIT_DEPTH: 100 # must include last release tag for git describe
GNULIB_URL: https://gitlab.com/libidn/gnulib-mirror.git
stages:
- build # B-* jobs build from git for "make dist"
- repro # R-* jobs do "make release" from git, S-* jobs build from *-src.tar.gz
- test # tarball test builds
default:
interruptible: true
artifacts:
expire_in: 2 weeks
when: always
paths:
- ./config.h
- ./**/*.log
- ./out/$CI_JOB_NAME_SLUG/**
.gnulib-fetch:
script:
- GNULIB_REVISION=$(. bootstrap.conf >&2; echo $GNULIB_REVISION)
- wget -nv https://gitlab.com/libidn/gnulib-mirror/-/archive/$GNULIB_REVISION/gnulib-mirror-$GNULIB_REVISION.tar.gz
- gzip -cd gnulib-mirror-$GNULIB_REVISION.tar.gz | tar xf -
- rm -fv gnulib-mirror-$GNULIB_REVISION.tar.gz
- export GNULIB_SRCDIR=$PWD/gnulib-mirror-$GNULIB_REVISION
.save-artifacts:
script:
- (! command -v git > /dev/null) || git status
- (! command -v git > /dev/null) || git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/{src,log}
- find . -name out -prune -o -name '*.log' -print | xargs mv --backup=numbered -v -t out/$CI_JOB_NAME_SLUG/log config.h
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/ || true
- mv -v *.tar.* out/$CI_JOB_NAME_SLUG/
Q-Debian-testing:
tags: [ saas-linux-medium-amd64 ]
image: debian:testing-slim
stage: build
before_script:
- cat /etc/os-release
- date | tee date.log
- set | tee set.log
- time apt-get update
- time apt-get install -y git wget make autoconf automake libtool autopoint gperf gengetopt indent codespell libidn-dev | tee pkgs.log | tail
script:
- env srcdir=tests tests/standalone.sh
- time apt-get remove -y --purge libidn-dev | tail
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- mkdir -pv q
- cd q
- time ../configure --disable-doc --enable-gcc-warnings=error
- time make -j$(nproc) syntax-check
- time make -j$(nproc) V=1
- time make -j$(nproc) check VERBOSE=t V=1
- make V=1 srcdist
- git status
- git diff --exit-code # nothing should change version controlled files
- env srcdir=../tests STANDALONE_CFLAGS="-I../lib -Ilib lib/.libs/libidn.a" ../tests/standalone.sh
- env srcdir=../tests STANDALONE_CFLAGS="-I../lib -Ilib -Wl,-rpath lib/.libs lib/.libs/libidn.so" ../tests/standalone.sh
- sha256sum *.tar.*
- mkdir -pv ../out/$CI_JOB_NAME_SLUG/{src,log}
- find config.h *.log tests/*.log -exec mv -v {} ../out/$CI_JOB_NAME_SLUG/log/ \;
- mv -v *-src.tar.* ../out/$CI_JOB_NAME_SLUG/src/
# https://docs.gitlab.com/ee/user/application_security/sast/
sast:
stage: build
variables:
SAST_EXCLUDED_PATHS: gnulib
include:
- template: Jobs/SAST.gitlab-ci.yml
# https://www.synopsys.com/blogs/software-security/integrating-coverity-scan-with-gitlab-ci/
Coverity:
rules:
- if: $CI_COMMIT_REF_PROTECTED == "true"
- when: manual
image: debian:testing-slim
stage: build
allow_failure: true
before_script:
- time apt-get update -y
- time apt-get install -y curl git wget make autoconf automake libtool autopoint gperf gengetopt codespell | tee pkgs.log | tail
script:
- test -n "$COVERITY_SCAN_TOKEN" && test -n "$COVERITY_SCAN_PROJECT_NAME"
- curl -o /tmp/cov-analysis-linux64.tgz https://scan.coverity.com/download/linux64
--form project=$COVERITY_SCAN_PROJECT_NAME --form token=$COVERITY_SCAN_TOKEN
- sha1sum /tmp/cov-analysis-linux64.tgz
- tar xfz /tmp/cov-analysis-linux64.tgz
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error --disable-doc CFLAGS="-g -Og"
- cov-analysis-linux64-*/bin/cov-build --dir cov-int make -j$(nproc) check
- tar cfz cov-int.tar.gz cov-int
- curl https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME
--form token=$COVERITY_SCAN_TOKEN --form email=$GITLAB_USER_EMAIL
--form file=@cov-int.tar.gz --form version="`git describe --tags`"
--form description="`git describe --tags` / $CI_COMMIT_TITLE / $CI_COMMIT_REF_NAME:$CI_PIPELINE_ID"
artifacts:
expire_in: 1 week
paths:
- cov-int/*.txt
.almarocky: &almarocky
stage: build
tags: [ saas-linux-medium-amd64 ]
variables:
PKGS: patch diffutils autoconf automake libtool gettext-devel git wget perl make gperf gengetopt graphviz texinfo help2man gtk-doc valgrind mono-core
before_script:
- cat /etc/os-release
- time dnf install -y epel-release
- time dnf --enablerepo=$(dnf repolist --all | grep crb > /dev/null && echo crb || echo powertools) install -y ${PKGS}
- cc --version
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- sed -i -e '/MAKEFLAGS) dvi/d' Makefile.in # AM_DISTCHECK_DVI_TARGET=
- time ./configure --enable-gcc-warnings=error
- time make syntax-check
- time make -j$(nproc) V=1 VERBOSE=t check
- time make -j$(nproc) V=1 VERBOSE=t distcheck
- !reference [.save-artifacts, script]
B-AlmaLinux8:
image: almalinux:8
extends: .almarocky
B-RockyLinux8:
image: rockylinux:8
extends: .almarocky
B-AlmaLinux9:
image: almalinux:9
extends: .almarocky
B-RockyLinux9:
image: rockylinux:9
extends: .almarocky
.pureosdebian: &pureosdebian
tags: [ saas-linux-medium-amd64 ]
stage: build
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- cat /etc/os-release
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -qqy --no-install-recommends make git wget autoconf automake libtool gettext autopoint cvs texinfo help2man gtk-doc-tools valgrind gengetopt graphviz mono-mcs gperf default-jdk-headless patch
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-java --enable-gcc-warnings=error --enable-valgrind-tests
- time make syntax-check
- time make -j$(nproc) V=1 VERBOSE=t check
- make -C doc compare-makefile
- time make -j$(nproc) V=1 VERBOSE=t distcheck AM_DISTCHECK_DVI_TARGET=
- !reference [.save-artifacts, script]
B-PureOS10:
image: pureos/byzantium:latest
extends: .pureosdebian
B-Debian11:
image: debian:11-slim
extends: .pureosdebian
B-Devuan5:
image: devuan/devuan:daedalus
extends: .pureosdebian
B-Debian12:
image: debian:12-slim
extends: .pureosdebian
B-Trisquel11:
rules:
- when: always # this job is used by merge request jobs tagged with 'needs' on this job
image: kpengboy/trisquel:11.0
tags: [ saas-linux-medium-amd64 ]
stage: build
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- cat /etc/os-release
- sed -i 's,http://archive.trisquel.info/trisquel,http://ftp.acc.umu.se/mirror/trisquel/packages,' /etc/apt/sources.list
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y make git wget autoconf automake libtool gettext autopoint cvs texinfo help2man gtk-doc-tools valgrind gengetopt graphviz mono-mcs gperf default-jdk-headless codespell libidn-dev
script:
- env srcdir=tests tests/standalone.sh
- time apt-get remove -y --purge libidn-dev | tail
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error --enable-valgrind-tests
- grep '^HAVE_DOTNET = $' Makefile > /dev/null
- grep '^HAVE_MONO = 1$' Makefile > /dev/null
- time make syntax-check
- time make -j$(nproc) V=1 VERBOSE=t check
- make -C doc compare-makefile
- time make -j$(nproc) V=1 VERBOSE=t distcheck AM_DISTCHECK_DVI_TARGET=
- env STANDALONE_CFLAGS="-Ilib lib/.libs/libidn.a" tests/standalone.sh
- env STANDALONE_CFLAGS="-Ilib -Wl,-rpath lib/.libs lib/.libs/libidn.so" tests/standalone.sh
- make dist
- !reference [.save-artifacts, script]
B-Ubuntu2204:
image: ubuntu:22.04
tags: [ saas-linux-medium-amd64 ]
stage: build
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- cat /etc/os-release
- sed -i 's,http://archive.trisquel.info/trisquel,http://ftp.acc.umu.se/mirror/trisquel/packages,' /etc/apt/sources.list
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -qqy --no-install-recommends make git wget autoconf automake libtool gettext autopoint cvs texinfo help2man gtk-doc-tools dblatex valgrind gengetopt graphviz dotnet8 gperf default-jdk-headless patch codespell datefudge libidn-dev
script:
- env srcdir=tests tests/standalone.sh
- time apt-get remove -y --purge libidn-dev | tail
- !reference [.gnulib-fetch, script]
- time datefudge "15 years" ./bootstrap --skip-po --no-git
- mkdir b
- cd b
- time datefudge "15 years" ../configure --enable-gcc-warnings=error --enable-valgrind-tests
- grep '^HAVE_DOTNET = 1$' Makefile > /dev/null
- grep '^HAVE_MONO = $' Makefile > /dev/null
- time datefudge "15 years" make syntax-check exclude_file_name_regexp--sc_copyright_check='version-etc.c|doc/libidn.texi'
- time datefudge "15 years" make -j$(nproc) V=1 VERBOSE=t check
- time datefudge "15 years" make -j$(nproc) V=1 VERBOSE=t distcheck AM_DISTCHECK_DVI_TARGET=
- time datefudge "15 years" make -C doc compare-makefile
- time make -j$(nproc) V=1 VERBOSE=t distcheck AM_DISTCHECK_DVI_TARGET=
- env srcdir=../tests STANDALONE_CFLAGS="-I../lib -Ilib lib/.libs/libidn.a" ../tests/standalone.sh
- env srcdir=../tests STANDALONE_CFLAGS="-I../lib -Ilib -Wl,-rpath lib/.libs lib/.libs/libidn.so" ../tests/standalone.sh
- make dist
- sha256sum *.tar.*
- mkdir -pv ../out/$CI_JOB_NAME_SLUG/{src,log}
- find config.h *.log tests/*.log -exec mv -v {} ../out/$CI_JOB_NAME_SLUG/log/ \;
- mv -v *-src.tar.* ../out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* ../out/$CI_JOB_NAME_SLUG/
B-Ubuntu2404-arm64:
image: ubuntu:24.04
tags: [ saas-linux-small-arm64 ]
stage: build
before_script:
- cat /etc/os-release
- time apt-get update -qq
- time apt-get install -qqy --no-install-recommends make git wget autoconf automake libtool gettext autopoint cvs texinfo help2man gtk-doc-tools valgrind gengetopt graphviz dotnet8 gperf default-jdk-headless patch codespell indent | tee pkgs.log | tail
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-java --enable-gcc-warnings=error
- grep '^HAVE_DOTNET = 1$' Makefile > /dev/null
- grep '^HAVE_MONO = $' Makefile > /dev/null
- time make -j$(nproc) syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) distcheck AM_DISTCHECK_DVI_TARGET=
- !reference [.save-artifacts, script]
B-Ubuntu2404:
image: ubuntu:24.04
tags: [ saas-linux-medium-amd64 ]
stage: build
before_script:
- cat /etc/os-release
- time apt-get update -qq
- time apt-get install -qqy --no-install-recommends make git wget autoconf automake libtool gettext autopoint cvs texinfo help2man gtk-doc-tools valgrind gengetopt graphviz dotnet8 gperf default-jdk-headless patch codespell | tee pkgs.log | tail
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-java --enable-gcc-warnings=error --disable-silent-rules
- grep '^HAVE_DOTNET = 1$' Makefile > /dev/null
- grep '^HAVE_MONO = $' Makefile > /dev/null
- time make -j$(nproc) syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) distcheck AM_DISTCHECK_DVI_TARGET=
- !reference [.save-artifacts, script]
B-Alpine-arm64:
image: alpine:latest
tags: [ saas-linux-small-arm64 ]
stage: build
before_script:
- cat /etc/os-release
- apk update
- apk add gcc make libc-dev git wget autoconf automake libtool gettext-dev gperf gengetopt patch coreutils
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --disable-doc --enable-gcc-warnings=error
- time make -j$(nproc) syntax-check
- time make -j$(nproc) V=1
- time make -j$(nproc) check V=1 VERBOSE=t
- git diff --exit-code # nothing should change version controlled files
B-Alpine-mold:
image: alpine:latest
tags: [ saas-linux-small-arm64 ]
stage: build
before_script:
- cat /etc/os-release
- apk update
- apk add gcc make libc-dev git wget autoconf automake libtool gettext-dev gperf gengetopt patch coreutils mold
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --disable-doc --enable-gcc-warnings=error CC='cc -fuse-ld=mold'
- time make -j$(nproc) syntax-check
- time make -j$(nproc) V=1
- time make -j$(nproc) check V=1 VERBOSE=t
- git diff --exit-code # nothing should change version controlled files
- (! grep -E 'mold. warning' build.log)
- grep 'mold ' lib/.libs/libidn.so
B-Debian9:
image: docker.io/debian/eol:stretch-slim
stage: build
before_script:
- printf "deb http://archive.debian.org/debian/ stretch main\ndeb http://archive.debian.org/debian/ stretch-backports main\ndeb http://archive.debian.org/debian-security/ stretch/updates main\n" > /etc/apt/sources.list # https://github.com/debuerreotype/docker-debian-eol-artifacts/issues/10
- time apt-get update -y
- time apt-get install -y make git wget autoconf automake libtool gettext autopoint cvs texinfo help2man gtk-doc-tools valgrind gengetopt graphviz mono-mcs gperf default-jdk-headless | tee pkgs.log | tail
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-java --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) dist
- time make -j$(nproc) syntax-check
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/src out/$CI_JOB_NAME_SLUG/log
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* out/$CI_JOB_NAME_SLUG/
B-Debian-testing:
image: debian:testing-slim
stage: build
before_script:
- time apt-get update -qq
- time apt-get install -y -q make git wget autoconf automake libtool gettext autopoint cvs texinfo texlive texlive-plain-generic texlive-extra-utils help2man gtk-doc-tools dblatex valgrind gengetopt graphviz mono-mcs gperf default-jdk-headless codespell | tee pkgs.log | tail
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-java --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) distcheck V=1 VERBOSE=t
- make -j$(nproc) install
- time apt-get install -y -qq man
- git clone --depth=1 https://salsa.debian.org/debian/libidn.git debian-libidn
- debian-libidn/debian/tests/idn
- debian-libidn/debian/tests/libidn
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/src out/$CI_JOB_NAME_SLUG/log
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* out/$CI_JOB_NAME_SLUG/
B-Fedora-latest:
image: fedora:latest
stage: build
before_script:
- cat /etc/os-release
- time dnf update -y
- time dnf install -y make git wget patch autoconf automake libtool gettext-devel glibc-gconv-extra cvs texinfo texinfo-tex texlive help2man gtk-doc gengetopt dblatex valgrind gperf java-latest-openjdk-devel mono-devel codespell graphviz | tee pkgs.log | tail
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-java --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) distcheck V=1 VERBOSE=t
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/src out/$CI_JOB_NAME_SLUG/log
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* out/$CI_JOB_NAME_SLUG/
B-Guix:
image: registry.gitlab.com/debdistutils/guix/container:extra
stage: build
before_script:
- cp -rL /gnu/store/*profile/etc/* /etc/
- echo 'root:x:0:0:root:/:/bin/sh' >> /etc/passwd
- groupadd --system guixbuild
- for i in $(seq -w 1 10); do useradd -g guixbuild -G guixbuild -d /var/empty -s $(command -v nologin) -c "Guix build user $i" --system guixbuilder$i; done
- export HOME=/
- env LANG=C.UTF-8 guix-daemon --build-users-group=guixbuild &
- guix archive --authorize < /share/guix/ci.guix.gnu.org.pub
- guix archive --authorize < /share/guix/bordeaux.guix.gnu.org.pub
- guix describe
- time guix install --verbosity=0 mono graphviz ghostscript
- GUIX_PROFILE="//.guix-profile"
- . "$GUIX_PROFILE/etc/profile"
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) syntax-check
- make texi-stamps-to-mtime-NEWS V=1 # align b-guix with r-guix on git tag's
- time make -j$(nproc) check V=1 VERBOSE=t
- time make V=1 dist
- !reference [.save-artifacts, script]
# https://docs.gitlab.com/ci/runners/hosted_runners/macos/
B-macOS14Xcode15:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN_CI_RUN_MACOS_JOBS
- if: $LIBIDN_CI_MANUAL_JOBS
when: manual
stage: build
image: macos-14-xcode-15
tags: [ saas-macos-medium-m1 ]
variables:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_UPGRADE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
WERROR_CFLAGS: "-Wno-error=format-nonliteral -Wno-error=format-security"
before_script:
- brew install wget autoconf automake libtool gengetopt help2man texinfo graphviz coreutils
script:
- PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"; export PATH
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error
- make -j$(nproc) syntax-check
- make -j$(nproc) check -k V=1 VERBOSE=t
- git diff --exit-code # nothing should change version controlled files
B-macOS15Xcode16:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN_CI_RUN_MACOS_JOBS
- if: $LIBIDN_CI_MANUAL_JOBS
when: manual
stage: build
image: macos-15-xcode-16
tags: [ saas-macos-large-m2pro ]
variables:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_UPGRADE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
WERROR_CFLAGS: "-Wno-error=format-nonliteral -Wno-error=format-security"
before_script:
- brew install wget autoconf automake libtool gengetopt help2man texinfo graphviz coreutils
script:
- PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"; export PATH
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error
- make -j$(nproc) syntax-check
- make -j$(nproc) check -k V=1 VERBOSE=t
- git diff --exit-code # nothing should change version controlled files
B-Ubuntu-rolling:
image: ubuntu:rolling
stage: build
before_script:
- cat /etc/os-release
- time apt-get update
- time apt-get install -y make git wget autoconf automake libtool gettext autopoint cvs texinfo texlive texlive-plain-generic texlive-extra-utils help2man gtk-doc-tools dblatex valgrind gengetopt graphviz mono-mcs gperf default-jdk-headless codespell | tee pkgs.log | tail
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-java --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) distcheck V=1 VERBOSE=t
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/src out/$CI_JOB_NAME_SLUG/log
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* out/$CI_JOB_NAME_SLUG/
B-clang:
image: silkeh/clang:latest
stage: build
before_script:
- cat /etc/os-release
- clang --version
- time apt-get update -q
- time apt-get install -y -q --no-install-recommends make git wget autoconf automake libtool gettext autopoint cvs help2man gengetopt gperf
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error CC="clang -std=gnu2x" --disable-doc
- time make -k syntax-check
- time make V=1 VERBOSE=t check clean
- time ./configure --enable-gcc-warnings=error CC="clang -std=c23"
B-gcc:
image: gcc:latest
stage: build
before_script:
- cat /etc/os-release
- gcc --version
- time apt-get update -q
- time apt-get install -y -q --no-install-recommends make git wget autoconf automake libtool gettext autopoint cvs help2man valgrind gengetopt gperf
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error CC="gcc -std=gnu2x" --disable-doc
- time make -k syntax-check
- time make V=1 VERBOSE=t check clean
- time ./configure --enable-gcc-warnings CC="gcc -std=c23"
# https://docs.gitlab.com/ee/ci/runners/hosted_runners/windows.html
B-Windows-UCRT64:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN_CI_RUN_WINDOWS_JOBS
- if: $LIBIDN_CI_MANUAL_JOBS
when: manual
tags: [ saas-windows-medium-amd64 ]
stage: build
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error=format-security -Wno-error=suggest-attribute=format"
script: # https://www.msys2.org/docs/ci/#other-systems
- wget.exe -nv -O msys2.exe https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe
- ./msys2.exe -y -oC:\
- Remove-Item msys2.exe
- $env:CHERE_INVOKING = 'yes'
- $env:MSYSTEM = 'UCRT64' # https://www.msys2.org/docs/environments/
- C:\msys64\usr\bin\bash -lc ' '
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- |
C:\msys64\usr\bin\bash -lcx '
pacman --noconfirm -Syu git wget autoconf automake libtool make mingw-w64-ucrt-x86_64-gcc python gtk-doc help2man gengetopt gperf patch gettext-devel
# https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
file configure.ac
git config --global core.autocrlf false
git config --global core.eol lf
git rm -rf --cached . | tail
git reset --hard HEAD
git status
git describe
GNULIB_REVISION=$(. bootstrap.conf >&2; echo $GNULIB_REVISION)
wget -nv https://gitlab.com/libidn/gnulib-mirror/-/archive/$GNULIB_REVISION/gnulib-mirror-$GNULIB_REVISION.tar.gz
tar xfa gnulib-mirror-$GNULIB_REVISION.tar.gz
rm -fv gnulib-mirror-$GNULIB_REVISION.tar.gz
export GNULIB_SRCDIR=gnulib-mirror-$GNULIB_REVISION
./bootstrap --skip-po --no-git
./configure --enable-gcc-warnings=error --disable-doc
git status
make -j$(nproc) V=1 -k check VERBOSE=t'
- C:\msys64\usr\bin\bash -lc 'grep PACKAGE_VERSION config.h | grep -v modified'
- C:\msys64\usr\bin\bash -lc 'grep ^PASS tests/tst_idna.log'
0-compare:
image: alpine:latest
stage: repro
needs: [ Q-Debian-testing, B-AlmaLinux8, B-AlmaLinux9, B-RockyLinux8, B-RockyLinux9, B-Trisquel11, B-Ubuntu2204, B-PureOS10, B-Debian11, B-Debian9, B-Debian12, B-Devuan5, B-Debian-testing, B-Guix, B-Fedora-latest, B-Ubuntu-rolling, B-Ubuntu2404-arm64, B-Ubuntu2404, R-Guix, R-Debian12, R-Ubuntu2404, S-Trisquel10, S-Ubuntu2004, T-Trisquel10, T-Ubuntu2004 ]
script:
- cd out
- sha256sum */*.tar.* */*/*.tar.* | sort | grep -- -src.tar.
- sha256sum */*.tar.* */*/*.tar.* | sort | grep -v -- -src.tar.
- sha256sum */*.tar.* */*/*.tar.* | sort | uniq -c -w64 | sort -rn
- sha256sum */*.tar.* */*/*.tar.* | grep -- -src.tar. | sort | uniq -c -w64 | grep -v '^ 1 '
- sha256sum */*.tar.* */*/*.tar.* | grep -v -- -src.tar. | sort | uniq -c -w64 | grep -v '^ 1 '
# Confirm modern git-archive tarball reproducibility
- cmp b-almalinux8/src/*.tar.gz b-almalinux9/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-debian-testing/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-debian12/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-devuan5/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-rockylinux8/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-rockylinux9/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-ubuntu-rolling/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz b-ubuntu2404-arm64/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz r-debian12/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz r-guix/src/*.tar.gz
- cmp b-almalinux8/src/*.tar.gz r-ubuntu2404/src/*v1.*.tar.gz
# Confirm old git-archive (export-subst but long git describe) tarball reproducibility
- cmp b-trisquel11/src/*.tar.gz b-ubuntu2204/src/*.tar.gz
# Confirm really old git-archive (no export-subst) tarball reproducibility
- cmp b-debian11/src/*.tar.gz b-debian9/src/*.tar.gz
- cmp b-debian11/src/*.tar.gz b-pureos10/src/*.tar.gz
# Confirm 'make dist' generated tarball reproducibility
- cmp b-almalinux8/*.tar.gz b-rockylinux8/*.tar.gz
- cmp b-almalinux9/*.tar.gz b-rockylinux9/*.tar.gz
- cmp b-devuan5/*.tar.gz b-debian12/*.tar.gz
- cmp b-guix/*.tar.gz r-guix/*.tar.gz
- cmp b-pureos10/*.tar.gz b-debian11/*.tar.gz
- cmp b-trisquel11/*.tar.gz b-ubuntu2204/*.tar.gz
- cmp b-ubuntu2404-arm64/*.tar.gz b-ubuntu2404/*.tar.gz
- cmp t-trisquel10/*.tar.gz t-ubuntu2004/*.tar.gz
# Confirm 'make dist' from git-archive tarball reproducibility
- cmp s-trisquel10/*.tar.gz s-ubuntu2004/*.tar.gz
artifacts:
expire_in: 2 weeks
when: always
paths:
- ./out/**
R-Guix:
tags: [ saas-linux-medium-amd64 ]
image: registry.gitlab.com/debdistutils/guix/container:extra
stage: repro
needs: []
before_script:
- cp -rL /gnu/store/*profile/etc/* /etc/
- echo 'root:x:0:0:root:/:/bin/sh' > /etc/passwd
- echo 'root:x:0:' > /etc/group
- groupadd --system guixbuild
- for i in $(seq -w 1 10); do useradd -g guixbuild -G guixbuild -d /var/empty -s $(command -v nologin) -c "Guix build user $i" --system guixbuilder$i; done
- export HOME=/
- env LANG=C.UTF-8 guix-daemon --build-users-group=guixbuild &
- guix archive --authorize < /share/guix/ci.guix.gnu.org.pub
- guix archive --authorize < /share/guix/bordeaux.guix.gnu.org.pub
- guix describe
- time guix install --verbosity=0 mono graphviz ghostscript
- GUIX_PROFILE="//.guix-profile"
- . "$GUIX_PROFILE/etc/profile"
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --no-git
- time ./configure
- time make V=1 syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) dist V=1 VERBOSE=t
- git status
- git diff --exit-code
- gpg --batch --passphrase '' --quick-gen-key pipeline@example.org
- git checkout -B cibranch
- git config user.email "pipeline@example.org"
- git config user.name "Pipeline Builder"
- git config user.signingkey pipeline@example.org
- |
if test -z "$CI_COMMIT_TAG"; then
sed -i '3i * Noteworthy changes in release ?.? (????-??-??) [?]\n\n** WARNING This release was prepared automatically with no testing.\n' NEWS
sed -i -e 's,STRINGPREP_VERSION ".*",STRINGPREP_VERSION "97.23.42",' lib/stringprep.h
git commit -m "Warn about automatic release." NEWS lib/stringprep.h
relver='97.23.42'
reltyp='alpha'
else # maintainer ran release-commit
relver=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\1/p' | head -1)
reltyp=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\2/p' | head -1)
fi
- test "$relver" != "97.23.42" || make release-commit RELEASE="$relver $reltyp"
- make release RELEASE="$relver $reltyp" V=1 VERBOSE=t AM_DISTCHECK_DVI_TARGET=
- cat -n ~/announce-*
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/{src,rel,log}
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- test "$relver" != "97.23.42" || mv -v *97.23.42* out/$CI_JOB_NAME_SLUG/rel/
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* ~/announce-* out/$CI_JOB_NAME_SLUG/
R-Debian12:
tags: [ saas-linux-medium-amd64 ]
image: debian:12-slim
stage: repro
needs: []
before_script:
- cat /etc/os-release
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time apt-get update
- time eatmydata apt-get install -y -q make git wget autoconf automake libtool gettext autopoint cvs texinfo texlive texlive-plain-generic texlive-extra-utils help2man gtk-doc-tools dblatex valgrind gengetopt graphviz mono-mcs gperf default-jdk-headless wget
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error
- time make syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) dist V=1 VERBOSE=t
- sha256sum *.tar.*
- git status
- git diff --exit-code
- time apt-get install -y -q --no-install-recommends gpg gpgv2 gpg-agent
- gpg --batch --passphrase '' --quick-gen-key pipeline@example.org
- git checkout -B cibranch
- git config user.email "pipeline@example.org"
- git config user.name "Pipeline Builder"
- git config user.signingkey pipeline@example.org
- |
if test -z "$CI_COMMIT_TAG"; then
sed -i '3i * Noteworthy changes in release ?.? (????-??-??) [?]\n\n** WARNING This release was prepared automatically with no testing.\n' NEWS
sed -i -e 's,STRINGPREP_VERSION ".*",STRINGPREP_VERSION "97.23.42",' lib/stringprep.h
git commit -m "Warn about automatic release." NEWS lib/stringprep.h
relver='97.23.42'
reltyp='alpha'
else # maintainer ran release-commit
relver=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\1/p' | head -1)
reltyp=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\2/p' | head -1)
fi
- test "$relver" != "97.23.42" || make release-commit RELEASE="$relver $reltyp"
- make release RELEASE="$relver $reltyp" V=1 VERBOSE=t
- cat -n ~/announce-*
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/{src,rel,log}
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- test "$relver" != "97.23.42" || mv -v *97.23.42* out/$CI_JOB_NAME_SLUG/rel/
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* ~/announce-* out/$CI_JOB_NAME_SLUG/
R-Ubuntu2404:
image: ubuntu:24.04
tags: [ saas-linux-medium-amd64 ]
stage: repro
needs: []
before_script:
- cat /etc/os-release
- time apt-get update -q
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -qqy --no-install-recommends make git wget autoconf automake libtool gettext autopoint cvs texinfo texlive texlive-plain-generic texlive-extra-utils help2man gtk-doc-tools dblatex valgrind gengetopt graphviz ghostscript dotnet8 gperf default-jdk-headless patch codespell indent
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings
- time make -j$(nproc) syntax-check
- time make -j$(nproc) check V=1 VERBOSE=t
- time make -j$(nproc) dist
- sha256sum *.tar.*
- git status
- git diff --exit-code # nothing should change version controlled files
- apt-get install -y -q gpg gpgv
- gpg --batch --passphrase '' --quick-gen-key pipeline@example.org
- git checkout $CI_COMMIT_BRANCH
- git config user.email "pipeline@example.org"
- git config user.name "Pipeline Builder"
- git config user.signingkey pipeline@example.org
- |
if test -z "$CI_COMMIT_TAG"; then
sed -i '3i * Noteworthy changes in release ?.? (????-??-??) [?]\n\n** WARNING This release was prepared automatically with no testing.\n' NEWS
sed -i -e 's,STRINGPREP_VERSION ".*",STRINGPREP_VERSION "97.23.42",' lib/stringprep.h
git commit -m "Warn about automatic release." NEWS lib/stringprep.h
relver='97.23.42'
reltyp='alpha'
else # maintainer ran release-commit
relver=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\1/p' | head -1)
reltyp=$(cat NEWS | sed -n -e 's/.*release \([0-9.]\+\) (....-..-..) \[\(.*\)\].*/\2/p' | head -1)
fi
- test "$relver" != "97.23.42" || make release-commit RELEASE="$relver $reltyp"
- make release RELEASE="$relver $reltyp" V=1 VERBOSE=t
- cat -n ~/announce-*
- git diff --exit-code # nothing should change version controlled files
- sha256sum *.tar.*
- mkdir -pv out/$CI_JOB_NAME_SLUG/{src,rel,log}
- find config.h *.log tests/*.log -exec mv -v {} out/$CI_JOB_NAME_SLUG/log \;
- test "$relver" != "97.23.42" || mv -v *97.23.42* out/$CI_JOB_NAME_SLUG/rel/
- mv -v *-src.tar.* out/$CI_JOB_NAME_SLUG/src/
- mv -v *.tar.* ~/announce-* out/$CI_JOB_NAME_SLUG/
T-Trisquel10:
tags: [ saas-linux-medium-amd64 ]
image: docker.io/kpengboy/trisquel:10.0
stage: repro
needs: [B-Guix]
before_script:
- cat /etc/os-release
- sed -i 's,http://archive.trisquel.info/trisquel,http://ftp.acc.umu.se/mirror/trisquel/packages,' /etc/apt/sources.list
- time apt-get update -q
- time apt-get install -q -y --no-install-recommends make git wget ca-certificates autoconf automake libtool gettext autopoint cvs texinfo texlive texlive-plain-generic texlive-extra-utils help2man gtk-doc-tools dblatex valgrind gengetopt graphviz ghostscript mono-mcs gperf default-jdk-headless codespell datefudge patch
script:
- mkdir -pv ../b
- cd ../b
- tar xfz ../libidn/out/b-guix/src/libidn-*.tar.gz
- cd $(tar tfa ../libidn/out/b-guix/src/libidn-*.tar.gz | head -n1)
- !reference [.gnulib-fetch, script]
- time datefudge "5 years" ./bootstrap --skip-po --no-git
- time datefudge "5 years" ./configure --enable-gcc-warnings=error
- grep '^HAVE_DOTNET = $' Makefile > /dev/null
- grep '^HAVE_MONO = 1$' Makefile > /dev/null
- time datefudge "5 years" make -j$(nproc) syntax-check exclude_file_name_regexp--sc_copyright_check='version-etc.c|doc/libidn.texi'
- time datefudge "5 years" make -j$(nproc) check V=1 VERBOSE=t
- time datefudge "5 years" make -j$(nproc) distcheck
- sha256sum *.tar.*
- mkdir -pv ../../libidn/out/$CI_JOB_NAME_SLUG/src ../../libidn/out/$CI_JOB_NAME_SLUG/log
- find config.h *.log tests/*.log -exec mv -v {} ../out/$CI_JOB_NAME_SLUG/log \;
- mv -v *.tar.* ../../libidn/out/$CI_JOB_NAME_SLUG/
T-Ubuntu2004:
tags: [ saas-linux-medium-amd64 ]
image: ubuntu:20.04
stage: repro
needs: [B-Guix]
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- cat /etc/os-release
- time apt-get update -qq
- time apt-get install -y --no-install-recommends make git wget ca-certificates autoconf automake libtool gettext autopoint cvs texinfo texlive texlive-plain-generic texlive-extra-utils help2man gtk-doc-tools dblatex valgrind gengetopt graphviz ghostscript mono-mcs gperf default-jdk-headless codespell datefudge patch | tee pkgs.log | tail
script:
- tar xfz out/b-guix/src/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/src/libidn-*.tar.gz | head -n1)
- !reference [.gnulib-fetch, script]
- time datefudge "5 years ago" ./bootstrap --skip-po --no-git
- time datefudge "5 years ago" ./configure --enable-gcc-warnings=error
- grep '^HAVE_DOTNET = $' Makefile > /dev/null
- grep '^HAVE_MONO = 1$' Makefile > /dev/null
- time datefudge "5 years ago" make -j$(nproc) syntax-check exclude_file_name_regexp--sc_copyright_check='version-etc.c|doc/libidn.texi'
- time datefudge "5 years ago" make -j$(nproc) check V=1 VERBOSE=t
- time datefudge "5 years ago" make -j$(nproc) distcheck V=1 VERBOSE=t
- sha256sum *.tar.*
- mkdir -pv ../out/$CI_JOB_NAME_SLUG/log
- find config.h *.log tests/*.log -exec mv -v {} ../out/$CI_JOB_NAME_SLUG/log \;
- mv -v *.tar.* ../out/$CI_JOB_NAME_SLUG/
S-Trisquel10:
tags: [ saas-linux-medium-amd64 ]
image: docker.io/kpengboy/trisquel:10.0
stage: repro
needs: [B-Guix]
before_script:
- cat /etc/os-release
- sed -i 's,http://archive.trisquel.info/trisquel,http://ftp.acc.umu.se/mirror/trisquel/packages,' /etc/apt/sources.list
- time apt-get update -y
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y make git wget autoconf automake libtool gettext autopoint cvs texinfo help2man gtk-doc-tools valgrind gengetopt graphviz mono-mcs gperf default-jdk-headless codespell
script:
- mkdir -pv ../b
- cd ../b
- tar xfz ../*/out/b-guix/src/*-*.tar.gz
- cd $(tar tfa ../*/out/b-guix/src/*-*.tar.gz | head -n1)
- !reference [.gnulib-fetch, script]
- time ./bootstrap --no-git
- time ./configure --enable-gcc-warnings=error
- grep '^VERSION = ' Makefile | grep -v UNKNOWN
- time make -j$(nproc) check V=1 VERBOSE=t
- src/idn --version | head -1 | grep -v UNKNOWN
- time make -j$(nproc) dist AM_DISTCHECK_DVI_TARGET=
- sha256sum *.tar.*
- mkdir -pv $CI_PROJECT_DIR/out/$CI_JOB_NAME_SLUG/{src,log}
- find config.h *.log tests/*.log -exec mv -v {} $CI_PROJECT_DIR/out/$CI_JOB_NAME_SLUG/log \;
- mv -v *.tar.* $CI_PROJECT_DIR/out/$CI_JOB_NAME_SLUG/
S-Ubuntu2004:
tags: [ saas-linux-medium-amd64 ]
image: ubuntu:20.04
stage: repro
needs: [B-Guix]
variables:
DEBIAN_FRONTEND: noninteractive
before_script:
- cat /etc/os-release
- sed -i 's,http://archive.trisquel.info/trisquel,http://ftp.acc.umu.se/mirror/trisquel/packages,' /etc/apt/sources.list
- time apt-get update -y
- time apt-get install -y -q eatmydata
- time eatmydata apt-get install -y make git wget autoconf automake libtool gettext autopoint cvs texinfo help2man gtk-doc-tools valgrind gengetopt graphviz mono-mcs gperf default-jdk-headless codespell
script:
- tar xfz out/b-guix/src/*-*.tar.gz
- cd $(tar tfa out/b-guix/src/*-*.tar.gz | head -n1)
- !reference [.gnulib-fetch, script]
- time ./bootstrap --no-git
- time ./configure --enable-gcc-warnings=error
- grep '^VERSION = ' Makefile | grep -v UNKNOWN
- time make -j$(nproc) check V=1 VERBOSE=t
- src/idn --version | head -1 | grep -v UNKNOWN
- time make -j$(nproc) dist AM_DISTCHECK_DVI_TARGET=
- sha256sum *.tar.*
- mkdir -pv ../out/$CI_JOB_NAME_SLUG/{src,log}
- find config.h *.log tests/*.log -exec mv -v {} ../out/$CI_JOB_NAME_SLUG/log \;
- mv -v *.tar.* ../out/$CI_JOB_NAME_SLUG/
AlmaLinux8:
image: almalinux:8
stage: test
needs: [B-Guix]
before_script:
- time dnf -y install make gcc diffutils valgrind | tee pkgs.log | tail
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
AlmaLinux10:
image: almalinux:10-kitten
stage: test
needs: [B-Guix]
before_script:
- dnf -y install make gcc diffutils valgrind gzip
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
AlmaLinux10-clang:
image: almalinux:10-kitten
stage: test
needs: [B-Guix]
before_script:
- dnf -y install make clang diffutils valgrind gzip
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure CC=clang --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
AlmaLinux10-arm64:
image: almalinux:10-kitten
tags: [ saas-linux-small-arm64 ]
stage: test
needs: [B-Guix]
before_script:
- dnf -y install make gcc diffutils valgrind gzip
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
AlmaLinux10-ppc64:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN_CI_RUN_PPC64_JOBS
- if: $LIBIDN_CI_MANUAL_JOBS
when: manual
tags: [ ppc64 ]
image: almalinux:10-kitten
stage: test
needs: [B-Guix]
before_script:
- dnf -y install make gcc diffutils valgrind gzip
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Alpine-mold:
image: alpine:latest
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- apk update
- apk add build-base mold
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=format-nonliteral"
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error CC='cc -fuse-ld=mold'
- make -j$(nproc) check V=1 VERBOSE=t 2>&1 | tee build.log
- (! grep -E 'mold. warning' build.log)
- grep 'mold ' lib/.libs/libidn.so
ArchLinux:
image: archlinux:latest
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- pacman -Syu --noconfirm make gcc diffutils
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- mkdir b
- cd b
- time ../configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Armcross:
image: debian:12-slim
stage: test
needs: [B-Guix]
before_script:
- time apt-get update -qq
- time apt-get install -y -qq make gcc-arm-linux-gnueabi qemu-user qemu-user-binfmt file binfmt-support | tee pkgs.log | tail
- update-binfmts --enable qemu-arm
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- mkdir b
- cd b
- ../configure --enable-gcc-warnings=error --host=arm-linux-gnueabi CFLAGS="-static --static"
- make -j$(nproc) V=1
- file src/idn
- LANG=C.UTF-8 qemu-arm src/idn --debug foo
- time make -k -j$(nproc) check V=1 VERBOSE=t
OracleLinux7:
image: oraclelinux:7
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- yum -y install make gcc diffutils valgrind
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Debian3:
image: debian/eol:woody
stage: test
needs: [B-Guix]
before_script:
- time apt-get update
- time apt-get install -y -qq make gcc libc-dev
script:
- tar xfz out/b-guix/libidn-*.tar.gz
- cd $(tar tfz out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings
- time make check V=1 VERBOSE=t
Debian3.1:
image: debian/eol:sarge
stage: test
needs: [B-Guix]
before_script:
- time apt-get update
- time apt-get install -y -qq make gcc libc-dev
script:
- tar xfz out/b-guix/libidn-*.tar.gz
- cd $(tar tfz out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make check V=1 VERBOSE=t
Debian4:
image: debian/eol:etch
stage: test
needs: [B-Guix]
before_script:
- time apt-get update
- time apt-get install -y -qq make gcc libc-dev
script:
- tar xfz out/b-guix/libidn-*.tar.gz
- cd $(tar tfz out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make check V=1 VERBOSE=t
Debian10:
image: debian:10-slim
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- time apt-get update
- time apt-get install -y -qq make gcc
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- mkdir b
- cd b
- time ../configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Debian12-ppc64:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN_CI_RUN_PPC64_JOBS
- if: $LIBIDN_CI_MANUAL_JOBS
when: manual
tags: [ ppc64 ]
image: debian:12
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- time apt-get update
- time apt-get install -y -qq make gcc
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- mkdir b
- cd b
- time ../configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Fedora-latest:
image: fedora:latest
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- dnf -y install make gcc diffutils valgrind
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Guix:
image: registry.gitlab.com/debdistutils/guix/container:latest
stage: test
needs: [B-Guix]
before_script:
- cp -rL /gnu/store/*profile/etc/* /etc/
- echo 'root:x:0:0:root:/:/bin/sh' >> /etc/passwd
- groupadd --system guixbuild
- for i in $(seq -w 1 10); do useradd -g guixbuild -G guixbuild -d /var/empty -s $(command -v nologin) -c "Guix build user $i" --system guixbuilder$i; done
- export HOME=/
- env LANG=C.UTF-8 guix-daemon --build-users-group=guixbuild &
- guix archive --authorize < /share/guix/ci.guix.gnu.org.pub
- guix archive --authorize < /share/guix/bordeaux.guix.gnu.org.pub
- guix describe
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Mingw32:
image: debian:12-slim
stage: test
needs: [B-Guix]
before_script:
- dpkg --add-architecture i386
- time apt-get update -qq
- time apt-get install -y -qq make mingw-w64 wine wine32 libwine libwine:i386 binfmt-support wine-binfmt
- update-binfmts --enable wine
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error=format-security -Wno-error=suggest-attribute=format"
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- mkdir b
- cd b
- time ../configure --enable-gcc-warnings=error --host=i686-w64-mingw32 CC='i686-w64-mingw32-gcc -static-libgcc'
- time make -k -j$(nproc) check V=1 VERBOSE=t
Mingw64:
image: debian:12-slim
stage: test
needs: [B-Guix]
before_script:
- time apt-get update -qq
- time apt-get install -y -qq make mingw-w64 wine wine64 binfmt-support wine-binfmt
- update-binfmts --enable wine
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error=format-security -Wno-error=suggest-attribute=format"
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- mkdir b
- cd b
- time ../configure --enable-gcc-warnings=error --host=x86_64-w64-mingw32
- time make -k -j$(nproc) check V=1 VERBOSE=t
OpenBSD:
tags: [ "openbsd" ]
allow_failure: true
needs: [B-Guix]
stage: test
before_script:
- uname -a
- sysctl hw
script:
- tar xfz out/b-guix/libidn-*.tar.gz
- cd $(tar tfz out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make check V=1 VERBOSE=t
RockyLinux9-ppc64:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN_CI_RUN_PPC64_JOBS
- if: $LIBIDN_CI_MANUAL_JOBS
when: manual
tags: [ ppc64 ]
image: rockylinux:9
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- dnf -y install make gcc valgrind
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Ubuntu12.04:
image: ubuntu:12.04
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- perl -pi -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
- time apt-get update -q
- time apt-get install -y -qq make gcc valgrind
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Ubuntu14.04:
image: ubuntu:14.04
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- time apt-get update -qq
- time apt-get install -y -qq make gcc valgrind
script:
- mkdir -pv ../p
- cd ../p
- tar xfa ../libidn/out/b-guix/libidn-*.tar.gz
- cd $(tar tfa ../libidn/out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --disable-tld --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
Ubuntu-rolling:
image: ubuntu:rolling
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- time apt-get update -qq
- time apt-get install -y -qq git make gcc valgrind gtk-doc-tools texinfo texlive texlive-plain-generic graphviz
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
- make -j$(nproc) distcheck
Ubuntu-rolling-arm64:
image: ubuntu:rolling
tags: [ saas-linux-small-arm64 ]
stage: test
needs: [B-Guix]
before_script:
- cat /etc/os-release
- time apt-get update -qq
- time apt-get install -y -qq git make gcc valgrind gtk-doc-tools texinfo
script:
- tar xfa out/b-guix/libidn-*.tar.gz
- cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
- time ./configure --enable-gcc-warnings=error
- time make -j$(nproc) check V=1 VERBOSE=t
- (! make -j$(nproc) distcheck)
- make -j$(nproc) distcheck AM_DISTCHECK_DVI_TARGET=
Windows-MSYS:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN_CI_RUN_WINDOWS_JOBS
- if: $LIBIDN_CI_MANUAL_JOBS
when: manual
tags: [ saas-windows-medium-amd64 ]
stage: test
needs: [B-Guix]
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=attributes -Wno-error=format-nonliteral -Wno-error=format-security"
script: # https://www.msys2.org/docs/ci/#other-systems
- wget.exe -nv -O msys2.exe https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe
- ./msys2.exe -y -oC:\
- Remove-Item msys2.exe
- $env:CHERE_INVOKING = 'yes'
- $env:MSYSTEM = 'MSYS' # https://www.msys2.org/docs/environments/
- C:\msys64\usr\bin\bash -lc ' '
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- |
C:\msys64\usr\bin\bash -lcx '
pacman --noconfirm -Syu make gcc
tar xfa out/b-guix/libidn-*.tar.gz
cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
./configure --enable-gcc-warnings=error --disable-doc
make -j$(nproc) V=1 -k check VERBOSE=t'
- C:\msys64\usr\bin\bash -lc 'grep ^PASS libidn-*/tests/tst_idna.log'
Windows-MINGW64:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN_CI_RUN_WINDOWS_JOBS
- if: $LIBIDN_CI_MANUAL_JOBS
when: manual
tags: [ saas-windows-medium-amd64 ]
stage: test
needs: [B-Guix]
variables:
WERROR_CFLAGS: "-Wno-error=unused-value -Wno-error=format-nonliteral -Wno-error=format-security -Wno-error=suggest-attribute=format"
script: # https://www.msys2.org/docs/ci/#other-systems
- wget.exe -nv -O msys2.exe https://github.com/msys2/msys2-installer/releases/download/nightly-x86_64/msys2-base-x86_64-latest.sfx.exe
- ./msys2.exe -y -oC:\
- Remove-Item msys2.exe
- $env:CHERE_INVOKING = 'yes'
- $env:MSYSTEM = 'MINGW64' # https://www.msys2.org/docs/environments/
- C:\msys64\usr\bin\bash -lc ' '
- C:\msys64\usr\bin\bash -lc 'pacman --noconfirm -Syuu'
- |
C:\msys64\usr\bin\bash -lcx '
pacman --noconfirm -Syu make mingw-w64-x86_64-gcc
tar xfa out/b-guix/libidn-*.tar.gz
cd $(tar tfa out/b-guix/libidn-*.tar.gz | head -n1)
./configure --enable-gcc-warnings=error --disable-doc
make -j$(nproc) V=1 -k check VERBOSE=t'
- C:\msys64\usr\bin\bash -lc 'grep ^PASS libidn-*/tests/tst_idna.log'
macOS13Xcode14:
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $LIBIDN_CI_RUN_MACOS_JOBS
- if: $LIBIDN_CI_MANUAL_JOBS
when: manual
image: macos-13-xcode-14
tags: [ saas-macos-medium-m1 ]
stage: test
needs: [B-Guix]
variables:
WERROR_CFLAGS: "-Wno-error=format-nonliteral -Wno-error=format-security"
script:
- gzip -cd out/b-guix/libidn-*.tar.gz | tar xf -
- cd $(gzip -cd out/b-guix/libidn-*.tar.gz | tar tf - | head -n1)
- mkdir b
- cd b
- ../configure --enable-gcc-warnings=error
- make -j$(nproc) syntax-check
- make -j$(nproc) V=1 check -k VERBOSE=t
.pages:
image: debian:testing-slim
stage: build
before_script:
- time apt-get update -qq
- time apt-get install -y -q make git wget autoconf automake libtool gettext autopoint cvs texinfo texlive texlive-plain-generic texlive-extra-utils help2man gtk-doc-tools dblatex valgrind gengetopt graphviz mono-mcs gperf default-jdk-headless codespell | tee pkgs.log | tail
script:
- !reference [.gnulib-fetch, script]
- time ./bootstrap --skip-po --no-git
- time ./configure --enable-gcc-warnings=error --enable-java --enable-gtk-doc --enable-gtk-doc-pdf
- time make V=1
- mkdir -p public
- rm -rf public/reference
- mv doc/reference/html public/reference
- make web-manual
- test -f doc/manual/libidn.pdf
- rm -rf public/manual
- mv -v doc/manual public/manual
artifacts:
when: on_success
paths:
- public
pages:
extends: .pages
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
pages-test:
extends: .pages
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
libidn-v1.43/.prev-version 0000664 0000000 0000000 00000000005 14767240365 0015541 0 ustar 00root root 0000000 0000000 1.42
libidn-v1.43/.tarball-version-git 0000664 0000000 0000000 00000000006 14767240365 0016770 0 ustar 00root root 0000000 0000000 v1.43
libidn-v1.43/AUTHORS 0000664 0000000 0000000 00000001720 14767240365 0014156 0 ustar 00root root 0000000 0000000 Libidn AUTHORS -- Information about the authors.
Copyright (C) 2002-2025 Simon Josefsson
See the end for copying conditions.
Simon Josefsson
Designed and implemented libidn.
Thomas Jacob
Contributed TLD support.
Oliver Hitz
Contributed Java implementation.
Stefan Larsson
Optimized Java implementation. Added Maven support.
Alexander Gnauck
Contributed C# port.
Adam Strzelecki
Contributed Windows Visual Studio project files.
Tim Ruehsen
Added fuzzing and OSS-Fuzz integration.
Fixed bugs and performance issues found by fuzzing.
Modernized GTK-Doc build.
Fixed build issues.
----------------------------------------------------------------------
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
libidn-v1.43/CONTRIBUTING.md 0000664 0000000 0000000 00000007507 14767240365 0015350 0 ustar 00root root 0000000 0000000 # Contributing to Libidn
This file contains instructions for developers and advanced users.
## Obtaining sources
Download the version controlled sources:
```
$ git clone https://git.savannah.gnu.org/git/libidn.git
$ cd libidn
```
## Dependencies
If you wish to build the project from version controlled sources,
rebuild all generated files (e.g., run autoreconf), or modify some
source code files, you will need to have additional tools installed
beyond those mentioned in [DEPENDENCIES.md](DEPENDENCIES.md). None of
the following tools are necessary if you build Libidn in the usual way
(i.e., ./configure && make).
- Make
- C compiler
- Automake
- Autoconf
- Libtool
- Gettext
- Texinfo
- Gperf
- help2man
- Gengetopt
- Tar
- Gzip
- Texlive & epsf (for PDF manual)
- GTK-DOC (for API manual)
- Git
- Perl
- Valgrind (optional)
- OpenJDK (for java port)
- Mono mcs (for C# port)
- dot (to generate doc/libidn-components.*)
- Ghostscript (to edit PDF timestamps)
The software is typically distributed with your operating system, and
the instructions for installing them differ. Here are some hints:
APT/DPKG-based distributions:
```
apt-get install make git autoconf automake libtool gettext autopoint cvs
apt-get install texinfo texlive texlive-plain-generic texlive-extra-utils
apt-get install help2man gtk-doc-tools dblatex valgrind gengetopt
apt-get install graphviz ghostscript mono-mcs gperf default-jdk-headless
```
DNF/RPM-based distributions:
```
dnf install -y make git autoconf automake libtool gettext-devel cvs
dnf install -y texinfo texinfo-tex texlive
dnf install -y help2man gtk-doc gengetopt dblatex valgrind
dnf install -y gperf java-latest-openjdk-devel
```
On macOS with Xcode and Homebrew:
```
brew install autoconf automake libtool gengetopt help2man texinfo graphviz
```
To download the version controlled sources:
```
git clone https://git.savannah.gnu.org/git/libidn.git
cd libidn
```
The next step is to import gnulib files, run autoreconf etc:
```
./bootstrap
```
If you have a local checkout of gnulib and wants to avoid download
another copy, you may want to use:
```
./bootstrap --gnulib-refdir=../gnulib
```
Then configure the project as you would normally, for example:
```
./configure --enable-java --enable-gtk-doc-pdf
```
Then build the project:
```
make
make check
```
To prepare releases you need some additional tools:
- Mingw (to produce Windows binaries)
- Wine (to self-check Windows binaries)
- Lcov (to produce coverage HTML pages)
- Zip (to pack Windows binaries)
- Clang (to produce clang analysis)
- Doxygen (to produce doxygen manual)
- pmccabe (to produce cyclomatic code complexity report)
- ncftpput (to upload source tarballs)
APT/DPKG-based distributions:
```
apt-get install mingw-w64 wine binfmt-support lcov zip
apt-get install clang doxygen pmccabe ncftp
```
See README-release on how to make a release.
Happy hacking!
----------------------------------------------------------------------
Copyright (C) 2009-2025 Simon Josefsson
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
libidn-v1.43/COPYING 0000664 0000000 0000000 00000104516 14767240365 0014150 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
libidn-v1.43/COPYING.LESSERv2 0000664 0000000 0000000 00000063642 14767240365 0015420 0 ustar 00root root 0000000 0000000 GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
Copyright (C)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
libidn-v1.43/COPYING.LESSERv3 0000664 0000000 0000000 00000016743 14767240365 0015421 0 ustar 00root root 0000000 0000000 GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
libidn-v1.43/COPYINGv2 0000664 0000000 0000000 00000043254 14767240365 0014421 0 ustar 00root root 0000000 0000000 GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
libidn-v1.43/DEPENDENCIES.md 0000664 0000000 0000000 00000005305 14767240365 0015261 0 ustar 00root root 0000000 0000000 # Libidn2 DEPENDENCIES -- Related packages
The following packages should be installed before GNU Libidn is
installed (runtime dependencies that are also build dependencies):
* libintl, part of GNU gettext
+ Not needed on systems with glibc.
But recommended on all other systems.
Needed for localization of messages.
+ Homepage:
https://www.gnu.org/software/gettext/
+ Download:
https://ftp.gnu.org/gnu/gettext/
+ Pre-built package name:
- On Debian and Debian-based systems: --,
- On Red Hat distributions: --.
- Other: https://repology.org/project/gettext/versions
+ If it is installed in a nonstandard directory, pass the option
--with-libintl-prefix=DIR to 'configure'.
The following packages should be installed when GNU Libidn is installed
(runtime dependencies, but not build dependencies):
* The Gnulib localizations.
+ Recommended.
Needed for localization of some of the programs to the user's language.
+ Documentation:
https://www.gnu.org/software/gnulib/manual/html_node/Localization.html
+ Download:
https://ftp.gnu.org/gnu/gnulib/gnulib-l10n-*
The following should be installed when GNU libidn is built, but are not
needed later, once it is installed (build dependencies, but not runtime
dependencies):
* A C runtime, compiler, linker, etc.
+ Mandatory.
Either the platform's native 'cc', or GCC.
+ GCC Homepage:
https://www.gnu.org/software/gcc/
+ Download:
https://ftp.gnu.org/gnu/gcc/
* A POSIX-like 'make' utility.
+ Mandatory.
Either the platform's native 'make' (for in-tree builds only),
or GNU Make 3.79.1 or newer.
+ GNU Make Homepage:
https://www.gnu.org/software/make/
+ Download:
https://ftp.gnu.org/gnu/make/
* A POSIX-like shell
+ Mandatory.
Either the platform's native 'sh', or Bash.
+ Homepage:
https://www.gnu.org/software/bash/
+ Download:
https://ftp.gnu.org/gnu/bash/
* Core POSIX utilities, including:
[ basename cat chgrp chmod chown cp dd echo expand expr
false hostname install kill ln ls md5sum mkdir mkfifo
mknod mv printenv pwd rm rmdir sleep sort tee test touch
true uname
+ Mandatory.
Either the platform's native utilities, or GNU coreutils.
+ Homepage:
https://www.gnu.org/software/coreutils/
+ Download:
https://ftp.gnu.org/gnu/coreutils/
* The comparison utilities 'cmp' and 'diff'.
+ Mandatory.
Either the platform's native utilities, or GNU diffutils.
+ Homepage:
https://www.gnu.org/software/diffutils/
+ Download:
https://ftp.gnu.org/gnu/diffutils/
* Grep.
+ Mandatory.
Either the platform's native grep, or GNU grep.
+ Homepage:
https://www.gnu.org/software/grep/
+ Download:
https://ftp.gnu.org/gnu/grep/
libidn-v1.43/FAQ 0000664 0000000 0000000 00000004206 14767240365 0013442 0 ustar 00root root 0000000 0000000 Libidn FAQ -- Anticipated Frequently Asked Questions.
Copyright (C) 2002-2025 Simon Josefsson
See the end for copying conditions.
Q#1: Why doesn't Libidn use a separate library for the Unicode
operations?
A#1: Separate libraries (Glib, QT, libiconv) seldom mark the
Unicode tables with the corresponding Unicode version they
implement, nor do they provide a interface where a specific
version can be requested. This violates the stringprep
specification which requires that a specific version must be
used. Also, some of these third party libraries depend on
non-portable behavior (e.g. threads).
Q#2: Why do Libidn include several stringprep profiles? They waste
space!
A#2: The stringprep profiles included are usually derived from the
generic stringprep tables, and doesn't waste more than say a few
hundred bytes (see profiles.c). The Unicode normalization tables
and the generic stringprep tables are roughly equivalent in size,
although the latter tables can surely be compressed much further.
They occupy about 100 kilobytes on typical platforms. However,
if in the future several large Stringprep profiles are added,
configure options will be added to help reduce size.
Q#3: I thought GNU was encouraging libraries to be licensed under the GPL?
A#3: The reasoning for this was for libraries that provide unique
functionality to encourage more free programs. Since there are
several IDN libraries out there, using the GPL for Libidn would
only encourage people not to use Libidn which would not help the
spread of free software.
Q#4: How do I add a new stringprep profile?
A#4: Add the profile definition to profiles.c, export the symbol and
optionally add a CPP macro in stringprep.h (and document it in
stringprep.c). If you want to add self tests, do it through
tst_stringprep.c. Mention it in NEWS.
----------------------------------------------------------------------
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
libidn-v1.43/Makefile.am 0000664 0000000 0000000 00000007603 14767240365 0015150 0 ustar 00root root 0000000 0000000 ## Process this file with automake to produce Makefile.in
# Copyright (C) 2002-2025 Simon Josefsson
#
# This file is part of GNU Libidn.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
SUBDIRS = gl lib/gl lib po src
if ENABLE_DOC
SUBDIRS += doc
endif
SUBDIRS += fuzz examples
if JAVA
SUBDIRS += java
endif
if CSHARP
SUBDIRS += csharp
endif
SUBDIRS += tests
EXTRA_DIST = cfg.mk maint.mk
EXTRA_DIST += CONTRIBUTING.md DEPENDENCIES.md
EXTRA_DIST += COPYING.LESSERv2 COPYING.LESSERv3 COPYINGv2
ACLOCAL_AMFLAGS = -I lib/m4 -I gl/m4 -I lib/gl/m4 -I m4
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-doc --enable-gtk-doc --disable-valgrind-tests
EXTRA_DIST += FAQ libc/README libc/getaddrinfo-idn.txt libc/example.c \
contrib/README contrib/idn-python/README \
contrib/idn-python/Makefile contrib/idn-python/idn.c \
contrib/idn-python/test.py contrib/web/idn.php \
contrib/java/README contrib/java/autogen.sh \
contrib/java/configure.ac contrib/java/Makefile.am \
contrib/java/ExampleIDNA.java contrib/java/IDNA.java \
contrib/java/IDNA.c contrib/doxygen/Doxyfile.in \
contrib/doxygen/Doxyfile.orig contrib/doxygen/gdoc2doxygen
# Visual Studio project files.
EXTRA_DIST += windows/libidn.sln windows/libidn.vcproj \
windows/include/unistd.h windows/include/idn-int.h \
windows/include/stdbool.h windows/include/ac-stdint.h \
windows/include/config.h windows/libidn4win.mk
# version-stamp
EXTRA_DIST += $(top_srcdir)/.version
BUILT_SOURCES = $(top_srcdir)/.version
# git-version-gen
dist-hook: dist-tarball-version
.PHONY: dist-tarball-version
dist-tarball-version:
echo '$(VERSION)' > $(distdir)/.tarball-version
dist-hook: po-CreationDate-to-mtime-NEWS
.PHONY: po-CreationDate-to-mtime-NEWS
po-CreationDate-to-mtime-NEWS: mtime-NEWS-to-git-HEAD
$(AM_V_GEN)for p in $(distdir)/po/*.po $(distdir)/po/$(PACKAGE).pot; do \
if test -f "$$p"; then \
$(SED) -e 's,POT-Creation-Date: .*\\n",POT-Creation-Date: '"$$(env LC_ALL=C TZ=UTC0 stat --format=%y $(srcdir)/NEWS | cut -c1-16,31-)"'\\n",' < $$p > $$p.tmp && \
if cmp $$p $$p.tmp > /dev/null; then \
rm -f $$p.tmp; \
else \
mv $$p.tmp $$p; \
fi \
fi \
done
dist-hook: srcdist
.PHONY: srcdist
srcdist:
$(AM_V_GEN)if test -e $(srcdir)/.git \
&& command -v git > /dev/null; then \
cd $(srcdir) && \
git archive --prefix=$(PACKAGE)-v$(VERSION)/ \
-o $(abs_builddir)/$(PACKAGE)-v$(VERSION)-src.tar.gz HEAD; \
fi
dist-hook: mtime-NEWS-to-git-HEAD
.PHONY: mtime-NEWS-to-git-HEAD
mtime-NEWS-to-git-HEAD:
$(AM_V_GEN)if test -e $(srcdir)/.git \
&& command -v git > /dev/null; then \
touch -m -t "$$(git log -1 --format=%cd --date=format-local:%Y%m%d%H%M.%S)" $(srcdir)/NEWS; \
fi
dist-hook: texi-stamps-to-mtime-NEWS
.PHONY: texi-stamps-to-mtime-NEWS
texi-stamps-to-mtime-NEWS: mtime-NEWS-to-git-HEAD
$(AM_V_GEN)touch -m -r $(srcdir)/NEWS $(srcdir)/doc/$(PACKAGE).texi
dist-hook: gen-ChangeLog
.PHONY: gen-ChangeLog
gen-ChangeLog:
$(AM_V_GEN)if test -e $(srcdir)/.git; then \
LC_ALL=en_US.UTF-8 TZ=UTC0 \
$(top_srcdir)/build-aux/gitlog-to-changelog \
--srcdir=$(srcdir) -- \
v$(PREV_VERSION)~.. > $(distdir)/cl-t && \
{ printf '\n\nSee the source repo for older entries\n' \
>> $(distdir)/cl-t && \
rm -f $(distdir)/ChangeLog && \
mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
fi
libidn-v1.43/NEWS 0000664 0000000 0000000 00000175620 14767240365 0013620 0 ustar 00root root 0000000 0000000 Libidn NEWS -- History of user-visible changes. -*- outline -*-
* Noteworthy changes in release 1.43 (2025-03-21) [stable]
** The release tarball is now reproducible.
Builds on the following pairs of systems are tested continuously in
GitLab CI/CD to assert that the tarball is identical: Trisquel 11
against Ubuntu 22.04, PureOS 10 against Debian 11, Devuan 5 against
Debian 12, AlmaLinux 8 against RockyLinux 8, and AlmaLinux 9 against
RockyLinux 9. There are still minor variations between non-similar
platforms, depending on the different versions of the bootstrapping
tools used. For example, a tarball generated on a Trisquel 11
(derived from Ubuntu 22.04) system should be identical to a tarball
from a Ubuntu 22.04 system, but will not be identical to a tarball
generated on a PureOS 10 system which uses different bootstrapping
tool versions. The release archive itself was prepared using Guix.
** We publish a minimal source-only tarball generated by 'git archive'.
This tarball only contains the files stored in version controlled
sources, and no auxiliary files. The source-only tarball may be
reproduced with Git 2.48.1 from Guix. If something results in the
'git archive' format changing again, the tarball can only be
reproduced using an earlier system. The git version in AlmaLinux 8,
AlmaLinux 9, RockyLinux 8, RockyLinux 9, Devuan 5, Debian 12 and
Ubuntu 24.04 all produce the same identical 'git archive' tarball.
The git version used on Debian 11, PureOS 10, Trisquel 11 and Ubuntu
22.04 produce another identical tarball. These two 'git archive'
outputs are not the same, due to how Git works.
** A use of uninitialized value bug was fixed in idna_to_unicode_4z4z.
If the call to idna_to_unicode_44i failed due to an out of memory
condition (malloc() returning NULL) then the code would copy the
content of allocated but uninitialized memory into the output buffer.
The bug was found using GCC's static analyzer.
** The C# Libidn.dll can now be built with .NET as well as Mono/SSCLI.
** Fix self-check tst-version due to broken strverscmp on Windows/musl.
** The release tarball uses tar --format=ustar.
** The idn tool now binds the "gnulib" domain for translations.
** Unicode tables are now rebuilt from source again.
The lib/gen-unicode-tables.pl script stopped working with Perl 5.10
and in 2008 we added the then-generated source code files to git. Now
we fixed the script to work with modern perl, so that gunibreak.h
gunicomp.h gunidecomp.h can now be generated from source again.
** Update gnulib files and build fixes.
* Noteworthy changes in release 1.42 (2024-01-13) [stable]
** Bump required gettext version to 0.19.8 for musl-libc.
** Compiler warning improvements.
As before, compiler warnings are enabled by default. You may disable
them using ./configure --disable-gcc-warnings or turn them into fatal
errors using ./configure --enable-gcc-warnings=error to add -Werror
and sensible -Wno-error='s. Based on gnulib's manywarnings, see
.
** Fix type confusion on LLP64/Windows platforms.
While libidn has worked using cygwin libc, it has never worked on
ucrt/msvcrt libc. Report and tiny patch by Francesco Pretto in
.
** tests: Added script tests/standalone.sh suitable for integrators.
The main purpose is to test a system-installed libidn, suitable for
distributor checking (a'la Debian's autopkgtest/debci). It may also
be used to test a newly built libidn outside the usual 'make check'
infrastructure. To check that your system libidn is working, invoke
the script with `srcdir` as an environment variable indicating where
it can be find the source code for libidn's tests/ directory (it will
use the directory name where the script is by default):
tests/standalone.sh
To check that a newly built static libidn behaves, invoke:
env STANDALONE_CFLAGS="-Ilib lib/.libs/libidn.a" tests/standalone.sh
To check that a newly built shared libidn behaves, invoke:
env srcdir=tests STANDALONE_CFLAGS="-Ilib -Wl,-rpath lib/.libs lib/.libs/libidn.so" tests/standalone.sh
If the libidn under testing is too old and has known bugs, that should
cause tests to fail, which is intentional.
** Updated translations.
** Update gnulib files and build fixes.
* Noteworthy changes in release 1.41 (2022-06-25) [stable]
** Bump LT_REVISION for new release.
It was mistakenly left at the same value since 1.38.
** Add version number related self-checks.
* Noteworthy changes in release 1.40 (2022-06-20) [stable]
** lib: Bump STRINGPREP_VERSION to 1.40.
It was mistakenly left at 1.38 in the 1.39 release.
* Noteworthy changes in release 1.39 (2022-06-20) [stable]
** lib: Code detecting current locale broken since 1.36.
The code always returned ASCII. The precise cause is complicated to
track down but likely boils down to the new autotools/gettext
bootstrapping sequence introduced in release 1.36. Reported by Богдан
Пилипенко .
** maint: Java JAR archive no longer included in source tarball.
** Minor fixes: typos, makefiles, indentation, gnulib update, etc.
* Noteworthy changes in release 1.38 (2021-07-22) [stable]
** doc: Simplify building of gdoc-generated man/texi outputs.
Now the targets are rebuilt on version number changes properly.
** doc: Improve GTK-DOC manual.
** build: Fix build errors related to doc/idn--help.texi.
** build: Fix --disable-tld builds.
Now tld_strerror() is removed when --disable-tld is used.
* Noteworthy changes in release 1.37 (2021-05-15) [stable]
** doc: Minor fixes and codespell typos.
** Updated translations.
** Update gnulib files and build fixes.
We now use gnulib's ./bootstrap and gnulib's readme-release
infrastructure for making releases.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.36 (2020-07-22) [stable]
** Fix unlikely memory leak in idna_to_unicode_4z4z().
Patch from Miroslav Lichvar .
** Check codepoint validity in punycode_decode() and punycode_decode().
Reported-by: Mike Schiffman (Farsight Security, Inc.).
** tld: Add U+00EF to .nl TLD table.
Reported by Trond Haugen .
** Indent code.
** Translation fixes.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.35 (2018-05-11) [stable]
** Reflect ABI/API breakage in version 1.34
(Stringprep_profile has a new struct member)
Reported-by: Miroslav Lichvar
** Added new gnulib files to repository
** Fix build issues introduced in 1.34
* Noteworthy changes in release 1.34 (2018-03-31) [beta]
** libidn: Fix integer overflow in combine_hangul()
Found by fuzzing.
** libidn: Fix integer overflow in punycode decoder
Found by fuzzing, fix for the fix reported by Christian Weisgerber
** libidn: Fix performance issue in idna_to_unicode_internal()
Found by fuzzing.
** libidn: Fix performance issue in stringprep functions.
Found by fuzzing.
** libidn: Fix NULL pointer dereference in g_utf8_normalize()
Found by fuzzing.
** libidn: Fix NULL pointer dereference in stringprep_ucs4_nfkc_normalize()
Found by fuzzing.
** libidn: Increase performance of stringprep functions
Found by fuzzing.
** testing: Add OSS-fuzz integration and regression testing
** build: Update gnulib files
** build: Modernize GTK-Doc build
** build: Fix parallel builds
** build: Add configure flag --disable-doc
** build: Add configure flag --enable-ubsan (enable UB Sanitizer)
** build: Add configure flag --enable-asan (enable Address Sanitizer)
** build: Fix compiler warnings
** build: Fix build for gcc-7
** i18n: Added Swedish translation.
Thanks to Josef Andersson.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.33 (2016-07-20) [beta]
** libidn: Fix out-of-bounds stack read in idna_to_ascii_4i.
See tests/tst_toascii64oob.c for regression check (and the comment in
it how to use it). Reported by Hanno Böck .
** idn: Solve out-of-bounds-read when reading one zero byte as input.
Also replaced fgets with getline. Reported by Hanno Böck .
** libidn: stringprep_utf8_nfkc_normalize reject invalid UTF-8.
It was always documented to only accept UTF-8 data, but now it doesn't
crash when presented with such data. Reported by Hanno Böck.
** Dropped valgrind suppressions file, should no longer be needed.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.32 (2015-08-01) [beta]
** libidn: Fix crash in idna_to_unicode_8z8z and idna_to_unicode_8zlz.
This problem was introduced in 1.31. Reported by Adam Sampson.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.31 (2015-07-08) [beta]
** libidn: stringprep_utf8_to_ucs4 now rejects invalid UTF-8. CVE-2015-2059
This function has always been documented to not validate that the
input UTF-8 string is actually valid UTF-8. Like the rest of the API,
when you call a function that works on UTF-8 data, you have to pass it
valid UTF-8 data. Application writers appear to have difficulties
using interfaces designed like that, as bugs triggered by invalid
UTF-8 has been identified in a number of projects (jabberd2, gnutls,
wget, and curl). While we could introduce a new API to perform UTF-8
validation, so that applications can easily implement the proper
checks, this appear error prone because there is a risk that the check
will be forgotten. Instead, we took the more radical approach of
modifying the documentation and the implementation of the API. The
intention is that all functions that accepts UTF-8 data should
validate it before use. This will solve the problem for applications,
without needing to change them. This change has the unfortunate
side-effect that Surrogate codes (see section 5.5 of RFC 3454) no
longer trigger the STRINGPREP_CONTAINS_PROHIBITED error code but
instead will trigger the newly introduced STRINGPREP_ICONV_ERROR error
code, as the gnulib/libunistring-based code that we use to test
UTF-8-compliance rejects Surrogate codes. We hope that this is an
acceptable cost to live with in order to improve application security.
We welcome feedback on this solution, and we are marking this release
as beta rather than stable to signal that we may reconsider this
approach if people disagree. Reported by several people including
Thijs Alkemade, Gustavo Grieco, Daniel Stenberg, and Nikos
Mavrogiannopoulos.
** libidn: Added STRINGPREP_ICONV_ERROR error code.
** libidn: Workaround valgrind/gcc/glibc issue.
Valgrind reported a 'Invalid read of size 4' that was caused by
optimized strlen implementation. Reported and patch by Alessandro
Ghedini .
** build: Use LOG_COMPILER instead of TESTS_ENVIRONMENT to fix valgrind use.
Errors caught by valgrind did not always trigger 'make check' failures
before.
** i18n: Updated Danish translation.
Thanks to Joe Hansen.
** API and ABI is backwards compatible with the previous version.
See discussion above on slight change in semantics of functions.
* Noteworthy changes in release 1.30 (2015-03-02) [stable]
** libidn: The punycode.{c,h} files were re-imported from RFC 3492bis.
A comment explaining the origin and what was changed was added.
** Bump gettext to 0.19.3.
** Use LT_INIT instead of AC_LIBTOOL_WIN32_DLL.
** i18n: Added Hungarian translation. Updated some other languages.
Thanks to Balázs Úr.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.29 (2014-08-10) [stable]
** libidn: Mark internal variable "g_utf8_skip" as static.
Reported by Thomas Dineen .
** idn: Flush stdout to simplify for tools that buffer too heavily.
Tiny patch from Hugh Daschbach .
** i18n: Added Brazilian Portuguese translation.
Thanks to Rafael Ferreira.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.28 (2013-07-10) [stable]
** idn: Don't crash when string conversion from UTF-8 to locale fails.
Reported by Jeffrey Frey .
** java: Fix build failures.
** java: TestIDNA -a and -u logic was reversed, now fixed.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.27 (2013-06-05) [stable]
** Java library can be built using Maven. Speed improvements.
Thanks to several patches from Stefan Larsson. Testing indicate 70-90
times faster node/name/resource-prep.
** Update gnulib files and translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.26 (2012-12-11) [stable]
** libidn, idna_to_ascii: Propagate error on malloc failure.
Reported by Sarat Chandra Addepalli .
** libidn, tld_get_4: Fix out of bounds read access violation.
** i18n: Added Croatian translation. Updated Vietnamese translation.
Thanks to Tomislav Krznar and Trần Ngọc Quân.
** java: Permit usage by Apache projects.
Thanks to Oliver Hitz and Angus Turner.
** tests: Improve tld self-tests.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.25 (2012-05-23) [stable]
** MSVC: Build fixes related to _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
Reported by Bartosz Brachaczek .
** examples: Fix compiler warning about ignoring return value from fgets.
** tests: Ship with a valgrind suppressions file for the strlen issue.
See tests/libidn.supp and bottom of HACKING for discussion.
** Update gnulib files and translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.24 (2012-01-10) [stable]
** Libraries are re-licensed from LGPLv2+ to dual-GPLv2+|LGPLv3+.
** build: Fix parallel Windows builds.
Reported by René Berber .
** libidn: Fix potential infloop in pr29 code.
Reported by Jon Nelson in
.
** libidn: Add 'const' keyword to 'stringprep_ucs4_nfkc_normalize' function.
** Sync glib NFKC code and improve copyright/license statements.
** Update gnulib files and translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.23 (2011-11-25) [stable]
** stringprep.h: Now #include's sys/types.h instead of unistd.h for ssize_t.
Some systems (e.g., Mingw with MSVC 9) does not have unistd.h.
** idn-free.h: Protect prototypes with 'extern "C"' marker.
Reported by Bittner Ede .
** doc: Update link to experimental TLD tables.
The new link is .
** Update gnulib files and translations.
** QA: Improved cyclo output. Update GTK-DOC files. Various bugfixes.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.22 (2011-05-04) [stable]
** libidn: Add -liconv as static library requirement in libidn.pc, for MinGW.
Reported by Volker Grabsch .
** libidn: Fix memory leak in idna_to_ascii_4z when idna_to_ascii_4i fails.
Reported by and tiny patch from Olga Limburg .
** libidn: Ran clang-analyze on the code.
Fixed some dead assignments/initializations.
** build: Really distribute win32/libidn4win.mk.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.21 (2011-04-24) [stable]
** build/gettext: Demand gettext >= 0.18.1 in order to get newer M4 files.
The old M4 files associated with 0.17 caused problems on Solaris,
hopefully now fixed. Reported by Dagobert Michelsen
in .
** build: Improve MinGW cross-compile makefile, see win32/libidn4win.mk.
** build: Visual Studio files fixed to define LIBIDN_BUILDING.
Tiny patch from Waqas Hussain .
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.20 (2011-03-01) [stable]
** libidn: Fix bug in ToUnicode to compare 'xn--' case-insensitively.
The problem is typically noticed when an upper ACE case string is
converted to Unicode. Before, this would return the input rather than
converting the ACE form to Unicode. Reported by Stepan Golosunov
in .
** tests: Added self-test tst_idna3 to catch any regression of problem above.
** idn: Only print copyright and license blurb when used interactively.
Reported by "Andrew O. Shadoura" and Roman Mamedov
in and
respectively.
** Update gnulib files and translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.19 (2010-05-22) [stable]
** doc: Typo fixes. Added PDF version of API reference manual.
See doc/reference/libidn.pdf.
** build: Update gnulib files.
** build: Use valgrind -q to reduce verbosity.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.18 (2010-02-15) [stable]
** libidn: Put forgotten symbols under old namespace.
Reverts one unnecessary change introduced in 1.17. Suggested by Marco
d'Itri .
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.17 (2010-02-05) [alpha]
** libidn: Fix symbol export problem for a few variables.
Applications (that use these rarely used variables) built against
versions before 1.13 did not work with libidn versions 1.13 to 1.16.
Symbol versioning was introduced in version 1.13 but by accident some
symbols that were visible before that release were not exported, and
the consequence was that those symbols were not available in version
1.13 to 1.16. This release fixes the problem, so the symbols are
visible again, making this release backwards compatible with all
earlier releases.
The affected symbols are the following variables:
stringprep_iscsi_prohibit, stringprep_rfc3454_A_1,
stringprep_rfc3454_B_1, stringprep_rfc3454_B_2,
stringprep_rfc3454_B_3, stringprep_rfc3454_C_1_1,
stringprep_rfc3454_C_1_2, stringprep_rfc3454_C_2_1,
stringprep_rfc3454_C_2_2, stringprep_rfc3454_C_3,
stringprep_rfc3454_C_4, stringprep_rfc3454_C_5,
stringprep_rfc3454_C_6, stringprep_rfc3454_C_7,
stringprep_rfc3454_C_8, stringprep_rfc3454_C_9,
stringprep_rfc3454_D_1, stringprep_rfc3454_D_2,
stringprep_saslprep_space_map.
Thanks to Marco d'Itri for reporting
that led to
discovering this problem.
** Really fix the link error of self-tests on MinGW.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.16 (2010-01-12) [alpha]
** java: Add a Maven pom.xml project file.
Contributed by Guus der Kinderen .
** Fix a link error on MinGW.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.15 (2009-06-08) [alpha]
** libidn: Use c_strcasecmp instead of strcasecmp.
For portability to NetWare CLIB. The specification requires a ASCII
comparison, so it is also more appropriate to use c_strcasecmp.
Reported by Guenter Knauf .
** java: Fix some Java compiler warnings.
** doc: Improved sections for the info manual.
We now follow the advice given by the texinfo manual on which
directory categories to use. In particular, libidn moved from the
'GNU Libraries' section to the 'Software libraries' and 'Invoking idn'
moved from 'GNU utilities' to 'Localization'.
** New configure parameters to set packaging specific information.
The parameters are --with-packager, --with-packager-version, and
--with-packager-bug-reports. See
for more
details.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.14 (2009-04-03) [alpha]
** libidn: Install a libidn-*.def file when building under MinGW.
The file is useful if you develop programs in Visual Studio that links
to libidn.
** tests/tst_toutf8: Don't crash if stringprep_utf8_to_locale returns NULL.
Reported by Dagobert Michelsen in
.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.13 (2009-03-06) [alpha]
** libidn: Use a LD version script on platforms where it is supported.
Currently only GNU LD and the Solaris linker supports it. This helps
Debian package tools to produce better dependencies. Before we used
Libtool -export-symbols-regex that created an anonymous version tag.
Libidn uses -export-symbols-regex if the system does not support LD
version scripts, but that only affect symbol visibility.
** libidn: Compiled with -fvisibility=hidden by default if supported.
Currently only GCC supports it for ELF targets. This hides internal
symbols and has other advantages, see
.
** libidn: Compiled with warning flags only when GCC is used.
This avoids the problem that some flags confuse non-GCC compilers, for
example -fdiagnostics-show-option. Reported by
jens.rehsack@bayerbbs.com.
** doc: The idn_free function is now documented.
Suggested by "Sisyphus" .
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.12 (2009-01-23) [alpha]
** idn: New parameter --no-tld to deprecate the old parameter --tld.
The new parameter --no-tld disable TLD checking of the input string.
The --tld parameter was broken; it behaved opposite to its documented
behaviour. To avoid confusion over what --tld means, we decided to
deprecate it. Now --tld is not printed in the idn --help output, but
will continue to work as before.
** doc: Modernize doxygen configuration.
** doc: Change license on the manual to GFDLv1.3+.
** doc: Improve JavaDoc output.
** Update gnulib files and translations.
** Build with more warnings.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.11 (2008-10-28) [alpha]
** libidn: New WARN_CFLAGS configure variable.
It is used internally to add -Werror and other warnings flags, to
catch coding mistakes before releases.
** Win32: Perl is no longer required to build Libidn in Visual Studio.
** Win32: Functions in idna.h are also exported.
Reported by Adam Strzelecki .
** doc: Included cyclomatic code complexity charts of the library code.
See doc/cyclo/.
** tests: Add more self-tests to get more self-test code coverage.
** tests: New 'make coverage' command to generate code coverage reports.
The output is created in doc/coverage/. Requires the LCOV tools. See
https://www.gnu.org/software/libidn/coverage/ for a pre-generated copy.
** Clarify copyright and license for gdoc, man pages, and C# port.
** Update gnulib files and translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.10 (2008-08-27) [alpha]
** idn: accept -n as short form for --nfkc.
Before '-k' was used as the short form, but all documentation has said
'-n'. We now accept both short forms, and -n remains the documented
short form. Reported by John McGowan in
.
** Fix compiler warnings.
** Update gnulib files.
** Update translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.9 (2008-07-01) [alpha]
** idn: fix error message when NFKC fails, and some other translation fixes.
Reported by Benno Schulenberg .
** C# Libidn.dll: Work around bug that cause a failure during C# compilation.
See .
** Remove more non-free text from doc/specifications/rfc3454.txt.
The remaining data tables are not copyrightable.
** Update gnulib files, and include gnulib self-tests.
** Update translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.8 (2008-04-23) [alpha]
** Translations files not stored directly in git to avoid merge conflicts.
This allows us to avoid use of --no-location which makes the
translation teams happier.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.7 (2008-04-10) [alpha]
** idn: new parameter --nfkc to process string with Unicode v3.2 NFKC.
** Minor build fix for native Win32 builds.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.6 (2008-03-19) [alpha]
** Add native Windows Visual Studio project files.
Contributed by Adam Strzelecki .
** Remove non-free portions of RFC 3454 in doc/specifications/rfc3454.txt.
** Update gnulib files.
** Doc fixes in IDNA to clarify that some functions operate on
** just one domain labels and some operate on domain name (which
** can contain several domain labels).
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.5 (2008-02-19) [alpha]
** Don't include wchar.h in idn-int.h.
Fixes problems on uClibc systems which lack a wchar.h. Reported by
Mike Frysinger , see
.
** Added appendix 'On Label Separators' to the manual.
Thanks to Erik van der Poel for bringing the issue
to our attention and for discussing the matter. See
.
** Improved rendering of non-ASCII in the info manual.
Done by adding a @documentencoding UTF-8. This affect how the
examples are encoded, the files examples/*.c are now encoded using
UTF-8 instead of a mix of ISO-8859-1 and ISO-8859-15.
** Fix non-portable use of brace expansion in makefiles.
** Update translations.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.4 (2008-01-09) [alpha]
** Fixes to make the C# port compile under Mono.
** Update gnulib files.
** Improve idn --version and --help output to conform to GNU standards.
This also enables translations of --help output.
** Update translations.
Added Finish translation, thanks to Jorma Karvonen. Updated Dutch and
Vietnamese.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.3 (2007-12-11) [alpha]
** Some hints on Windows installation in the manual.
** Update translations.
Added Czech translation, thanks to Petr Pisar.
** Use gettext 0.17.
** Update gnulib files.
Top-level gnulib files are now distributed under GPLv3+. (The gnulib
files used by the core library are still under LGPLv2.1+.)
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.2 (2007-10-01) [alpha]
** Development git tree moved to savannah.
See .
** Update gnulib files.
Including mono detection fixes.
** Update translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.1 (2007-09-01) [alpha]
** Fix compilation error in idn-int.h.
The error would typically be 'error: no include path in which to
search for stdint.h'. Reported by Remko van der Vossen
, see
and
.
** Declare external variables with __declspec(import) for Windows.
Apparently this is required for variables in DLL's on Windows. This
is enabled if __DECLSPEC_SUPPORTED is defined (MinGW), or if _MSC_VER
and_DLL is defined (MSVC).
** Update gnulib files.
** Update translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 1.0 (2007-07-31) [alpha]
** Command-line tools, examples, etc are now licensed under GPL version 3.
The library is still licensed under LGPL v2.1 for compatibility
reasons (it is included in glibc).
** Updated documentation as per license change.
** Update gnulib files.
** Update translations.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.14 (2007-05-31) [alpha]
** Libidn is now developed using Git instead of CVS.
A public git mirror is available from
. If you have pulled from this
repository before this release, you need to erase your clone because
it has been re-generated from scratch.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.13 (2007-05-31) [alpha]
** Documentation fixes.
Clarify that the C# and Java libraries are licensed under the LGPL.
Earlier, some places incorrectly said that these were licensed under
the GPL. If you encounter other places that still suggest that GPL
applies to the C# and Java library, please let me know.
** Updated Polish and Vietnamese translations.
Thanks to Jakub Bogusz and Clytie Siddall
.
** Install images for the manual in $infodir.
This fixes the broken image in the info manual. Image files will be
called libidn-*.png to avoid namespace collisions with images from
other info manuals.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.12 (2007-04-25) [alpha]
** Use AM_JAVACFLAGS instead of JAVACFLAGS in java/misc/Makefile.am.
Reported by Petteri Räty .
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.11 (2007-03-13) [alpha]
** Update of the C# Libidn port, by Alexander Gnauck.
The code has been refactored and the namespace has been modified to
comply with .NET naming conventions. An IDNA bug was fixed.
** Update gnulib files.
We now use the "striconv" module instead of the "iconvme", which
causes a slight increase of code size (from 303kb to 319kb with
debugging symbols on i386). The reason is the use of a new locale
independent strcasecmp, which may cause faster operation in some
locales where, e.g., "ASCII" and "ascii" are not treated as the same.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.10 (2007-01-04) [alpha]
** Corrected year in copyright notices.
** Update gnulib files.
Including the code to convert strings between different encodings
(noted in case this introduces problems).
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.9 (2006-11-30) [alpha]
** The Java code is fixed to properly translate any non-ASCII dot into '.'.
Reported and fixed by "Stephane Mikaty" .
** Update gnulib files.
** Bump tool versions to autoconf 2.61, automake 1.10, and gettext 0.16.
** Old versions of iconv.m4, codeset.m4 and lib-link.m4 removed from m4/.
Modern versions are part of gnulib.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.8 (2006-10-18) [alpha]
** The gnulib directory is separated into two directories.
One gnulib directory (lib/gl/) for the LGPL library in lib/, and one
gnulib directory (gl/) for the GPL tools in src/. This allows the
GPL'd tools to use more gnulib modules than before, since earlier all
gnulib files had to be LGPL.
** Update gnulib files.
** Some minor cleanups, like assuming locale.h and setlocale().
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.7 (2006-09-13) [alpha]
** Fix build failure of idn-int.h on C99 platforms.
Reported by Paul Howarth .
** The manual includes the GPL license, for the command-line tools.
** The function, variable and concept index is moved to the end of the manual.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.6 (2006-08-23) [alpha]
** Instead of AX_CREATE_STDINT_H, use the stdint gnulib module, for idn-int.h.
This solves building on some HPPA systems. Note that the generated
idn-int.h is specific to the build environment that libidn was built
under, and is not generally usable by any other compiler (if any) on
the host. This was true before too.
** Update gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.5 (2006-06-07) [alpha]
** Link the library with external libintl, for gettext.
This fixes building on FreeBSD, reported by Kirill Ponomarew
.
** Update doxygen config file to version 1.4.7.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.4 (2006-06-07) [alpha]
** Fix translation of error messages.
Thanks to Joe Orton .
** Fix warnings on 64-bit platforms.
Thanks to Joe Orton .
** The tests are run under valgrind, if it is installed.
Use --disable-valgrind-tests to unconditionally disable this. It is
disabled by default for cross compiles.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.3 (2006-03-08) [alpha]
** Fixes for the build environment.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.2 (2006-02-07) [alpha]
** Fix objdir != srcdir builds for the Java documentation.
Thanks to Bernard Leak .
** Update of gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.1 (2006-01-20) [alpha]
** Make it possible to cross-compile to mingw32.
You can build Libidn for Windows by invoking `./configure
--host=i586-mingw32msvc' (or similar).
** Minor changes in how the C# code is built.
** Update of gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.6.0 (2005-12-03) [alpha]
** A C# port of Libidn has been contributed by Alexander Gnauck.
The port resides in the csharp/ directory. Configure will build it if
a working C# compiler can be found. Mono's "mcs" compiler is known to
work (available in Debian in the "mono-mcs" package), but PNET's
"cscc" compiler should also work (available in Debian in the "pnet"
package). The port is licensed under the GPL. Some Microsoft Visual
Studio project files are also present in the csharp/ directory, which
may be useful when building the port under Windows. The C# API is
currently not documented, improvements are gratefully accepted.
** Support shared libraries on Cygwin and Mingw32, thanks to Yaakov S.
** Fix memory leak.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.20 (2005-10-23) [alpha]
** The header file pr29.h is now installed by 'make install'.
** Translation updates.
** Update of gnulib files.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.19 (2005-09-19) [alpha]
** The test for setlocale and nl_langinfo has now been separated.
The autoconf script now test for locale.h, setlocale and
nl_langinfo(CODESET) independently.
** Gnulib updates, fixes for getopt.
** Java manuals in doc/java/ are now generated by Gjdoc from GNU Classpath.
** Kaffe is used to link the pre-built libidn-*.jar file.
** Translation updates.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.18 (2005-07-16) [alpha]
** The macro AX_CREATE_STDINT_H that is used to create idn-int.h
** has been updated.
** Fix use of 'head -1' in configure script (should be 'head -n -1'),
** thanks to Carsten Lohrke.
** Announce the help-libidn mailing list in documentation and README.
** Translation updates.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.17 (2005-05-26) [alpha]
** The gnulib portability files were updated.
** The license template in files were updated with the new address.
** Translation updated.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.16 (2005-05-06) [alpha]
** Mark static PR29 data tables as 'const', thanks to Joe Orton.
** Kinyarwanda translations added, thanks to Steve Murphy.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.15 (2005-03-19) [alpha]
** Improvements to code to convert data between character sets.
The license template was changed to the LGPL, from the GPL template
that was mistakenly used in the previous two releases. Document here
that cleaning up this code has solved memory allocation and arithmetic
overflow problems.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.14 (2005-03-19) [alpha]
** Building for srcdir != objdir from CVS now work, thanks to Linus Nordberg.
** Simplified Chinese translations added, thanks to Meng Jie.
** Vietnamese translation added, thanks to Clytie Siddall.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.13 (2005-01-29) [alpha]
** The code to convert data between character encodings have been cleaned up.
The stringprep_convert function has been added to gnulib, under the
name iconv_string, and is now used by libidn. This should not have
any user-visible consequences, though.
** It is now possible to bootstrap with unmodified Automake installations.
** Italian translation added, thanks to Marco Colombo.
** Swedish translation updated.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.12 (2004-12-04) [alpha]
** Java code now support the XMPP NodePrep and ResourcePrep profiles.
** Bug fixes and improvements to Java code.
The allowUnassigned flag is now respected properly. The prohibited
code points check now works. Arguments are now checked. Convenience
method with allowUnassigned set to false was added.
** Update getopt from gnulib.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.11 (2004-11-21) [alpha]
** Fix formatting of man pages, based on warnings from Doclifter.
** Update of gnulib files to fix potential getopt problem on ELF systems.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.10 (2004-11-08) [alpha]
** Libtool's -export-symbols-regex is now used to only export official APIs.
Before, applications might accidentally access internal functions.
Note that this is not supported on all platforms, so you must still
make sure you are not using undocumented symbols in Libidn.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.9 (2004-11-07) [alpha]
** Align GTK-DOC build infrastructure with GTK-DOC official recommendations.
This mean that you can now browse the Libidn API manual using Devhelp.
** Update of gnulib files to fix potential problem in getopt on BSD.
** Documentation improvements.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.8 (2004-10-12) [alpha]
** BidiMirroring-3.2.0.txt is now included, not only the generated source code.
This allow builds to succeed after 'make realclean'.
** Generated files now have consistent 'DO NOT EDIT!' comments.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.7 (2004-10-12) [alpha]
** Shared library version incremented, because new APIs were added.
This was forgotten in the last release.
** French translation updated.
** Minor bug fixes.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.6 (2004-10-02) [alpha]
** Added functions to convert return codes to human readable text.
** Now using GNULib in command line front end (src/) for portability code.
See for more information on
GNULib. This should make the code easier to read and maintain.
** API and ABI is backwards compatible with the previous version.
idna_strerror: ADD.
pr29_strerror: ADD.
punycode_strerror: ADD.
stringprep_strerror: ADD.
tld_strerror: ADD.
TLD_NO_TLD: ADD. Replaces TLD_NOTLD.
TLD_NOTLD: DEPRECATED. Use TLD_NO_TLD instead.
* Noteworthy changes in release 0.5.5 (2004-09-13) [alpha]
** Hide accidentally exported variable g_utf8_skip, by marking it as static.
** Various fixes.
** API and ABI is backwards compatible with the previous version.
g_utf8_skip: REMOVED. (But never meant to be used.)
* Noteworthy changes in release 0.5.4 (2004-08-08) [alpha]
** Translation updates.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.3 (2004-08-05) [alpha]
** Fix crash in `idn --tld' command line tool.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.2 (2004-07-14) [alpha]
** Java "make install" rules are now DESTDIR compatible.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.1 (2004-07-09) [alpha]
** Cross compile builds should work.
It should work for any sane cross compile target, but the only tested
platform is uClibc/uClinux on Motorola Coldfire.
** The example programs now correctly invoke `setlocale (LC_ALL, "")'.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.5.0 (2004-06-26) [alpha]
** Functions to detect "normalization problem sequences" as per PR-29 added.
See the new chapter "PR29 Functions" in the manual
(doc/libidn.{ps,pdf,html}) for more information and the background
story. An external link that discuss the problem is
.
** More translations.
Added Esperanto (by Edmund GRIMLEY EVANS).
** API and ABI is backwards compatible with the previous version.
pr29.h: ADD. Prototypes for PR29 types and functions.
pr29_4, pr29_4z, pr29_8z: ADD. New API entry points for PR29 functions.
Pr29_rc: ADD. New error code enum type for PR29 functions.
* Noteworthy changes in release 0.4.9 (2004-06-11) [alpha]
** The Java library (java/libidn-*.jar) is included in the distribution.
** JavaDoc manuals (doc/javadoc/) are included.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.4.8 (2004-06-01) [alpha]
** The Java source code is actually included in the distribution.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.4.7 (2004-05-31) [alpha]
** The Java port should now be functional, contributed by Oliver Hitz.
See the new section "Java API" in the manual for more information.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.4.6 (2004-05-24) [alpha]
** The header file idn-free.h is actually installed by 'make install'.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.4.5 (2004-05-21) [alpha]
** In IDNA ToUnicode, a `free' on a stale pointer fixed by Ulrich Drepper.
** Several memory leaks fixed by Ulrich Drepper.
** Added more SASLPrep and NFKC test vectors.
** Automake 1.8.4 is used.
** API and ABI is backwards compatible with the previous version.
idn_free: ADD. Wrapper around system `free'.
idn-free.h: ADD. Prototype for `idn_free'.
See idn-free.h for discussion. The interface is
currently not documented. Comments and feedback is
appreciated.
* Noteworthy changes in release 0.4.4 (2004-04-29) [alpha]
** Fixed two bugs in iSCSI definition, syncing with newly published RFC 3722.
The first bug was an omission of prohibiting the characters in C.1.1,
C.1.2 and C.7 (space characters and characters that are inappropriate
for canonical representation). The second was a bug in the definition
of the table, causing the entire table to be skipped, of the special
prohibited output character table defined in RFC 3722 (see section 6,
the characters in the table are various ASCII characters and U+3002).
** A few test vectors for iSCSI were added.
** The self tests are linked with libtool -no-install to avoid wrapper script.
** Separated self test utilities into a separate library, shared by all tests.
** More translations.
Added Romanian (by Laurentiu Buzdugan).
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.4.3 (2004-04-22) [alpha]
** Fixed a bug in table processing code to prohibit control characters.
The problem was that the code used a code point of 0 to indicate end
of table, but if (as for table C.2.1) a range starts with 0, this
logic would fail. The end-of-table test is now that both the start
and end code points of the range is 0. Table C.2.1 is responsible for
prohibiting non-ASCII control characters, i.e. ASCII 0-31 and 127.
Before, libidn silently accepted such strings without complaining.
** A few test vectors for SASLprep were added.
** The pkg-config script no longer include a -R parameter.
** More translations.
Added Dutch (by Elros Cyriatan), and German (by Roland Illig).
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.4.2 (2004-03-20) [alpha]
** A Punycode implementation in Java was added, by Oliver Hitz.
Eventually hopefully a StringPrep, Nameprep and IDNA implementation
will be added as well. Currently you need to specify --enable-java to
enable the Java interface. The Java sources (below java/) are
compiled into byte-code (not native code) into a JAR library.
** More translations.
Added Danish (by Morten Bo Johansen), French (by Michel Robitaille),
Polish (by Jakub Bogusz), and Serbian (by Aleksandar Jelenak).
** Norwegian TLD table added, by Thomas Jacob.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.4.1 (2004-03-08) [alpha]
** The user messages from the command line utility are now translated.
Currently English and Swedish is supported.
** Logic of stringprep_locale_charset modified.
Future versions will use, in order, $CHARSET iff defined, nl_langinfo
(CODESET) iff working, or fall back to returning "ASCII". Earlier it
attempted to guess the system locale, in contrast with the current
application's locale, via some setlocale save/set/reset magic. This
change may require you to invoke setlocale() in your application,
which is (should be) required for non-ASCII to work anyway. Based on
discussion with Ulrich Drepper.
** The command-line utility now invoke setlocale (LC_ALL, "") at startup.
** Fixed SASLprep tables to prohibit non-ASCII space in output.
Non-ASCII space has always been mapped to ASCII space, so it is not
clear this really have any effect, but the specification require it.
** Building Libidn as part of GLIBC has been updated.
Refer to libc/README for more information. Incidentally, GLIBC in CVS
now include a copy of Libidn.
** API and ABI is backwards compatible with the previous version.
IDNA_DLOPEN_ERROR: ADD. Only used internally by Libidn in libc.
* Noteworthy changes in release 0.4.0 (2004-02-28) [alpha]
** Support for TLD restrictions on IDN strings, contributed by Thomas Jacob.
Many TLDs restrict the set of characters that can be used, from the
full Unicode 3.2 range that is normally available. This contribution
make it possible for you to test strings for TLD conformance locally.
The code can be disabled by --disable-tld. If enabled (the default),
the new API "tld.h" is installed which can be used to check a string
for conformance to TLD specific rules. This add a new self test, and
a new chapter in the manual. People responsible for maintaining TLD
tables are hereby encouraged to contribute them (under reasonable
licensing terms) for inclusion in future versions of Libidn. Be
warned that the API for TLD checking may change throughout the 0.4.x
series as we get feedback on it.
** Kerberos 5 stringprep profile macro is no longer documented.
The macro itself will probably be removed in the future, if the
specification is dropped from the Kerberos WG agenda.
** API and ABI is backwards compatible with the previous version.
stringprep_kerberos5: DEPRECATED.
Tld_table_element:
Tld_table:
Tld_rc: ADD. New data types.
tld_get_4:
tld_get_4z:
tld_get_z: ADD. New functions to extract TLD from string.
tld_get_table:
tld_default_table: ADD. New functions to get TLD table from TLD name.
tld_check_4t:
tld_check_4tz: ADD. New function to provide core TLD operations.
tld_check_4:
tld_check_4z:
tld_check_8z:
tld_check_lz: ADD. New functions that combine all TLD operations in one call.
* Noteworthy changes in release 0.3.7 (2004-01-22) [alpha]
** The command line parameter '--' idiom is documented.
** The iSCSI stringprep profile now recognized as "iSCSI".
The earlier name "ISCSIprep" is still recognized, for backwards
compatibility.
** DocBook manuals no longer included (the tools are too unstable).
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.3.6 (2004-01-06) [alpha]
** The manual now contain a troubleshooting section for the command line tool.
** The PHP interface pass the string directly on the command line.
** The macro that create 'idn-int.h' has been updated to latest version.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.3.5 (2003-12-15) [alpha]
** The program 'idn' accepts input strings directly on the command line.
** The program 'idn' defaults to --idna-to-ascii if no parameter is given.
** The program 'idn' now print user instructions before waiting for input.
** DocBook HTML output not included any longer.
The reason is that the filenames generated by docbook2html appear to
be rather random, so it is difficult to maintain the Makefile.am rules
for them.
** Autoconf 2.59, automake 1.8 and libtool from CVS is used.
** API and ABI is backwards compatible with the previous version.
IDNA_CONTAINS_NON_LDH: ADD. Same integer value as IDNA_CONTAINS_LDH.
IDNA_CONTAINS_LDH: DEPRECATED. LDH (letter-digits-hyphens) characters
are not an error, but non-LDH characters are, when
IDNA_USE_STD3_ASCII_RULES is used. The logic of the
mnemonic name of this error constant was reversed.
* Noteworthy changes in release 0.3.4 (2003-11-09) [alpha]
** DocBook manuals in XML, PDF, PostScript, ASCII and HTML formats included.
* Noteworthy changes in release 0.3.3 (2003-10-18) [alpha]
** Fixed list of Stringprep profiles in 'idn --help' and 'idn.php'.
** Fixed debug information in 'idn'.
** Internal improvements.
Leads to reduced heap memory usage. Simplified inter-dependency among
files in lib/* to make it easier to copy them into your project.
** Debugging stringprep profile 'generic' removed.
** Punycode implementation updated to rfc3492bis-00.
** API and ABI is backwards compatible with the previous version.
stringprep_4i: NEW.
stringprep_4zi: NEW.
stringprep: CHANGED. 'profile' is marked as 'const'.
stringprep_profile: CHANGED. 'profile' is marked as 'const'.
stringprep_generic: REMOVED. Never meant for public use.
* Noteworthy changes in release 0.3.2 (2003-10-07) [alpha]
** SASL ANONYMOUS stringprep profile "trace" added.
It is equivalent to the already supported "plain" SASL ANONYMOUS
stringprep profile, except for the name.
** API and ABI is backwards compatible with the previous version.
The 'in' parameter to stringprep_profile was changed from 'char*' to
'const char*'.
* Noteworthy changes in release 0.3.1 (2003-10-02) [alpha]
** Fixed handling of implicit and explicit zero-length root labels in ToASCII.
** Fixed support for Hangul Syllables during Unicode NFKC normalization.
** Fixed Unicode NFKC normalization of (some) BMP code points.
This was done by syncing the NFKC code with latest GLIB, and may have
fixed other bugs in the earlier versions of the updated functions.
** Added more IDNA test vectors.
** Emacs Lisp IDNA implementation now set the UseSTD3ASCIIRules flag.
This is the appropriate setting for mail-related uses of IDNA.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.3.0 (2003-09-23) [alpha]
** Ported to Mac OS X.
** Gnulib code removed, we now assume a C89 compatible environment.
** Building libidn as a libc add-on now works again.
** Man pages for all public API functions are included.
** Fixed bug in SASLprep profile.
** API and ABI is NOT backwards compatible with the previous version.
All previously labeled (since 0.1.x) obsolete functions have been dropped.
The use of 'enum' types instead of 'int' added in 0.2.3 reverted, it
confused documentation generators and wasn't all that common practice.
* Noteworthy changes in release 0.2.3 (2003-08-26) [alpha]
** Example 4 was the same as example 3, now changed to demo ToUnicode.
** Documentation improvements.
** Prototype cleanups.
The proper enum types (Stringprep_rc, Idna_rc, etc) are now used in
several places where plain int where used before. String lengths are
handled by (s)size_t instead of int.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.2.2 (2003-08-13) [alpha]
** Fixed problem with strings longer than 4GB in punycode functions.
The punycode code cannot handle strings longer than 4GB. The code now
return PUNYCODE_BAD_INPUT on too long input, instead of failing in an
unknown way.
** The "idn --idna-to-unicode" command now output locale encoded strings.
** Build fixes, bug fixes.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.2.1 (2003-07-04) [alpha]
** Don't reject zero-length trailing labels as in, e.g., "www.example.org.".
The IDNA RFC is not clear on this topic, zero-length labels in general
are forbidden by the ToASCII algorithm in section 4.1 step 8, but the
terminology section define, inside a parenthesis, that the zero-length
root label is in fact not considered a label at all in IDNA.
** Bug fixes.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.2.0 (2003-06-19) [alpha]
** Unicode code point data is now uint32_t, defined in "idn-int.h".
A header file "idn-int.h" is generated and installed to make sure the
"uint32_t" data type is available on all platforms. The reason for
this change is that on 64-bit platforms, the application was required
to convert 32 bit integers (which is how Unicode code points are
typically represented) into 64 bit integers before calling libidn
functions.
** New idna_*() functions have improved flags handling.
The allowunassigned and usestd3asciirules parameters were collapsed
into a flags parameter, that can take on the IDNA_ALLOW_UNASSIGNED and
IDNA_USE_STD3_ASCII_RULES values. This allows for easier extensions
to support, e.g., Unicode 4.0 or RFC 952 ASCII rules checking. Note
that the old entry points are unmodified (in this regard), and new
entry points with this modification were added.
** The manual was moved into a separate directory doc/.
** Bugfixes.
** API and ABI is not backwards compatible.
In punycode.h and stringprep.h the "unsigned long" data type was
changed into "uint32_t", which cause a API and ABI mismatch. For
idna.h, the old entry points that used "unsigned long" still exist,
and new entry points that uses "uint32_t" was added. To update your
application, you probably only need to change "unsigned long" to
"uint32_t". As a result of these changes, the shared object version
has been increased.
* Noteworthy changes in release 0.1.15 (2003-06-07) [alpha]
** Bugfixes.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.1.14 (2003-05-10) [alpha]
** Experimental documentation generation in contrib/doxygen/.
Simply invoke "doxygen" in that directory and it should build the
documentation.
** Lisp API bug fixes.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.1.13 (2003-03-13) [alpha]
** Unfinished Java *.class files implementing the libidn API.
See the contrib/java/ directory. It is implemented using the Java
Native Interface, and light initial testing indicate interoperability
between GCJ, IBM's JDK and Sun's JDK.
** Building is now silent when gengetopt is not present.
** Bug fixes.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.1.12 (2003-03-06) [alpha]
** Building libidn doesn't require gengetopt.
Warnings are still printed though. Gengetopt will be replaced by argp
eventually.
** Command line tool "idn" supports stringprep too.
** New stringprep API entry point: stringprep_profile().
It takes a name of the stringprep profile as an argument instead of
the stringprep table structure.
** stringprep_*.h are deprecated and will be removed in the future.
All symbols have been moved to stringprep.h. The reasons are that (1)
the files typically only defined one CPP macro and exported one symbol
definition, which is wasteful as it generates too much work in the
manual, and (2) using one header file for all profiles allows easier
access to all stringprep profiles during runtime. Note that the files
are still installed, but they only #include stringprep.h now, for
backwards compatibility.
** GNU Libc add-on build instructions updated to GNU Libc 2.3.2.
** SASLprep stringprep profile added.
** An online interface to libidn written in PHP added to contrib/web/.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.1.11 (2003-02-26) [alpha]
** Command line application "idn" is included.
A simple wrapper around the library that allows you to invoke punycode
encoding/decoding and IDNA ToASCII/ToUnicode on the command line.
** Emacs Lisp interface for punycode and IDNA included.
See punycode.el and idna.el.
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.1.10 (2003-02-21) [alpha]
** idna_*_to_ace() and idna_*ace_to_*() are deprecated in favor of
** idna_to_ascii_from_*() and idna_to_unicode_*_from_*() respectively.
The reason was that the old interfaces did not accept the
AllowUnassigned and UseSTD3ASCIIRules flags. Note that the old
functions are not removed, but will be in the future.
** IPS iSCSI stringprep profile added.
** A new contrib/ directory added.
Currently it contains a Python interface to Libidn, contributed by
Stephane Bortzmeyer.
** idna.h and punycode.h are now installed by "make install".
** API and ABI is backwards compatible with the previous version.
* Noteworthy changes in release 0.1.9 (2003-02-20) [alpha]
** SASL ANONYMOUS "plain" stringprep profile added.
** XMPP nodeprep profile fixed.
** API and ABI is backwards compatible with the previous version.
For future releases, the NEWS entry will specifically mention whether
the C header API or library ABI backwards compatibility is affected.
* Noteworthy changes in release 0.1.8 (2003-02-14) [alpha]
** Portability fixes.
This includes not building the API Reference Manual with GTK-DOC by
default, if you want it use configure parameter --enable-gtk-doc after
making sure your gtkdoc-mkdb accept the --tmpl-dir parameter.
** The type for string length variables is now (s)size_t.
Unfortunately this means binary shared library binary backwards
compatible is lost.
** New nameprep test vectors.
* Noteworthy changes in release 0.1.7 (2003-02-12) [alpha]
** Uses official IDNA ACE prefix.
* Noteworthy changes in release 0.1.6 (2003-02-11) [alpha]
** Uses tentative IDNA ACE prefix.
** Added XMPP Node/Resource Identifiers stringprep profiles.
** Fixed prohibited character checks for bidi.
* Noteworthy changes in release 0.1.5 (2003-01-28) [alpha]
** The library can now be built as part of GNU Libc.
This is experimental and only tested against GNU Libc version 2.3.1.
See the libc/ directory, and libc/README in particular.
** Bug fixes.
* Noteworthy changes in release 0.1.4 (2003-01-15) [alpha]
** Documentation fixes.
** Portability fixes.
** Bug fixes.
* Noteworthy changes in release 0.1.3 (2003-01-15) [alpha]
** Added texinfo manual.
* Noteworthy changes in release 0.1.2 (2003-01-08) [alpha]
** Added high-level IDNA API.
** Added example3.c and example4.c demonstrating the high-level IDNA API.
* Noteworthy changes in release 0.1.1 (2003-01-08) [alpha]
** Added documentation using GTK-DOC.
** The obsolete stringprep_utf8_to_ucs4_fast API entry point was removed.
By accident it was never removed in 0.1.0.
* Noteworthy changes in release 0.1.0 (2003-01-05) [alpha]
** Official GNU project.
** Renamed from libstringprep to libidn.
** Supports punycode and IDNA. Caveat emptor: I don't use it myself.
** Uses "unsigned long" for Unicode code points instead of "long".
Long is guaranteed to be at least 32 bits by C standards so it is
always sufficiently large, no need to use uint32_t and the like.
** The obsolete stringprep_utf8_to_ucs4_fast API entry point was removed.
* Noteworthy changes in release 0.0.8 (2002-12-13) [alpha]
** Portability fixes (now works under Cygwin on Windows 2000).
** Bug fixes.
* Noteworthy changes in release 0.0.7 (2002-12-09) [alpha]
** Apply all tables to entire strings, not just first hit.
** Fix bidi infloop.
* Noteworthy changes in release 0.0.5 (2002-12-07) [alpha]
** Fix prohibited characters handling.
** Fix bidi.
** Renamed type (struct) stringprep_table_element to Stringprep_table_element.
** Renamed type stringprep_profile to Stringprep_profile.
** Renamed type (struct) stringprep_table to Stringprep_table.
** Added more self-tests.
* Noteworthy changes in release 0.0.4 (2002-12-06) [alpha]
** Add unassigned code point handling, including self test cases.
** Portability fixes.
* Noteworthy changes in release 0.0.3 (2002-11-30) [alpha]
** Exported utility function `stringprep_utf8_to_unichar', complementary
to existing `stringprep_unichar_to_utf8'.
** Renamed `stringprep_utf8_to_ucs4_fast' to `stringprep_utf8_to_ucs4' to
clean up API. The old entry point is maintained for binary backwards
compatibility though.
** The distribution is from now on signed using GnuPG.
** Bug fixes.
* Noteworthy changes in release 0.0.2 (2002-11-07) [alpha]
** NFKC self test.
** Bug fixes.
* Noteworthy changes in release 0.0.1 (2002-11-06) [alpha]
** Add utility functions stringprep_locale_charset(), stringprep_convert()
and stringprep_locale_to_utf8 () that can be used to convert text from
system's locale into UTF-8, which should be done before invoking
stringprep(). The functions requires iconv() in the operating system.
** An example program (example.c) that illustrates how libstringprep can be
used is included.
** The pkg-config --libs output should now include necessary -R options.
* Noteworthy changes in release 0.0.0 (2002-11-05) [alpha]
** Initial release
----------------------------------------------------------------------
Copyright (C) 2002-2025 Simon Josefsson
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
libidn-v1.43/README 0000777 0000000 0000000 00000000000 14767240365 0015240 2README.md ustar 00root root 0000000 0000000 libidn-v1.43/README.md 0000664 0000000 0000000 00000006150 14767240365 0014367 0 ustar 00root root 0000000 0000000 # Libidn README -- Introduction information
Libidn is a package for internationalized string handling based on the
Stringprep, Punycode, IDNA2003 and TLD specifications. Libidn is a
GNU project. For technical reference, see:
* [Stringprep](https://www.rfc-editor.org/rfc/rfc3454)
* [IDNA aka IDNA2003](https://www.rfc-editor.org/rfc/rfc3490)
* [Nameprep](https://www.rfc-editor.org/rfc/rfc3491)
* [Punycode](https://www.rfc-editor.org/rfc/rfc3492)
* [Unicode 3.2.0](http://www.unicode.org/versions/Unicode3.2.0/)
WARNING! The IDNA2003 specifications have been superseded by IDNA2008
which is implemented by Libidn2
. The only reasonable
use of the libidn library today is to support the historic IDNA2003
behaviour or to use Stringprep profiles. Please try to migrate to
libidn2 wherever possible.
If this file came to you as part of a tar archive, then see the file
(INSTALL)[INSTALL] for generic compilation and installation
instructions. Before building you should consider installing the
[dependencies](DEPENDENCIES.md). If you obtained this file as part of
a "git clone", then see the CONTRIBUTING.md file.
If you need help to use Libidn, or wish to help others, you are
invited to join our mailing list help-libidn@gnu.org, see
.
For more information, see .
# Documentation
[GNU Libidn Manual](https://www.gnu.org/software/libidn/manual/)
[Libidn API Reference Manual](https://www.gnu.org/software/libidn/reference/)
# License
The source code for the C library (libidn.a or libidn.so), the C#
library (Libidn.dll) and the Java library (libidn-*.jar) are
dual-licensed under the terms of either the GNU General Public License
version 2.0 or later - see the file [COPYINGv2](COPYINGv2) - or the
GNU Lesser General Public License version 3.0 or later - see the file
[COPYING.LESSERv3](COPYING.LESSERv3) - or both in parallel as here.
The author of the Java library has agreed to also distribute it under
the Apache License Version 2.0, see the file
[java/LICENSE-2.0](java/LICENSE-2.0).
The manual is licensed under the GNU Free Documentation License,
Version 1.3 or any later, see the file
[doc/fdl-1.3.texi](doc/fdl-1.3.texi).
The command line tool, self tests, examples, and other auxiliary
files, are licensed under the GNU General Public License version 3.0
or later, see the file [COPYING](COPYING).
The library embed data tables published by Unicode, Inc and The
Internet Society (IETF), see [doc/specification/](doc/specification/).
Other files are licensed as indicated in each file. There may be
exceptions to these general rules, see each file for precise
information.
For any copyright year range specified as YYYY-ZZZZ in this package
note that the range specifies every single year in that closed
interval.
----------------------------------------------------------------------
Copyright (C) 2002-2025 Simon Josefsson
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
libidn-v1.43/THANKS 0000664 0000000 0000000 00000005714 14767240365 0014030 0 ustar 00root root 0000000 0000000 Libidn THANKS -- Acknowledgements.
Copyright (C) 2002-2025 Simon Josefsson
See the end for copying conditions.
The punycode code was taken from the IETF IDN Punycode specification,
by Adam M. Costello. The TLD code was contributed by Thomas Jacob.
The Java implementation was contributed by Oliver Hitz. The C#
implementation was contributed by Alexander Gnauck. The Unicode
tables were provided by Unicode, Inc. Functions for dealing with
Unicode (see lib/nfkc.c) are borrowed from GLib downloaded from
www.gtk.org. Gnulib is used to simplify portability and to improve
readability of the code.
Suggestions, bug reports, patches, translations, test vectors or other
contributions were also received from or written by the people
mentioned below. If you have contributed and aren't mentioned here,
please let us know!
Stephane Bortzmeyer
Seungho Lee
Waldo Bastian
Travis Shirk
Hugo Salgado H.
Leonard Stiles
Ryan M. Golbeck
Joe Hildebrand
Thiago Macieira
Ienup Sung
Wim Lewis
Robert Norris
Patrik Wallstrom
Marcos Sanz
Gerrit P. Haase
Adam M. Costello
Trond Haugen
Marco d'Itri
Arkadiusz Miskiewicz
Noah Levitt
Paul Hoffman / JDNA
Oden Eriksson
Kai Schaetzl
Graydon Hoare
Jan-Hendrik Heuing
Chris Moore
Niels Möller
Thomas Jacob
Ulrich Drepper
Jakub Bogusz
Aleksandar Jelenak
Michel Robitaille
Morten Bo Johansen
Oliver Hitz
Jørgen Thomsen
Roland Illig
Elros Cyriatan
Martin Waitz
Laurentiu Buzdugan
Joe Orton
Daniel Stenberg
Gisle Vanem
Robert Scheck
Benjamin Reed
Edmund GRIMLEY EVANS
Stephan Kulow
Andreas Schwab
Eric S. Raymond
Matt Tucker
Marco Colombo
Linus Nordberg
Simon Walter
Clytie Siddall
Meng Jie
Carsten Lohrke
Wim Lewis
Yaakov S
Alexander Gnauck
Bernard Leak
Kirill Ponomarew
Paul Howarth
Stephane Mikaty
Petteri Räty
Petr Pisar
Christian Ehrlicher
Remko van der Vossen
Erik van der Poel
Mike Frysinger
Adam Strzelecki
Benno Schulenberg
John McGowan
Sisyphus
Jens Rehsack
Dagobert Michelsen
Guus der Kinderen
Guenter Knauf
Stepan Golosunov
Andrej Shadura
Roman Mamedov
Waqas Hussain
Guido Trentalancia
Volker Grabsch
Olga Limburg
Bittner Ede
René Berber
Jon Nelson
Bartosz Brachaczek
Sarat Chandra Addepalli
Jeffrey Frey
Thijs Alkemade
Nikos Mavrogiannopoulos
Gustavo Grieco
Adam Sampson
Hanno Böck
Trond Haugen
Bruno Haible
----------------------------------------------------------------------
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
libidn-v1.43/bootstrap 0000775 0000000 0000000 00000022075 14767240365 0015057 0 ustar 00root root 0000000 0000000 #! /bin/sh
# Bootstrap this package from checked-out sources.
scriptversion=2024-07-04.10; # UTC
# Copyright (C) 2003-2025 Free Software Foundation, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# Originally written by Paul Eggert. The canonical version of this
# script is maintained as top/bootstrap in gnulib. However, to be
# useful to your package, you should place a copy of it under version
# control in the top-level directory of your package. The intent is
# that all customization can be done with a bootstrap.conf file also
# maintained in your version control; gnulib comes with a template
# build-aux/bootstrap.conf to get you started.
# Please report bugs or propose patches to bug-gnulib@gnu.org.
me="$0"
medir=`dirname "$me"`
# Read the function library and the configuration.
. "$medir"/bootstrap-funclib.sh
usage() {
cat <