From nobody Fri Aug 26 17:07:53 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 4MDmVj03g5z4ZW7s for ; Fri, 26 Aug 2022 17:07:56 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MDmVg54DPz3S2k for ; Fri, 26 Aug 2022 17:07:55 +0000 (UTC) (envelope-from ronald-lists@klop.ws) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:References: To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JIU+Nvj3X8Qk2mjjvrJkWwOQ1TLqZZTbO4U1Swkh9Y8=; b=vCo9heybt+kvl0bHZhpu+12mSk SqugQz1KS4uYkod3y69tmoSLQz7jQyXrZ5c6izpNsT/5/wJ7cTwfNM/9kMXz+45A739hneEeS/mu8 5KAG36CL5UN922wAW5heQkO6OlAV30Kfy9noVjzvVoc6j8uFgS81lcBOKdjyXTbM4Pio=; Message-ID: <43f8891d-162b-1cca-94d7-9facca9e3a20@klop.ws> Date: Fri, 26 Aug 2022 19:07:53 +0200 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: Fwd: New Port: Security/liblurch & Security/Pidgin-lurch Content-Language: en-US To: freebsd-ports@freebsd.org References: <1062387933.146.1661491191507@localhost> <1126283524.90.1661501545184@localhost> From: Ronald Klop In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Spam-Level: / X-Spam-Score: -0.4 X-Spam-Status: No, score=-0.4 required=5.0 tests=ALL_TRUSTED,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.2 X-Scan-Signature: fe741e38e2a2daf11bd87aa0c4b7285b X-Rspamd-Queue-Id: 4MDmVg54DPz3S2k X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b=vCo9heyb; dmarc=pass (policy=quarantine) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,quarantine]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 8/26/22 17:26, Michael A. Oshin wrote: > Thanks Ronald. > 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/ > ------- > You can run make with some flags to get output about the actual commands it runs. See man make, but I think this will give something useful: make -d elx > 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. I'm sorry, but I don't have the time to dive this deep into this port. SUB_FILES is not the right statement. You need to add the directory containing libomemo.h to the CFLAGS. Something like "CFLAGS+=-I${WRKSRC}/lib/limomemo". I see that this is already in the cc command: "-I./lib/libomemo/src". Isn't this the right directory? > 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. Your usage of ${USER} in the do-install step would only work if the port is executed as a regular user. Although not impossible most ports install in a general location which is usable by all users on a system. Also if you want your port to be available as a general pkg installing in /usr/home/${USER} is not possible because the right ${USER} does not exist on the pkg builders. Regards, Ronald. > > 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. > > >