[Bug 266086] devel/cmake: cmake fails to find specific Java version when several Java versions are installed

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266086

Adriaan de Groot  changed:

   What|Removed |Added

 CC||adr...@freebsd.org

--- Comment #13 from Adriaan de Groot  ---
After `find_package(Java)` you should be using `${Java_JAVA_EXECUTABLE}` or
`${Java_JAVAC_EXECUTABLE}`, which will be the full path of the relevant
executable: do not assume that they are in bin/ under the JAVA_HOME. Well, you
can, and it'd be right most of the time, but there is a specific, explicit,
variable for you to use.

The CMake code suggests that it does obey the CMake variable JAVA_HOME (if set)
and also the environment variable, so there's some experimentation to be done
between running-cmake-from-command-line and running-cmake-in-ports.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 267748] devel/cmake-core: CMAKE_INSTALL_FULL_LOCALSTATEDIR points to /usr/local/var which is invalid on FreeBSD

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267748

Bug ID: 267748
   Summary: devel/cmake-core: CMAKE_INSTALL_FULL_LOCALSTATEDIR
points to /usr/local/var which is invalid on FreeBSD
   Product: Ports & Packages
   Version: Latest
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: Individual Port(s)
  Assignee: k...@freebsd.org
  Reporter: y...@freebsd.org
 Flags: maintainer-feedback?(k...@freebsd.org)
  Assignee: k...@freebsd.org

CMakeLists.txt:
> include(GNUInstallDirs)
> message("CMAKE_INSTALL_FULL_LOCALSTATEDIR=${CMAKE_INSTALL_FULL_LOCALSTATEDIR}")

prints:
> CMAKE_INSTALL_FULL_LOCALSTATEDIR=/usr/local/var

It should be /var because system doesn't have the /usr/local/var directory, and
the ports framework prints this warning:
> Warning: port uses /usr/local/var instead of /var

-- 
You are receiving this mail because:
You are the assignee for the bug.

maintainer-feedback requested: [Bug 267748] devel/cmake-core: CMAKE_INSTALL_FULL_LOCALSTATEDIR points to /usr/local/var which is invalid on FreeBSD

2022-11-13 Thread bugzilla-noreply
Bugzilla Automation  has asked freebsd-kde (Team)
 for maintainer-feedback:
Bug 267748: devel/cmake-core: CMAKE_INSTALL_FULL_LOCALSTATEDIR points to
/usr/local/var which is invalid on FreeBSD
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267748



--- Description ---
CMakeLists.txt:
> include(GNUInstallDirs)
>
message("CMAKE_INSTALL_FULL_LOCALSTATEDIR=${CMAKE_INSTALL_FULL_LOCALSTATEDIR}")

prints:
> CMAKE_INSTALL_FULL_LOCALSTATEDIR=/usr/local/var

It should be /var because system doesn't have the /usr/local/var directory, and
the ports framework prints this warning:
> Warning: port uses /usr/local/var instead of /var


[Bug 267748] devel/cmake-core: CMAKE_INSTALL_FULL_LOCALSTATEDIR points to /usr/local/var which is invalid on FreeBSD

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267748

Yuri Victorovich  changed:

   What|Removed |Added

URL||https://gitlab.kitware.com/
   ||cmake/cmake/-/issues/24159
 CC||y...@freebsd.org

-- 
You are receiving this mail because:
You are the assignee for the bug.

Problem reports for k...@freebsd.org that need special attention

2022-11-13 Thread bugzilla-noreply
To view an individual PR, use:
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id).

The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status  |Bug Id | Description
+---+---
In Progress |266858 | x11/sddm: Fails to start: vte.csh: 19: Syntax err 
New |258293 | www/firefox (1729109) The preferred default font  

2 problems total for which you should take action.


[Bug 266086] devel/cmake: cmake fails to find specific Java version when several Java versions are installed

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266086

Adriaan de Groot  changed:

   What|Removed |Added

 Resolution|--- |Works As Intended
 Status|New |Closed

--- Comment #14 from Adriaan de Groot  ---
CMake-time arguments -- how to get ports to do this is left as an exercise for
the reader -- work. With a modified (to produce less output) CMakeLists.txt,
with jdk 11, 17 and 8 installed, in that order, the following happens:

```
$ rm -rf build/ ; cmake -B build -S .
CMake Error at
/usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
  Could NOT find Java: Found unsuitable version "1.8.0.352", but required is
  at least "11" (found /usr/local/bin/java, found components: Runtime)
```

but I can set a version:

```
$ rm -rf build/ ; cmake -B build -S . -DJAVA_HOME=/usr/local/openjdk11/
-- Found Java: /usr/local/openjdk11/bin/java (found suitable version "11.0.17",
minimum required is "11") found components: Runtime 
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/derp/build
```

or even a newer version:

```
$ rm -rf build/ ; cmake -B build -S . -DJAVA_HOME=/usr/local/openjdk17/
-- Found Java: /usr/local/openjdk17/bin/java (found suitable version "17.0.5",
minimum required is "11") found components: Runtime 
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/derp/build
```

**do** ensure that that command-line argument gets to the CMake invocation.

Note that the executable /usr/local/bin/java is a symlink to a shellscript that
does all *kinds* of stuff, which eventually runs one of the registered java
executables. It doesn't offer an easy (except for the environment variable
JAVA_HOME) way to select a particular Java VM.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[package - 123amd64-default][devel/libdbusmenu-qt] Failed for libdbusmenu-qt6-0.9.3.160420160218_13 in build

2022-11-13 Thread pkg-fallout
You are receiving this mail as a port that you maintain
is failing to build on the FreeBSD package build server.
Please investigate the failure and submit a PR to fix
build.

Maintainer: k...@freebsd.org
Log URL:
http://beefy6.nyi.freebsd.org/data/123amd64-default/97fda7e3a598/logs/libdbusmenu-qt6-0.9.3.160420160218_13.log
Build URL:  
http://beefy6.nyi.freebsd.org/build.html?mastername=123amd64-default&build=97fda7e3a598
Log:

=>> Building devel/libdbusmenu-qt
build started at Sun Nov 13 22:50:56 UTC 2022
port directory: /usr/ports/devel/libdbusmenu-qt
package name: libdbusmenu-qt6-0.9.3.160420160218_13
building for: FreeBSD 123amd64-default-job-10 12.3-RELEASE-p8 FreeBSD 
12.3-RELEASE-p8 amd64
maintained by: k...@freebsd.org
Makefile ident: 
Poudriere version: 3.2.8-23-ga7f8d188
Host OSVERSION: 1400073
Jail OSVERSION: 1203000
Job Id: 10

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1203000
UNAME_v=FreeBSD 12.3-RELEASE-p8
UNAME_r=12.3-RELEASE-p8
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.2.8-23-ga7f8d188
MASTERMNT=/usr/local/poudriere/data/.m/123amd64-default/ref
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=
PWD=/usr/local/poudriere/data/.m/123amd64-default/ref/.p/pool
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=123amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/usr/local/poudriere/data/.m/123amd64-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=qt6
DEPENDS_ARGS=
MAKE_ARGS= FLAVOR=qt6
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for 
libdbusmenu-qt6-0.9.3.160420160218_13:
 DOXYGEN=on: Build documentation (requires doxygen)
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
k...@freebsd.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
QT_SELECT=qt6 
QMAKEMODULES="/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6/libdbusmenu-qt-0.9.3+16.04.20160218/mkspecs/modules:/usr/local/lib/qt6/mkspecs/modules"
 XDG_DATA_HOME=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6  
XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6  
XDG_CACHE_HOME=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6/.cache  
HOME=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6 TMPDIR="/tmp" 
PATH=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
 
PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig
 SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
NINJA_STATUS="[%p %s/%t] " QT_SELECT=qt6 
QMAKEMODULES="/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6/libdbusmenu-qt-0.9.3+16.04.20160218/mkspecs/modules:/usr/local/lib/qt6/mkspecs/modules"
 XDG_DATA_HOME=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6  
XDG_CONFIG_HOME=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6  
XDG_CACHE_HOME=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6/.cache  
HOME=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6 TMPDIR="/tmp" 
PATH=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
 
PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig
 MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES 
DESTDIR=/wrkdirs/usr/ports/devel/libdbusmenu-qt/work-qt6/stage 
PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  
-fstack-protector-strong -fno-strict-aliasing "  CPP=
 "cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" 
CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  
MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  
BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  
BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
QTVER_SUFFIX="6" DOXYGEN="" NO_DOXYGEN="@comment " CMAKE_BUILD_TYPE="release" 
QT_BINDIR="lib/qt6/bin" QT_INCDIR="include/qt6" QT_LIBDIR="lib/qt6" 
QT_ARCHDIR="lib/qt6" QT_PLUGINDIR="lib/qt6/plugins" QT_LIBEXECDIR="libexec/qt6" 
QT_IMPORTDIR="lib/qt6/imports" QT_QMLDIR="lib/qt6/qml" QT_DATADIR="share/qt6" 
QT_DOCDIR="share/doc/qt6" QT_L10NDIR="share/qt6/translations" 
QT_EXAMPLEDIR="share/examples/qt6" QT_TESTDIR="share/qt6/tests" 
QT_MKSPECDIR="lib/qt6/mkspecs" QT_TOOLDIR="libexec/qt6" OSREL=12.3 PREFIX=%D 
LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib 
DOCSDIR="share/doc/libdbusmenu-qt

[Bug 267748] devel/cmake-core: CMAKE_INSTALL_FULL_LOCALSTATEDIR points to /usr/local/var which is invalid on FreeBSD

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267748

Adriaan de Groot  changed:

   What|Removed |Added

 CC||adr...@freebsd.org

--- Comment #1 from Adriaan de Groot  ---
Meta-commentary placed in the CMake issue.

A handful of ports create `/usr/local/var` (security/krb5* and textproc/refdb)
and should probably be fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 267748] devel/cmake-core: CMAKE_INSTALL_FULL_LOCALSTATEDIR points to /usr/local/var which is invalid on FreeBSD

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267748

--- Comment #2 from Adriaan de Groot  ---
Created attachment 238064
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=238064&action=edit
Patch against GNUInstallDirs module

This patch does "the trick" for me, but only with the most minimal of testing.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 242945] devel/cmake: bad interaction with non-default compilers: cmake loses ccache

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242945

--- Comment #5 from Adriaan de Groot  ---
ping? @mandree, I see the workaround is still present in graphics/rawtherapee,
but I really need specific instructions to set this up for testing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.

[Bug 266858] x11/sddm: Fails to start: vte.csh: 19: Syntax error: word unexpected (expecting "then")

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266858

Adriaan de Groot  changed:

   What|Removed |Added

 Status|In Progress |Closed
 CC||adr...@freebsd.org
 Resolution|--- |FIXED

--- Comment #7 from Adriaan de Groot  ---
In 13-STABLE, this doesn't show up because /etc/profile is quite different.
Since it is fixed by des@, closing. It wasn't an SDDM problem after all.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.

[Bug 266858] x11/sddm: Fails to start: /usr/local/etc/profile.d/vte.csh: 19: Syntax error: word unexpected (expecting "then")

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266858

Graham Perrin  changed:

   What|Removed |Added

   Severity|Affects Many People |Affects Some People
   See Also||https://reviews.freebsd.org
   ||/D37034
  Component|Individual Port(s)  |bin
  Flags|maintainer-feedback?(kde@Fr |maintainer-feedback+
   |eeBSD.org), |
   |merge-quarterly?|
   Keywords|needs-patch, needs-qa   |
   Assignee|k...@freebsd.org |adr...@freebsd.org
Version|Latest  |CURRENT
Product|Ports & Packages|Base System
Summary|x11/sddm: Fails to start:   |x11/sddm: Fails to start:
   |vte.csh: 19: Syntax error:  |/usr/local/etc/profile.d/vt
   |word unexpected (expecting  |e.csh: 19: Syntax error:
   |"then") |word unexpected (expecting
   ||"then")
URL||https://cgit.freebsd.org/sr
   ||c/commit/bin/sh/profile?id=
   ||8d7221ca2dd5e0b6c633761b314
   ||cffed82ddca72

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.

[Bug 266858] x11/sddm: Fails to start: /usr/local/etc/profile.d/vte.csh: 19: Syntax error: word unexpected (expecting "then")

2022-11-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266858

Graham Perrin  changed:

   What|Removed |Added

  Flags|maintainer-feedback+|

-- 
You are receiving this mail because:
You are on the CC list for the bug.