From nobody Sat Aug 27 05:20:07 2022 X-Original-To: freebsd-ports@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 4MF4ls364rz4ZXLp for ; Sat, 27 Aug 2022 05:20:25 +0000 (UTC) (envelope-from micadeyeye@gmail.com) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MF4lr3Cg5z3SY0 for ; Sat, 27 Aug 2022 05:20:24 +0000 (UTC) (envelope-from micadeyeye@gmail.com) Received: by mail-lf1-x12f.google.com with SMTP id m2so685052lfp.11 for ; Fri, 26 Aug 2022 22:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc; bh=/ylw4GbmzVqTCnQaXwo4g7je3n+L/rTBFPilQhxIhW4=; b=Ep2bFJYexu5gWjS4dvW9tKwiWObmazFAeCWop+hWbhctRSMH+wUiMOtjtGyooCN9Tj mQh1Gmgqlh7Zy9B/PUqrw71gZZd22+pXYf0/gJpKCao8SmcnHHLfQ1N4ZCgQ1tPBjeF9 j+lFXV4PvASwTQVY0hd1ZhdbhqC7QoOEwyO+No1wdsy4sSr7WkZIajF40UAsR/6/Ptda hU271Oox0+xugzW/hZutKoCBMR/ajahVicPxskkqqugC07C0NxaWKUEh2FTRaYa2tiTJ fb1elnb1+CU2ny5P284qXGb+MQyKue0L2HkF89vYyo7SDpzq57InLS04GorenSkU3kRC 2/KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc; bh=/ylw4GbmzVqTCnQaXwo4g7je3n+L/rTBFPilQhxIhW4=; b=KuTrJthKo4PevgMeL6YNJU+EMJFdWQ0nd3mLz4GrAazlENF7EurwiMRw3XkcryEBVe uAbZ9I9m/+RQvJa2k5Lzixe6xBChaBk8PhRabU8uj2SpxKbdhg8on6WVHQVBQBOTlXv+ N8JMq6Ev8hMAB8OXbUqfmHE2pPEKQl0C6bHx3x68wh/k9zaokcqmICLvhGCz7Np4hRaz IURrvtbjO3cgPtLxSV4Lhxw1LxcT6EIcurCx65/VaCQgdq5wK3VcXfhDCQhpLt9f/wOO kffd0KVIaUh68jIQ8FDgVFANb5ZGj+VZnTYfbUFw4TXru1lDWwH1/txQms/9FAug2/tS +hWw== X-Gm-Message-State: ACgBeo2PNT+Hv7DOnZKZliwkCgdd0UyohAjwqdc9lnmbpN0zUiXXV/R8 aC56s3OlFZjX+p+5HXCNfKA88NHuI4/hMJnA2B0obFbO X-Google-Smtp-Source: AA6agR7tiHPuehuZ9446Qii8RWy6Jh7SvUxDmvFNDdYFtThK7fmH9DXV0zq4vmftrDl8Q9d/SBY+XFxcYFTHfzyu7zY= X-Received: by 2002:a05:6512:3f1d:b0:492:348c:5cc9 with SMTP id y29-20020a0565123f1d00b00492348c5cc9mr3521096lfa.399.1661577620908; Fri, 26 Aug 2022 22:20:20 -0700 (PDT) List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 References: <1062387933.146.1661491191507@localhost> <1126283524.90.1661501545184@localhost> In-Reply-To: From: "Michael A. Oshin" Date: Sat, 27 Aug 2022 13:20:07 +0800 Message-ID: Subject: New Port: Security/liblurch & Security/Pidgin-lurch To: freebsd-ports@freebsd.org Content-Type: multipart/alternative; boundary="000000000000dc700705e7322fdc" X-Rspamd-Queue-Id: 4MF4lr3Cg5z3SY0 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=Ep2bFJYe; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of micadeyeye@gmail.com designates 2a00:1450:4864:20::12f as permitted sender) smtp.mailfrom=micadeyeye@gmail.com X-Spamd-Result: default: False [-3.95 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_LONG(-1.00)[-0.996]; NEURAL_HAM_MEDIUM(-0.96)[-0.961]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12f:from]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --000000000000dc700705e7322fdc Content-Type: text/plain; charset="UTF-8" Thanks Ronald and other folks, It now builds and deploys into the right dir. I needed to get rid of the LD_CONFIG too. See the makefile at https://github.com/micadeyeye/freebsd-ports/blob/master/security/liblurch/Makefile . 1) However, how do I get rid of the below error? --------- ===> Generating temporary packing list ..... ...... ====> Compressing man pages (compress-man) ===> Installing for liblurch-0.7.0 ===> Checking if liblurch is already installed usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file target_file cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file ... target_directory *** Error code 64 Stop. make: stopped in /usr/ports/security/liblurch/ ------- 2) Next, try use the GH repo (Preferred) and you will see the below error: ---------- ===> Building for liblurch-0.7.0 gmake[1]: Entering directory '......ports/security/liblurch/work/lurch-84f72d8' cc -fPIC -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=c11 -Wall -g -Wstrict-overflow -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/libpurple -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include -I/usr/local/include/libxml2 -I./headers/jabber -I./lib/libomemo/src -I./lib/axc/src -I./lib/axc/lib/libsignal-protocol-c/src -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE -DPURPLE_PLUGINS -c ./src/lurch.c -o build/lurch.o ./src/lurch.c:14:10: fatal error: 'libomemo.h' file not found #include "libomemo.h" ^~~~~~~~~~~~ 1 error generated. gmake[1]: *** [Makefile:148: build/lurch.o] Error 1 ------ -------------- I have tried several options - e.g. SUB_FILES= ${WRKSRC}/lib/libomemo/ - but no luck.How else can I get it built? I think the do-install throws error too for GH. On a final note, what other steps do I need to do to finalise and publish into ports? I have read the pages but need quicker porting. Michael On Fri, Aug 26, 2022, 16:12 Ronald Klop wrote: > Mmm, lets take another look at it. > > From /usr/ports/Mk/bsd.ports.mk: > > "# Set these variables if your port doesn't need some of the steps. > # Note that there are no NO_PATCH or NO_CONFIGURE variables because > # those steps are empty by default. NO_EXTRACT is not allowed anymore > # since we need to at least create ${WRKDIR}. Also, NO_CHECKSUM is a user > # variable and is not to be set in a port's Makefile. See above for > NO_PACKAGE. > # > # NO_BUILD - Use a dummy (do-nothing) build target. > # NO_INSTALL - Use a dummy (do-nothing) install target. > # NO_TEST - Use a dummy (do-nothing) test target." > > Oh, lets take a look at your Makefile. > You have "GNU_CONFIGURE= yes" defined. That is why it tries to run > configure. > Remove that line and try again. > > See also the link I posted in the previous reply: > "If HAS_CONFIGURE or GNU_CONFIGURE is set, WRKSRC/configure is run." > > Regards, > Ronald. > > > > *Van:* "Michael A. Oshin" > *Datum:* vrijdag, 26 augustus 2022 08:55 > *Aan:* Ronald Klop > *Onderwerp:* Re: Fwd: New Port: Security/liblurch & Security/Pidgin-lurch > > HAS_CONFIGURE=off in Makefile did not work. A blank configure file in dir > did not either. I have not seen one in pkg dirs though. > > On Fri, 26 Aug 2022 at 13:19, Ronald Klop wrote: > >> Does this work? >> >> HAS_CONFIGURE=off >> >> https://docs.freebsd.org/en/books/porters-handbook/slow-porting/#slow-work >> >> >> *Van:* "Michael A. Oshin" >> *Datum:* 26 augustus 2022 05:37 >> *Aan:* freebsd-ports@freebsd.org >> *Onderwerp:* Fwd: New Port: Security/liblurch & Security/Pidgin-lurch >> >> Good Morning folks, >> >> I made a few changes to the liblurch Makefile. It now points to the >> developer's github for the pkg. See >> https://github.com/micadeyeye/freebsd-ports/blob/master/security/liblurch/Makefile >> . >> >> One problem I have with the liblurch is that it wants to run >> '.configure'. See the below: >> >> ______________________ >> make -C /usr/local/opt/github/freebsd-ports/security/liblurch/ install >> clean >> ===> liblurch-0.7.0 depends on package: gmake>=4.3 - found >> ===> liblurch-0.7.0 depends on package: pkgconf>=1.3.0_1 - found >> ===> liblurch-0.7.0 depends on file: /usr/local/bin/ccache - found >> ===> liblurch-0.7.0 depends on shared library: libmxml.so - found >> (/usr/local/lib/libmxml.so) >> ===> liblurch-0.7.0 depends on shared library: libpurple.so - found >> (/usr/local/lib/libpurple.so) >> ===> Configuring for liblurch-0.7.0 >> env: ./configure: No such file or directory >> ===> Script "configure" failed unexpectedly. >> Please report the problem to micadeyeye@gmail.com [maintainer] and >> attach the >> >> "/usr/local/opt/github/freebsd-ports/security/liblurch/work/lurch-0.7.0-src/config.log" >> including the output of the failure of your make command. Also, it might >> be >> a good idea to provide an overview of all packages installed on your >> system >> (e.g. a /usr/local/sbin/pkg-static info -g -Ea). >> *** Error code 1 >> >> Stop. >> make: stopped in /usr/local/opt/github/freebsd-ports/security/liblurch/ >> _________________________________ >> >> What it should do is ONLY run 'gmake install'. Please show me how to >> replace the process "===> Configuring for liblurch-0.7.0 >> env: ./configure: No such file or directory" with the "gmake install". >> >> On the other hand, please note that the pidgin-lurch ( >> https://github.com/micadeyeye/freebsd-ports/blob/master/security/pidgin-lurch/Makefile) >> is the UI modification to Pidgin, and currently, I have only copied the OTR >> UI with no modifications yet to its source code. I need a lot of assistance >> here. >> >> >> >> >> > --000000000000dc700705e7322fdc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks Ronald and other folks,
<= div dir=3D"auto">
It now builds and deploys into the right dir. I neede= d=C2=A0to get rid of the LD_CONFIG too.
=

1) However, how do I get rid of the below error?
<= div>---------
=3D=3D=3D> =C2=A0 Generating temporary packing l= ist
.....
......
=3D=3D=3D=3D> Compressing man pages (co= mpress-man)
=3D=3D=3D> =C2=A0Installing for liblurch-0.7.0
=3D=3D= =3D> =C2=A0Checking if liblurch is already installed
usage: cp [-R [-= H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file target_file
=C2=A0 = =C2=A0 =C2=A0 =C2=A0cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_= file ... target_directory
*** Error code 64

Stop.
make: stoppe= d in /usr/ports/security/liblurch/
-------

2) Next, try use the GH repo (Preferred) and you will s= ee the below error:
----------
=3D=3D=3D> =C2=A0Buil= ding for liblurch-0.7.0
gmake[1]: Entering directory '......ports/se= curity/liblurch/work/lurch-84f72d8'
cc -fPIC -O2 -pipe =C2=A0-fstack= -protector-strong -fno-strict-aliasing =C2=A0-std=3Dc11 -Wall -g -Wstrict-o= verflow -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/= usr/local/include =C2=A0-I/usr/local/include/libpurple -I/usr/local/include= /glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include =C2=A0-I/u= sr/local/include/libxml2 -I./headers/jabber -I./lib/libomemo/src -I./lib/ax= c/src -I./lib/axc/lib/libsignal-protocol-c/src -D_XOPEN_SOURCE=3D700 -D_BSD= _SOURCE -D_DEFAULT_SOURCE -DPURPLE_PLUGINS -c ./src/lurch.c -o build/lurch.= o
./src/lurch.c:14:10: fatal error: 'libomemo.h' file not found<= br>#include "libomemo.h"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~= ~~~~~~~~~
1 error generated.
gmake[1]: *** [Makefile:148: build/lurch= .o] Error 1
------
--------------

I have tried several options= - e.g. SUB_FILES=3D =C2=A0 =C2=A0 =C2=A0${WRKSRC}/lib/libomemo/=C2=A0- but= no luck.How else can I get it built? I think the do-install throws error t= oo for GH.

On a final no= te, what other steps do I need to do to=C2=A0finalise and publish into port= s? I have read the pages but need quicker porting.
<= br>
Michael

On Fri, Au= g 26, 2022, 16:12 Ronald Klop <ronald-lists@klop.ws> wrote:
=
Mmm, lets take another look at it= .

>From /usr/ports/Mk/bsd.ports.mk:

"# Set these variables if your port doesn't need some of the steps= .
# Note that there are no NO_PATCH or NO_CONFIGURE variables because
# those steps are empty by default.=C2=A0 NO_EXTRACT is not allowed anymore=
# since we need to at least create ${WRKDIR}.=C2=A0 Also, NO_CHECKSUM is a = user
# variable and is not to be set in a port's Makefile.=C2=A0 See above f= or NO_PACKAGE.
#
# NO_BUILD=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - Use a dummy (do-nothing) build t= arget.
# NO_INSTALL=C2=A0=C2=A0=C2=A0 - Use a dummy (do-nothing) install target. # NO_TEST=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - Use a dummy (do-nothing) te= st target."

Oh, lets take a look at your Makefile.
You have "GNU_CONFIGURE=3D yes" defined. That is why= it tries to run configure.
Remove that line and try again.

See also the link I posted in the previous reply:
"If HAS_CONFIGURE or GNU_CONFIGURE is set, <= span>WRKSRC/configure is run."

Regards,
Ronald.

=C2=A0

Van: "Michael A. Oshin" <mica= deyeye@gmail.com>
Datum: vrijdag, 26 augustus 2022 08:55
Aan: Ronald Klop <ronald-lists@klop.ws= >
Onderwerp: Re: Fwd: New Port: Security/liblurch & Secu= rity/Pidgin-lurch

HAS_CONFIGURE=3Doff in Makefile did not work. A blank co= nfigure file in dir did not either. I have not seen one in pkg dirs though.=
=C2=A0
On Fri, 26 Aug 2022 at 13:19, Ronald Klop <ronald-lists@klop.ws> wrote:
Does th= is work?
=C2=A0
HAS_CONFIGURE= =3Doff

https://docs.fr= eebsd.org/en/books/porters-handbook/slow-porting/#slow-work
=C2=A0

Van: "Michael A. Oshin" <micadeyeye@gmail.com>
Datum: 26 augustus 2022 05:37
Aan: freebsd-ports@freebsd.org
Onderwerp: Fwd: New Port: Security/liblurch & Security= /Pidgin-lurch

Good Morning folks,

I made a few changes to the liblurch Makefile. It now points to the develop= er's github for the pkg. See https://github.com/micadeyeye/freebsd-ports/blob/= master/security/liblurch/Makefile.

One problem I have with the liblurch is that it wants to run '.configur= e'. See the below:

______________________
make -C /usr/local/opt/github/freebsd-ports/security/liblurch/ install clea= n
=3D=3D=3D> =C2=A0 liblurch-0.7.0 depends on package: gmake>=3D4.3 - f= ound
=3D=3D=3D> =C2=A0 liblurch-0.7.0 depends on package: pkgconf>=3D1.3.0= _1 - found
=3D=3D=3D> =C2=A0 liblurch-0.7.0 depends on file: /usr/local/bin/ccache = - found
=3D=3D=3D> =C2=A0 liblurch-0.7.0 depends on shared library: libmxml.so -= found (/usr/local/lib/libmxml.so)
=3D=3D=3D> =C2=A0 liblurch-0.7.0 depends on shared library: libpurple.so= - found (/usr/local/lib/libpurple.so)
=3D=3D=3D> =C2=A0Configuring for liblurch-0.7.0
env: ./configure: No such file or directory
=3D=3D=3D> =C2=A0Script "configure" failed unexpectedly.
Please report the problem to micadeyeye@gmail.com [maintai= ner] and attach the
"/usr/local/opt/github/freebsd-ports/security/liblurch/work/lurch-0.7.= 0-src/config.log"
including the output of the failure of your make command. Also, it might be=
a good idea to provide an overview of all packages installed on your system=
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/local/opt/github/freebsd-ports/security/liblurch/
_________________________________

What it should do is ONLY run 'gmake install'. Please show me how t= o replace the process =C2=A0"=3D=3D=3D> =C2=A0Configuring for liblu= rch-0.7.0
env: ./configure: No such file or directory" with the "gmake inst= all".

On the other hand, please note that the pidgin-lurch (https://github.com/micad= eyeye/freebsd-ports/blob/master/security/pidgin-lurch/Makefile) is the = UI modification to Pidgin, and currently, I have only copied the OTR UI wit= h no modifications yet to its source code. I need a lot of assistance here.=


=C2=A0
--000000000000dc700705e7322fdc--