From nobody Thu Jul 07 12:12:59 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D7ED710F86C0; Thu, 7 Jul 2022 12:12:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LdwKR5ddTz3bCl; Thu, 7 Jul 2022 12:12:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657195979; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9Dl56H/eNF6KFGUHCt6wSffBFdM52ve+GiS3CSAQ6V4=; b=IEBYTog7ejuEmBJSotivFVkkDeiVd9L5Coc6dRGgzKC44UEb//q+DnHskkegP4Aik1Y8dI sONZn1VKIuVu8CeuDnMiEqZLCeAr3cfrYnAPAdjHW5cZJRrVXeD+Ai6mUrQ3loZfZzHjXr WHpRsLoqN1jRl5f1zwV0CbW0HCmoSUPJleQ1R9YMqtYAP205jEIG5GW3rXrSuZJOHF3/HP c89j1t4cfbyUNaqJaaPv8RKN573LICp4V4U6/IlJk2ylDnH8CVk37tLlFZgyG9NWoMkjDB v+V/PE3xY0AuJOSaAE4ZJVq96pwFuPJUCi+XClaT4K2wecfae7lnQkMmynPKiA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4LdwKR4hkdzjGP; Thu, 7 Jul 2022 12:12:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 267CCx5J045740; Thu, 7 Jul 2022 12:12:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 267CCxel045739; Thu, 7 Jul 2022 12:12:59 GMT (envelope-from git) Date: Thu, 7 Jul 2022 12:12:59 GMT Message-Id: <202207071212.267CCxel045739@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Olivier Cochard Subject: git: 706c1803391d - main - net/libyang2: New major version of libyang List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olivier X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 706c1803391d13243fd84dfbaadb2b3d952259bc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657195979; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9Dl56H/eNF6KFGUHCt6wSffBFdM52ve+GiS3CSAQ6V4=; b=mSOmWtzUUGapq8rV5bJbnp3R5FYfSGzX7vrBf1ZGfZPqD5O3AvGzN094IDlMhuHm5nHwpT dMZdfT2+hooKPvXh2cXMtnLq5Cmu5A3CWe5BtWUqC4czVNWNxuHfex8mJE9Vl+bUZxd07c o0X0FY8DK/MSKy79cWhzCAIFOeuuARwtYbX8qDvu5WVwUSANimOB99e5k7sqE3Tlsy4hqc PO4EGOfOe/avh1/IEzVdr6+hV5qDnVcAAo6+ZtXSf8EhkbWivwyLzAlLGKZm6U1S7vBoVM ACNenUY7gPGmZV7Hoz5ffb7e6ZxTLK0tc5hRXzqK32yqVmKwOw0B1ky1jdeWhA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657195979; a=rsa-sha256; cv=none; b=WyU1XVcy6iC5S0DJBMvkTKqMj/Yul4pRRt+K4rCrFkvQHM1fS1ipC6GwuEmQuK88k+4sXH r6Gm8RKKvJ4Wcs/g73q2Gc1NrqDAl/60258yR8VXVbaAczczLrFjIqAw8zUmou3YfcN35d OdSgX//clmLNfNGlLj0Wrl9nDf3m5XZtF+LPExRfTSdaPfrFUcj1zYRvo09urtMX2k2M/p N0/CGbSDfVsem/X5I8e+trRwPwIr+i1UtRB1Ht6aUcearO/Wis3HMRSSZv4yjdlMuBKSIw f9WZoUccW/+kjk69GBWPw25xuhVSRpPjjnAs+fXjIWcwnj9ocxfdprvhJj5UJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by olivier: URL: https://cgit.FreeBSD.org/ports/commit/?id=706c1803391d13243fd84dfbaadb2b3d952259bc commit 706c1803391d13243fd84dfbaadb2b3d952259bc Author: Olivier Cochard AuthorDate: 2022-07-06 22:12:49 +0000 Commit: Olivier Cochard CommitDate: 2022-07-07 12:12:50 +0000 net/libyang2: New major version of libyang Upcoming net/frr8 requires libyang2, but net/frr7 stills depends of libyang 1.x --- net/Makefile | 1 + net/libyang2/Makefile | 28 ++++++++++++++++++++ net/libyang2/distinfo | 3 +++ net/libyang2/files/patch-CMakeLists.txt | 11 ++++++++ .../files/patch-CMakeModules_UseCompat.cmake | 11 ++++++++ net/libyang2/pkg-descr | 4 +++ net/libyang2/pkg-plist | 30 ++++++++++++++++++++++ 7 files changed, 88 insertions(+) diff --git a/net/Makefile b/net/Makefile index 670b1b27ce88..73fec1368cb6 100644 --- a/net/Makefile +++ b/net/Makefile @@ -415,6 +415,7 @@ SUBDIR += libvncserver SUBDIR += libwebsockets SUBDIR += libyang + SUBDIR += libyang2 SUBDIR += libzapojit SUBDIR += libzmq2 SUBDIR += libzmq3 diff --git a/net/libyang2/Makefile b/net/libyang2/Makefile new file mode 100644 index 000000000000..dec80bf2bbd6 --- /dev/null +++ b/net/libyang2/Makefile @@ -0,0 +1,28 @@ +PORTNAME= libyang +PORTVERSION= 2.0.194 +DISTVERSIONPREFIX= v +CATEGORIES= net +PKGNAMESUFFIX= 2 + +MAINTAINER= olivier@FreeBSD.org +COMMENT= YANG data modeling language library, version 2 + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libpcre2-8.so:devel/pcre2 +TEST_DEPENDS= cmocka>0:sysutils/cmocka + +USES= cmake compiler:c++11-lang pkgconfig +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= CESNET + +TEST_TARGET= test + +OPTIONS_DEFINE= TEST + +TEST_CMAKE_BOOL= ENABLE_TESTS + +.include diff --git a/net/libyang2/distinfo b/net/libyang2/distinfo new file mode 100644 index 000000000000..1fd0569619eb --- /dev/null +++ b/net/libyang2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1656156499 +SHA256 (CESNET-libyang-v2.0.194_GH0.tar.gz) = 94898ee391c238dcd29ff21092e5dcab4e17b9623e88862a55b72fc6168846f8 +SIZE (CESNET-libyang-v2.0.194_GH0.tar.gz) = 1150705 diff --git a/net/libyang2/files/patch-CMakeLists.txt b/net/libyang2/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..727e627c9a7e --- /dev/null +++ b/net/libyang2/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-05-06 06:57:14 UTC ++++ CMakeLists.txt +@@ -31,7 +31,7 @@ if ("${BUILD_TYPE_UPPER}" STREQUAL "RELEASE") + string(TOUPPER "${CMAKE_BUILD_TYPE}" BUILD_TYPE_UPPER) + if ("${BUILD_TYPE_UPPER}" STREQUAL "RELEASE") + set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build Type" FORCE) +- set(CMAKE_C_FLAGS "-DNDEBUG -O2 ${CMAKE_C_FLAGS}") ++ set(CMAKE_C_FLAGS "-DNDEBUG ${CMAKE_C_FLAGS}") + elseif("${BUILD_TYPE_UPPER}" STREQUAL "DEBUG") + set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build Type" FORCE) + set(CMAKE_C_FLAGS "-g3 -O0 ${CMAKE_C_FLAGS}") diff --git a/net/libyang2/files/patch-CMakeModules_UseCompat.cmake b/net/libyang2/files/patch-CMakeModules_UseCompat.cmake new file mode 100644 index 000000000000..9cc4f82a5a4c --- /dev/null +++ b/net/libyang2/files/patch-CMakeModules_UseCompat.cmake @@ -0,0 +1,11 @@ +--- CMakeModules/UseCompat.cmake.orig 2022-06-25 11:42:57 UTC ++++ CMakeModules/UseCompat.cmake +@@ -49,7 +49,7 @@ macro(USE_COMPAT) + + include(CheckStructHasMember) + check_struct_has_member("struct tm" tm_gmtoff time.h HAVE_TM_GMTOFF) +- check_symbol_exists(timezone time.h HAVE_TIME_H_TIMEZONE) ++# check_symbol_exists(timezone time.h HAVE_TIME_H_TIMEZONE) + + check_symbol_exists(realpath "stdlib.h" HAVE_REALPATH) + check_symbol_exists(localtime_r "time.h" HAVE_LOCALTIME_R) diff --git a/net/libyang2/pkg-descr b/net/libyang2/pkg-descr new file mode 100644 index 000000000000..5ecaaa5402c3 --- /dev/null +++ b/net/libyang2/pkg-descr @@ -0,0 +1,4 @@ +libyang is a YANG data modelling language parser and toolkit written +(and providing API) in C. + +WWW: https://github.com/CESNET/libyang diff --git a/net/libyang2/pkg-plist b/net/libyang2/pkg-plist new file mode 100644 index 000000000000..8672ac535a52 --- /dev/null +++ b/net/libyang2/pkg-plist @@ -0,0 +1,30 @@ +bin/yanglint +bin/yangre +include/libyang/config.h +include/libyang/context.h +include/libyang/dict.h +include/libyang/in.h +include/libyang/libyang.h +include/libyang/log.h +include/libyang/out.h +include/libyang/parser_data.h +include/libyang/parser_schema.h +include/libyang/plugins.h +include/libyang/plugins_exts.h +include/libyang/plugins_exts_compile.h +include/libyang/plugins_exts_print.h +include/libyang/plugins_types.h +include/libyang/printer_data.h +include/libyang/printer_schema.h +include/libyang/set.h +include/libyang/tree.h +include/libyang/tree_edit.h +include/libyang/version.h +include/libyang/tree_data.h +include/libyang/tree_schema.h +lib/libyang.so +lib/libyang.so.2 +lib/libyang.so.2.20.15 +libdata/pkgconfig/libyang.pc +share/man/man1/yanglint.1.gz +share/man/man1/yangre.1.gz