Summary: | devel/apr1: Fails to build with MariaDB 10.3 | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | White Lynx <lynx> |
Component: | Individual Port(s) | Assignee: | Bernard Spil <brnrd> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | brnrd, dbaio, joneum, mmokhi |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(apache) mmokhi: maintainer-feedback? (brnrd) |
Version: | Latest | ||
Hardware: | amd64 | ||
OS: | Any | ||
URL: | https://reviews.freebsd.org/D19691 | ||
Bug Depends on: | 235744 | ||
Bug Blocks: |
Description
White Lynx
2019-03-21 10:10:24 UTC
I can not reproduce that. Can you please do that: cd /usr/ports/devel/apr1 && make clean && make rmconfig && make install clean (In reply to Jochen Neumeister from comment #1) Well... I reverted vm to a snapshot (portsnap + some modifications to make.conf + openssl) and then made cd /usr/ports/devel/apr1 make install clean The result is: ------------------------ ... libtool: install: /usr/bin/install -m 755 .libs/libaprutil-1.lai /usr/ports/devel/apr1/work/stage/usr/local/lib/libaprutil-1.la libtool: install: /usr/bin/install -m 755 .libs/libaprutil-1.a /usr/ports/devel/apr1/work/stage/usr/local/lib/libaprutil-1.a libtool: install: chmod 644 /usr/ports/devel/apr1/work/stage/usr/local/lib/libaprutil-1.a libtool: install: ranlib /usr/ports/devel/apr1/work/stage/usr/local/lib/libaprutil-1.a libtool: warning: remember to run 'libtool --finish /usr/local/lib' /usr/bin/install -m 644 aprutil.exp /usr/ports/devel/apr1/work/stage/usr/local/lib /usr/bin/install -m 755 apu-config.out /usr/ports/devel/apr1/work/stage/usr/local/bin/apu-1-config /usr/bin/find /usr/ports/devel/apr1/work/stage/usr/local/lib/ -name \*.so | /usr/bin/xargs /usr/bin/strip ====> Compressing man pages (compress-man) ===> Installing for apr-1.6.5.1.6.1_1 ===> Checking if apr is already installed ===> Registering installation for apr-1.6.5.1.6.1_1 pkg-static: Unable to access file /usr/ports/devel/apr1/work/stage/usr/local/lib/apr-util-1/apr_dbd_mysql-1.so:No such file or directory pkg-static: Unable to access file /usr/ports/devel/apr1/work/stage/usr/local/lib/apr-util-1/apr_dbd_mysql.a:No such file or directory pkg-static: Unable to access file /usr/ports/devel/apr1/work/stage/usr/local/lib/apr-util-1/apr_dbd_mysql.so:No such file or directory *** Error code 74 Stop. make[1]: stopped in /usr/ports/devel/apr1 *** Error code 1 Stop. make: stopped in /usr/ports/devel/apr1 ------------------------ Then I did cd /usr/ports/devel/apr1 && make clean && make rmconfig && make install clean ------------------------ libtool: install: chmod 644 /usr/ports/devel/apr1/work/stage/usr/local/lib/libaprutil-1.a libtool: install: ranlib /usr/ports/devel/apr1/work/stage/usr/local/lib/libaprutil-1.a libtool: warning: remember to run 'libtool --finish /usr/local/lib' /usr/bin/install -m 644 aprutil.exp /usr/ports/devel/apr1/work/stage/usr/local/lib /usr/bin/install -m 755 apu-config.out /usr/ports/devel/apr1/work/stage/usr/local/bin/apu-1-config /usr/bin/find /usr/ports/devel/apr1/work/stage/usr/local/lib/ -name \*.so | /usr/bin/xargs /usr/bin/strip ====> Compressing man pages (compress-man) ===> Installing for apr-1.6.5.1.6.1_1 ===> Checking if apr is already installed ===> Registering installation for apr-1.6.5.1.6.1_1 pkg-static: Unable to access file /usr/ports/devel/apr1/work/stage/usr/local/lib/apr-util-1/apr_dbd_mysql-1.so:No such file or directory pkg-static: Unable to access file /usr/ports/devel/apr1/work/stage/usr/local/lib/apr-util-1/apr_dbd_mysql.a:No such file or directory pkg-static: Unable to access file /usr/ports/devel/apr1/work/stage/usr/local/lib/apr-util-1/apr_dbd_mysql.so:No such file or directory *** Error code 74 Stop. make[1]: stopped in /usr/ports/devel/apr1 *** Error code 1 Stop. make: stopped in /usr/ports/devel/apr1 ------------------------ Nothing helped. Is there any way to test what what went wrong? Maybe, some initial configuration state will help a bit? ------------------------ [root@mail ~]# echo $USER toor [root@mail ~]# chsh $USER #Changing user information for toor. Login: toor Password: * Uid [#]: 0 Gid [# or name]: 0 Change [month day year]: Expire [month day year]: Class: russian Home directory: /root Shell: /usr/local/bin/bash Full Name: Bourne-again Superuser Office Location: Office Phone: Home Phone: Other information: [root@mail ~]# cat /etc/make.conf DEFAULT_VERSIONS+= python=3.7 python3=3.7 python2=2.7 ssl=openssl mysql=10.3m php=7.3 WITHOUT_X11=yes [root@mail ~]# pkg info bash-5.0.3 GNU Project's Bourne Again SHell bison-3.3.2,1 Parser generator from FSF, (mostly) compatible with Yacc dialog4ports-0.1.6 Console Interface to configure ports gettext-runtime-0.19.8.1_2 GNU gettext runtime libraries and programs gettext-tools-0.19.8.1_1 GNU gettext development and translation tools gmake-4.2.1_3 GNU version of 'make' utility help2man-1.47.9 Automatically generating simple manual pages from program output indexinfo-0.3.1 Utility to regenerate the GNU info page index libiconv-1.14_11 Character set conversion library m4-1.4.18_1,1 GNU M4 openssl-1.0.2r,1 SSL and crypto library p5-Locale-gettext-1.07 Message handling functions p5-Locale-libintl-1.31 Internationalization library for Perl p5-Text-Unidecode-1.30 Text::Unidecode -- US-ASCII transliterations of Unicode text p5-Unicode-EastAsianWidth-1.40 East Asian Width properties perl5-5.28.1_1 Practical Extraction and Report Language pkg-1.10.5_5 Package manager portmaster-3.19_18 Manage your ports without external databases or languages texinfo-6.6,1 Typeset documentation system with multiple format output Update. I found a bug #235744 with patch attached. After I reverted to initial snapshot and applied that patch: ------------------------ [root@mail /usr/ports]# fetch --no-verify-peer -o ~/patch https://bz-attachments.freebsd.org/attachment.cgi?id=202290 ------------------------ and applied it: ------------------------ [root@mail /usr/ports]# patch < ~/patch ------------------------ apr installed without questions: ------------------------ [root@mail /usr/ports]# pkg info | grep apr apr-1.6.5.1.6.1_1 Apache Portability Library ------------------------ It seems that it is a regression. =( i add @brnrd and @mmokhi is this still a Problem with MariaDB / MySQL? (In reply to Jochen Neumeister from comment #5) Well... After freebsd-update and portsnap I can install mariadb103-client and cannot install apr1. But the patch I found contains some fixes to mariadb103-client, not to apr1. I don't know where the problem is, I just do some google-fu. =( Sorry, apl1, of course. (In reply to White Lynx from comment #7) Hi, I just tried to build port with poudriere+12.0RELEASE jail. I selected MySQL as option, and it builds fine (Or I failed to reproduced?) I pasted my log here: https://termbin.com/acte Maybe it helps you hint me if I am missing something? Thanks in advance. (In reply to Mahdi Mokhtari from comment #8) Here is what I suggest to be the key: ===> Installing existing package /packages/All/mysql56-client-5.6.43.txz [120amd64-default] Installing mysql56-client-5.6.43... I try to install apr1 over mariadb103-client, not mysql56-client. (In reply to Mahdi Mokhtari from comment #8) Look into my make.conf once more, maybe it will help you: ------------------------ [root@mail ~]# cat /etc/make.conf DEFAULT_VERSIONS+= python=3.7 python3=3.7 python2=2.7 ssl=openssl mysql=10.3m php=7.3 WITHOUT_X11=yes (In reply to White Lynx from comment #9) Aha, yes I just tried with mariadb103 instead of mysql... It seems it doesn't build the `apr_dbd_mysql.{so, a}` at all` I could see it has "apr_dbd.{o, lo}" though... Interestingly, I see configure's log saying: " checking for mysql.h... yes checking for mysql_init in -lmysqlclient... no checking for my_global.h... yes checking for mysql_init in -lmysqlclient... (cached) no checking for my_sys.h... yes checking for mysql_init in -lmysqlclient... (cached) no checking for mysql/mysql.h... yes checking for mysql_init in -lmysqlclient... (cached) no checking for mysql/my_global.h... yes checking for mysql_init in -lmysqlclient... (cached) no checking for mysql/my_sys.h... yes checking for mysql_init in -lmysqlclient... (cached) no " Maybe brnrd@ can tell us if it's a known behavior of mariadb. Or if he thinks it's good idea to patch configure script to know the right library, or we can just create symlink to actual library with the same name on mariadb? (In reply to White Lynx from comment #10) OMG. WITHOUT_X11 deprecated. I must be running twice as fast as I do now. =)) (In reply to Mahdi Mokhtari from comment #11) All other versions of mariadb client have a mysql_config patch that was removed in MariaDB 10.3, other ports are not building with MariaDB 10.3 because of this as well. (In reply to Danilo G. Baio from comment #13) Oh, so do you know why it has been removed specifically for MariaDB 10.3? (In reply to Mahdi Mokhtari from comment #14) I don't. When it was repocopied, ports r490140, 'patch-scripts_mysql__config.sh' was removed. And a 'post-configure' part that patches 'mariadb_config.c' was removed in ports r472070. Both cases without mention in the commit message or in the PR. (In reply to Danilo G. Baio from comment #15) Thanks for the info... Possible it's a regression, I'm gonna test it with some minor changes (IIRC I had similar issue while ago on mysql80 or 57...) I'll update here and I'll ping brnrd@ to review/approve the commit hopefully in some hours :) I came up with a patch :) I guess this should fix the problem... You can see the link in URL field as I updated it. @lynx, you can check it out and confirm if it builds fine for you. My build log is uploaded here you can check it out: https://termbin.com/wpjn So if everything is fine, hopefully the patch will land soon :) (In reply to Mahdi Mokhtari from comment #17) same patch in bug 235744 Oh wow... Nice so it seems people already tried and it solved the issue. Interesting that PRs aren't marked as duplicated though :) So, I'm gonna ask brnrd@ if he lets me commit it sooner, as already some people on other PR verified it solves the issue... (In reply to Mahdi Mokhtari from comment #19) I've already tested the patch in comment #4 and it seems to work. =) (In reply to White Lynx from comment #20) Ah, Sorry, I missed it :) Pardon my ignorant `:D, didn't read the PR from start ^_^ so I was punished by doing lots of duplicated stuff :)) (In reply to Mahdi Mokhtari from comment #21) Oh, I understand I made some tl;dr in top comments. =) Anyway, thanks, I'll be waiting for update. Please validate that this has been fixed with https://svnweb.freebsd.org/changeset/ports/496689 and let me know here so I can close the PR. Sorry for the long delay. (In reply to Bernard Spil from comment #23) I confirm. One more tl;dr: ------------------------ [root@mx /usr/ports/devel/apr1]# cat /etc/make.conf DEFAULT_VERSIONS += python=3.7 python3=3.7 python2=2.7 ssl=openssl mysql=10.3m php=7.3 OPTIONS_UNSET += X11 [root@mx /usr/ports/devel/apr1]# cat /usr/ports/databases/mariadb103-client/Makefile # Created by: Bernard Spil <brnrd@FreeBSD.org> # $FreeBSD: head/databases/mariadb103-client/Makefile 490140 2019-01-13 14:43:08Z brnrd $ PORTNAME= mariadb PORTREVISION= 1 PKGNAMESUFFIX= 103-client COMMENT= Multithreaded SQL database (client) MASTERDIR= ${.CURDIR}/../mariadb103-server FILESDIR= ${.CURDIR}/files PATCHDIR= ${.CURDIR}/files PLIST= ${.CURDIR}/pkg-plist CMAKE_ARGS+= -DWITHOUT_SERVER=1 \ -DCONC_WITH_UNITTEST=0 \ -DCONC_WITH_MYSQLCOMPAT=1 \ -DWITH_WSREP=0 USE_LDCONFIG= ${PREFIX}/lib/mysql CLIENT_ONLY= yes CONFLICTS_INSTALL= databases/mytop post-configure: ${REINPLACE_CMD} -Ee 's|(#define INCLUDE.*)"$$|\1 -I${PREFIX}/include"|' \ -e 's|(#define LIBS .*)"$$|\1 -L${PREFIX}/lib"|' \ ${WRKSRC}/libmariadb/mariadb_config/mariadb_config.c post-install: ${RM} -r ${STAGEDIR}${DATADIR} ${RM} -r ${STAGEDIR}${PREFIX}/include/mysql/server post-install-GSSAPI_NONE: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mysql/plugin/auth_gssapi_client.so .include "${MASTERDIR}/Makefile" [root@mx /usr/ports/devel/apr1]# pkg info | grep apr apr-1.6.5.1.6.1_1 Apache Portability Library Update to ports fetched, now apr1 installs ok out of box. Thank you. =) |