Index | Thread | Search

From:
Kirill A. Korinsky <kirill@korins.ky>
Subject:
Re: [update] devel/intellij to 2024.1.4
To:
Lucas Raab <tuftedocelot@fastmail.fm>
Cc:
Robert Palm <developer@robert-palm.de>, OpenBSD ports <ports@openbsd.org>, Klemens Nanni <kn@openbsd.org>
Date:
Sat, 05 Oct 2024 11:32:52 +0200

Download raw body.

Thread
On Fri, 04 Oct 2024 02:01:47 +0200,
Lucas Raab <tuftedocelot@fastmail.fm> wrote:
> 
> On Tue, Oct 01, 2024 at 11:19:27PM GMT, Kirill A. Korinsky wrote:
> > Well,
> > 
> > Now I discovered https://gitlab.com/worthwhileit/bsd/fsnotifier which is
> > used at FreeBSD.
> > 
> > It requires some work but can be used on OpenBSD as well.
> > 
> > Here a port and update for devel/intellij to enjoy it.
> > 
> > Some medium size Java project requires to tune openfiles and kern.maxfiles
> > to value large than 60k
> > 
> > Lucas, do you think we need it?
> 
> Not opposed to it. It's been a while since I've dived into the intellij
> guts, is there an easy way to enable this for PyCharm as well? In
> either/both cases, it would be worth adding some text to pkg/README for
> guidance on adjusting values with a YMMV.
> 
>

Here a diff which includes both intellij and pycharm ports, plus a new port
as archive to import.

I haven't added readme because it will simple repeat that is already said
inside libinotify's readme.

When limit is too low Intellij IDEA / PyCharm shows a popup which lead to a
page https://intellij-support.jetbrains.com/hc/en-us/articles/15268113529362-Inotify-Watches-Limit-Linux

But it continue to work, as it worked before the patch.

Index: devel/intellij/Makefile
===================================================================
RCS file: /cvs/ports/devel/intellij/Makefile,v
retrieving revision 1.99
diff -u -p -r1.99 Makefile
--- devel/intellij/Makefile	8 Sep 2024 02:15:54 -0000	1.99
+++ devel/intellij/Makefile	5 Oct 2024 09:32:00 -0000
@@ -1,6 +1,7 @@
 COMMENT=		IntelliJ IDEA Java IDE
 
 V=			2024.2.1
+REVISION=		0
 DISTNAME=		ideaIC-${V}
 PKGNAME=		intellij-${V}
 CATEGORIES=		devel
@@ -19,6 +20,7 @@ MODJAVA_VER=		17
 BUILD_DEPENDS=		${MODJAVA_RUN_DEPENDS}
 
 RUN_DEPENDS=		devel/desktop-file-utils \
+			devel/intellij-fsnotifier \
 			java/javaPathHelper
 
 NO_TEST=		Yes
@@ -56,5 +58,7 @@ do-install:
 	@ln -s ${TRUEPREFIX}/bin/idea-lightedit \
 		${PREFIX}/bin/intellij-lightedit
 	${INSTALL_MAN} ${FILESDIR}/idea.1 ${PREFIX}/man/man1
+
+	@echo "idea.filewatcher.executable.path=${LOCALBASE}/bin/intellij-fsnotifier" >> ${IJ}/bin/idea.properties
 
 .include <bsd.port.mk>
Index: devel/pycharm/Makefile
===================================================================
RCS file: /cvs/ports/devel/pycharm/Makefile,v
retrieving revision 1.56
diff -u -p -r1.56 Makefile
--- devel/pycharm/Makefile	25 Jul 2024 23:28:21 -0000	1.56
+++ devel/pycharm/Makefile	5 Oct 2024 09:32:00 -0000
@@ -1,6 +1,7 @@
 COMMENT=		Python IDE based on IntelliJ IDEA
 
 V=			2024.1.4
+REVISION=		0
 DISTNAME=		pycharm-community-${V}
 PKGNAME=		pycharm-${V}
 CATEGORIES=		devel
@@ -20,6 +21,7 @@ MODJAVA_VER=		17
 BUILD_DEPENDS=		${MODJAVA_RUN_DEPENDS}
 
 RUN_DEPENDS=		devel/desktop-file-utils \
+			devel/intellij-fsnotifier \
 			java/javaPathHelper
 
 NO_TEST=		Yes
@@ -51,5 +53,7 @@ do-install:
 		${PREFIX}/share/applications/${PROG}.desktop
 .endfor
 	${INSTALL_MAN} ${FILESDIR}/pycharm.1 ${PREFIX}/man/man1
+
+	@echo "idea.filewatcher.executable.path=${LOCALBASE}/bin/intellij-fsnotifier" >> ${PC}/bin/idea.properties
 
 .include <bsd.port.mk>

-- 
wbr, Kirill