Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] What happened?
Date: Mon, 27 Feb 2023 10:23:31
Message-Id: Y/yEnb14pc3As0VJ@gentoo.org
In Reply to: Re: [gentoo-alt] What happened? by Askar Bektassov
1 Hi Askar,
2
3 On 24-02-2023 21:23:24 +0000, Askar Bektassov wrote:
4 > Hey Fabian,
5 >
6 > All correct. Tinkering with my M1 Pro MacBook Pro. Indeed, I assumed you did
7 > some hacks with keywords, but definitely your solution is the most elegant one.
8 >
9 > Now everything is back, like charm… although I suspect I have to recompile some
10 > packages because they broke after gcc recompile. Any idea how I could identify
11 > quickly which packages should be recompiled to fix dylib references?
12
13 I noticed those myself too, it was just a few though, so I manually
14 recompiled as soon as I ran into them. But it's all C++-related, so
15
16 grep libstdc++ $EPREFIX/var/db/pkg/*/*/NEEDED.MACHO.3
17
18 should give you a list, I guess you can narrow down into, by using
19 scanmacho -r on the binaries from those matches, if they reference
20 gcc/arm64-apple-darwin21/12.2.0, you'll need to rebuild.
21
22 Something like
23
24 % 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
25
26 (you could use that in emerge -1av `...` I guess :))
27
28 Fabian
29 >
30 > Thanks for the usual flash support,
31 > --
32 > Askar Bektassov (Аскар Бектасов)
33 > Sent from desktop
34 >
35 > On 24 Feb 2023, at 08:23, Fabian Groffen <grobian@g.o> wrote:
36 >
37 > Hi Askar,
38 >
39 > Given that you reference dylib and MBP, I assume you are running on a
40 > Mac, and possibly an Apple M1.  For the latter, for QA reasons, I had
41 > to
42 > remove a hack I did to provide keywords for arm64-macos.
43 >
44 > It is easiest to "revert" this change by adding a file
45 > EPREFIX/etc/portage/make.conf/0900_local.conf with contents:
46 >
47 > ACCEPT_KEYWORDS="~x64-macos"
48 >
49 > Then all keywords you previously had, should be back.
50 >
51 > Thanks,
52 > Fabian
53 >
54 > On 23-02-2023 21:47:03 +0000, Askar Bektassov wrote:
55 > Folks,
56 >
57 > After the last eix-sync, and emerge world -uDNpv (I think
58 > gcc has been rebuilt)
59 > my whole prefix broke, or at least seems so.
60 >
61 > All packages installed now are either masked or unknown.
62 >
63 > askarbektassov@Askars-MBP ~ $ eix -cI
64 > [?] acct-group/man (0-r1@10/27/22 -> ??): System group: man
65 > [?] acct-user/man (1-r1@10/27/22 -> ??): System user: man
66 > [?] app-admin/eselect (1.4.20@10/27/22 -> ??): Gentoo's
67 > multi-purpose
68 > configuration and management tool
69 > [?] app-admin/perl-cleaner (2.30-r1@01/03/23 -> ??): User
70 > land tool for cleaning
71 > up old perl installs
72 > [?] app-alternatives/awk (4@01/03/23 -> ??): /bin/awk and /
73 > usr/bin/awk symlinks
74 > [?] app-alternatives/bzip2 (1@01/03/23 -> ??): bzip2 symlink
75 > [?] app-alternatives/cpio (0@12/11/22 -> ??): CPIO symlink
76 > [?] app-alternatives/gzip (0@12/06/22 -> ??): gzip symlinks
77 > [?] app-alternatives/lex (0-r1@12/11/22 -> ??): lex symlinks
78 > [?] app-alternatives/sh (0@01/03/23 -> ??): /bin/sh (POSIX
79 > shell) symlink
80 > [?] app-alternatives/tar (0@12/06/22 -> ??): Tar symlink
81 > [?] app-alternatives/yacc (1-r2@12/06/22 -> ??): yacc
82 > symlinks
83 > [I] app-arch/bzip2 (1.0.8-r4(0/1)@01/03/23): A high-quality
84 > data compressor used
85 > extensively by Gentoo Linux
86 > [?] app-arch/cpio (2.13-r5@01/03/23 -> ??): A file archival
87 > tool which can also
88 > read and write tar files
89 > [?] app-arch/gzip (1.12-r4@01/20/23 -> ??): Standard GNU
90 > compressor
91 > [?] app-arch/libarchive (3.6.1-r1(0/13)@12/06/22 -> ??):
92 > Multi-format archive
93 > and compression library
94 > [?] app-arch/rpm2targz (2021.03.16@10/05/22 -> ??): Convert
95 > a .rpm file to a
96 > .tar.gz archive
97 >
98 > And the list goes on… the first thing I noticed, is that git
99 > was not connecting
100 > and man stopped working…
101 >
102 > askarbektassov@Askars-MBP ~/Documents/Books/SDS/github/
103 > A5kar.github.io (main) $
104 > man git
105 > man: command exited with status 134: (cd /Users/
106 > askarbektassov/Gentoo/usr/share/
107 > man && /Users/askarbektassov/Gentoo/usr/libexec/man-db/
108 > zsoelim) | (cd /Users/
109 > askarbektassov/Gentoo/usr/share/man && /Users/
110 > askarbektassov/Gentoo/usr/libexec/
111 > man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /
112 > Users/
113 > askarbektassov/Gentoo/usr/share/man && preconv -e UTF-8) |
114 > (cd /Users/
115 > askarbektassov/Gentoo/usr/share/man && tbl) | (cd /Users/
116 > askarbektassov/Gentoo/
117 > usr/share/man && nroff -mandoc -c -rLL=157n -rLT=157n -
118 > Tutf8)
119 >
120 > But then, even eix did not work, until I’ve added it to
121 > accept_keywords list and
122 > recompiled it (I guess it lost some dylib links, with the
123 > gcc recompile).
124 >
125 > But for the rest… what happened?
126 >
127 > Thanks,
128 > --
129 > Askar Bektassov (Аскар Бектасов)
130 > Sent from desktop
131 >
132 >
133 > --
134 > Fabian Groffen
135 > Gentoo on a different level
136 >
137
138 --
139 Fabian Groffen
140 Gentoo on a different level

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-alt] What happened? Askar Bektassov <askar.bektassov@×××××.com>