Hi,

Simon Josefsson via "Development of GNU Guix and the GNU System distribution." 
<[email protected]> skribis:

> Hartmut Goebel <[email protected]> writes:
>
>> Hi,
>>
>> I'm trying to understand for to create docker container images using
>> "guix pack". For this I created a simple container image by running
>>
>>    guix pack --format=docker httpd
>>
>> The resulting image contains quite some package which IMHO are not
>> required by apache httpd:
>>
>>    apr apr-util bash-minimal bash-static binutils bzip2 coreutils expat
>>    file gawk gcc glibc glibc grep guile httpd ld-wrapper libffi libgc
>>    libltdl libstdc++ libunistring libxcrypt openssl pcre perl pkg-config
>>    sed xz
>
> Isn't that just because those are in the set of recursive build
> dependencies for httpd?  Or some similar dependency.

Yes.  ‘guix size httpd’ shows things that shouldn’t be here, like
binutils and glibc:static:

--8<---------------cut here---------------start------------->8---
$ guix size httpd |head 
store item                                                       total    self
/gnu/store/c8mp7qq5az7cbnvmxgj2bjkscsf5h9ri-binutils-2.44          150.4    
87.7  22.4%
/gnu/store/ns98r6hs7kaqp91r8nmw6rbsdl0l6wh2-perl-5.36.0            151.0    
59.1  15.1%
/gnu/store/77cxm55d0ns4d4gza1xnd4frb1bc4im3-guile-3.0.9            133.3    
53.1  13.6%
/gnu/store/yj053cys0724p7vs9kir808x7fivz17m-glibc-2.41              41.0    
39.2  10.0%
/gnu/store/m2vhzr0dy352cn59sgcklcaykprrr4j6-gcc-14.3.0-lib          74.1    
33.1   8.5%
/gnu/store/j247wy6bsw9manm098q0varcbssvnsjw-httpd-2.4.66           390.8    
30.1   7.7%
/gnu/store/y877p8bq686bv1nypg627dfvgxg22dl5-libstdc++-14.3.0        21.6    
21.6   5.5%
/gnu/store/pai3hvsiihllqi03b2198qi5qq9a28ga-coreutils-9.1           90.9    
16.7   4.3%
/gnu/store/q1s19kv8bdq9ssfdgznzgkmfmj90vdfd-glibc-2.41-static       51.3    
10.3   2.6%
--8<---------------cut here---------------end--------------->8---

On this topic, see the ongoing efforts and discussions on reducing
package closure size:

  https://codeberg.org/guix/guix/pulls/6473
  https://codeberg.org/guix/guix/issues/938

Thanks,
Ludo’.

  • "guix pack&q... Hartmut Goebel
    • Re: "gu... Development of GNU Guix and the GNU System distribution.
      • Re: &quo... Ludovic Courtès

Reply via email to