You're missing the version number in DISTNAME.

--
 Sent from a phone, apologies for poor formatting.

On 20 July 2023 16:29:37 Matthias Schmidt <open...@xosc.org> wrote:

Hi,

today I tried to change the Makefile of audio/cmus to build the latest
master from Github instead of the release (see diff).  I copied the port
to mystuff/ and modified the Makefile accordingly.  All went well until
I hit the package building step.  It fails as follows:

===>  Building package for cmus-devel
Create /usr/ports/packages/amd64/all/cmus-devel.tgz
Creating package cmus-devel
pkg_create: Can't call method "p" on an undefined value
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2151 '/usr/ports/packages/amd64/all/cmus-devel.tgz': @trap "cd /usr/ports/package...) *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2633 '_internal-package': @case X${_DEPENDS_CACHE} in X) _DEPENDS_CACHE=$(/usr/b...) *** Error 2 in /usr/ports/mystuff/audio/cmus (/usr/ports/infrastructure/mk/bsd.port.mk:2612 'package': @lock=cmus-devel; export _LOCKS_HELD...)

Googling for the error revealed that this is a Perl related error.
Is that an oversight on my end or a bug in the pkg* implementation?

Cheers

        Matthias


diff -ru /usr/ports/audio/cmus/Makefile cmus/Makefile
--- /usr/ports/audio/cmus/Makefile      Sat May 20 10:02:37 2023
+++ cmus/Makefile       Thu Jul 20 15:19:34 2023
@@ -1,14 +1,12 @@
COMMENT-main=           ncurses-based music player
COMMENT-ffmpeg=         ffmpeg input plugin for cmus (.aac, .mp4...)

-V=                     2.10.0
-
GH_ACCOUNT=             cmus
GH_PROJECT=             cmus
-GH_TAGNAME=            v${V}
-REVISION=              0
+GH_COMMIT=             afa2bdbcca4c00faa3efdd0e80a8809bb643e74f
CATEGORIES=             audio
HOMEPAGE=               https://cmus.github.io/
+DISTNAME=              cmus-devel

# GPLv2+
PERMIT_PACKAGE= Yes
diff -ru /usr/ports/audio/cmus/distinfo cmus/distinfo
--- /usr/ports/audio/cmus/distinfo      Wed Aug 10 08:17:58 2022
+++ cmus/distinfo       Thu Jul 20 15:14:50 2023
@@ -1,2 +1,2 @@
-SHA256 (cmus-2.10.0.tar.gz) = /0AGhXSBCn3jmQ9PacnEfvSeN70x0pjTcui82vuXP/8=
-SIZE (cmus-2.10.0.tar.gz) = 324121
+SHA256 (cmus-devel-afa2bdbc.tar.gz) = Pd2heuF/1dwHwEXNd2fkpJCwmETmlaJ4TOe8D7F3xJw=
+SIZE (cmus-devel-afa2bdbc.tar.gz) = 334058
Only in /usr/ports/audio/cmus/patches: patch-ip_ffmpeg_c

Reply via email to