Re: Regarding port(s) you maintain in FreeBSD ports collection

2021-11-08 Thread Michael Gmelin



> On 8. Nov 2021, at 00:46, Daniel Engberg  wrote:
> 
> Hi,
> 
> I apologize for the confusion, I tried to catch "everyone" and I've (b)cc
> all maintainers that do no have a Phabricator account but since a lot of
> ports are old and unassigned to I figured that I should also notify
> ports@ too to avoid people missing it.

Which I like, as there is always a chance that there’s a port one relies on 
they might want to adopt and overhaul to prevent removal. It was simply the 
wording that caused some confusing :)

Cheers & thanks for your work,
Michael





cyrus-sasl dependency in bsd.ldap.mk

2021-11-08 Thread Juraj Lutter
Hi Delphij,

you seem to be the most active in bsd.ldap.mk :-)

I’ve found that since openldap-client also depends on cyrus-sasl 
unconditionally, bsd.ldap.mk requires this:

otis@b13:/usr/ports/Mk % git diff -- bsd.ldap.mk
diff --git a/Mk/bsd.ldap.mk b/Mk/bsd.ldap.mk
index a6f37dd99b10..7acbc9c660bb 100644
--- a/Mk/bsd.ldap.mk
+++ b/Mk/bsd.ldap.mk
@@ -77,6 +77,7 @@ IGNORE=   cannot install: doesn't work with 
OpenLDAP version: ${OPENLDAP_VER} (Do
 .  endfor
 .endif # IGNORE_WITH_OPENLDAP
 LIB_DEPENDS+=  
${OPENLDAP${OPENLDAP_VER}_LIB}:net/openldap${OPENLDAP_VER}-client
+LIB_DEPENDS+=  libsasl2.so:security/cyrus-sasl2
 .else
 IGNORE=cannot install: unknown OpenLDAP version: 
${OPENLDAP_VER}
 .endif # Check for correct libs

What are you thought about it?

Thanks
otis

—
Juraj Lutter
o...@freebsd.org




audacity port needing updating

2021-11-08 Thread Jack L.
Hi, can someone help me take a look at the audacity port and possibly commit it?

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259565

I've been constantly running into a situation where the commit to the
port is taking so long that the next version comes out before the port
is committed and then ending up needing to create another patch
against a long outdated port version, etc. Is there any way the
process can be sped up being the maintainer of the port? The audacity
release cycle appears to have a new release in less than a month but
recently the port doesn't get committed for over a month or 2 months
until I email the ports list to get someone's attention.



Re: cyrus-sasl dependency in bsd.ldap.mk

2021-11-08 Thread Xin Li via ports

On 11/8/21 05:39, Juraj Lutter wrote:

Hi Delphij,

you seem to be the most active in bsd.ldap.mk :-)

I’ve found that since openldap-client also depends on cyrus-sasl 
unconditionally, bsd.ldap.mk requires this:

otis@b13:/usr/ports/Mk % git diff -- bsd.ldap.mk
diff --git a/Mk/bsd.ldap.mk b/Mk/bsd.ldap.mk
index a6f37dd99b10..7acbc9c660bb 100644
--- a/Mk/bsd.ldap.mk
+++ b/Mk/bsd.ldap.mk
@@ -77,6 +77,7 @@ IGNORE=   cannot install: doesn't work with 
OpenLDAP version: ${OPENLDAP_VER} (Do
  .  endfor
  .endif # IGNORE_WITH_OPENLDAP
  LIB_DEPENDS+=  
${OPENLDAP${OPENLDAP_VER}_LIB}:net/openldap${OPENLDAP_VER}-client
+LIB_DEPENDS+=  libsasl2.so:security/cyrus-sasl2
  .else
  IGNORE=cannot install: unknown OpenLDAP version: 
${OPENLDAP_VER}
  .endif # Check for correct libs

What are you thought about it?


Could you provide an example that shows the breakage or elaborate more 
about why libsasl2.so needs to be listed as a direct library dependency 
for ports that depends on OpenLDAP?  It's already listed as LIB_DEPENDS 
in openldap*-{server,client} and installing the library should 
automatically bring in cyrus-sasl as needed, no?


Cheers,


OpenPGP_signature
Description: OpenPGP digital signature


Re: cyrus-sasl dependency in bsd.ldap.mk

2021-11-08 Thread Juraj Lutter


> On 8 Nov 2021, at 18:17, Xin Li  wrote:
> 
> On 11/8/21 05:39, Juraj Lutter wrote:
>> Hi Delphij,
>> you seem to be the most active in bsd.ldap.mk :-)
>> I’ve found that since openldap-client also depends on cyrus-sasl 
>> unconditionally, bsd.ldap.mk requires this:
>> otis@b13:/usr/ports/Mk % git diff -- bsd.ldap.mk
>> diff --git a/Mk/bsd.ldap.mk b/Mk/bsd.ldap.mk
>> index a6f37dd99b10..7acbc9c660bb 100644
>> --- a/Mk/bsd.ldap.mk
>> +++ b/Mk/bsd.ldap.mk
>> @@ -77,6 +77,7 @@ IGNORE=   cannot install: doesn't work with 
>> OpenLDAP version: ${OPENLDAP_VER} (Do
>>  .  endfor
>>  .endif # IGNORE_WITH_OPENLDAP
>>  LIB_DEPENDS+=  
>> ${OPENLDAP${OPENLDAP_VER}_LIB}:net/openldap${OPENLDAP_VER}-client
>> +LIB_DEPENDS+=  libsasl2.so:security/cyrus-sasl2
>>  .else
>>  IGNORE=cannot install: unknown OpenLDAP version: 
>> ${OPENLDAP_VER}
>>  .endif # Check for correct libs
>> What are you thought about it?
> 
> Could you provide an example that shows the breakage or elaborate more about 
> why libsasl2.so needs to be listed as a direct library dependency for ports 
> that depends on OpenLDAP?  It's already listed as LIB_DEPENDS in 
> openldap*-{server,client} and installing the library should automatically 
> bring in cyrus-sasl as needed, no?

In fact, I was only looking for a solution to silence this:

> Running Q/A tests (stage-qa)
Error: /usr/local/lib/postfix/postfix-ldap.so is linked to 
/usr/local/lib/libsasl2.so.3 from security/cyrus-sasl2 but it is not declared 
as a dependency
Warning: you need LIB_DEPENDS+=libsasl2.so:security/cyrus-sasl2

And even when LDAP is being pulled in via LIB_DEPENDS in bsd.ldap.mk, there is 
no explicit dependency on cyrus-sasl2.

What would be the better approach? Given that bsd.ldap.mk is not the right 
place.

Thanks.

—
Juraj Lutter
o...@freebsd.org



signature.asc
Description: Message signed with OpenPGP


Port Commit Request textproc/sigil

2021-11-08 Thread Jonathan Chen
Hi,

Can a committer please review and commit:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259444

Cheers.
-- 
Jonathan Chen 



Re: Running out of RAM building devel/llvm13

2021-11-08 Thread Brooks Davis
On Sun, Nov 07, 2021 at 12:38:20AM +0100, Dimitry Andric wrote:
> On 6 Nov 2021, at 23:53, Stephen Montgomery-Smith 
>  wrote:
> > 
> > Does anyone else have the problem of running out of RAM when building 
> > devel/llvm13?  I have 6 CPUS, 4G of RAM, and 4G of swap.
> > 
> > I can solve it by building with MAKE_JOBS_UNSAFE=yes, but then the build is 
> > so slow.
> > 
> > It seems that there is a small part of the build which requires a lot of 
> > RAM, and it would be nice to restrict just that portion of the build to 
> > just one CPU.
> 
> Try turning off the FLANG option. In my release testing for llvm 13.0.0 I 
> found this eats up most of the memory during a build.

If you turn of FLANG, I also recommend disabling MLIR.  It's nominally a
separate thing with other uses, but I believe only flang uses it in tree.
If we could isolate which file(s) use too much memory it might be
possible for upstream to put in an exception to single-thread around
them.

BTW, which architecture are you building for?

-- Brooks


signature.asc
Description: PGP signature


FreeBSD Port: devel/leiningen update to 2.9.7

2021-11-08 Thread Filipe da Silva Santos via ports

Bump to Clojure 1.10.3 (in ports) and fix bugs

--- /usr/local/poudriere/ports/default/devel/leiningen/Makefile 2021-11-02 
03:11:12.752512000 +
+++ Makefile2021-11-08 03:09:52.873181000 +
@@ -1,8 +1,8 @@
 PORTNAME=  leiningen
-PORTVERSION=   2.9.6
+PORTVERSION=   2.9.7
 CATEGORIES=devel lisp java
 MASTER_SITES=  
https://github.com/technomancy/leiningen/releases/download/${PORTVERSION}/:standalone
-DISTFILES= leiningen-${PORTVERSION}-standalone.zip:standalone
+DISTFILES= ${PORTNAME}-${PORTVERSION}-standalone.jar:standalone
 EXTRACT_ONLY=  ${DISTNAME}${EXTRACT_SUFX}
 
 MAINTAINER=ports@FreeBSD.org
@@ -21,7 +21,7 @@
etc/bash_completion.d/_lein.bash \
share/man/man1/lein.1.gz \
share/zsh/site-functions/_lein
-PORTDATA=  leiningen-${PORTVERSION}-standalone.zip
+PORTDATA=  leiningen-${PORTVERSION}-standalone.jar
 
 post-patch:
@${REINPLACE_CMD} -E -e 's|function (.*) \{|\1() {|' \
@@ -29,7 +29,7 @@
-e 's|/etc/leinrc|${PREFIX}/etc/leinrc|' \
-e 's|\.leinrc|./&|' -e 's|source "|. "|' \
-e 's|^if \[\[ (.*) \]\];|if [ \1 ];|' \
-   -e 
's|^LEIN_JAR=.*|LEIN_JAR=${DATADIR}/leiningen-${PORTVERSION}-standalone.zip|' \
+   -e 
's|^LEIN_JAR=.*|LEIN_JAR=${DATADIR}/leiningen-${PORTVERSION}-standalone.jar|' \
${WRKSRC}/bin/lein-pkg
 
 do-install:
@@ -44,7 +44,7 @@
${INSTALL_MAN} ${WRKSRC}/doc/lein.1 \
${STAGEDIR}${PREFIX}/share/man/man1
@${MKDIR} ${STAGEDIR}${DATADIR}
-   ${INSTALL_DATA} ${DISTDIR}/leiningen-${PORTVERSION}-standalone.zip \
+   ${INSTALL_DATA} ${DISTDIR}/leiningen-${PORTVERSION}-standalone.jar \
${STAGEDIR}${DATADIR}
 
 .include 

--- /usr/local/poudriere/ports/default/devel/leiningen/distinfo 2021-11-08 
02:25:56.027816000 +
+++ distinfo2021-11-08 02:35:26.927609000 +
@@ -1,7 +1,5 @@
-TIMESTAMP = 1619717089
-SHA256 (leiningen-2.9.6-standalone.zip) = 
41c543f73eec4327dc20e60d5d820fc2a9dc772bc671610b9c385d9c4f5970b8
-SIZE (leiningen-2.9.6-standalone.zip) = 12760940
-SHA256 (technomancy-leiningen-2.9.6_GH0.tar.gz) = 
2f3b8a7eb710bd3a266975387f216bd4a3bace2f1b0a1f0ae88a93d919d813d9
-SIZE (technomancy-leiningen-2.9.6_GH0.tar.gz) = 923578
-SHA256 (7677dabea40a2d17a42a718ca8c7e450b09e153c.patch) = 
f9459ed6eec5d84bf0ec2270dce35c30da4cc2dfd1d88fe2070d0706874f0fc5
-SIZE (7677dabea40a2d17a42a718ca8c7e450b09e153c.patch) = 925
+TIMESTAMP = 1636338926
+SHA256 (leiningen-2.9.7-standalone.jar) = 
82f01414acecddbb0ebd6d571505bb671a6fd093236bcdac2468cfe5f2eaa802
+SIZE (leiningen-2.9.7-standalone.jar) = 12833202
+SHA256 (technomancy-leiningen-2.9.7_GH0.tar.gz) = 
ab2bae41dde4b5abbf34db00f7c3cca592ed73c38e831aaf31c942bbe4e18d34
+SIZE (technomancy-leiningen-2.9.7_GH0.tar.gz) = 924476

--
Filipe da Silva Santos 
102E 1944 2189 31FF 06EB  3F79 760B AE45 F7B3 008E


signature.asc
Description: PGP signature


Re: FreeBSD Port: devel/leiningen update to 2.9.7

2021-11-08 Thread Jan Beich
Filipe da Silva Santos via ports  writes:

> Bump to Clojure 1.10.3 (in ports) and fix bugs

Landed in https://cgit.FreeBSD.org/ports/commit/?id=816ffe7d1505

Do you need this in /quarterly (2021Q4 branch) as well?



What to do with the "Created by" header comments?

2021-11-08 Thread Mel Pilgrim
In a port I recently submitted, I included the "# Created by: ..." line 
at the top of the Makefile I had seen in other ports.  When the port was 
committed, that line was excluded.


Should I strip this line from ports I maintain as I update them, or let 
it sit until a committer does a tree-wide removal?




Re: FreeBSD Port: devel/leiningen update to 2.9.7 (forgot to Cc sorry)

2021-11-08 Thread Filipe da Silva Santos via ports
Jan Beich  writes:

> Landed in https://cgit.FreeBSD.org/ports/commit/?id=816ffe7d1505

Thank you!

> Do you need this in /quarterly (2021Q4 branch) as well?

It shouldn't be necessary. Clojure 1.10.3 isn't in ports yet (I'll send
a patch soon), so there is no real gain to put in on /quarterly branch.

BTW, I forgot to add those two lines:

--- /usr/local/poudriere/ports/default/devel/leiningen/Makefile 2021-11-08 
20:44:52.224373000 +
+++ /home/shiorid/projects/ports/devel/leiningen/Makefile   2021-11-08 
20:42:49.806204000 +
@@ -11,9 +11,12 @@
 LICENSE=   EPL
 LICENSE_FILE=  ${WRKSRC}/COPYING

+RUN_DEPENDS=   clj:lang/clojure
+
 USE_GITHUB=yes
 GH_ACCOUNT=technomancy
 USE_JAVA=  yes
+JAVA_VERSION=  1.8+
 NO_ARCH=   yes
 NO_BUILD=  yes

Cheers!

--
Filipe da Silva Santos 
102E 1944 2189 31FF 06EB  3F79 760B AE45 F7B3 008E
[ signature.asc: application/pgp-signature ]


signature.asc
Description: PGP signature


FreeBSD port: lang/clojure 1.10.1.447 -> 1.10.3.1020

2021-11-08 Thread Filipe da Silva Santos via ports
Following the devel/leiningen update, let's also bump Clojure version.

Since the last update was in 2019, I'm sendind this patch directly to
the list.

--- /usr/ports/lang/clojure/Makefile2021-11-02 03:11:14.86839 +
+++ /home/shiorid/projects/ports/lang/clojure/Makefile  2021-11-08 
21:33:40.466468000 +
@@ -1,7 +1,7 @@
 # Created by: ijliao
 
 PORTNAME=  clojure
-PORTVERSION=   1.10.1.447
+PORTVERSION=   1.10.3.1020
 CATEGORIES=lang lisp java
 MASTER_SITES=  https://download.clojure.org/install/
 DISTNAME=  clojure-tools-${PORTVERSION}
@@ -23,6 +23,8 @@
 WRKSRC=${WRKDIR}/clojure-tools
 
 post-patch:
+   @${REINPLACE_CMD} 's,BINDIR,${PREFIX}\/bin,g' \
+   ${WRKSRC}/clj
@${REINPLACE_CMD} 's,PREFIX,${DATADIR},g' \
${WRKSRC}/clojure

--- /usr/ports/lang/clojure/pkg-plist   2021-11-02 03:11:14.86849 +
+++ /home/shiorid/projects/ports/lang/clojure/pkg-plist 2021-11-08 
21:13:43.417956000 +
@@ -2,6 +2,6 @@
 bin/clojure
 man/man1/clj.1.gz
 man/man1/clojure.1.gz
-%%DATADIR%%/libexec/clojure-tools-%%PORTVERSION%%.jar
 %%DATADIR%%/deps.edn
 %%DATADIR%%/example-deps.edn
+%%DATADIR%%/libexec/clojure-tools-%%PORTVERSION%%.jar

--
Filipe da Silva Santos 
102E 1944 2189 31FF 06EB  3F79 760B AE45 F7B3 008E


signature.asc
Description: PGP signature


Re: FreeBSD Port: devel/leiningen update to 2.9.7 (forgot to Cc sorry)

2021-11-08 Thread Jan Beich
Filipe da Silva Santos  writes:

> BTW, I forgot to add those two lines:
>
> --- /usr/local/poudriere/ports/default/devel/leiningen/Makefile   
> 2021-11-08 20:44:52.224373000 +
> +++ /home/shiorid/projects/ports/devel/leiningen/Makefile 2021-11-08 
> 20:42:49.806204000 +
> @@ -11,9 +11,12 @@
>  LICENSE= EPL
>  LICENSE_FILE=${WRKSRC}/COPYING
>
> +RUN_DEPENDS= clj:lang/clojure

Rationale to put into the commit message is missing. (a) leiningen
/seems/ to work without clojure installed. (b) leiningen source doesn't
reference "clj" binary. (c) leiningen in other distributions (Alpine,
Arch, Gentoo, Nix, Void) doesn't depend on clojure package.

I'm asking because this change seems unrelated to 2.9.7 update.

$ pkg delete clojure

$ lein repl
As of 2.8.2, the repl task is incompatible with Clojure versions older than 
1.7.0.
You can downgrade to 2.8.1 or use `lein trampoline run -m clojure.main` for a 
simpler fallback repl.
Subprocess failed (exit code: 1)
^C
$ lein trampoline run -m clojure.main
Reflection warning, /tmp/form-init12345.clj:1 - call to invokeStaticMethod 
can't be resolved.
Clojure 1.3.0
user=> (first '(a b c))
a
user=> (print "hello\n")
hello
nil

$ cd $(make -V WRKSRC)/test_projects/sample
$ lein compile
Retrieving codox/codox/0.6.4/codox-0.6.4.pom from clojars
Retrieving codox/codox.leiningen/0.6.4/codox.leiningen-0.6.4.pom from clojars
Retrieving leinjacker/leinjacker/0.4.1/leinjacker-0.4.1.pom from clojars
Retrieving org/clojure/core.contracts/0.0.1/core.contracts-0.0.1.pom from 
central
Retrieving org/clojure/pom.contrib/0.0.26/pom.contrib-0.0.26.pom from central
Retrieving org/sonatype/oss/oss-parent/5/oss-parent-5.pom from central
Retrieving org/clojure/core.unify/0.5.3/core.unify-0.5.3.pom from central
Retrieving org/clojure/clojure/1.4.0/clojure-1.4.0.pom from central
Retrieving org/clojure/core.contracts/0.0.1/core.contracts-0.0.1.jar from 
central
Retrieving org/clojure/core.unify/0.5.3/core.unify-0.5.3.jar from central
Retrieving org/clojure/clojure/1.4.0/clojure-1.4.0.jar from central
Retrieving codox/codox/0.6.4/codox-0.6.4.jar from clojars
Retrieving leinjacker/leinjacker/0.4.1/leinjacker-0.4.1.jar from clojars
Retrieving codox/codox.leiningen/0.6.4/codox.leiningen-0.6.4.jar from clojars



Re: FreeBSD Port: devel/leiningen update to 2.9.7 (forgot to Cc sorry)

2021-11-08 Thread Jan Beich
Jan Beich  writes:

> $ lein repl
> As of 2.8.2, the repl task is incompatible with Clojure versions older than 
> 1.7.0.
> You can downgrade to 2.8.1 or use `lein trampoline run -m clojure.main` for a 
> simpler fallback repl.
> Subprocess failed (exit code: 1)
> ^C

Nevermind "Subprocess failed" part. Only happens when testing under WRKSRC,
probably because it inherits environment from the project under current 
directory.



Re: FreeBSD port: lang/clojure 1.10.1.447 -> 1.10.3.1020

2021-11-08 Thread Jan Beich
Filipe da Silva Santos via ports  writes:

> Following the devel/leiningen update, let's also bump Clojure version.
>
> Since the last update was in 2019, I'm sendind this patch directly to
> the list.
>
> --- /usr/ports/lang/clojure/Makefile  2021-11-02 03:11:14.86839 +
> +++ /home/shiorid/projects/ports/lang/clojure/Makefile2021-11-08 
> 21:33:40.466468000 +
[...]
> --- /usr/ports/lang/clojure/pkg-plist 2021-11-02 03:11:14.86849 +
> +++ /home/shiorid/projects/ports/lang/clojure/pkg-plist   2021-11-08 
> 21:13:43.417956000 +
[...]

lang/clojure/distinfo part is missing:

$ make clean patch
===>  Cleaning for clojure-1.10.3.1020
===>  License EPL accepted by the user
===>   clojure-1.10.3.1020 depends on file: /usr/local/sbin/pkg - found
=> clojure-tools-1.10.3.1020.tar.gz is not in /usr/ports/lang/clojure/distinfo.
=> Either /usr/ports/lang/clojure/distinfo is out of date, or
=> clojure-tools-1.10.3.1020.tar.gz is spelled incorrectly.
*** Error code 1



Re: FreeBSD port: lang/clojure 1.10.1.447 -> 1.10.3.1020

2021-11-08 Thread Jan Beich
Jan Beich  writes:

> Filipe da Silva Santos via ports  writes:
>
>> Following the devel/leiningen update, let's also bump Clojure version.
>>
>> Since the last update was in 2019, I'm sendind this patch directly to
>> the list.
>>
>> --- /usr/ports/lang/clojure/Makefile 2021-11-02 03:11:14.86839 +
>> +++ /home/shiorid/projects/ports/lang/clojure/Makefile   2021-11-08 
>> 21:33:40.466468000 +
> [...]
>> --- /usr/ports/lang/clojure/pkg-plist2021-11-02 03:11:14.86849 
>> +
>> +++ /home/shiorid/projects/ports/lang/clojure/pkg-plist  2021-11-08 
>> 21:13:43.417956000 +
> [...]
>
> lang/clojure/distinfo part is missing:
>
> $ make clean patch
> ===>  Cleaning for clojure-1.10.3.1020
> ===>  License EPL accepted by the user
> ===>   clojure-1.10.3.1020 depends on file: /usr/local/sbin/pkg - found
> => clojure-tools-1.10.3.1020.tar.gz is not in 
> /usr/ports/lang/clojure/distinfo.
> => Either /usr/ports/lang/clojure/distinfo is out of date, or
> => clojure-tools-1.10.3.1020.tar.gz is spelled incorrectly.
> *** Error code 1

After "make makesum" it passed poudriere and looked OK, so landed in
https://cgit.FreeBSD.org/ports/commit/?id=99b204e32d00



Re: cyrus-sasl dependency in bsd.ldap.mk

2021-11-08 Thread Tatsuki Makino
I thought sasl and openldap were merged a long time ago.
Isn't there something wrong with postfix that the ldap and sasl options are 
separated?