Why the hell libxml2-dev has so much dependencies?

3 posts / 0 new
Last post
#1 Tue, 2015-11-17 22:28
Łukasz Niemier
  • Łukasz Niemier's picture
  • Offline
  • Last seen: 2 years 4 months ago
  • Joined: 2015-11-17

Why?

I really need `python-doc` to build any app that use `libxml2-dev`? Be reasonable.

Thu, 2015-11-19 17:54
ScrumpyJack
  • ScrumpyJack's picture
  • Offline
  • Last seen: 6 months 3 weeks ago
  • Joined: 2013-06-20

Could you be more specific?

This is on a very minimal alpine linux install from the edge repository:

dev-edge:~$ sudo apk add libxml2-dev
(1/3) Installing zlib-dev (1.2.8-r2)
(2/3) Installing libxml2 (2.9.2-r2)
(3/3) Installing libxml2-dev (2.9.2-r2)

Wed, 2016-01-20 20:59
ttilberg
  • ttilberg's picture
  • Offline
  • Last seen: 2 years 2 months ago
  • Joined: 2016-01-20

I came across the same curiosity while trying to set up a ruby app that uses Nokogiri with Docker on Alpine.

I'm extremely new to Alpine, but upon loading the docker image (from alpine:3.2) and /bin/bashing on in:

bash-4.3# apk update && apk upgrade
fetch <a href="http://dl-4.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz
v3.2.3-163-ge875c5c" rel="nofollow">http://dl-4.alpinelinux.org/alpine/v3.2/main/x86_64/APKINDEX.tar.gz
v3.2.3-163-ge875c5c</a> [<a href="http://dl-4.alpinelinux.org/alpine/v3.2/main" rel="nofollow">http://dl-4.alpinelinux.org/alpine/v3.2/main</a>]
OK: 5294 distinct packages available
  0% [                                                                                                                 O
 
 
bash-4.3# apk add libxml2-dev
(1/11) Installing libbz2 (1.0.6-r3)
(2/11) Installing sqlite-libs (3.8.10.2-r0)
(3/11) Installing python (2.7.10-r1)
(4/11) Installing python-doc (2.7.10-r1)
(5/11) Installing python-tests (2.7.10-r1)
(6/11) Installing py-gdbm (2.7.10-r1)
(7/11) Installing python-dev (2.7.10-r1)
(8/11) Installing libxml2-doc (2.9.2-r1)
(9/11) Installing py-libxml2 (2.9.2-r1)
(10/11) Installing libxml2-utils (2.9.2-r1)
(11/11) Installing libxml2-dev (2.9.2-r1)
 
bash-4.3#

I thought the same thing OP mentioned, and ended up on this post while googling about for other problems.

*Edit*

I'm noticing that 3.2 isn't current and tested against Alpine:latest (3.3) -- the output was far more reasonable:

bash-4.3# apk add libxml2-dev
(1/5) Installing pkgconf (0.9.12-r0)
(2/5) Installing pkgconfig (0.25-r1)
(3/5) Installing zlib-dev (1.2.8-r2)
(4/5) Installing libxml2 (2.9.3-r0)
(5/5) Installing libxml2-dev (2.9.3-r0)
 
OK: 15 MiB in 21 packages
bash-4.3#

Log in or register to post comments