[Bug 275141] [NEW PORT] x11/wlopm

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 17 Nov 2023 08:16:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275141

--- Comment #4 from Tino Engel <tino.engel@mail.de> ---
Below the error without USE_GCC but with -Wno-strict-prototypes:
=================

lgrande@elfreebsdo1:~/git/PERSONAL/freebsd-ports/x11/wlopm % cat Makefile
PORTNAME=       wlopm
PORTVERSION=    0.1.0
DISTVERSIONPREFIX=      v
CATEGORIES=     x11 wayland
MASTER_SITES=   https://git.sr.ht/~leon_plickat/${PORTNAME}/archive/
DISTFILES=      ${DISTVERSIONFULL}${EXTRACT_SUFX}
DIST_SUBDIR=    wlopm

MAINTAINER=     tino.engel@mail.de
COMMENT=        Wayland output power management
WWW=            https://git.sr.ht/~leon_plickat/wlopm

LICENSE=        GPLv3
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  wayland-scanner:graphics/wayland
LIB_DEPENDS=    libwayland-client.so:graphics/wayland

USES=           gmake
#USE_GCC=       yes

ALL_TARGET=     wlopm

CFLAGS+=        -Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter \
                -Wconversion -Wformat-security -Wformat -Wsign-conversion \
                -Wfloat-conversion -Wunused-result -I${LOCALBASE}/include \
                -Wno-strict-prototypes
LDFLAGS+=       -L${LOCALBASE}/lib

LIBS=           -lwayland-client

PLIST_FILES=    bin/wlopm \
                share/man/man1/wlopm.1.gz

do-install:
        ${INSTALL} ${WRKSRC}/wlopm ${STAGEDIR}${PREFIX}/bin/wlopm
        ${INSTALL_DATA} ${WRKSRC}/wlopm.1
${STAGEDIR}${PREFIX}/share/man/man1/wlopm.1

.include <bsd.port.mk>
elgrande@elfreebsdo1:~/git/PERSONAL/freebsd-ports/x11/wlopm % make
===>  License GPLv3 accepted by the user
===>   wlopm-0.1.0 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by wlopm-0.1.0 for building
===>  Extracting for wlopm-0.1.0
=> SHA256 Checksum OK for wlopm/v0.1.0.tar.gz.
===>  Patching for wlopm-0.1.0
===>   wlopm-0.1.0 depends on executable: wayland-scanner - found
===>   wlopm-0.1.0 depends on package: gmake>=4.3 - found
===>   wlopm-0.1.0 depends on shared library: libwayland-client.so - found
(/usr/local/lib/libwayland-client.so)
===>  Configuring for wlopm-0.1.0
===>  Building for wlopm-0.1.0
gmake[1]: Entering directory
'/usr/home/elgrande/git/PERSONAL/freebsd-ports/x11/wlopm/work/wlopm-v0.1.0'
wayland-scanner private-code < wlr-output-power-management-unstable-v1.xml >
wlr-output-power-management-unstable-v1.c
wayland-scanner client-header < wlr-output-power-management-unstable-v1.xml >
wlr-output-power-management-unstable-v1.h
cc -O2 -pipe  -Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter
-Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion
-Wunused-result -I/usr/local/include -Wno-strict-prototypes
-fstack-protector-strong -fno-strict-aliasing  -Wall -Werror -Wextra -Wpedantic
-Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion
-Wfloat-conversion -Wunused-result   -c -o wlopm.o wlopm.c
cc -O2 -pipe  -Wall -Werror -Wextra -Wpedantic -Wno-unused-parameter
-Wconversion -Wformat-security -Wformat -Wsign-conversion -Wfloat-conversion
-Wunused-result -I/usr/local/include -Wno-strict-prototypes
-fstack-protector-strong -fno-strict-aliasing  -Wall -Werror -Wextra -Wpedantic
-Wno-unused-parameter -Wconversion -Wformat-security -Wformat -Wsign-conversion
-Wfloat-conversion -Wunused-result   -c -o
wlr-output-power-management-unstable-v1.o
wlr-output-power-management-unstable-v1.c
wlopm.c:96:18: error: a function declaration without a prototype is deprecated
in all versions of C [-Werror,-Wstrict-prototypes]
static void noop () {}
                 ^
                  void
1 error generated.
gmake[1]: *** [<builtin>: wlopm.o] Error 1
gmake[1]: Leaving directory
'/usr/home/elgrande/git/PERSONAL/freebsd-ports/x11/wlopm/work/wlopm-v0.1.0'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/home/elgrande/git/PERSONAL/freebsd-ports/x11/wlopm
elgrande@elfreebsdo1:~/git/PERSONAL/freebsd-ports/x11/wlopm %

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