git: 7c57122016f0 - main - java/openjdk8: fix build on powerpc64* with clang 15

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 19 Feb 2023 22:28:59 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7c57122016f08708b9329c308775dbaffd916338

commit 7c57122016f08708b9329c308775dbaffd916338
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-02-18 23:46:02 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-02-19 22:28:58 +0000

    java/openjdk8: fix build on powerpc64* with clang 15
    
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u362-b09.1/hotspot/agent/src/os/bsd/symtab.c:266:14: warning: call to undeclared function 'find_section_by_name'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      opd_sect = find_section_by_name(".opd", fd, &ehdr, scn_cache);
                 ^
    /wrkdirs/usr/ports/java/openjdk8/work/jdk8u-jdk8u362-b09.1/hotspot/agent/src/os/bsd/symtab.c:266:12: error: incompatible integer to pointer conversion assigning to 'struct elf_section *' from 'int' [-Wint-conversion]
      opd_sect = find_section_by_name(".opd", fd, &ehdr, scn_cache);
               ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Bump PORTREVISION because the issue actually existed with previous clang versions, but didn't cause an error.
    find_section_by_name() is copied from Linux's symtab.c.
---
 java/openjdk8/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/java/openjdk8/Makefile b/java/openjdk8/Makefile
index d80e69619d3b..64b0e1da605e 100644
--- a/java/openjdk8/Makefile
+++ b/java/openjdk8/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	openjdk
 PORTVERSION=	${JDK_MAJOR_VERSION}.${JDK_UPDATE_VERSION}.${JDK_BUILD_NUMBER}.${BSD_JDK_VERSION}
+PORTREVISION=	1
 CATEGORIES=	java devel
 MASTER_SITES=	LOCAL/jkim:jtreg
 PKGNAMESUFFIX?=	${JDK_MAJOR_VERSION}