Opened 6 years ago

Closed 6 years ago

#57919 closed submission (fixed)

mod_maxminddb port

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: iefdev (Eric F)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: iEFdev
Port: mod_maxminddb

Description

This is a work in progress for the mod_maxminddb port, created by Eric F (iEFdev) and modified slightly by me. It currently fails at the destroot phase because apxs is trying to bypass the destroot directory.

Attachments (6)

Portfile (1.4 KB) - added by ryandesign (Ryan Carsten Schmidt) 6 years ago.
Wl.patch (755 bytes) - added by ryandesign (Ryan Carsten Schmidt) 6 years ago.
add-readme-dbfiles.diff (328 bytes) - added by iEFdev 6 years ago.
I small readme file o get the GeoIP dir created
Portfile.2 (2.2 KB) - added by iEFdev 6 years ago.
Updated version (needs review?). For ref: https://github.com/iEFdev/macports-ports/blob/maxminddb_x2/www/mod_maxminddb/Portfile
Portfile.3 (2.5 KB) - added by iEFdev 6 years ago.
patch-Wl.diff (753 bytes) - added by iEFdev 6 years ago.
same, different name

Download all attachments as: .zip

Change History (9)

Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile added

Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Wl.patch added

Changed 6 years ago by iEFdev

Attachment: add-readme-dbfiles.diff added

I small readme file o get the GeoIP dir created

comment:1 Changed 6 years ago by iEFdev

Thank you for the work!

I've tested the file, and added a few missing parts from before.

One thing though… It (still) won't go into destroot, unless using destroot {}, instead of post-destroot {}. I have no idea why. Here's the output:

Executing:  cd "/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/mod_maxminddb-1.1.0" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/destroot 
make: Entering directory `/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/mod_maxminddb-1.1.0'
Making install in src
make[1]: Entering directory `/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/mod_maxminddb-1.1.0/src'
make[2]: Entering directory `/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/mod_maxminddb-1.1.0/src'
/opt/local/bin/apxs -c -Wl,"-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64" -lmaxminddb  -Wc,"-pipe -Os -arch x86_64 -std=c99 -fms-extensions"  mod_maxminddb.c
/opt/local/share/apr-1/build/libtool --silent --mode=compile --tag=CC /usr/bin/clang -prefer-pic -pipe -Os  -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10  -I/opt/local/include/apache2  -I/opt/local/include/apr-1   -I/opt/local/include/apr-1 -I/opt/local/include -pipe -Os -arch x86_64 -std=c99 -fms-extensions  -c -o mod_maxminddb.lo mod_maxminddb.c && touch mod_maxminddb.slo
/opt/local/share/apr-1/build/libtool --silent --mode=link --tag=CC /usr/bin/clang -L/opt/local/lib -Wl,-headerpad_max_install_names   -o mod_maxminddb.la -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64  -lmaxminddb -rpath /opt/local/lib/apache2/modules -module -avoid-version    mod_maxminddb.lo
/opt/local/bin/apxs -i -a -n maxminddb .libs/mod_maxminddb.so
/opt/local/www/apache2/build/instdso.sh SH_LIBTOOL='/opt/local/share/apr-1/build/libtool' .libs/mod_maxminddb.so /opt/local/lib/apache2/modules
/opt/local/share/apr-1/build/libtool --mode=install install .libs/mod_maxminddb.so /opt/local/lib/apache2/modules/
libtool: install: install .libs/mod_maxminddb.so /opt/local/lib/apache2/modules/mod_maxminddb.so
install: /opt/local/lib/apache2/modules/mod_maxminddb.so: Operation not permitted
apxs:Error: Command failed with rc=4653056
.
make[2]: *** [install-exec-local] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/mod_maxminddb-1.1.0/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/mod_maxminddb-1.1.0/src'
make: *** [install-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/mod_maxminddb-1.1.0'
Command failed:  cd "/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/mod_maxminddb-1.1.0" && /usr/bin/make -w install DESTDIR=/opt/local/var/macports/build/_opt_ports_www_mod_maxminddb/mod_maxminddb/work/destroot 
Exit code: 2
Error: Failed to destroot mod_maxminddb: command execution failed
Error: See /opt/local/var/macports/logs/_opt_ports_www_mod_maxminddb/mod_maxminddb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port mod_maxminddb failed

Wonder what makes it work for you and not here?

· Eric

Changed 6 years ago by iEFdev

Attachment: Portfile.2 added

comment:2 Changed 6 years ago by iEFdev

Had to redo a little, like chg the name on the patch (port lint warning): https://github.com/iEFdev/macports-ports/blob/mod_maxminddb/www/mod_maxminddb/Portfile

Did you want to have another look at this one (the err above), or should I make a PR?

I'll add the last Portfile + patch below.

Changed 6 years ago by iEFdev

Attachment: Portfile.3 added

Changed 6 years ago by iEFdev

Attachment: patch-Wl.diff added

same, different name

comment:3 Changed 6 years ago by iEFdev

Owner: set to iEFdev
Resolution: fixed
Status: assignedclosed

In af6d4151b6a0789831769ce8f408200f52bed4bc/macports-ports (master):

mod_maxminddb: new port

Closes: #57919

Note: See TracTickets for help on using tickets.