• [gentoo-user] crossdev wants to install apache on _host_

    From ralfconn@21:1/5 to All on Sat Sep 14 21:50:01 2024
    Hello,

    I have a RaspberryPi with gentoo, I use crossdev to update it. I have
    NFS server and client on both the Host and the Target so that I can mount:

    on the Target, the Host's
    /usr/aarch64-unknown-linux-gnu/var/cache/binpkgs /usr/aarch64-unknown-linux-gnu/var/db/repos

    and on the Host, the Target's
    /var/db/pkg

    I copy the Target's world file manually from Target to Host's /usr/aarch64-unknown-linux-gnu/var/lib/portage/

    All works fine, I cross-build on Host binary packages and then 'emerge --usepkg' on the Target.

    Well, almost all... On the Target I have apache, on the Host not because
    I don't need it. Sometimes the update wants to install apache also on
    the Host.

    For example, today I have:

    # emerge-aarch64-unknown-linux-gnu -uDvNa @world

    [ebuild N ] acct-group/apache-0-r3::gentoo 0 KiB
    [ebuild N ] acct-group/named-0-r3::gentoo to /usr/aarch64-unknown-linux-gnu/ 0 KiB
    [ebuild N ] dev-libs/oniguruma-6.9.9:0/5::gentoo USE="-crnl-as-line-terminator -static-libs" 936 KiB
    [ebuild N ] acct-user/apache-0-r3::gentoo 0 KiB
    [ebuild N ] acct-user/named-0-r3::gentoo to /usr/aarch64-unknown-linux-gnu/ 0 KiB
    [ebuild N ] dev-libs/apr-1.7.5:1/1.7::gentoo USE="urandom -doc -old-kernel (-selinux) -static-libs -valgrind" 878 KiB
    [ebuild U ] dev-libs/expat-2.6.3::gentoo [2.6.2::gentoo] to /usr/aarch64-unknown-linux-gnu/ USE="unicode -examples -static-libs
    -test" 475 KiB
    [ebuild U ] net-misc/curl-8.10.0::gentoo [8.9.1-r1::gentoo] to /usr/aarch64-unknown-linux-gnu/ USE="adns alt-svc ftp hsts http2 http3
    imap openssl pop3 progress-meter psl quic smtp ssl tftp websockets*
    -brotli -debug -gnutls -gopher -idn -kerberos -ldap -mbedtls -rtmp
    (-rustls) -samba -ssh (-sslv3) -static-libs -telnet -test -verify-sig
    -zstd" CURL_QUIC="openssl -ngtcp2" CURL_SSL="openssl -gnutls -mbedtls (-rustls)" 2666 KiB
    [ebuild N ] dev-libs/apr-util-1.6.3:1::gentoo USE="gdbm -berkdb
    -doc -ldap -mysql -nss -odbc -openssl -postgres -sqlite -static-libs"
    423 KiB
    [ebuild N ] app-admin/apache-tools-2.4.62::gentoo USE="ssl" 7346 KiB [ebuild N ] www-servers/apache-2.4.62:2::gentoo USE="gdbm ssl
    suexec-caps -debug -doc -ldap (-selinux) -static -suexec -suexec-syslog -systemd -threads" APACHE2_MODULES="actions alias auth_basic authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile
    authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs
    dav_lock deflate dir env expires ext_filter file_cache filter headers
    http2 include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias -access_compat -allowmethods -asis -auth_digest -auth_form -authn_dbd -authn_socache -authz_dbd -brotli -cache_disk -cache_socache -cern_meta -charset_lite -dbd -dumpio -ident -imagemap
    -lbmethod_bybusyness -lbmethod_byrequests -lbmethod_bytraffic -lbmethod_heartbeat -log_forensic (-lua) -macro -md -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_fcgi -proxy_ftp -proxy_hcheck
    -proxy_html -proxy_http -proxy_http2 -proxy_scgi -proxy_uwsgi
    -proxy_wstunnel -ratelimit -remoteip -reqtimeout -session
    -session_cookie -session_crypto -session_dbd -slotmem_shm
    -socache_memcache -substitute -tls -version -watchdog -xml2enc" APACHE2_MPMS="-event -prefork -worker" LUA_SINGLE_TARGET="lua5-1 -lua5-3 -lua5-4" 26 KiB
    [ebuild N ] app-eselect/eselect-php-0.9.9::gentoo USE="apache2
    fpm" 54 KiB
    [ebuild N ] dev-libs/json-c-0.17:0/5::gentoo to /usr/aarch64-unknown-linux-gnu/ USE="-static-libs -threads" 381 KiB
    [ebuild U ] sys-libs/glibc-2.40-r3:2.2::gentoo [2.40:2.2::gentoo]
    to /usr/aarch64-unknown-linux-gnu/ USE="multiarch ssp (static-libs)
    -audit -caps (-cet) -compile-locales (-custom-cflags) -doc -gd -hash-sysv-compat -headers-only (-multilib) -multilib-bootstrap -nscd
    -perl -profile (-selinux) (-stack-realign) -suid -systemd -systemtap
    -test (-vanilla)" 18368 KiB
    [ebuild U ] app-crypt/gpgme-1.23.2-r2:1/11.6.15.2::gentoo [1.23.2:1/11.6.15.2::gentoo] to /usr/aarch64-unknown-linux-gnu/ USE="cxx -common-lisp -debug -python -qt5 -qt6 -static-libs -test -verify-sig" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13" 1794 KiB [ebuild U ] dev-lang/python-3.12.6:3.12::gentoo
    [3.12.5_p1:3.12::gentoo] to /usr/aarch64-unknown-linux-gnu/
    USE="ensurepip gdbm ncurses readline sqlite ssl -bluetooth -build -debug -examples -libedit -pgo -test -tk -valgrind -verify-sig" 19962 KiB
    [ebuild U ] dev-python/urllib3-2.2.3::gentoo [2.2.2::gentoo] to /usr/aarch64-unknown-linux-gnu/ USE="-brotli -http2 -test -zstd" PYTHON_TARGETS="python3_12 -pypy3 -python3_10 -python3_11 -python3_13"
    294 KiB
    [ebuild U ] sys-apps/portage-3.0.66::gentoo [3.0.65-r1::gentoo] to /usr/aarch64-unknown-linux-gnu/ USE="(ipc) native-extensions
    rsync-verify xattr -apidoc -build -doc -gentoo-dev (-selinux) -test" PYTHON_TARGETS="python3_12 -pypy3 -python3_10 -python3_11 -python3_13"
    1171 KiB
    [ebuild N ] app-misc/jq-1.7.1::gentoo USE="oniguruma -static-libs
    -test" 1293 KiB
    [ebuild U ] app-portage/gentoolkit-0.6.8::gentoo [0.6.7::gentoo] to /usr/aarch64-unknown-linux-gnu/ USE="-test" PYTHON_TARGETS="python3_12
    -pypy3 -python3_10 -python3_11 -python3_13" 3116 KiB
    [ebuild U ] sys-apps/openrc-0.55::gentoo [0.54.2::gentoo] to /usr/aarch64-unknown-linux-gnu/ USE="netifrc pam sysvinit unicode -audit
    -bash -caps -debug -newnet (-s6) (-selinux) -sysv-utils" 245 KiB
    [ebuild N ] net-dns/bind-9.18.29-r2::gentoo to /usr/aarch64-unknown-linux-gnu/ USE="caps -dnsrps -dnstap -doc -doh -fixed-rrset -geoip -gssapi -idn (-jemalloc) -lmdb (-selinux)
    -static-libs -test -xml" 5433 KiB
    [ebuild U ] net-dns/bind-tools-9.18.0::gentoo [9.16.48::gentoo] to /usr/aarch64-unknown-linux-gnu/ USE="caps readline -doc -gssapi -idn
    -libedit -xml (-test%) (-verify-sig%)" 0 KiB
    [blocks b ] <net-dns/bind-tools-9.18.0
    ("<net-dns/bind-tools-9.18.0" is soft blocking net-dns/bind-9.18.29-r2)

    Note the lines without 'to /usr/aarch64-unknown-linux-gnu/", these
    packages will be installed on Host.

    Any ideas why?

    thanks

    raf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ralfconn@21:1/5 to All on Mon Sep 16 19:20:01 2024
    Il 16/09/24 10:42, Mickaël Bucas ha scritto:
    Le sam. 14 sept. 2024 à 21:40, ralfconn <mentadent47@yahoo.com> a écrit :

    (snip)

    All works fine, I cross-build on Host binary packages and then 'emerge
    --usepkg' on the Target.

    Well, almost all... On the Target I have apache, on the Host not because
    I don't need it. Sometimes the update wants to install apache also on
    the Host.

    For example, today I have:

    # emerge-aarch64-unknown-linux-gnu -uDvNa @world


    (snip)


    Note the lines without 'to /usr/aarch64-unknown-linux-gnu/", these
    packages will be installed on Host.

    Any ideas why?

    thanks

    raf

    Hi Ralf

    One possible explanation is that "www-servers/apache" could be a build dependency of some other package. However I don't see in the list of
    updates any package with this kind of dependency on
    "www-servers/apache".

    The only one that seems to depend on it is "app-eselect/eselect-php",
    but it'd be installed on the host.
    [ebuild N ] app-eselect/eselect-php-0.9.9::gentoo USE="apache2
    fpm" 54 KiB

    Do you install "dev-lang/php" on the target or the host or both ?


    php is not on the Host:
    # eix -I php apache
    No matches found

    It is on the Target, as a dependency of www-apps/pihole-admin-lte (tatsh-overlay) while apache is a dependency of php with USE=apache2.
    All as expected.

    Looking at the pihole-admin-lte ebuild I find this:

    BDEPEND="app-misc/jq app-portage/portage-utils"
    RDEPEND="app-admin/sudo
    dev-lang/php[fileinfo,filter,gd,intl,session,sqlite,tokenizer]
    net-dns/pihole
    virtual/httpd-php"

    Humm, interesting, jq is another package that crossdev wants to install
    on the Host. BDEPEND are build-time dependencies and it is correctly cross-built on Host but for some reason crossdev wants to build it also
    for the Host.

    Could it be an issue with the pihole-admin-lte ebuild rather than
    apache's? I'd need to understand ebuilds, easier said than done...

    raf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)