On 12/11/20 5:39 PM, Stuart Henderson wrote:
> I've committed usockets/uwebsockets, but purritobin build fails:
>
> ===>  Building for purritobin-0.3.2
> c++ -O2 -pipe  -std=c++2a `pkg-config --cflags libusockets` -DUWS_NO_ZLIB 
> src/main.cc -o purrito  `pkg-config --libs l
> ibusockets`
> src/main.cc:270:40: error: no viable conversion from 'struct 
> us_socket_context_options_t' to
>       'uWS::SocketContextOptions'
>     purrito.addServerName(server_name, ssl_options);
>                                        ^~~~~~~~~~~
> /usr/local/include/uWebSockets/App.h:33:12: note: candidate constructor (the 
> implicit copy constructor) not viable: no
>       known conversion from 'struct us_socket_context_options_t' to 'const 
> uWS::SocketContextOptions &' for 1st
>       argument
>     struct SocketContextOptions {
>            ^
> /usr/local/include/uWebSockets/App.h:33:12: note: candidate constructor (the 
> implicit move constructor) not viable: no
>       known conversion from 'struct us_socket_context_options_t' to 
> 'uWS::SocketContextOptions &&' for 1st argument
> /usr/local/include/uWebSockets/App.h:61:85: note: passing argument to 
> parameter 'options' here
>     TemplatedApp &&addServerName(std::string hostname_pattern, 
> SocketContextOptions options = {}) {
>                                                                               
>       ^
> 1 error generated.
>

Dang, I was very careless in my testing.
(that variable type was renamed...)
Sorry about that.
Had to do a small release to update it, attached :)
Thanks a bunch for the catch!
Aisha

diff --git a/www/purritobin/Makefile b/www/purritobin/Makefile
index 1e86eec45c7..86bfd3a6d8a 100644
--- a/www/purritobin/Makefile
+++ b/www/purritobin/Makefile
@@ -6,7 +6,7 @@ CATEGORIES =    www net
 
 GH_ACCOUNT =   PurritoBin
 GH_PROJECT =   PurritoBin
-GH_TAGNAME =   0.2.4
+GH_TAGNAME =   0.3.3
 
 HOMEPAGE =     https://bsd.ac/
 MAINTAINER =   Aisha Tammy <[email protected]>
@@ -15,7 +15,7 @@ MAINTAINER =  Aisha Tammy <[email protected]>
 PERMIT_PACKAGE =       Yes
 
 # uses pledge()
-WANTLIB += ${COMPILER_LIBCXX} c crypto m ssl usockets
+WANTLIB +=     ${COMPILER_LIBCXX} c m usockets
 
 # C++2a
 COMPILER =     base-clang ports-gcc
@@ -33,4 +33,6 @@ post-install:
        ${INSTALL_DATA} ${WRKSRC}/clients/POSIX_shell_client.sh \
                ${PREFIX}/share/purritobin
 
+FAKE_FLAGS =   PREFIX=${TRUEPREFIX}
+
 .include <bsd.port.mk>
diff --git a/www/purritobin/distinfo b/www/purritobin/distinfo
index 33c301930ff..71fc842ca7f 100644
--- a/www/purritobin/distinfo
+++ b/www/purritobin/distinfo
@@ -1,2 +1,2 @@
-SHA256 (PurritoBin-0.2.4.tar.gz) = 5G3GYiaoE5MzhSZ8jrncitBY1lw0FH8aCNAkahKZfbs=
-SIZE (PurritoBin-0.2.4.tar.gz) = 11356
+SHA256 (PurritoBin-0.3.3.tar.gz) = lmjTCXskzvTd8eCKxlGfClbEfk6COuqh90nqHSeQ1wc=
+SIZE (PurritoBin-0.3.3.tar.gz) = 13155
diff --git a/www/purritobin/pkg/PLIST b/www/purritobin/pkg/PLIST
index 9dab363c5bb..e1515bd51c3 100644
--- a/www/purritobin/pkg/PLIST
+++ b/www/purritobin/pkg/PLIST
@@ -3,6 +3,7 @@
 @newuser _purritobin:858:858:daemon:PurritoBin 
Daemon:/nonexistent:/sbin/nologin
 @rcscript ${RCDIR}/purritobin
 @bin bin/purrito
+@man man/man1/purrito.1
 share/doc/pkg-readmes/${PKGSTEM}
 @owner _purritobin
 @group _purritobin

Reply via email to