From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 80A8F158030 for ; Fri, 3 Mar 2023 08:46:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7BE1BE0863; Fri, 3 Mar 2023 08:46:33 +0000 (UTC) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7172DE0863 for ; Fri, 3 Mar 2023 08:46:33 +0000 (UTC) Received: by mail-ed1-x536.google.com with SMTP id x3so7247818edb.10 for ; Fri, 03 Mar 2023 00:46:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677833192; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=tbhcf/LGLCxQPu86nzRgBJbrZmmqXU3Tft56tp0S7VM=; b=UqQbevDDMBTbKyqK0ideiV0RqCMY+PvXBqHDI5uty5Ma/Jt/zzMDTLgWYJN3TNyqJ2 WiInl9IyVggKqQvGWpVcqCnIS65u20zP+dVDmJWiDmz1h7V9atM9XbDnNHMNCSotRN95 py9u1EUcpSrMyCdBUdqXqzgZCzjdyVFReuaZ4qjYx6oP0/Bjd4LpJIX2JnfIL+krqles RkVVg9nLFvVG82tmKhO0Lm36dRLXSgASBgb0zt0MtRHfzod5KQfh8cbxzBYCH4/nZfia UUc2qxZgWNLKtLv+G+gz2y8W785yKUbv9FvYSY062oGldjMgRmS+pki6ElJu1SMrrCh7 wPzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677833192; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tbhcf/LGLCxQPu86nzRgBJbrZmmqXU3Tft56tp0S7VM=; b=TYS8xIxrmkI/i4Xjvu9V84aAn92NasdhUzSsJwlFWlNnkz+l8unOzk5itszcahQIsR YU2jDIsyxYNpQmxFY27riKDf7lFSvS4nfYOv66V8A2uSoDrvNHWuIzkPWO7jy3RpiP4V 9vcmTaskxEaPT9EkF/5gcO8vXmne8RJCWuNZdBIPFr062NbsRI7h/dFiD2BQd2PUwiD2 +52EVaePpn16YF/r+rKlWUx5+Fkqt0dsA59LPiDmqVWYhXbvojddTc8ihsAOIPGFDZMj UShdXuPgauiosffPy5wteWx31dUsqK07J+6imvmFGNCmUTFzcxAgLEfh1zo+cNhSZALA Ma+g== X-Gm-Message-State: AO0yUKWBnaCun7vy/ndo+COyMvQzCkHKeoBZ37kG/hDgQs56xDTLsX93 u1EZP4BdnRGIsbsPcwXq4uSDQd/W7yKu X-Google-Smtp-Source: AK7set9aEN3RiLzkC+ZgiwPPMSL441b8IhgRq5Pd2Ke2Og2tr1e8jitBn8g8a/M8FJzFqt1o23DjvA== X-Received: by 2002:a17:907:3e07:b0:8b1:2867:380 with SMTP id hp7-20020a1709073e0700b008b128670380mr1041566ejc.22.1677833191771; Fri, 03 Mar 2023 00:46:31 -0800 (PST) Received: from smtpclient.apple ([154.160.23.150]) by smtp.gmail.com with ESMTPSA id y8-20020a17090629c800b008b133f9b33dsm691357eje.169.2023.03.03.00.46.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2023 00:46:31 -0800 (PST) From: Askar Bektassov Content-Type: multipart/alternative; boundary="Apple-Mail=_4550DE7E-3837-491F-8F69-FB792C9EE714" Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-alt@lists.gentoo.org Reply-to: gentoo-alt@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: [gentoo-alt] What happened? Date: Fri, 3 Mar 2023 08:46:16 +0000 References: <78D81D96-E434-4AFD-9D00-1AA8856463B1@gmail.com> <9D27B659-2B87-4B78-939D-673A6540240A@gmail.com> To: gentoo-alt@lists.gentoo.org In-Reply-To: Message-Id: <94C68F66-2AE5-4471-8642-BF85718C50B9@gmail.com> X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Archives-Salt: f3ce59ba-b0e7-4538-a5ed-11e3479e7071 X-Archives-Hash: ea22a24ed1f40010a8a6c0aea2b090f9 --Apple-Mail=_4550DE7E-3837-491F-8F69-FB792C9EE714 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Thanks Fabian, I followed your first suggestion, checked which ones are C++ related and = recompiled them, without narrowing down=E2=80=A6 after all on M1 machine = it does not take much. By chance, did you use xorg-server on your M1? I am still trying to = compile R on my laptop and did not give up yet=E2=80=A6. I think = recompiling xorg-server should make the trick. Cheerios, -- Askar Bektassov (=D0=90=D1=81=D0=BA=D0=B0=D1=80 =D0=91=D0=B5=D0=BA=D1=82=D0= =B0=D1=81=D0=BE=D0=B2) Sent from desktop > On 27 Feb 2023, at 10:23, Fabian Groffen wrote: >=20 > Hi Askar, >=20 > On 24-02-2023 21:23:24 +0000, Askar Bektassov wrote: >> Hey Fabian, >>=20 >> All correct. Tinkering with my M1 Pro MacBook Pro. Indeed, I assumed = you did >> some hacks with keywords, but definitely your solution is the most = elegant one. >>=20 >> Now everything is back, like charm=E2=80=A6 although I suspect I have = to recompile some >> packages because they broke after gcc recompile. Any idea how I could = identify >> quickly which packages should be recompiled to fix dylib references? >=20 > I noticed those myself too, it was just a few though, so I manually > recompiled as soon as I ran into them. But it's all C++-related, so >=20 > grep libstdc++ $EPREFIX/var/db/pkg/*/*/NEEDED.MACHO.3 >=20 > should give you a list, I guess you can narrow down into, by using > scanmacho -r on the binaries from those matches, if they reference > gcc/arm64-apple-darwin21/12.2.0, you'll need to rebuild. >=20 > Something like=20 >=20 > % grep -l libstdc++ $EPREFIX/var/db/pkg/*/*/NEEDED.MACHO.3 | sed = "s:${EPREFIX}/var/db/pkg/::" | cut -d/ -f1,2 | xargs qlist -o | grep = '/bin/' | xargs scanmacho -BF '%F|%r' | grep = "gcc/arm64-apple-darwin21/12.2.0" | cut -d'|' -f1 | xargs qfile | cut = -d: -f1 | sort -u >=20 > (you could use that in emerge -1av `...` I guess :)) >=20 > Fabian >>=20 >> Thanks for the usual flash support, >> -- >> Askar Bektassov (=D0=90=D1=81=D0=BA=D0=B0=D1=80 =D0=91=D0=B5=D0=BA=D1=82= =D0=B0=D1=81=D0=BE=D0=B2) >> Sent from desktop >>=20 >> On 24 Feb 2023, at 08:23, Fabian Groffen = wrote: >>=20 >> Hi Askar, >>=20 >> Given that you reference dylib and MBP, I assume you are running = on a >> Mac, and possibly an Apple M1. For the latter, for QA reasons, I = had >> to >> remove a hack I did to provide keywords for arm64-macos. >>=20 >> It is easiest to "revert" this change by adding a file >> EPREFIX/etc/portage/make.conf/0900_local.conf with contents: >>=20 >> ACCEPT_KEYWORDS=3D"~x64-macos" >>=20 >> Then all keywords you previously had, should be back. >>=20 >> Thanks, >> Fabian >>=20 >> On 23-02-2023 21:47:03 +0000, Askar Bektassov wrote: >> Folks, >>=20 >> After the last eix-sync, and emerge world -uDNpv (I think >> gcc has been rebuilt) >> my whole prefix broke, or at least seems so. >>=20 >> All packages installed now are either masked or unknown. >>=20 >> askarbektassov@Askars-MBP ~ $ eix -cI >> [?] acct-group/man (0-r1@10/27/22 -> ??): System group: man >> [?] acct-user/man (1-r1@10/27/22 -> ??): System user: man >> [?] app-admin/eselect (1.4.20@10/27/22 -> ??): Gentoo's >> multi-purpose >> configuration and management tool >> [?] app-admin/perl-cleaner (2.30-r1@01/03/23 -> ??): User >> land tool for cleaning >> up old perl installs >> [?] app-alternatives/awk (4@01/03/23 -> ??): /bin/awk and / >> usr/bin/awk symlinks >> [?] app-alternatives/bzip2 (1@01/03/23 -> ??): bzip2 symlink >> [?] app-alternatives/cpio (0@12/11/22 -> ??): CPIO symlink >> [?] app-alternatives/gzip (0@12/06/22 -> ??): gzip symlinks >> [?] app-alternatives/lex (0-r1@12/11/22 -> ??): lex symlinks >> [?] app-alternatives/sh (0@01/03/23 -> ??): /bin/sh (POSIX >> shell) symlink >> [?] app-alternatives/tar (0@12/06/22 -> ??): Tar symlink >> [?] app-alternatives/yacc (1-r2@12/06/22 -> ??): yacc >> symlinks >> [I] app-arch/bzip2 (1.0.8-r4(0/1)@01/03/23): A high-quality >> data compressor used >> extensively by Gentoo Linux >> [?] app-arch/cpio (2.13-r5@01/03/23 -> ??): A file archival >> tool which can also >> read and write tar files >> [?] app-arch/gzip (1.12-r4@01/20/23 -> ??): Standard GNU >> compressor >> [?] app-arch/libarchive (3.6.1-r1(0/13)@12/06/22 -> ??): >> Multi-format archive >> and compression library >> [?] app-arch/rpm2targz (2021.03.16@10/05/22 -> ??): Convert >> a .rpm file to a >> .tar.gz archive >>=20 >> And the list goes on=E2=80=A6 the first thing I noticed, is = that git >> was not connecting >> and man stopped working=E2=80=A6 >>=20 >> askarbektassov@Askars-MBP ~/Documents/Books/SDS/github/ >> A5kar.github.io (main) $ >> man git >> man: command exited with status 134: (cd /Users/ >> askarbektassov/Gentoo/usr/share/ >> man && /Users/askarbektassov/Gentoo/usr/libexec/man-db/ >> zsoelim) | (cd /Users/ >> askarbektassov/Gentoo/usr/share/man && /Users/ >> askarbektassov/Gentoo/usr/libexec/ >> man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd / >> Users/ >> askarbektassov/Gentoo/usr/share/man && preconv -e UTF-8) | >> (cd /Users/ >> askarbektassov/Gentoo/usr/share/man && tbl) | (cd /Users/ >> askarbektassov/Gentoo/ >> usr/share/man && nroff -mandoc -c -rLL=3D157n -rLT=3D157n - >> Tutf8) >>=20 >> But then, even eix did not work, until I=E2=80=99ve added it = to >> accept_keywords list and >> recompiled it (I guess it lost some dylib links, with the >> gcc recompile). >>=20 >> But for the rest=E2=80=A6 what happened? >>=20 >> Thanks, >> -- >> Askar Bektassov (=D0=90=D1=81=D0=BA=D0=B0=D1=80 = =D0=91=D0=B5=D0=BA=D1=82=D0=B0=D1=81=D0=BE=D0=B2) >> Sent from desktop >>=20 >>=20 >> -- >> Fabian Groffen >> Gentoo on a different level >>=20 >=20 > --=20 > Fabian Groffen > Gentoo on a different level --Apple-Mail=_4550DE7E-3837-491F-8F69-FB792C9EE714 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Thanks = Fabian,

I followed your first suggestion, checked = which ones are C++ related and recompiled them, without narrowing = down=E2=80=A6 after all on M1 machine it does not take = much.

By chance, did you use xorg-server on = your M1? I am still trying to compile R on my laptop and did not give up = yet=E2=80=A6. I think recompiling xorg-server should make the = trick.

Cheerios,
--
Askar Bektassov (=D0=90=D1=81=D0=BA=D0=B0=D1= =80 =D0=91=D0=B5=D0=BA=D1=82=D0=B0=D1=81=D0=BE=D0=B2)
Sent from = desktop

On 27 Feb 2023, at 10:23, Fabian = Groffen <grobian@gentoo.org> wrote:

Hi Askar,

On = 24-02-2023 21:23:24 +0000, Askar Bektassov wrote:
Hey = Fabian,

All correct. Tinkering with my M1 Pro MacBook Pro. = Indeed, I assumed you did
some hacks with keywords, but definitely = your solution is the most elegant one.

Now everything is back, = like charm=E2=80=A6 although I suspect I have to recompile = some
packages because they broke after gcc recompile. Any idea how I = could identify
quickly which packages should be recompiled to fix = dylib references?

I = noticed those myself too, it was just a few though, so I = manually
recompiled as soon as I = ran into them.  But it's all C++-related, so

grep libstdc++ = $EPREFIX/var/db/pkg/*/*/NEEDED.MACHO.3

should = give you a list, I guess you can narrow down into, by using
scanmacho -r on the binaries from those = matches, if they reference
gcc/arm64-apple-darwin21/12.2.0, you'll need to = rebuild.

Something like 

% grep -l libstdc++ = $EPREFIX/var/db/pkg/*/*/NEEDED.MACHO.3 | sed = "s:${EPREFIX}/var/db/pkg/::" | cut -d/ -f1,2 | xargs qlist -o | grep = '/bin/' | xargs scanmacho -BF '%F|%r' | grep = "gcc/arm64-apple-darwin21/12.2.0" | cut -d'|' -f1 | xargs qfile | cut = -d: -f1 | sort -u

(you = could use that in emerge -1av `...` I guess :))

Fabian

Thanks for = the usual flash support,
--
Askar Bektassov (=D0=90=D1=81=D0=BA=D0=B0= =D1=80 =D0=91=D0=B5=D0=BA=D1=82=D0=B0=D1=81=D0=BE=D0=B2)
Sent from = desktop

    On 24 Feb 2023, at 08:23, Fabian = Groffen <grobian@gentoo.org> = wrote:

    Hi = Askar,

    Given that you reference dylib and = MBP, I assume you are running on a
    Mac, and = possibly an Apple M1.  For the latter, for QA reasons, I = had
    to
    remove a = hack I did to provide keywords for = arm64-macos.

    It is easiest to "revert" = this change by adding a = file
    EPREFIX/etc/portage/make.conf/0900_local.c= onf with = contents:

    ACCEPT_KEYWORDS=3D"~x64-macos"
    Then all keywords you previously had, = should be = back.

    Thanks,
    Fa= bian

    On 23-02-2023 21:47:03 +0000, Askar = Bektassov = wrote:
         Folks,
=
         After the last = eix-sync, and emerge world -uDNpv (I = think
         gcc has = been = rebuilt)
         my = whole prefix broke, or at least seems = so.

         All = packages installed now are either masked or = unknown.

         aska= rbektassov@Askars-MBP ~ $ eix = -cI
         [?] = acct-group/man (0-r1@10/27/22 -> ??): System group: = man
         [?] = acct-user/man (1-r1@10/27/22 -> ??): System user: = man
         [?] = app-admin/eselect (1.4.20@10/27/22 -> ??): = Gentoo's
         multi-pu= rpose
         configurati= on and management = tool
         [?] = app-admin/perl-cleaner (2.30-r1@01/03/23 -> ??): = User
         land tool = for cleaning
         up = old perl = installs
         [?] = app-alternatives/awk (4@01/03/23 -> ??): /bin/awk and = /
         usr/bin/awk = symlinks
         [?] = app-alternatives/bzip2 (1@01/03/23 -> ??): bzip2 = symlink
         [?] = app-alternatives/cpio (0@12/11/22 -> ??): CPIO = symlink
         [?] = app-alternatives/gzip (0@12/06/22 -> ??): gzip = symlinks
         [?] = app-alternatives/lex (0-r1@12/11/22 -> ??): lex = symlinks
         [?] = app-alternatives/sh (0@01/03/23 -> ??): /bin/sh = (POSIX
         shell) = symlink
         [?] = app-alternatives/tar (0@12/06/22 -> ??): Tar = symlink
         [?] = app-alternatives/yacc (1-r2@12/06/22 -> ??): = yacc
         symlinks
=          [I] app-arch/bzip2 = (1.0.8-r4(0/1)@01/03/23): A = high-quality
         data= compressor = used
         extensively = by Gentoo = Linux
         [?] = app-arch/cpio (2.13-r5@01/03/23 -> ??): A file = archival
         tool = which can = also
         read and = write tar = files
         [?] = app-arch/gzip (1.12-r4@01/20/23 -> ??): Standard = GNU
         compressor         [?] = app-arch/libarchive (3.6.1-r1(0/13)@12/06/22 -> = ??):
         Multi-format= archive
         and = compression = library
         [?] = app-arch/rpm2targz (2021.03.16@10/05/22 -> ??): = Convert
         a .rpm = file to = a
         .tar.gz = archive

         And = the list goes on=E2=80=A6 the first thing I noticed, is that = git
         was not = connecting
         and = man stopped = working=E2=80=A6

        &n= bsp;askarbektassov@Askars-MBP = ~/Documents/Books/SDS/github/
       = ;  A5kar.github.io (main) = $
         man = git
         man: = command exited with status 134: (cd = /Users/
         askarbekt= assov/Gentoo/usr/share/
        = ; man && = /Users/askarbektassov/Gentoo/usr/libexec/man-db/
   &nbs= p;     zsoelim) | (cd = /Users/
         askarbekt= assov/Gentoo/usr/share/man && = /Users/
         askarbekt= assov/Gentoo/usr/libexec/
       &nb= sp; man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd = /
         Users/
 = ;        askarbektassov/Gentoo/usr= /share/man && preconv -e UTF-8) = |
         (cd = /Users/
         askarbekt= assov/Gentoo/usr/share/man && tbl) | (cd = /Users/
         askarbekt= assov/Gentoo/
         usr= /share/man && nroff -mandoc -c -rLL=3D157n -rLT=3D157n = -
         Tutf8)

&= nbsp;        But then, even eix = did not work, until I=E2=80=99ve added it = to
         accept_keyword= s list = and
         recompiled = it (I guess it lost some dylib links, with = the
         gcc = recompile).

         B= ut for the rest=E2=80=A6 what = happened?

         Tha= nks,
         --
 =         Askar Bektassov = (=D0=90=D1=81=D0=BA=D0=B0=D1=80 = =D0=91=D0=B5=D0=BA=D1=82=D0=B0=D1=81=D0=BE=D0=B2)
   &nb= sp;     Sent from = desktop


    --
    F= abian Groffen
    Gentoo on a different = level


-- 
Fabian Groffen
Gentoo on a different = level

= --Apple-Mail=_4550DE7E-3837-491F-8F69-FB792C9EE714--