Re: git: d444560271bb - main - net/libproxy: update to 0.4.18 release (+)
- In reply to: Po-Chuan Hsieh : "Re: git: d444560271bb - main - net/libproxy: update to 0.4.18 release (+)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 Sep 2023 03:42:22 UTC
On 23. 9. 21., Po-Chuan Hsieh wrote:
> On Fri, Sep 22, 2023 at 6:10 AM Dima Panov <fluffy@freebsd.org
> <mailto:fluffy@freebsd.org>> wrote:
>
> The branch main has been updated by fluffy:
>
> URL:
> https://cgit.FreeBSD.org/ports/commit/?id=d444560271bb19f11c57d14ac8098cb906c9444d <https://cgit.FreeBSD.org/ports/commit/?id=d444560271bb19f11c57d14ac8098cb906c9444d>
>
> commit d444560271bb19f11c57d14ac8098cb906c9444d
> Author: Dima Panov <fluffy@FreeBSD.org>
> AuthorDate: 2023-09-21 22:05:53 +0000
> Commit: Dima Panov <fluffy@FreeBSD.org>
> CommitDate: 2023-09-21 22:05:53 +0000
>
> net/libproxy: update to 0.4.18 release (+)
>
> Add new duktape plugin to the build
>
> Changelog:
> https://github.com/libproxy/libproxy/releases/tag/0.4.18
> <https://github.com/libproxy/libproxy/releases/tag/0.4.18>
>
>
> Hello,
>
> It's broken now.
>
> ===> Patching for libproxy-0.4.18
> ===> Applying FreeBSD patches for libproxy-0.4.18 from
> /usr/ports/net/libproxy/files
> 1 out of 1 hunks failed--saving rejects to
> bindings/perl/t/CMakeLists.txt.rej
> ===> FAILED Applying FreeBSD patch-bindings_perl_t_CMakeLists.txt
> ===> Cleanly applied FreeBSD patch(es) patch-CMakeLists.txt
> patch-bindings_CMakeLists.txt patch-bindings_perl_src_CMakeLists.txt
> ===> FAILED to apply cleanly FreeBSD patch(es)
> patch-bindings_perl_t_CMakeLists.txt
> *** Error code 1
>
>
> ---
> net/Makefile | 1 +
> net/libproxy-duktape/Makefile | 12
> ++++++++++++
> net/libproxy-duktape/pkg-descr | 5
> +++++
> net/libproxy-duktape/pkg-plist | 1 +
> net/libproxy-webkit3/Makefile | 2 +-
> net/libproxy/Makefile | 8
> ++++----
> net/libproxy/distinfo | 6
> +++---
> net/libproxy/files/patch-bindings_perl_src_CMakeLists.txt | 8
> ++++----
> net/libproxy/files/patch-libproxy_cmake_modules.cmk | 4 ++--
> .../patch-libproxy_cmake_modules_pacrunner__duktape.cmk | 10
> ++++++++++
> 10 files changed, 43 insertions(+), 14 deletions(-)
>
> diff --git a/net/Makefile b/net/Makefile
> index 73841997c6d0..a0822b6214ba 100644
> --- a/net/Makefile
> +++ b/net/Makefile
> @@ -414,6 +414,7 @@
> SUBDIR += libpcapnav
> SUBDIR += libpfctl
> SUBDIR += libproxy
> + SUBDIR += libproxy-duktape
> SUBDIR += libproxy-gnome3
> SUBDIR += libproxy-kde
> SUBDIR += libproxy-pacrunner
> diff --git a/net/libproxy-duktape/Makefile
> b/net/libproxy-duktape/Makefile
> new file mode 100644
> index 000000000000..28f0570f8069
> --- /dev/null
> +++ b/net/libproxy-duktape/Makefile
> @@ -0,0 +1,12 @@
> +PORTREVISION= 0
> +CATEGORIES= net devel
> +PKGNAMESUFFIX= -${LIBPROXY_SLAVE}
> +
> +COMMENT= Duktape JavaScript plug-in for libproxy
> +
> +LIB_DEPENDS+= libduktape.so:lang/duktape-lib
> +
> +LIBPROXY_SLAVE= duktape
> +MASTERDIR= ${.CURDIR}/../libproxy
> +
> +.include "${MASTERDIR}/Makefile"
> diff --git a/net/libproxy-duktape/pkg-descr
> b/net/libproxy-duktape/pkg-descr
> new file mode 100644
> index 000000000000..39c82a099848
> --- /dev/null
> +++ b/net/libproxy-duktape/pkg-descr
> @@ -0,0 +1,5 @@
> +Libproxy exists to answer the question: Given a network resource,
> how do I
> +reach it? It handles all the details, enabling you to get back to
> +programming.
> +
> +This plug-in allows the Duktape JS engine to make use of libproxy.
> diff --git a/net/libproxy-duktape/pkg-plist
> b/net/libproxy-duktape/pkg-plist
> new file mode 100644
> index 000000000000..d9414aaebb90
> --- /dev/null
> +++ b/net/libproxy-duktape/pkg-plist
> @@ -0,0 +1 @@
> +lib/libproxy/%%VERSION%%/modules/pacrunner_duktape.so
> diff --git a/net/libproxy-webkit3/Makefile
> b/net/libproxy-webkit3/Makefile
> index f630fea894e1..6cc1bc2c6b51 100644
> --- a/net/libproxy-webkit3/Makefile
> +++ b/net/libproxy-webkit3/Makefile
> @@ -4,7 +4,7 @@ PKGNAMESUFFIX= -${LIBPROXY_SLAVE}
>
> COMMENT= WebKit JavaScript plug-in for libproxy
>
> -LIB_DEPENDS= libjavascriptcoregtk-4.0.so:www/webkit2-gtk3
> +LIB_DEPENDS+= libjavascriptcoregtk-4.0.so:www/webkit2-gtk3
>
> USES= gettext-runtime gnome
> USE_GNOME= glib20
> diff --git a/net/libproxy/Makefile b/net/libproxy/Makefile
> index 881f5be95934..dd7fab4fbdf5 100644
> --- a/net/libproxy/Makefile
> +++ b/net/libproxy/Makefile
> @@ -1,6 +1,6 @@
> PORTNAME= libproxy
> -DISTVERSION= 0.4.17
> -PORTREVISION?= 1
> +DISTVERSION= 0.4.18
> +PORTREVISION?= 0
> CATEGORIES?= net devel
> MASTER_SITES=
> https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/ <https://github.com/$%7BPORTNAME%7D/$%7BPORTNAME%7D/releases/download/$%7BDISTVERSION%7D/>
>
> @@ -19,7 +19,7 @@ CMAKE_ON+= WITH_VALA
> CMAKE_OFF+= BIPR WITH_DOTNET WITH_NATUS WITH_NM WITH_NMold
>
> # Slave ports.
> -LIBPROXY_SLAVES= library gnome3 kde mozjs python perl webkit3
> +LIBPROXY_SLAVES= library duktape gnome3 kde mozjs python perl
> webkit3
>
> # If nothing is set, we're building the library, i.e. this port.
> LIBPROXY_SLAVE?= library
> @@ -49,7 +49,7 @@ LIB_DEPENDS+= libdbus-1.so:devel/dbus
> CMAKE_ON= BUILD_CONFIG_PACRUNNER
> .endif
>
> -.if ${LIBPROXY_SLAVE:Mkde} || ${LIBPROXY_SLAVE:Mwebkit3}
> +.if ${LIBPROXY_SLAVE:Mkde} || ${LIBPROXY_SLAVE:Mduktape} ||
> ${LIBPROXY_SLAVE:Mmozjs} || ${LIBPROXY_SLAVE:Mwebkit3}
> RUN_DEPENDS+=
> libproxy-pacrunner>=${DISTVERSION}:net/libproxy-pacrunner
> .endif
>
> diff --git a/net/libproxy/distinfo b/net/libproxy/distinfo
> index b51e5c7ec3d6..cad62a8f6f24 100644
> --- a/net/libproxy/distinfo
> +++ b/net/libproxy/distinfo
> @@ -1,3 +1,3 @@
> -TIMESTAMP = 1642408064
> -SHA256 (libproxy-0.4.17.tar.xz) =
> bc89f842f654ee1985a31c0ba56dc7e2ce8044a0264ddca84e650f46cd7f8b05
> -SIZE (libproxy-0.4.17.tar.xz) = 80136
> +TIMESTAMP = 1690222352
> +SHA256 (libproxy-0.4.18.tar.xz) =
> 69b5856e9ea42c38ac77e6b8c92ffc86a71d341fef74e77bef85f9cc6c47a4b1
> +SIZE (libproxy-0.4.18.tar.xz) = 82020
> diff --git
> a/net/libproxy/files/patch-bindings_perl_src_CMakeLists.txt
> b/net/libproxy/files/patch-bindings_perl_src_CMakeLists.txt
> index b35c965d6e74..db18ae1f7da1 100644
> --- a/net/libproxy/files/patch-bindings_perl_src_CMakeLists.txt
> +++ b/net/libproxy/files/patch-bindings_perl_src_CMakeLists.txt
> @@ -2,9 +2,9 @@ As the library is only built in the master port, and
> therfore missing in the
> build directory for the slave ports, find it via pkg-config and
> link against it,
> when building a slave.
>
> ---- bindings/perl/src/CMakeLists.txt.orig 2018-06-03 17:39:41 UTC
> +--- bindings/perl/src/CMakeLists.txt.orig 2022-06-20 14:06:50 UTC
> +++ bindings/perl/src/CMakeLists.txt
> -@@ -4,7 +4,7 @@ include_directories( ${PERL_INCLUDE_PATH} ${CMAKE_SOUR
> +@@ -4,7 +4,7 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/
> add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Libproxy.c
> COMMAND ${PERL_EXECUTABLE} ARGS
> ${CMAKE_CURRENT_SOURCE_DIR}/doxsubpp.pl <http://doxsubpp.pl>
> ${PERL_EXECUTABLE}
> ${CMAKE_CURRENT_SOURCE_DIR}/Libproxy.xs
> ${CMAKE_CURRENT_BINARY_DIR}/Libproxy.c
> @@ -13,8 +13,8 @@ when building a slave.
> WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
>
> set(Libproxy_LIB_SRCS Libproxy.c)
> -@@ -12,7 +12,7 @@ set(Libproxy_LIB_SRCS Libproxy.c)
> - set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/perl/blib/arch/auto/Net)
> +@@ -12,7 +12,7 @@ add_library(PLlibproxy SHARED ${Libproxy_LIB_SRCS})
> + set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/perl/auto/Net/Libproxy)
> add_library(PLlibproxy SHARED ${Libproxy_LIB_SRCS})
>
> -set(PLlibproxy_LIB_DEPENDENCIES libproxy pthread)
> diff --git a/net/libproxy/files/patch-libproxy_cmake_modules.cmk
> b/net/libproxy/files/patch-libproxy_cmake_modules.cmk
> index afe898372415..081eda9955d7 100644
> --- a/net/libproxy/files/patch-libproxy_cmake_modules.cmk
> +++ b/net/libproxy/files/patch-libproxy_cmake_modules.cmk
> @@ -1,6 +1,6 @@
> ---- libproxy/cmake/modules.cmk.orig 2021-02-26 18:24:03 UTC
> +--- libproxy/cmake/modules.cmk.orig 2022-06-20 13:54:49 UTC
> +++ libproxy/cmake/modules.cmk
> -@@ -29,7 +29,9 @@ endif()
> +@@ -32,7 +32,9 @@ message("MODULES TO BUILD:")
> ## Module definition
> #
> message("MODULES TO BUILD:")
> diff --git
> a/net/libproxy/files/patch-libproxy_cmake_modules_pacrunner__duktape.cmk b/net/libproxy/files/patch-libproxy_cmake_modules_pacrunner__duktape.cmk
> new file mode 100644
> index 000000000000..06c3322d95c5
> --- /dev/null
> +++
> b/net/libproxy/files/patch-libproxy_cmake_modules_pacrunner__duktape.cmk
> @@ -0,0 +1,10 @@
> +--- libproxy/cmake/modules/pacrunner_duktape.cmk.orig 2022-06-20
> 13:54:49 UTC
> ++++ libproxy/cmake/modules/pacrunner_duktape.cmk
> +@@ -17,5 +17,7 @@ else()
> + link_directories(${DUKTAPE_LIBRARIES})
> + link_libraries(duktape)
> + endif()
> ++ else()
> ++ set(DUKTAPE_FOUND 0)
> + endif()
> + endif()
It seems patch-bindings_perl_t_CMakeLists.txt is stale. I removed the
patch file and it built fine for me.
FYI...
Jung-uk Kim