Build bind9 manually with abuild

2 posts / 0 new
Last post
#1 Mon, 2017-11-06 08:16
chenqijing2
  • chenqijing2's picture
  • Offline
  • Last seen: 4 months 2 weeks ago
  • Joined: 2017-10-31

i want to use edns with bind9, but the alpine bind9 without '--with-geoip', so.

i use this repo: https://github.com/dnephin/docker-apk-build

when build: abuild -c -r -P /target, i got:
...
/src/bind-9.11.2/lib/isccfg/.libs/libisccfg.so ../../lib/isccfg/.libs/libisccfg.so /work/main/bind/src/bind-9.11.2/lib/dns/.libs/libdns.so ../../lib/isccc/.libs/libisccc.so /work/main/bind/src/bind-9.11.2/lib/isc/.libs/libisc.so ../../lib/isc/.libs/libisc.so -lcrypto -ldl -lcap -lpthread -lxml2 -lz -lm
rm -f lwresd
ln named lwresd
ln: lwresd: Operation not permitted
make[2]: *** [Makefile:540: lwresd] Error 1
make[2]: Leaving directory '/work/main/bind/src/bind-9.11.2/bin/named'
make[1]: *** [Makefile:75: subdirs] Error 1
make[1]: Leaving directory '/work/main/bind/src/bind-9.11.2/bin'
make: *** [Makefile:81: subdirs] Error 1
>>> ERROR: bind: all failed
>>> bind: Uninstalling dependencies...
WARNING: Ignoring APKINDEX.726ccd33.tar.gz: No such file or directory
(1/12) Purging .makedepends-bind (0)
(2/12) Purging bash (4.4.12-r0)
Executing bash-4.4.12-r0.pre-deinstall
(3/12) Purging libressl-dev (2.5.5-r4)
(4/12) Purging libcap-dev (2.25-r1)
(5/12) Purging perl (5.26.1-r1)
(6/12) Purging linux-headers (4.4.6-r2)
(7/12) Purging bsd-compat-headers (0.7.1-r0)
(8/12) Purging libxml2-dev (2.9.7-r0)
(9/12) Purging zlib-dev (1.2.11-r1)
(10/12) Purging libxml2 (2.9.7-r0)
(11/12) Purging readline (7.0.003-r0)
(12/12) Purging libbz2 (1.0.6-r6)
Executing busybox-1.27.2-r2.trigger
OK: 188 MiB in 70 packages

what should i do? i'm not modify anything.

Mon, 2017-11-06 19:29
Head_on_a_Stick
  • Head_on_a_Stick's picture
  • Offline
  • Last seen: 1 week 1 day ago
  • Joined: 2016-05-01

First of all: I am just a home user running an Alpine desktop on my laptop so I may be missing something obvious.

That said, I've just built a custom .apk for bind with the GeoIP option enabled by using the aports system:

https://wiki.alpinelinux.org/wiki/Aports_tree

I simply edited the APKBUILD and added the --with-geoip=/path/to/database line to the ./configure section then ran `abuild -ri` to build and install the package.

I have no idea why you might want to use a docker container to build a custom package, that seems like a lot of fuss & bother to me but perhaps I've missed your point somehow.

Log in or register to post comments