[workaround] 10.6.8 & mysql57

Bjarne D Mathiesen macintosh at mathiesen.info
Thu Jan 28 06:20:40 UTC 2021


So. Let me start by reverting my changes :

#=> cat libtoolRevert
#!/opt/local/bin/bash

declare usrBin='/usr/bin'
declare devBin="/Developer${usrBin}"

while read -u 9 cctool
do
    theTool=$( basename ${cctool} )
    echo ${theTool}
    for binDir in "${usrBin}" "${devBin}"
    do
        rm "${binDir}/${theTool}"
    done
done 9< <( port contents cctools | fgrep /bin/ )

for binDir in "${usrBin}" "${devBin}"
do
    while read -u 9 orig
    do
         mv -v "${orig}" "${binDir}/$( basename "${orig}" ".orig" )"
    done 9< <( find "${binDir}" -name '*.orig' )
done

The mysql57 Portfile is modified in a private repostitory:

name                mysql57
set name_mysql      ${name}
version             5.7.33
set boost_version   1.59.0
# Set revision_client and revision_server to 0 on version bump.
set revision_client 1
set revision_server 1
set version_branch  [join [lrange [split ${version} .] 0 1] .]
categories          databases


        reinplace "s|@PREFIX@|${prefix}|g" \
            ${cmake.build_dir}/macports/macports-default.cnf \
            ${cmake.build_dir}/macports/my.cnf
        # don't force /usr/bin/libtool -- allow cctools' version to be used
        reinplace "s|/usr/bin/libtool|libtool|g" \
            ${worksrcpath}/cmake/libutils.cmake
    }

    configure.args-delete \
        -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
    configure.args-append \
        -DCMAKE_INSTALL_NAME_DIR:STRING=${prefix}/lib/${name_mysql}/mysql \

And I get :

#=> port outdated
The following installed ports are outdated:
mysql57                        5.7.32_0 < 5.7.33_1
mysql57-server                 5.7.32_0 < 5.7.33_1

#=> port -cuNp upgrade mysql57-server
Portfile changed since last build; discarding previous state.
--->  Computing dependencies for mysql57
--->  Fetching distfiles for mysql57
--->  Attempting to fetch mysql-5.7.33.tar.gz from
https://cdn.mysql.com/Downloads/MySQL-5.7
--->  Verifying checksums for mysql57

--->  Extracting mysql57
--->  Applying patches to mysql57
Warning: reinplace
s|@WORKSRCPATH@|/opt/local/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_databases_mysql57/mysql57/work/mysql-5.7.33|g
didn't change anything in
/opt/local/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_databases_mysql57/mysql57/work/mysql-5.7.33/cmake/install_layout.cmake
Warning: reinplace s|/usr/bin/libtool|libtool|g didn't change anything
in
/opt/local/var/macports/build/_Volumes_Bjarne_WebServer_MacPorts_newPorts_databases_mysql57/mysql57/work/mysql-5.7.33/cmake/libutils.cmake
--->  Configuring mysql57
--->  Building mysql57
Error: Failed to build mysql57: command execution failed
Error: See
/opt/local/var/macports/logs/_Volumes_Bjarne_WebServer_MacPorts_newPorts_databases_mysql57/mysql57/main.log
for details.

Keeepint my original workaround still works

Ken Cunningham wrote:
> Hey, I fixed that properly here <https://github.com/macports/macports-ports/commit/711eff230811974a2b995dd598a7af9a2ed1e9fc>
> 
> if it doesn’t work for you, let me know.
> 
> no need to overwrite all your /usr/bin stuff and cause who-knows-what damage…
> 
> Ken
> 

-- 
Bjarne D Mathiesen
Korsør ; Danmark ; Europa
----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
macOS 10.15.7 Cataina
2 x 3,46 GHz 6-Core Intel Xeon ; 112 GB 1333 MHz DDR3 ECC
ATI Radeon RX 590 8 GB


More information about the macports-users mailing list