From nobody Sun Jun 25 21:05:58 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qq3RV6N75z4j5PN; Sun, 25 Jun 2023 21:05:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qq3RV63DFz44PB; Sun, 25 Jun 2023 21:05:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687727158; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Eb1Emf8VtjDLb+fnrmjCl2uPOOHsCjEGwoL2aEoP+Z8=; b=Wj7Fx4rF4MggqcLE837rinyKuCKa79nBhE2ovoraI675wX2wU5woXFwCOTBBDuswX/g43p nqWZYEdbQVHY7LuO/r0Gq4Vx9NJCI9Fp7Gz2km/csYHZTBiH5iO3z1/W8jLCqQFwdiZpJU 8wZWWrs6Gk3C/UqmfKLA6Zs2nIwZr9s7cssXYuU+BTC37f//X1bVlAEVvFxPq6hnWC36/d AWxFvp+Mo76TyBrjkJuFl2ylWDya0BtK/FxYH4PnhQKGIJtCRSJulg7O9btjblw94Mmj7I qc6HGbybEaPf6V63YMKiszEBumSP18ERr+sln5o1QHoMz/klNFDTLdF8Va0QQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687727158; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Eb1Emf8VtjDLb+fnrmjCl2uPOOHsCjEGwoL2aEoP+Z8=; b=SY9LSbX/05zw8FLb5cmWz2X9P3eiEcWJdrgc2kh/0tQWoGG3JyGhOTBEjtSFpIxVn0Rwll 1kvEEQ5jRKHg/kwvt5SJEMaXotS2fxL8DqOa0qQ6Ba4Cfp4jOqQ5dAt8Xk8DtDlE/WvPGQ EpoYbNO3Rqkj6Cl/B3/6NCqMeQUb4arRveSaICadODiF05tp3XWVoP4RFPtBrTaqxuDwqJ IQqjrtCkXrAnT+s1bAGRZvw3gbzGzvCEd6Nc2C9/kqgs+POgfuyTwOpoJz3QiMqrzapk9R BtQXuGIdMZqsftDz8h03Kvk9SnMEA1ew54VJKEqlaUq/4mg4Ei9vXayj+4d78g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687727158; a=rsa-sha256; cv=none; b=Dmj0gB7NgWE6yECqFndhE1Dc081TWRVgXudLC5o8Cfoo0ZPv2wYtnuFVQprtHF+41DVfFz 8NzZFrSEmtDgMzTn9DZHGZ/hjRQcbd2eKa5SDEc9p3CTsBj+IjZP0rsdx1skgfj1GUbT+Y k0fh1JSia/Jmm5LC84cHk6adkqZEmz2A+YjFCreTQROSFm4fpQhbs2Pu6ldFHxy28VALlB yqQOL33EP8NbP8IFkA2DmBX1I/HqJpmf8oGUnCR39WxqgvtRYD0NIrhMN2xEShFHqeIUbQ VwoDrMY3PUbqYIaZTgya0N6V3NBBV36/Z1i8SH19VIj8MyVSVJSpTOXTlBkLyQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Qq3RV55HczjPb; Sun, 25 Jun 2023 21:05:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35PL5wDH092004; Sun, 25 Jun 2023 21:05:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35PL5w0d091999; Sun, 25 Jun 2023 21:05:58 GMT (envelope-from git) Date: Sun, 25 Jun 2023 21:05:58 GMT Message-Id: <202306252105.35PL5w0d091999@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Jason E. Hale" Subject: git: 9942fda7e458 - main - sysutils/cdrdao: Update to 1.2.5 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhale X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9942fda7e458def591546b5ab332db87b55eb369 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhale: URL: https://cgit.FreeBSD.org/ports/commit/?id=9942fda7e458def591546b5ab332db87b55eb369 commit 9942fda7e458def591546b5ab332db87b55eb369 Author: Jason E. Hale AuthorDate: 2023-06-25 20:02:32 +0000 Commit: Jason E. Hale CommitDate: 2023-06-25 21:05:52 +0000 sysutils/cdrdao: Update to 1.2.5 Convert to options helpers and clean up. Take maintainership. https://github.com/cdrdao/cdrdao/releases/tag/rel_1_2_5 --- sysutils/cdrdao/Makefile | 101 ++++++--------------- sysutils/cdrdao/distinfo | 6 +- sysutils/cdrdao/files/patch-configure | 46 ---------- sysutils/cdrdao/files/patch-configure.ac | 48 ++++++++++ sysutils/cdrdao/files/patch-dao_main.cc | 8 +- .../files/patch-scsilib_RULES_i386-freebsd-cc.rul | 34 ------- sysutils/cdrdao/files/patch-scsilib_inc_avoffset.c | 11 --- sysutils/cdrdao/files/patch-scsilib_inc_getfp.c | 20 ---- .../cdrdao/files/patch-scsilib_include_mconfig.h | 17 ---- .../cdrdao/files/patch-scsilib_libschily_format.c | 28 ------ .../cdrdao/files/patch-scsilib_libschily_getfp.c | 28 ------ sysutils/cdrdao/files/patch-trackdb_FormatMp3.cc | 10 -- 12 files changed, 79 insertions(+), 278 deletions(-) diff --git a/sysutils/cdrdao/Makefile b/sysutils/cdrdao/Makefile index ed0559d4dadf..013767ea4a40 100644 --- a/sysutils/cdrdao/Makefile +++ b/sysutils/cdrdao/Makefile @@ -1,103 +1,54 @@ PORTNAME= cdrdao -PORTVERSION= 1.2.4 -PORTREVISION= 5 +DISTVERSION= 1_2_5 CATEGORIES= sysutils audio -MASTER_SITES= SF/cdrdao -DISTNAME= cdrdao-${PORTVERSION} +MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/rel_${DISTVERSION}/ \ + SF/${PORTNAME}/rel_${DISTVERSION} +DISTNAME= ${PORTNAME}-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org -COMMENT?= Record CD-R[W]s in disk-at-once mode +MAINTAINER= jhale@FreeBSD.org +COMMENT= Record CD-R[W]s in disk-at-once mode WWW= http://cdrdao.sourceforge.net/ -LICENSE= GPLv2 +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING -USES= alias compiler:c++11-lang gmake tar:bzip2 -GNU_CONFIGURE= yes +USES= alias autoreconf compiler:c++11-lang gmake iconv localbase tar:bzip2 USE_CXXSTD= c++11 +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-gcdmaster=no \ + --without-pcctsbin \ + --without-pcctsinc \ + --with-posix-threads=no \ + --with-scglib + OPTIONS_DEFINE= DOCS TOC2MP3 MP3OGG OPTIONS_DEFAULT= MP3OGG -MP3OGG_DESC= Build with MP3/Ogg support (for sysutils/gcdmaster) -TOC2MP3_DESC= Build with toc2mp3 (requires audio/lame) - -.include +OPTIONS_SUB= yes -CONFIGURE_ARGS+= --with-gcdmaster=no -.if ${PORT_OPTIONS:MTOC2MP3} -LIB_DEPENDS+= libmp3lame.so:audio/lame -CONFIGURE_ARGS+= --disable-lame-test \ - --with-lame-include=${LOCALBASE}/include \ - --with-lame-lib=${LOCALBASE}/lib -PLIST_SUB+= TOC2MP3="" -.else -CONFIGURE_ARGS+= --with-lame=no -PLIST_SUB+= TOC2MP3="@comment " -.endif -.if ${PORT_OPTIONS:MMP3OGG} -USES+= pkgconfig -LIB_DEPENDS+= libao.so:audio/libao \ +MP3OGG_DESC= Build with MP3/Ogg support (for sysutils/gcdmaster) +MP3OGG_LIB_DEPENDS= libao.so:audio/libao \ libmad.so:audio/libmad \ libvorbis.so:audio/libvorbis -CONFIGURE_ENV+= AO_CFLAGS=-I${LOCALBASE}/include \ - AO_LIBS="-L${LOCALBASE}/lib -lao" \ - MAD_CFLAGS=-I${LOCALBASE}/include \ - MAD_LIBS="-L${LOCALBASE}/lib -lmad" \ - VORBISFILE_CFLAGS=-I${LOCALBASE}/include \ - VORBISFILE_LIBS="-L${LOCALBASE}/lib -lvorbisfile" -.else -CONFIGURE_ARGS+= --with-mp3-support=no --with-ogg-support=no -.endif +MP3OGG_USES= pkgconfig +MP3OGG_CONFIGURE_OFF= --with-mp3-support=no --with-ogg-support=no -.include - -CONFIGURE_ARGS+= --without-pcctsbin --without-pcctsinc \ - --with-posix-threads=no --with-scglib -MAKE_ENV+= CCOM=cc -SCSILIBXARCH!= ${UNAME} -m - -post-extract: - @(cd ${WRKSRC}/scsilib/RULES && ${CP} -p os-freebsd.id os-dragonfly.id) -.if ${SCSILIBXARCH} != "i386" - @${LN} -sf ${WRKSRC}/scsilib/RULES/i386-freebsd-cc.rul \ - ${WRKSRC}/scsilib/RULES/${SCSILIBXARCH}-${OPSYS:tl}-cc.rul -.endif +TOC2MP3_DESC= Build with toc2mp3 (requires audio/lame) +TOC2MP3_LIB_DEPENDS= libmp3lame.so:audio/lame +TOC2MP3_CONFIGURE_OFF= --with-lame=no post-patch: -.for i in 45libdeflt 45libedc 45libfile 45libhfs_iso 45libparanoia 45libunls \ - 45librscg 55cdda2wav 55cdrecord 55cmd 55mkisofs 55mkisofs!@!diag \ - 55readcd 55scgcheck 55scgskeleton 55rscsi 85man - @${RM} ${WRKSRC}/scsilib/TARGETS/${i} -.endfor .for i in cdrdao.man main.cc @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/dao/${i} .endfor - @${REINPLACE_CMD} -E -e 's|(^CDRDAO_DATA_DIR.+=).+|\1 ${DATADIR}|' \ - ${WRKSRC}/dao/Makefile.in .for i in toc2cddb.1 toc2cue.1 @${REINPLACE_CMD} -e 's|1\.2\.2|${PORTVERSION}|g' ${WRKSRC}/utils/${i} .endfor -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/dao/cdrdao ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/dao/cdrdao.man \ - ${STAGEDIR}${PREFIX}/man/man1/cdrdao.1 - ${INSTALL_PROGRAM} ${WRKSRC}/utils/cue2toc ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/utils/cue2toc.1 ${STAGEDIR}${PREFIX}/man/man1 - ${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2cddb ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/utils/toc2cddb.1 ${STAGEDIR}${PREFIX}/man/man1 - ${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2cue ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/utils/toc2cue.1 ${STAGEDIR}${PREFIX}/man/man1 - @${MKDIR} ${STAGEDIR}${DATADIR} - ${INSTALL_DATA} ${WRKSRC}/dao/cdrdao.drivers \ - ${STAGEDIR}${DATADIR}/drivers - -do-install-TOC2MP3-on: - ${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2mp3 ${STAGEDIR}${PREFIX}/bin - -do-install-DOCS-on: +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in CREDITS ChangeLog README README.PlexDAE ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor -.include +.include diff --git a/sysutils/cdrdao/distinfo b/sysutils/cdrdao/distinfo index a19da6295d99..f49c74ebe392 100644 --- a/sysutils/cdrdao/distinfo +++ b/sysutils/cdrdao/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1528148639 -SHA256 (cdrdao-1.2.4.tar.bz2) = 358d9cb83370ceaecdc60564cbf14c2ea2636eac60a966e2461c011ba09853b4 -SIZE (cdrdao-1.2.4.tar.bz2) = 1442181 +TIMESTAMP = 1687630406 +SHA256 (cdrdao-1.2.5.tar.bz2) = d19b67c853c5dba2406afaab6cd788e77f35eebe634cac4679528477c7be01b6 +SIZE (cdrdao-1.2.5.tar.bz2) = 870084 diff --git a/sysutils/cdrdao/files/patch-configure b/sysutils/cdrdao/files/patch-configure deleted file mode 100644 index 8cce3abb0058..000000000000 --- a/sysutils/cdrdao/files/patch-configure +++ /dev/null @@ -1,46 +0,0 @@ ---- configure.orig 2022-05-08 06:17:09 UTC -+++ configure -@@ -7601,12 +7601,12 @@ if test -n "$MAD_CFLAGS"; then - pkg_cv_MAD_CFLAGS="$MAD_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ -- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mad >= 0.10\""; } >&5 -- ($PKG_CONFIG --exists --print-errors "mad >= 0.10") 2>&5 -+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmad >= 0.10\""; } >&5 -+ ($PKG_CONFIG --exists --print-errors "libmad >= 0.10") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then -- pkg_cv_MAD_CFLAGS=`$PKG_CONFIG --cflags "mad >= 0.10" 2>/dev/null` -+ pkg_cv_MAD_CFLAGS=`$PKG_CONFIG --cflags "libmad >= 0.10" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes - else - pkg_failed=yes -@@ -7618,12 +7618,12 @@ if test -n "$MAD_LIBS"; then - pkg_cv_MAD_LIBS="$MAD_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ -- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mad >= 0.10\""; } >&5 -- ($PKG_CONFIG --exists --print-errors "mad >= 0.10") 2>&5 -+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmad >= 0.10\""; } >&5 -+ ($PKG_CONFIG --exists --print-errors "libmad >= 0.10") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then -- pkg_cv_MAD_LIBS=`$PKG_CONFIG --libs "mad >= 0.10" 2>/dev/null` -+ pkg_cv_MAD_LIBS=`$PKG_CONFIG --libs "libmad >= 0.10" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes - else - pkg_failed=yes -@@ -7644,9 +7644,9 @@ else - _pkg_short_errors_supported=no - fi - if test $_pkg_short_errors_supported = yes; then -- MAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mad >= 0.10" 2>&1` -+ MAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmad >= 0.10" 2>&1` - else -- MAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mad >= 0.10" 2>&1` -+ MAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmad >= 0.10" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$MAD_PKG_ERRORS" >&5 diff --git a/sysutils/cdrdao/files/patch-configure.ac b/sysutils/cdrdao/files/patch-configure.ac new file mode 100644 index 000000000000..62cbaebf259f --- /dev/null +++ b/sysutils/cdrdao/files/patch-configure.ac @@ -0,0 +1,48 @@ +Remove redundant check for libao which causes it to always be required even if +mp3 and ogg support are disabled. + +Temporarily support either mad.pc or libmad.pc to prevent breakage with future +versions of libmad. After libmad 0.16.3, new upstream renamed the pkgconfig +file to mad.pc [1], assumingly to conform to what we and most of the Linux +packagers decided upon almost 9 years ago [2], as the original libmad never +had a pkgconfig file. + +[1] https://codeberg.org/tenacityteam/libmad/commit/486e615d4d8aab5b426d8b82b7dfa9867f0b2146 +[2] https://cgit.freebsd.org/ports/commit/audio/libmad?id=d52971d56c7520e7b8af206bc70e05cceed295a5 + +--- configure.ac.orig 2023-02-03 14:46:06 UTC ++++ configure.ac +@@ -314,8 +314,10 @@ dnl Check for libao + esac + + dnl Check for libao ++if test "$with_mp3_support" = yes || test "$with_ogg_support" = yes || test "$en_gcdmaster" = yes; then + PKG_CHECK_MODULES(AO, ao >= 0.8, [AC_DEFINE(HAVE_AO,1,"")], + [echo "gcdmaster, MP3 and Ogg support disabled"; en_gcdmaster=no; with_ogg_support=no; with_mp3_support=no]) ++fi + + dnl Check for OGG support + if test "$with_ogg_support" = yes; then +@@ -326,7 +328,8 @@ if test "$with_mp3_support" = yes; then + dnl Check for MP3 support + if test "$with_mp3_support" = yes; then + PKG_CHECK_MODULES(MAD, mad >= 0.10, [], +- [echo "libMAD detection via pkg-config failed"; with_mp3_support=no]) ++ [PKG_CHECK_MODULES(MAD, libmad >= 0.10, [], ++ [echo "libMAD detection via pkg-config failed"; with_mp3_support=no])]) + if test "$with_mp3_support" = no; then + AC_CHECK_LIB(mad, mad_stream_init, [AC_CHECK_HEADER([mad.h])]) + if test "$ac_cv_lib_mad_mad_stream_init" = yes; then +@@ -339,12 +342,6 @@ if test "$with_mp3_support" = yes; then + echo "MP3 support disabled"; with_mp3_support=no + fi + fi +-fi +- +-dnl Check for libao support +-if test "$with_mp3_support" = yes || test "$with_ogg_support" = yes || test "$en_gcdmaster" = yes; then +-PKG_CHECK_MODULES(AO, ao >= 0.8, [AC_DEFINE(HAVE_AO,1,"")], +- [echo "Building of gcdmaster disabled"; en_gcdmaster=no]) + fi + + if test "$with_ogg_support" = yes; then diff --git a/sysutils/cdrdao/files/patch-dao_main.cc b/sysutils/cdrdao/files/patch-dao_main.cc index 10f7027092f2..4066ab07e5f6 100644 --- a/sysutils/cdrdao/files/patch-dao_main.cc +++ b/sysutils/cdrdao/files/patch-dao_main.cc @@ -1,6 +1,6 @@ ---- dao/main.cc.orig 2018-05-16 10:46:39 UTC +--- dao/main.cc.orig 2023-02-03 14:46:06 UTC +++ dao/main.cc -@@ -2330,15 +2330,7 @@ int main(int argc, char **argv) +@@ -2450,11 +2450,7 @@ int main(int argc, char **argv) Settings* settings = new Settings; @@ -9,10 +9,6 @@ - log_message(3, "Read settings from \"%s\".", settingsPath); - - settingsPath = "/etc/defaults/cdrdao"; -- if (settings->read(settingsPath) == 0) -- log_message(3, "Read settings from \"%s\".", settingsPath); -- -- settingsPath = "/etc/default/cdrdao"; + settingsPath = "%%PREFIX%%/etc/cdrdao.conf"; if (settings->read(settingsPath) == 0) log_message(3, "Read settings from \"%s\".", settingsPath); diff --git a/sysutils/cdrdao/files/patch-scsilib_RULES_i386-freebsd-cc.rul b/sysutils/cdrdao/files/patch-scsilib_RULES_i386-freebsd-cc.rul deleted file mode 100644 index 66da9d4293b1..000000000000 --- a/sysutils/cdrdao/files/patch-scsilib_RULES_i386-freebsd-cc.rul +++ /dev/null @@ -1,34 +0,0 @@ ---- scsilib/RULES/i386-freebsd-cc.rul.orig 2002-10-15 20:43:39 UTC -+++ scsilib/RULES/i386-freebsd-cc.rul -@@ -24,7 +24,8 @@ include $(SRCROOT)/$(RULESDIR)/rules.prg - ########################################################################### - - CPPFLAGS= $(CPPOPTS) $(CPPOPTX) --CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX) -+XCFLAGS:= $(CFLAGS) -+CFLAGS= $(COPTS) $(CWARNOPTS) $(XCFLAGS) $(GCCOPTOPT) $(COPTX) - - CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS) - COPTS= -@@ -57,14 +58,14 @@ LNDYNLIB= @$(SYMLINK) $(TARGET) $(PTARGET_BASE).so - - FLOAT_OPTIONS= - --CC= @echo " ==> COMPILING \"$@\""; gcc --LDCC= @echo " ==> LINKING \"$@\""; gcc --DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc --RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib -+CCCOM= $(CC) -+LDCC= $(CCCOM) -+DYNLD= $(CCCOM) -+RANLIB= ranlib - ARFLAGS= cr --LORDER= lorder --TSORT= tsort -+LORDER= echo -+TSORT= cat - - RMDEP= : --MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M -+MKDEP= $(CCCOM) -M - MKDEP_OUT= diff --git a/sysutils/cdrdao/files/patch-scsilib_inc_avoffset.c b/sysutils/cdrdao/files/patch-scsilib_inc_avoffset.c deleted file mode 100644 index 3f3747078926..000000000000 --- a/sysutils/cdrdao/files/patch-scsilib_inc_avoffset.c +++ /dev/null @@ -1,11 +0,0 @@ ---- scsilib/inc/avoffset.c.orig 2018-05-16 10:46:58 UTC -+++ scsilib/inc/avoffset.c -@@ -61,7 +61,7 @@ main(ac, av) - { - int stdir; - #ifdef HAVE_SCANSTACK -- register struct frame *fp; -+ volatile struct frame *fp; - register int i = 0; - register int o = 0; - diff --git a/sysutils/cdrdao/files/patch-scsilib_inc_getfp.c b/sysutils/cdrdao/files/patch-scsilib_inc_getfp.c deleted file mode 100644 index 86ca4403db0c..000000000000 --- a/sysutils/cdrdao/files/patch-scsilib_inc_getfp.c +++ /dev/null @@ -1,20 +0,0 @@ ---- scsilib/inc/getfp.c.orig 2003-07-12 23:10:47 UTC -+++ scsilib/inc/getfp.c -@@ -56,7 +56,7 @@ - - EXPORT void **___fpoff __PR((char *cp)); - --EXPORT void ** -+EXPORT __noinline void ** - getfp() - { - long **dummy[1]; -@@ -73,7 +73,7 @@ getfp() - * We need this function to fool GCCs check for returning addresses - * from outside the functions local address space. - */ --EXPORT void ** -+EXPORT __noinline void ** - ___fpoff(cp) - char *cp; - { diff --git a/sysutils/cdrdao/files/patch-scsilib_include_mconfig.h b/sysutils/cdrdao/files/patch-scsilib_include_mconfig.h deleted file mode 100644 index 7e83c7f8023b..000000000000 --- a/sysutils/cdrdao/files/patch-scsilib_include_mconfig.h +++ /dev/null @@ -1,17 +0,0 @@ ---- scsilib/include/mconfig.h.orig 2018-05-16 10:46:58 UTC -+++ scsilib/include/mconfig.h -@@ -72,12 +72,12 @@ extern "C" { - * Types/Keywords - */ - --#if defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__) || defined(__sparc64__) -+#if defined(__aarch64__) || defined(__ia64__) || defined(__mips_n64) || defined(__powerpc64__) || (defined(__riscv) && (__riscv_xlen == 64)) || defined(__s390x__) || defined(__sparc64__) || defined(__x86_64__) - #define SIZEOF_LONG_INT 8 - #define SIZEOF_CHAR_P 8 - #define SIZEOF_UNSIGNED_LONG_INT 8 - #define SIZEOF_UNSIGNED_CHAR_P 8 --#elif defined(__i386__) || defined(__powerpc__) || defined(__s390__) || defined(__sparc__) -+#elif defined(__arm__) || defined(__i386__) || defined(__mips__) || defined(__powerpc__) || (defined(__riscv) && (__riscv_xlen == 32)) || defined(__s390__) || defined(__sparc__) - #define SIZEOF_LONG_INT 4 - #define SIZEOF_CHAR_P 4 - #define SIZEOF_UNSIGNED_LONG_INT 4 diff --git a/sysutils/cdrdao/files/patch-scsilib_libschily_format.c b/sysutils/cdrdao/files/patch-scsilib_libschily_format.c deleted file mode 100644 index fe4617417dd5..000000000000 --- a/sysutils/cdrdao/files/patch-scsilib_libschily_format.c +++ /dev/null @@ -1,28 +0,0 @@ ---- scsilib/libschily/format.c.orig 2003-10-18 13:26:50 UTC -+++ scsilib/libschily/format.c -@@ -166,6 +166,7 @@ format(fun, farg, fmt, args) - Ulong res; - char *rfmt; - f_args fa; -+ va_list vl; - - fa.outf = fun; - fa.farg = farg; -@@ -432,6 +433,7 @@ format(fun, farg, fmt, args) - case 'r': /* recursive printf */ - case 'R': /* recursive printf */ - rfmt = va_arg(args, char *); -+ va_copy(vl, args); - /* - * I don't know any portable way to get an arbitrary - * C object from a var arg list so I use a -@@ -446,7 +448,8 @@ format(fun, farg, fmt, args) - * It would be nice to have something like - * __va_arg_list() in stdarg.h - */ -- count += format(fun, farg, rfmt, __va_arg_list(args)); -+ count += format(fun, farg, rfmt, vl); -+ va_end(vl); - continue; - - case 'n': diff --git a/sysutils/cdrdao/files/patch-scsilib_libschily_getfp.c b/sysutils/cdrdao/files/patch-scsilib_libschily_getfp.c deleted file mode 100644 index bf6fb90901c1..000000000000 --- a/sysutils/cdrdao/files/patch-scsilib_libschily_getfp.c +++ /dev/null @@ -1,28 +0,0 @@ ---- scsilib/libschily/getfp.c.orig 2003-07-12 23:10:47 UTC -+++ scsilib/libschily/getfp.c -@@ -23,6 +23,7 @@ - #include - #include - #include -+#include - - #ifndef IS_AVOFFSET - /* -@@ -56,7 +57,7 @@ - - EXPORT void **___fpoff __PR((char *cp)); - --EXPORT void ** -+EXPORT __noinline void ** - getfp() - { - long **dummy[1]; -@@ -73,7 +74,7 @@ getfp() - * We need this function to fool GCCs check for returning addresses - * from outside the functions local address space. - */ --EXPORT void ** -+EXPORT __noinline void ** - ___fpoff(cp) - char *cp; - { diff --git a/sysutils/cdrdao/files/patch-trackdb_FormatMp3.cc b/sysutils/cdrdao/files/patch-trackdb_FormatMp3.cc deleted file mode 100644 index f4f3e867fc12..000000000000 --- a/sysutils/cdrdao/files/patch-trackdb_FormatMp3.cc +++ /dev/null @@ -1,10 +0,0 @@ ---- trackdb/FormatMp3.cc.orig 2018-05-15 13:30:52 UTC -+++ trackdb/FormatMp3.cc -@@ -111,6 +111,7 @@ FormatSupport::Status FormatMp3::madInit - - // Initialize libao for WAV output; - ao_sample_format out_format; -+ memset(&out_format, 0, sizeof(out_format)); - out_format.bits = 16; - out_format.rate = 44100; - out_format.channels = 2;