Bug 250960 - audio/libsndfile: fails build due to FreeBSD patches
Summary: audio/libsndfile: fails build due to FreeBSD patches
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-08 17:33 UTC by Sergey V. Koupreyenko
Modified: 2020-11-10 10:42 UTC (History)
3 users (show)

See Also:
rhurlin: maintainer-feedback? (multimedia)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey V. Koupreyenko 2020-11-08 17:33:02 UTC
Ports tree is at https://svn.freebsd.org/ports/head@554342

Poudriere jail: 12.2-STABLE, amd64

Poudriere build log:

=>> Building audio/libsndfile
build started at Sun Nov  8 01:16:58 MSK 2020
port directory: /usr/ports/audio/libsndfile
package name: libsndfile-1.0.30
building for: FreeBSD freebsd.fractel.priv 12.2-STABLE FreeBSD 12.2-STABLE 1202503 amd64
maintained by: multimedia@FreeBSD.org
Makefile ident:      $FreeBSD: head/audio/libsndfile/Makefile 553156 2020-10-24 06:23:27Z tcberner $
Poudriere version: 3.3.99.20200326
Host OSVERSION: 1202503
Jail OSVERSION: 1202503
Job Id: 03

---Begin Environment---
SHELL=/bin/csh
OSVERSION=1202503
UNAME_v=FreeBSD 12.2-STABLE 1202503
UNAME_r=12.2-STABLE
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.99.20200326
MAKEOBJDIRPREFIX=/freebsd/obj/amd64
MASTERMNT=/freebsd/poudriere/data/.m/FreeBSD-12-stable-amd64-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=screen
GID=0
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
UID=0
PWD=/freebsd/poudriere/data/.m/FreeBSD-12-stable-amd64-default/ref/.p/pool
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=FreeBSD-12-stable-amd64-default
SCRIPTPREFIX=/usr/local/share/poudriere
OLDPWD=/freebsd/poudriere/data/.m/FreeBSD-12-stable-amd64-default/ref/.p
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for libsndfile-1.0.30:
     DOCS=on: Build and/or install documentation
     EXTERNAL=on: Enable FLAC, Ogg Vorbis, Opus support
     MANPAGES=off: Build and/or install manual pages
     STATIC=off: Build static executables and/or libraries
     TEST=off: Build tests (forces static library only)
===> Use 'make config' to modify these settings
---End OPTIONS List---

--MAINTAINER--
multimedia@FreeBSD.org
--End MAINTAINER--

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
PKG_CONFIG=pkgconf PYTHON="/usr/local/bin/python3.8" XDG_DATA_HOME=/wrkdirs/usr/ports/audio/libsndfile/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/audio/libsndfile/work  HOME=/wrkdirs/usr/ports/audio/libsndfile/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/audio/libsndfile/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin SHELL=/bin/sh CONFIG_SHELL=/bin/sh CMAKE_PREFIX_PATH="/usr/local"
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/audio/libsndfile/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/audio/libsndfile/work  HOME=/wrkdirs/usr/ports/audio/libsndfile/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/audio/libsndfile/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin NO_PIE=yes MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES DESTDIR=/wrkdirs/usr/ports/audio/libsndfile/work/stage PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing "  CPP="cpp" CPPFLAGS="-isystem /usr/local/include"  LDFLAGS=" -fstack-protector-strong " LIBS="-L/usr/local/lib"  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include "  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
PORTDOCS="" DOCS="" NO_DOCS="@comment " EXTERNAL="" NO_EXTERNAL="@comment " MANPAGES="@comment " NO_MANPAGES="" STATIC="@comment " NO_STATIC="" TEST="@comment " NO_TEST="" CMAKE_BUILD_TYPE="release" PYTHON_INCLUDEDIR=include/python3.8  PYTHON_LIBDIR=lib/python3.8  PYTHON_PLATFORM=freebsd12  PYTHON_SITELIBDIR=lib/python3.8/site-packages  PYTHON_SUFFIX=38  PYTHON_VER=3.8  PYTHON_VERSION=python3.8 PYTHON2="@comment " PYTHON3="" OSREL=12.2 PREFIX=%D LOCALBASE=/usr/local  RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/libsndfile"  EXAMPLESDIR="share/examples/libsndfile"  DATADIR="share/libsndfile"  WWWDIR="www/libsndfile"  ETCDIR="etc/libsndfile"
--End PLIST_SUB--

--SUB_LIST--
 DOCS="" NO_DOCS="@comment " EXTERNAL="" NO_EXTERNAL="@comment " MANPAGES="@comment " NO_MANPAGES="" STATIC="@comment " NO_STATIC="" TEST="@comment " NO_TEST="" PREFIX=/usr/local LOCALBASE=/usr/local  DATADIR=/usr/local/share/libsndfile DOCSDIR=/usr/local/share/doc/libsndfile EXAMPLESDIR=/usr/local/share/examples/libsndfile  WWWDIR=/usr/local/www/libsndfile ETCDIR=/usr/local/etc/libsndfile
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
FORCE_PACKAGE=yes
PACKAGE_BUILDING=yes
PACKAGE_BUILDING_FLAVORS=yes
#### /usr/local/etc/poudriere.d/FreeBSD-12-stable-amd64-make.conf ####
KERNCONF=		BUILDER

WITH_PKGNG=		yes
NO_PORTSUPDATE=		yes
NO_CHECKSUM=		yes
NO_IGNORE=		yes
#DISABLE_VULNERABILITIES=	yes

LICENSES_ACCEPTED=	GPLv2+ MSPAT

DEFAULT_VERSIONS+=	apache=2.4
DEFAULT_VERSIONS+=	bdb=5
DEFAULT_VERSIONS+=	gcc=9
DEFAULT_VERSIONS+=	java=14
DEFAULT_VERSIONS+=	linux=c7
#DEFAULT_VERSIONS+=	llvm=90
DEFAULT_VERSIONS+=	mysql=5.7
DEFAULT_VERSIONS+=	perl5=5.32
DEFAULT_VERSIONS+=	pgsql=12
DEFAULT_VERSIONS+=	php=7.4
DEFAULT_VERSIONS+=	python=3.8
DEFAULT_VERSIONS+=	python3=3.8
DEFAULT_VERSIONS+=	ruby=2.6
DEFAULT_VERSIONS+=	samba=4.13
DEFAULT_VERSIONS+=	ssl=base
#### /usr/ports/Mk/Scripts/ports_env.sh ####
_CCVERSION_921dbbb2=FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target: x86_64-unknown-freebsd12.2 Thread model: posix InstalledDir: /usr/bin
_ALTCCVERSION_921dbbb2=none
_CXXINTERNAL_acaad9ca=FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target: x86_64-unknown-freebsd12.2 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld-elf.so.1" "--hash-style=both" "--enable-new-dtags" "-o" "a.out" "/usr/lib/crt1.o" "/usr/lib/crti.o" "/usr/lib/crtbegin.o" "-L/usr/lib" "/dev/null" "-lc++" "-lm" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/crtend.o" "/usr/lib/crtn.o"
CC_OUTPUT_921dbbb2_58173849=yes
CC_OUTPUT_921dbbb2_9bdba57c=yes
CC_OUTPUT_921dbbb2_6a4fe7f5=yes
CC_OUTPUT_921dbbb2_6bcac02b=yes
CC_OUTPUT_921dbbb2_67d20829=yes
CC_OUTPUT_921dbbb2_bfa62e83=yes
CC_OUTPUT_921dbbb2_f0b4d593=yes
CC_OUTPUT_921dbbb2_308abb44=yes
CC_OUTPUT_921dbbb2_f00456e5=yes
CC_OUTPUT_921dbbb2_65ad290d=yes
CC_OUTPUT_921dbbb2_f2776b26=yes
CC_OUTPUT_921dbbb2_b2657cc3=yes
CC_OUTPUT_921dbbb2_380987f7=yes
CC_OUTPUT_921dbbb2_160933ec=yes
CC_OUTPUT_921dbbb2_fb62803b=yes
_OBJC_CCVERSION_921dbbb2=FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) Target: x86_64-unknown-freebsd12.2 Thread model: posix InstalledDir: /usr/bin
_OBJC_ALTCCVERSION_921dbbb2=none
ARCH=amd64
OPSYS=FreeBSD
_OSRELEASE=12.2-STABLE
OSREL=12.2
OSVERSION=1202503
PYTHONBASE=/usr/local
HAVE_COMPAT_IA32_KERN=YES
_SMP_CPUS=4
CONFIGURE_MAX_CMD_LEN=524288
HAVE_PORTS_ENV=1
#### Misc Poudriere ####
DISABLE_MAKE_JOBS=poudriere
---End make.conf---
--Resource limits--
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  33554432
stack size              (kbytes, -s)  524288
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  unlimited
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  11955
open files                      (-n)  1024
virtual mem size        (kbytes, -v)  unlimited
swap limit              (kbytes, -w)  unlimited
socket buffer size       (bytes, -b)  unlimited
pseudo-terminals                (-p)  unlimited
kqueues                         (-k)  unlimited
umtx shared locks               (-o)  unlimited
--End resource limits--
=======================<phase: check-sanity   >============================
===>  License LGPL21+ accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   libsndfile-1.0.30 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.15.10.txz
[freebsd.fractel.priv] Installing pkg-1.15.10...
[freebsd.fractel.priv] Extracting pkg-1.15.10: .......... done
===>   libsndfile-1.0.30 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of libsndfile-1.0.30
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License LGPL21+ accepted by the user
===> Fetching all distfiles required by libsndfile-1.0.30 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License LGPL21+ accepted by the user
===> Fetching all distfiles required by libsndfile-1.0.30 for building
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License LGPL21+ accepted by the user
===> Fetching all distfiles required by libsndfile-1.0.30 for building
===>  Extracting for libsndfile-1.0.30
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for libsndfile-1.0.30
===>  Applying FreeBSD patches for libsndfile-1.0.30 from /usr/ports/audio/libsndfile/files
1 out of 1 hunks failed--saving rejects to CMakeLists.txt.rej
===>  FAILED Applying FreeBSD patch-CMakeLists.txt
===> FAILED to apply cleanly FreeBSD patch(es)  patch-CMakeLists.txt
*** Error code 1

Stop.
make: stopped in /usr/ports/audio/libsndfile
=>> Cleaning up wrkdir
===>  Cleaning for libsndfile-1.0.30
build of audio/libsndfile | libsndfile-1.0.30 ended at Sun Nov  8 01:18:41 MSK 2020
build time: 00:01:44
!!! build failure encountered !!!
Comment 1 Tobias C. Berner freebsd_committer freebsd_triage 2020-11-08 19:04:53 UTC
Moin moin

I cannot reproduce this -- please make sure the checkout of your ports tree contains no local changes.


mfg Tobias
Comment 2 Rainer Hurling freebsd_committer freebsd_triage 2020-11-08 19:09:04 UTC
Hi Sergey,

I just tried audio/libsndfile on Poudriere 12.2 amd64 (r367125) and it builds fine for me.

Do you have any 'special' entries in Poudriere's make.conf?

Another, but unlikely possibility is a broken distfile. In this case, make distclean and make fetch should allow for subsequent patching.
Comment 3 Sergey V. Koupreyenko 2020-11-09 08:17:36 UTC
(In reply to Rainer Hurling from comment #2)

Yes, make.conf has some additional options.
We need them in our work.

Here it is:
KERNCONF=               BUILDER

WITH_PKGNG=             yes
NO_PORTSUPDATE=         yes
NO_CHECKSUM=            yes
NO_IGNORE=              yes

LICENSES_ACCEPTED=      GPLv2+ MSPAT

DEFAULT_VERSIONS+=      apache=2.4
DEFAULT_VERSIONS+=      bdb=5
DEFAULT_VERSIONS+=      gcc=9
DEFAULT_VERSIONS+=      java=14
DEFAULT_VERSIONS+=      linux=c7
DEFAULT_VERSIONS+=      mysql=5.7
DEFAULT_VERSIONS+=      perl5=5.32
DEFAULT_VERSIONS+=      pgsql=12
DEFAULT_VERSIONS+=      php=7.4
DEFAULT_VERSIONS+=      python=3.8
DEFAULT_VERSIONS+=      python3=3.8
DEFAULT_VERSIONS+=      ruby=2.6
DEFAULT_VERSIONS+=      samba=4.13
Comment 4 Sergey V. Koupreyenko 2020-11-09 08:19:57 UTC
I will check the distfiles integrity and report about port's build results as soon as possible.
Comment 5 Sergey V. Koupreyenko 2020-11-10 10:42:37 UTC
I have refetched port's distfile and the problem has gone. Closing this bug.