[MacPorts] #67290: fnc @0.15: error: declaration does not declare anything

MacPorts noreply at macports.org
Sun Apr 23 03:22:47 UTC 2023


#67290: fnc @0.15: error: declaration does not declare anything
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  mcjsk
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:
      Port:  fnc         |
-------------------------+----------------------

Comment (by mcjsk):

 Please see comment in #64175, which includes the below diff addressing
 this issue by patching -Werror out of the libfossil.c compilation.


 {{{
 diff /home/mark/src/macport-ports
 commit - 0a81b08c5c8033f3b2f71d1185ec0e129e49a612
 path + /home/mark/src/macport-ports
 blob - ef0e1e3feae0cb775fe263136db728db0c09d816
 file + devel/fnc/Portfile
 --- devel/fnc/Portfile
 +++ devel/fnc/Portfile
 @@ -5,7 +5,7 @@ revision        0

  name            fnc
  version         0.15
 -revision        0
 +revision        1
  categories      devel
  license         ISC
  maintainers     {bsdbox.org:mark @mcjsk} \
 @@ -27,8 +27,11 @@ depends_lib-append      port:zlib

  build.type      bsd

 -depends_lib-append      port:zlib
 +patchfiles      libf-Werror-include-ncursesw.diff

 +depends_lib-append      port:zlib \
 +                        port:ncurses
 +
  destroot {
      xinstall -m 755 ${worksrcpath}/src/${name}
 ${destroot}${prefix}/bin/${name}
      xinstall -m 444 ${worksrcpath}/src/${name}.1
 ${destroot}${prefix}/share/man/man1/${name}.1
 blob - /dev/null
 file + devel/fnc/files/libf-Werror-include-ncursesw.diff (mode 644)
 --- /dev/null
 +++ devel/fnc/files/libf-Werror-include-ncursesw.diff
 @@ -0,0 +1,22 @@
 +Index: fnc.bld.mk
 +=======================================================================
 +hash - d5125d91b651e4115400e52857e80fd35cd8fb25ccf50e3828db32c27f119b63
 +hash + 0461726b7bef3caa495e6e17283581bc33b1f0d439da29c2ef477439a27d6d45
 +--- fnc.bld.mk
 ++++ fnc.bld.mk
 +@@ -37,13 +37,13 @@ FOSSIL_CFLAGS =    ${CFLAGS} -Wall -Werror -Wsign-
 compare
 +               -DSQLITE_TRUSTED_SCHEMA=0
 +
 + # FLAGS NEEDED TO BUILD LIBFOSSIL
 +-FOSSIL_CFLAGS =       ${CFLAGS} -Wall -Werror -Wsign-compare -pedantic
 -std=c99
 ++FOSSIL_CFLAGS =       ${CFLAGS} -Wall -Wsign-compare -pedantic -std=c99
 +
 + # On SOME Linux (e.g., Ubuntu 18.04.6), we have to include wchar curses
 from
 + # I/.../ncursesw, but linking to -lncursesw (w/ no special -L path)
 works fine.
 + # FLAGS NEEDED TO BUILD FNC
 + FNC_CFLAGS =  ${CFLAGS} -Wall -Werror -Wsign-compare -pedantic -std=c99
 \
 +-              -I./lib -I./include -I/usr/include/ncursesw \
 ++              -I./lib -I./include \
 +               -D_XOPEN_SOURCE_EXTENDED -DVERSION=${VERSION}
 -DHASH=${HASH} \
 +               -DDATE="${DATE}"
 +
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67290#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list