Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2022 13:20:07 +0800
From:      "Michael A. Oshin" <micadeyeye@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   New Port: Security/liblurch & Security/Pidgin-lurch
Message-ID:  <CAN2Rk0enAt-0hVj1p%2BafGw5RjAnp4zWcGPGcCEJB5aoyisOP6Q@mail.gmail.com>
In-Reply-To: <CAN2Rk0dPVFWBfK0wE-kUQt9eB_5eUOuRpV=vZ1O-q6oQsfjuCg@mail.gmail.com>
References:  <CAN2Rk0eJU-q%2BBSsS_yvXbkGLYGPn8tnR5kd4sujM=ZNt7Q7sVw@mail.gmail.com> <1062387933.146.1661491191507@localhost> <CAN2Rk0dZcGmqGDS8C6RCv4=dORBUVBeQNU-UNgv9yWSd17cudg@mail.gmail.com> <1126283524.90.1661501545184@localhost> <CAN2Rk0dPVFWBfK0wE-kUQt9eB_5eUOuRpV=vZ1O-q6oQsfjuCg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <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.  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" <micadeyeye@gmail.com>
> *Datum:* vrijdag, 26 augustus 2022 08:55
> *Aan:* Ronald Klop <ronald-lists@klop.ws>
> *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 <ronald-lists@klop.ws> wrote:
>
>> Does this work?
>>
>> HAS_CONFIGURE=off
>>
>> https://docs.freebsd.org/en/books/porters-handbook/slow-porting/#slow-work
>>
>>
>> *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
>> 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

<div dir=3D"auto"><div class=3D"gmail_quote" dir=3D"auto"><div dir=3D"ltr" =
class=3D"gmail_attr">Thanks Ronald and other folks,</div><div dir=3D"ltr"><=
div dir=3D"auto"><div>It now builds and deploys into the right dir. I neede=
d=C2=A0to get rid of the LD_CONFIG too.</div><div>See the makefile at=C2=A0=
<a href=3D"https://github.com/micadeyeye/freebsd-ports/blob/master/security=
/liblurch/Makefile" target=3D"_blank" rel=3D"noreferrer">https://github.com=
/micadeyeye/freebsd-ports/blob/master/security/liblurch/Makefile</a>.</div>=
<div><br></div><div>1) However, how do I get rid of the below error?</div><=
div>---------</div><div>=3D=3D=3D&gt; =C2=A0 Generating temporary packing l=
ist<br>.....</div><div>......<br>=3D=3D=3D=3D&gt; Compressing man pages (co=
mpress-man)<br>=3D=3D=3D&gt; =C2=A0Installing for liblurch-0.7.0<br>=3D=3D=
=3D&gt; =C2=A0Checking if liblurch is already installed<br>usage: cp [-R [-=
H | -L | -P]] [-f | -i | -n] [-alpsvx] source_file target_file<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpsvx] source_=
file ... target_directory<br>*** Error code 64<br><br>Stop.<br>make: stoppe=
d in /usr/ports/security/liblurch/<br></div><div>-------</div><div dir=3D"a=
uto"><br></div><div>2) Next, try use the GH repo (Preferred) and you will s=
ee the below error:</div><div>----------</div><div>=3D=3D=3D&gt; =C2=A0Buil=
ding for liblurch-0.7.0<br>gmake[1]: Entering directory &#39;......ports/se=
curity/liblurch/work/lurch-84f72d8&#39;<br>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<br>./src/lurch.c:14:10: fatal error: &#39;libomemo.h&#39; file not found<=
br>#include &quot;libomemo.h&quot;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~=
~~~~~~~~~<br>1 error generated.<br>gmake[1]: *** [Makefile:148: build/lurch=
.o] Error 1<br></div><div>------</div><div dir=3D"auto">--------------</div=
><div dir=3D"auto"><br></div><div dir=3D"auto">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.</div><div dir=3D"auto"><br></div><div dir=3D"auto">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.</div><div dir=3D"auto"><=
br></div><div dir=3D"auto">Michael</div><div dir=3D"auto"><br><div class=3D=
"gmail_quote" dir=3D"auto"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, Au=
g 26, 2022, 16:12 Ronald Klop &lt;<a href=3D"mailto:ronald-lists@klop.ws" t=
arget=3D"_blank" rel=3D"noreferrer">ronald-lists@klop.ws</a>&gt; wrote:<br>=
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><div>Mmm, lets take another look at it=
.<br>
<br>
>From /usr/ports/Mk/<a href=3D"http://bsd.ports.mk" rel=3D"noreferrer norefe=
rrer" target=3D"_blank">bsd.ports.mk</a>:<br>
<br>
&quot;# Set these variables if your port doesn&#39;t need some of the steps=
.<br>
# Note that there are no NO_PATCH or NO_CONFIGURE variables because<br>
# those steps are empty by default.=C2=A0 NO_EXTRACT is not allowed anymore=
<br>
# since we need to at least create ${WRKDIR}.=C2=A0 Also, NO_CHECKSUM is a =
user<br>
# variable and is not to be set in a port&#39;s Makefile.=C2=A0 See above f=
or NO_PACKAGE.<br>
#<br>
# NO_BUILD=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - Use a dummy (do-nothing) build t=
arget.<br>
# NO_INSTALL=C2=A0=C2=A0=C2=A0 - Use a dummy (do-nothing) install target.<b=
r>
# NO_TEST=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - Use a dummy (do-nothing) te=
st target.&quot;<br>
<br>
Oh, lets take a look at your Makefile.<br>
You <span>have &quot;GNU_CONFIGURE</span>=3D yes&quot; defined. That is why=
 it tries to run configure.<br>
Remove that line and try again.<br>
<br>
See also the link I posted in the previous reply:<br>
&quot;If <code>HAS_CONFIGURE</code> or <code>GNU_CONFIGURE</code> is set, <=
span>WRKSRC/configure</span> is run.&quot;<br>
<br>
Regards,<br>
Ronald.<br>
<br>
=C2=A0
<p><strong>Van:</strong> &quot;Michael A. Oshin&quot; &lt;<a href=3D"mailto=
:micadeyeye@gmail.com" rel=3D"noreferrer noreferrer" target=3D"_blank">mica=
deyeye@gmail.com</a>&gt;<br>
<strong>Datum:</strong> vrijdag, 26 augustus 2022 08:55<br>
<strong>Aan:</strong> Ronald Klop &lt;<a href=3D"mailto:ronald-lists@klop.w=
s" rel=3D"noreferrer noreferrer" target=3D"_blank">ronald-lists@klop.ws</a>=
&gt;<br>
<strong>Onderwerp:</strong> Re: Fwd: New Port: Security/liblurch &amp; Secu=
rity/Pidgin-lurch</p>

<blockquote style=3D"padding-right:0px;padding-left:5px;margin-left:5px;bor=
der-left:#000000 2px solid;margin-right:0px">
<div id=3D"m_6834815342293232477m_-4318882859230864865m_-157257229956409347=
3P">
<div>
<div id=3D"m_6834815342293232477m_-4318882859230864865m_-157257229956409347=
3P.P.P">
<div><span style=3D"color:rgb(68,68,68);font-family:&quot;dejavu sans mono&=
quot;,Menlo,Consolas,Monaco,&quot;Liberation Mono&quot;,&quot;Lucida Consol=
e&quot;,monospace;font-size:12px">HAS_</span><span style=3D"background-colo=
r:rgb(255,222,73);border-radius:1px;font-family:&quot;dejavu sans mono&quot=
;,Menlo,Consolas,Monaco,&quot;Liberation Mono&quot;,&quot;Lucida Console&qu=
ot;,monospace;font-size:12px">CONFIGURE=3Doff </span><span style=3D"border-=
radius:1px;font-family:&quot;dejavu sans mono&quot;,Menlo,Consolas,Monaco,&=
quot;Liberation Mono&quot;,&quot;Lucida Console&quot;,monospace;font-size:1=
2px;background-color:rgb(243,243,243)">in Makefile did not work. A blank co=
nfigure file in dir did not either. I have not seen one in pkg dirs though.=
</span></div>
=C2=A0

<div class=3D"gmail_quote">
<div class=3D"gmail_attr">On Fri, 26 Aug 2022 at 13:19, Ronald Klop &lt;<a =
href=3D"mailto:ronald-lists@klop.ws" rel=3D"noreferrer noreferrer" target=
=3D"_blank">ronald-lists@klop.ws</a>&gt; wrote:</div>

<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex">
<div><span style=3D"color:rgb(68,68,68);font-family:&quot;dejavu sans mono&=
quot;,Menlo,Consolas,Monaco,&quot;Liberation Mono&quot;,&quot;Lucida Consol=
e&quot;,monospace;font-size:12px;background-color:rgb(255,255,255)">Does th=
is work?</span>

<div>=C2=A0</div>

<div><span style=3D"color:rgb(68,68,68);font-family:&quot;dejavu sans mono&=
quot;,Menlo,Consolas,Monaco,&quot;Liberation Mono&quot;,&quot;Lucida Consol=
e&quot;,monospace;font-size:12px;background-color:rgb(255,255,255)">HAS_</s=
pan><span style=3D"background-color:rgb(255,222,73);border-radius:1px;font-=
family:&quot;dejavu sans mono&quot;,Menlo,Consolas,Monaco,&quot;Liberation =
Mono&quot;,&quot;Lucida Console&quot;,monospace;font-size:12px">CONFIGURE=
=3Doff</span><br>
<br>
<a href=3D"https://docs.freebsd.org/en/books/porters-handbook/slow-porting/=
#slow-work" rel=3D"noreferrer noreferrer" target=3D"_blank">https://docs.fr=
eebsd.org/en/books/porters-handbook/slow-porting/#slow-work</a>

<div>=C2=A0
<p><small><strong>Van:</strong> &quot;Michael A. Oshin&quot; &lt;<a href=3D=
"mailto:micadeyeye@gmail.com" rel=3D"noreferrer noreferrer" target=3D"_blan=
k">micadeyeye@gmail.com</a>&gt;<br>
<strong>Datum:</strong> 26 augustus 2022 05:37<br>
<strong>Aan:</strong> <a href=3D"mailto:freebsd-ports@freebsd.org" rel=3D"n=
oreferrer noreferrer" target=3D"_blank">freebsd-ports@freebsd.org</a><br>
<strong>Onderwerp:</strong> Fwd: New Port: Security/liblurch &amp; Security=
/Pidgin-lurch</small></p>

<blockquote style=3D"margin-left:5px;border-left:3px solid rgb(204,204,204)=
;margin-right:0px;padding-left:5px">
<div id=3D"m_6834815342293232477m_-4318882859230864865m_-157257229956409347=
3gmail-m_8212548133571414817P">
<div>
<div id=3D"m_6834815342293232477m_-4318882859230864865m_-157257229956409347=
3gmail-m_8212548133571414817P.P.P">
<div>
<div class=3D"gmail_quote">
<div>Good Morning folks,<br>
<br>
I made a few changes to the liblurch Makefile. It now points to the develop=
er&#39;s github for the pkg. See <a href=3D"https://github.com/micadeyeye/f=
reebsd-ports/blob/master/security/liblurch/Makefile" rel=3D"noreferrer nore=
ferrer" target=3D"_blank">https://github.com/micadeyeye/freebsd-ports/blob/=
master/security/liblurch/Makefile</a>.<br>
<br>
One problem I have with the liblurch is that it wants to run &#39;.configur=
e&#39;. See the below:<br>
<br>
______________________<br>
make -C /usr/local/opt/github/freebsd-ports/security/liblurch/ install clea=
n<br>
=3D=3D=3D&gt; =C2=A0 liblurch-0.7.0 depends on package: gmake&gt;=3D4.3 - f=
ound<br>
=3D=3D=3D&gt; =C2=A0 liblurch-0.7.0 depends on package: pkgconf&gt;=3D1.3.0=
_1 - found<br>
=3D=3D=3D&gt; =C2=A0 liblurch-0.7.0 depends on file: /usr/local/bin/ccache =
- found<br>
=3D=3D=3D&gt; =C2=A0 liblurch-0.7.0 depends on shared library: libmxml.so -=
 found (/usr/local/lib/libmxml.so)<br>
=3D=3D=3D&gt; =C2=A0 liblurch-0.7.0 depends on shared library: libpurple.so=
 - found (/usr/local/lib/libpurple.so)<br>
=3D=3D=3D&gt; =C2=A0Configuring for liblurch-0.7.0<br>
env: ./configure: No such file or directory<br>
=3D=3D=3D&gt; =C2=A0Script &quot;configure&quot; failed unexpectedly.<br>
Please report the problem to <a href=3D"mailto:micadeyeye@gmail.com" rel=3D=
"noreferrer noreferrer" target=3D"_blank">micadeyeye@gmail.com</a> [maintai=
ner] and attach the<br>
&quot;/usr/local/opt/github/freebsd-ports/security/liblurch/work/lurch-0.7.=
0-src/config.log&quot;<br>
including the output of the failure of your make command. Also, it might be=
<br>
a good idea to provide an overview of all packages installed on your system=
<br>
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).<br>
*** Error code 1<br>
<br>
Stop.<br>
make: stopped in /usr/local/opt/github/freebsd-ports/security/liblurch/<br>
_________________________________<br>
<br>
What it should do is ONLY run &#39;gmake install&#39;. Please show me how t=
o replace the process =C2=A0&quot;=3D=3D=3D&gt; =C2=A0Configuring for liblu=
rch-0.7.0<br>
env: ./configure: No such file or directory&quot; with the &quot;gmake inst=
all&quot;.<br>
<br>
On the other hand, please note that the pidgin-lurch (<a href=3D"https://gi=
thub.com/micadeyeye/freebsd-ports/blob/master/security/pidgin-lurch/Makefil=
e" rel=3D"noreferrer noreferrer" target=3D"_blank">https://github.com/micad=
eyeye/freebsd-ports/blob/master/security/pidgin-lurch/Makefile</a>) 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.=
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
=C2=A0</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote></div></blockquote></div></div></div>
</div>
</div></div>

--000000000000dc700705e7322fdc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN2Rk0enAt-0hVj1p%2BafGw5RjAnp4zWcGPGcCEJB5aoyisOP6Q>