Bug 264720 - databases/soci 4.0.3_1 fails to create package
Summary: databases/soci 4.0.3_1 fails to create package
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Neel Chauhan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-16 18:56 UTC by p5B2EA84B3
Modified: 2022-06-17 14:41 UTC (History)
1 user (show)

See Also:
nc: maintainer-feedback+


Attachments
poudriere build log file (shortened) (74.96 KB, text/plain)
2022-06-16 19:05 UTC, p5B2EA84B3
no flags Details
Fixed pkg-plist (1.83 KB, patch)
2022-06-17 05:58 UTC, Vladimir Druzenko
vvd: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description p5B2EA84B3 2022-06-16 18:56:06 UTC
=======================<phase: package        >============================
===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2022-06-16T18:31:29+0000' 'PKG_NOTE_ports_top_git_hash=a2b4a671a2' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=32932bd881' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.3.99.20211130' NO_DEPENDS=yes USER=root UID=0 GID=0
===>  Building package for soci-4.0.3_1
pkg-static: Unable to access file /wrkdirs/usr/ports/databases/soci/work/stage/usr/local/include/soci/mysql/soci-mysql.h:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_mysql.a:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_mysql.so:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_mysql.so.4.0:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_mysql.so.4.0.3:No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/soci
=>> Cleaning up wrkdir
===>  Cleaning for soci-4.0.3_1
build of databases/soci | soci-4.0.3_1 ended at Thu Jun 16 20:44:21 CEST 2022
build time: 00:12:51
!!! build failure encountered !!!
Comment 1 p5B2EA84B3 2022-06-16 19:05:39 UTC
Created attachment 234734 [details]
poudriere build log file (shortened)
Comment 2 Vladimir Druzenko freebsd_committer freebsd_triage 2022-06-16 20:42:04 UTC
You build with MYSQL option off.

I build with:
OPTIONS_FILE_UNSET+=BOOST
OPTIONS_FILE_UNSET+=FIREBIRD
OPTIONS_FILE_UNSET+=MYSQL
OPTIONS_FILE_UNSET+=ODBC
OPTIONS_FILE_UNSET+=PGSQL
OPTIONS_FILE_UNSET+=SQLITE

Got errors:
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/include/soci/mysql/soci-mysql.h:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/include/soci/postgresql/soci-postgresql.h:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/include/soci/sqlite3/soci-sqlite3.h:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_mysql.a:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_mysql.so:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_mysql.so.4.0:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_mysql.so.4.0.3:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_postgresql.a:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_postgresql.so:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_postgresql.so.4.0:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_postgresql.so.4.0.3:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_sqlite3.a:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_sqlite3.so:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_sqlite3.so.4.0:No such file or directory
pkg-static: Unable to access file /tmp/work/usr/ports/databases/soci/work/stage/usr/local/lib/libsoci_sqlite3.so.4.0.3:No such file or directory

pkg-plist need options MYSQL, PGSQL and SQLITE.

I can create patch tomorrow - it's very obvious patch.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2022-06-17 05:58:31 UTC
Created attachment 234746 [details]
Fixed pkg-plist

Can build with all combinations of options now.
Test please.
Comment 4 p5B2EA84B3 2022-06-17 07:31:23 UTC
Thanks @vvd

I confirm that the patch works.
Comment 5 Neel Chauhan freebsd_committer freebsd_triage 2022-06-17 14:37:50 UTC
Patch LGTM. Will commit shortly.
Comment 6 Neel Chauhan freebsd_committer freebsd_triage 2022-06-17 14:41:04 UTC
Committed! Thanks for the report/patch!
Comment 7 commit-hook freebsd_committer freebsd_triage 2022-06-17 14:41:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=52a1e2148c90e509f3910145c64097f10eccae6a

commit 52a1e2148c90e509f3910145c64097f10eccae6a
Author:     VVD <vvd@unislabs.com>
AuthorDate: 2022-06-17 14:39:31 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-06-17 14:39:31 +0000

    databases/soci: Fix pkg-plist errors

    PR:             264720
    Reported by:    p5B2EA84B3@t-online.de
    Approved by:    nc@ (maintainer)

 databases/soci/pkg-plist | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)