Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ajuda para restaurar meu package.env
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
jeffss
n00b
n00b


Joined: 13 Sep 2019
Posts: 55

PostPosted: Mon Jul 12, 2021 1:40 am    Post subject: ajuda para restaurar meu package.env Reply with quote

Oi, recentemente eu terminei trocando um '>>' por '>' quando ia fazer uma adição ao arquivo e agora o único meio que eu posso conseguir refazê-lo é através de um script, infelizmente eu ainda tenho ao menos uma dúvida e o tempo de execução dele está bastante alto, então inclusive também por isso a pergunta.

para a adição no arquivo 'relacoes_negativas', eu pretendo ter um pacote, na forma categoria/nome configuração.conf, com todas as configurações nas quais aquele pacote não se encaixa. Eu tentei fazer da forma oposta primeiro, mas infelizmente na prática eu percebi que não tem como funcionar assim, porque se uma linha se relacionar, não há garantia de que as outras irão também. Ele não está funcionando da forma esperada, apesar de que eu ainda não terminei de executar

abaixo o script e os outros arquivos gerados:

Code:
 #!/bin/env sh

echo "" > ambiente;

for i in /etc/portage/env/* ; do
    arquivos=$(echo $i | sed 's/^.*\///;s/\./\\./');
    cat $i | sed -n "s/^/$arquivos\ /p" | sort | uniq >> ambiente;
done;

echo "" > info_pacotes_instalados;

for i in $(sed -n 's/^.*\ //;s/=.*//p' ambiente | grep --invert-match '\#\|export' | sort | uniq); do
   echo /var/db/pkg/*/*/ | xargs -n1 | sed -E "s/\$/$i/" | xargs grep -s arch >> info_pacotes_instalados;
done;

sed 's/=/\.\*/;s/\${.*}//g;s/'"'"'//g;s/'"\""'//g' ambiente > substituicoes;

echo "" > relacoes_negativas

cat info_pacotes_instalados | while read line; do
   cat substituicoes | sed 's/^.*\.conf\ //' | while read substituidos; do
      if echo "$line" | grep --invert-match "${substituidos}"; then
         { echo "$line" | grep --only-matching "$(sed -n 's/\/var\/db\/pkg\///;s/-[0-9].*//p')"; grep "$substituidos" substituicoes | sed 's/\ .*//' | xargs; } | xargs >> relacoes_negativas;
      fi;
   done;
done;



ambiente:

Code:

blender.conf BOOT_CFLAGS='${BOOT_CFLAGS} -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3'
blender.conf BOOT_CFLAGS='${BOOT_CFLAGS} -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native'
blender.conf CC="clang"
blender.conf CFLAGS_FOR_TARGET='${CFLAGS_FOR_TARGET} -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3'
blender.conf CFLAGS_FOR_TARGET='${CFLAGS_FOR_TARGET} -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native'
blender.conf CFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
blender.conf CXX="clang"
blender.conf CXXFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
blender.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native -fuse-ld=lld'
bubblewrap.conf PKG_CONFIG_PATH='/usr/include/selinux /usr/lib64/python3.6/site-packages/selinux /usr/lib64/python3.6/site-packages/selinux/__pycache__'
calligra.conf CALLIGRA_FEATURES="stage karbon sheets words"
compiler.conf
compiler.conf BOOT_CFLAGS='${BOOT_CFLAGS} -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3'
compiler.conf BOOT_CFLAGS='${BOOT_CFLAGS} -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native'
compiler.conf CC="clang"
compiler.conf CFLAGS_FOR_TARGET='${CFLAGS_FOR_TARGET} -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3'
compiler.conf CFLAGS_FOR_TARGET='${CFLAGS_FOR_TARGET} -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native'
compiler.conf CFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
compiler.conf CXX="clang"
compiler.conf CXXFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
compiler.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native -fuse-ld=bfd'
cpu_bound.conf EMERGE_DEFAULT_OPTS=-j1
cpu_bound.conf MAKEOPTS=-j7
debugsyms.conf CFLAGS="${CFLAGS} -ggdb"
debugsyms.conf CXXFLAGS="${COMMON_FLAGS} -ggdb"
debugsyms.conf FEATURES="${FEATURES} splitdebug compressdebug -nostrip"
elfutils.conf
elfutils.conf CFLAGS="${COMMON_FLAGS}"
elfutils.conf COMMON_FLAGS="${COMMON_FLAGS} -fpic"
elfutils.conf CXXFLAGS="${COMMON_FLAGS}"
elfutils.conf FCFLAGS="${COMMON_FLAGS}"
elfutils.conf FFLAGS="${COMMON_FLAGS}"
gcc.conf BOOT_CFLAGS='${BOOT_CFLAGS} --param lto-max-streaming-parallelism=3 -pipe -march=native'
gcc.conf CFLAGS_FOR_TARGET='${CFLAGS_FOR_TARGET} --param lto-max-streaming-parallelism=3 -pipe -march=native'
gcc.conf CFLAGS="-O2 -pipe -march=native --param lto-max-streaming-parallelism=3"
gcc.conf COMMON_FLAGS="-O2 -pipe -march=native --param lto-max-streaming-parallelism=3"
gcc.conf CXXFLAGS="-O2 -pipe -march=native --param lto-max-streaming-parallelism=3"
gcc.conf FCFLAGS="-O2 -pipe -march=native --param lto-max-streaming-parallelism=3"
gcc.conf FFLAGS="-O2 -pipe -march=native --param lto-max-streaming-parallelism=3"
graph-tool.conf CC="clang"
graph-tool.conf COMMON_FLAGS="-Os -pipe -march=native -fgcse-las -fschedule-insns2 --param max-gcse-memory=1 max-pending-list-length=2.5"
graph-tool.conf CXX="clang"
graph-tool.conf MAKEOPTS="--load-average=0.5"
heavy_pkg.conf EMERGE_DEFAULT_OPTS='--jobs 1'
heavy_pkg.conf MAKEOPTS='-j2 --load-average 1.71'
installsources.conf FEATURES="${FEATURES} installsources"
julia.conf
julia.conf #CC="clang"
julia.conf CFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
julia.conf #CXX="clang"
julia.conf CXXFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
julia.conf FEATURES="-ccache"
julia.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native -fuse-ld=bfd'
ldb.conf LDFLAGS=''
llvm.conf CFLAGS="${COMMON_FLAGS}"
llvm.conf CXXFLAGS="${COMMON_FLAGS} -fdeclone-ctor-dtor"
llvm.conf LDFLAGS='-pthread -pipe -march=native'
long_pkg_comum.conf EMERGE_DEFAULT_OPTS="--jobs 1"
long_pkg_comum.conf MAKEOPTS="-j3 --load-average=3.00"
long_pkg_comum.conf NINJAFLAGS='-j 3 -l 3.00'
long_pkg.conf CC="clang"
long_pkg.conf CFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
long_pkg.conf CXX="clang"
long_pkg.conf CXXFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
long_pkg.conf EMERGE_DEFAULT_OPTS="--jobs 1"
long_pkg.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
long_pkg.conf MAKEOPTS="-j3 --load-average=3.00"
long_pkg.conf NINJAFLAGS='-j 3 -l 3.00'
loop_seguro.conf #
loop_seguro.conf CFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3"
loop_seguro.conf CXXFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3"
loop_seguro.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
manyDown.conf FEATURES="-network-sandbox"
medium_pkg.conf CXXFLAGS="${COMMON_FLAGS} -fdeclone-ctor-dtor"
medium_pkg.conf EMERGE_DEFAULT_OPTS="--jobs 1 --load-average 2.10"
medium_pkg.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
medium_pkg.conf MAKEOPTS=-j4
mesa.conf CFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -ggdb"
mesa.conf CXXFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -ggdb"
mesa.conf FEATURES="${FEATURES} splitdebug compressdebug -nostrip"
mesa.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
mesa.conf #-Wl,--no-keep-memory
no_ccache.conf FEATURES="-ccache"
no_loops.conf CFLAGS="${COMMON_FLAGS}"
no_loops.conf COMMON_FLAGS="-O3 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3"
no_loops.conf CXXFLAGS="${COMMON_FLAGS} -fdeclone-ctor-dtor -nostdinc++ -I/usr/include/c++/v1/"
no_loops_padrao.conf CFLAGS="${COMMON_FLAGS}"
no_loops_padrao.conf COMMON_FLAGS="-O3 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3"
no_loops_padrao.conf CXXFLAGS="${COMMON_FLAGS} -fdeclone-ctor-dtor"
no_loops_padrao.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
no_rust_lto.conf RUSTFLAGS="-C target-cpu=native -C target-feature=+avx,+f16c,+mmx,+pclmul,+popcnt,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3 -C opt-level=3"
novo_seguro.conf CFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3"
novo_seguro.conf CXXFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3"
novo_seguro.conf # -floop-block -fgraphite-identity
novo_seguro.conf LDFLAGS='-pthread -pipe -march=native'
now_static_declaration.conf CFLAGS="${CFLAGS} -Wno-traditional"
now_static_declaration.conf CXXFLAGS="${CXXFLAGS} -Wno-traditional"
one_rust_flag.conf RUSTFLAGS="-C target-cpu=native"
padrao.conf CXXFLAGS="${COMMON_FLAGS} -fdeclone-ctor-dtor"
padrao.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
panico.conf export DONT_MOUNT_BOOT=1
plasma.conf CFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -floop-block -fgraphite-identity -ggdb --param lto-max-streaming-parallelism=3"
plasma.conf CXXFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -floop-block -fgraphite-identity -ggdb --param lto-max-streaming-parallelism=3"
plasma.conf # -floop-block -fgraphite-identity
plasma.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
prepara_clang.conf CFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
prepara_clang.conf CXXFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
prepara_clang.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
pulseaudio.conf
pulseaudio.conf CFLAGS="-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity"
pulseaudio.conf COMMON_FLAGS="-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity"
pulseaudio.conf CXXFLAGS="-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity"
pulseaudio.conf FCFLAGS="-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity"
pulseaudio.conf FFLAGS="-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity"
qemu.conf CC="clang"
qemu.conf CFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
qemu.conf CXX="clang"
qemu.conf CXXFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
qemu.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
qemu.conf #-Wl,--no-keep-memory
qtfdp.conf CC="gcc"
qtfdp.conf CXXFLAGS="${COMMON_FLAGS} -fdeclone-ctor-dtor"
qtfdp.conf CXX="g++"
qtfdp.conf EMERGE_DEFAULT_OPTS="--jobs 1"
qtfdp.conf LDFLAGS='-pthread -pipe -march=native -fuse-ld=gold -Wl,--icf=safe -Wl,--gc-sections -Wl,--compress-debug-sections=zlib'
qtfdp.conf MAKEOPTS='-j2'
qtfdp.conf NINJAFLAGS=""
retire.conf BOOT_CFLAGS='${BOOT_CFLAGS} -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3'
retire.conf BOOT_CFLAGS='${BOOT_CFLAGS} -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native'
retire.conf CFLAGS_FOR_TARGET='${CFLAGS_FOR_TARGET} -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3'
retire.conf CFLAGS_FOR_TARGET='${CFLAGS_FOR_TARGET} -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native'
retire.conf CFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
retire.conf CXXFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
retire.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native -fuse-ld=bfd'
seguro.conf CFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -floop-block -fgraphite-identity --param lto-max-streaming-parallelism=3"
seguro.conf CXXFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -floop-block -fgraphite-identity --param lto-max-streaming-parallelism=3"
seguro.conf # -floop-block -fgraphite-identity
seguro.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
sensible_mono.conf GACUTIL_FLAGS="-j1"
strlen.conf CFLAGS="${CFLAGS} -fno-builtin-strlen"
tor.conf CFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3"
tor.conf CXXFLAGS="-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3"
tor.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
troque_para_clang_completo.conf
troque_para_clang_completo.conf CC="clang"
troque_para_clang_completo.conf #CC="gclang"
troque_para_clang_completo.conf CFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -rtlib=compiler-rt"
troque_para_clang_completo.conf CXX="clang"
troque_para_clang_completo.conf CXXFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -stdlib=libc++ -rtlib=compiler-rt"
troque_para_clang_completo.conf #CXX="gclang"
troque_para_clang_completo.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native -fuse-ld=bfd'
troque_para_clang_completo.conf #WLLVM_CONFIGURE_ONLY=1
troque_para_clang.conf CC="clang"
troque_para_clang.conf CFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
troque_para_clang.conf CXX="clang"
troque_para_clang.conf CXXFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
troque_para_clang.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
troque_para_clang_quase_completo.conf CC="clang"
troque_para_clang_quase_completo.conf CFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -rtlib=libgcc"
troque_para_clang_quase_completo.conf CXX="clang"
troque_para_clang_quase_completo.conf CXXFLAGS="-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -stdlib=libc++ -rtlib=libgcc"
troque_para_clang_quase_completo.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native -fuse-ld=lld'
troque_para_clang_seguro.conf CC="clang"
troque_para_clang_seguro.conf CFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
troque_para_clang_seguro.conf CXX="clang"
troque_para_clang_seguro.conf CXXFLAGS="-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3"
troque_para_clang_seguro.conf LDFLAGS='-pthread -pipe -Wl,-O2 -march=native'
troque_para_gcc.conf CC="gcc"
troque_para_gcc.conf CXX="g++"
webkitgtk-sharp.conf WEBKIT_CFLAGS="-I/usr/include/webkitgtk-4.0"
webkitgtk-sharp.conf WEBKIT_LIBS="-L/usr/lib64 -lwebkit2gtk-4.0"
xen-tools.conf CPPFLAGS="-I/usr/include/python3.8/"


substituicoes:

Code:

blender.conf BOOT_CFLAGS.* -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
blender.conf BOOT_CFLAGS.* -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native
blender.conf CC.*clang
blender.conf CFLAGS_FOR_TARGET.* -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
blender.conf CFLAGS_FOR_TARGET.* -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native
blender.conf CFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
blender.conf CXX.*clang
blender.conf CXXFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
blender.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native -fuse-ld=lld
bubblewrap.conf PKG_CONFIG_PATH.*/usr/include/selinux /usr/lib64/python3.6/site-packages/selinux /usr/lib64/python3.6/site-packages/selinux/__pycache__
calligra.conf CALLIGRA_FEATURES.*stage karbon sheets words
compiler.conf
compiler.conf BOOT_CFLAGS.* -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
compiler.conf BOOT_CFLAGS.* -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native
compiler.conf CC.*clang
compiler.conf CFLAGS_FOR_TARGET.* -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
compiler.conf CFLAGS_FOR_TARGET.* -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native
compiler.conf CFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
compiler.conf CXX.*clang
compiler.conf CXXFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
compiler.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native -fuse-ld=bfd
cpu_bound.conf EMERGE_DEFAULT_OPTS.*-j1
cpu_bound.conf MAKEOPTS.*-j7
debugsyms.conf CFLAGS.* -ggdb
debugsyms.conf CXXFLAGS.* -ggdb
debugsyms.conf FEATURES.* splitdebug compressdebug -nostrip
elfutils.conf
elfutils.conf CFLAGS.*
elfutils.conf COMMON_FLAGS.* -fpic
elfutils.conf CXXFLAGS.*
elfutils.conf FCFLAGS.*
elfutils.conf FFLAGS.*
gcc.conf BOOT_CFLAGS.* --param lto-max-streaming-parallelism=3 -pipe -march=native
gcc.conf CFLAGS_FOR_TARGET.* --param lto-max-streaming-parallelism=3 -pipe -march=native
gcc.conf CFLAGS.*-O2 -pipe -march=native --param lto-max-streaming-parallelism=3
gcc.conf COMMON_FLAGS.*-O2 -pipe -march=native --param lto-max-streaming-parallelism=3
gcc.conf CXXFLAGS.*-O2 -pipe -march=native --param lto-max-streaming-parallelism=3
gcc.conf FCFLAGS.*-O2 -pipe -march=native --param lto-max-streaming-parallelism=3
gcc.conf FFLAGS.*-O2 -pipe -march=native --param lto-max-streaming-parallelism=3
graph-tool.conf CC.*clang
graph-tool.conf COMMON_FLAGS.*-Os -pipe -march=native -fgcse-las -fschedule-insns2 --param max-gcse-memory=1 max-pending-list-length=2.5
graph-tool.conf CXX.*clang
graph-tool.conf MAKEOPTS.*--load-average=0.5
heavy_pkg.conf EMERGE_DEFAULT_OPTS.*--jobs 1
heavy_pkg.conf MAKEOPTS.*-j2 --load-average 1.71
installsources.conf FEATURES.* installsources
julia.conf
julia.conf #CC.*clang
julia.conf CFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
julia.conf #CXX.*clang
julia.conf CXXFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
julia.conf FEATURES.*-ccache
julia.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native -fuse-ld=bfd
ldb.conf LDFLAGS.*
llvm.conf CFLAGS.*
llvm.conf CXXFLAGS.* -fdeclone-ctor-dtor
llvm.conf LDFLAGS.*-pthread -pipe -march=native
long_pkg_comum.conf EMERGE_DEFAULT_OPTS.*--jobs 1
long_pkg_comum.conf MAKEOPTS.*-j3 --load-average=3.00
long_pkg_comum.conf NINJAFLAGS.*-j 3 -l 3.00
long_pkg.conf CC.*clang
long_pkg.conf CFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
long_pkg.conf CXX.*clang
long_pkg.conf CXXFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
long_pkg.conf EMERGE_DEFAULT_OPTS.*--jobs 1
long_pkg.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
long_pkg.conf MAKEOPTS.*-j3 --load-average=3.00
long_pkg.conf NINJAFLAGS.*-j 3 -l 3.00
loop_seguro.conf #
loop_seguro.conf CFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3
loop_seguro.conf CXXFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3
loop_seguro.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
manyDown.conf FEATURES.*-network-sandbox
medium_pkg.conf CXXFLAGS.* -fdeclone-ctor-dtor
medium_pkg.conf EMERGE_DEFAULT_OPTS.*--jobs 1 --load-average 2.10
medium_pkg.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
medium_pkg.conf MAKEOPTS.*-j4
mesa.conf CFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -ggdb
mesa.conf CXXFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -ggdb
mesa.conf FEATURES.* splitdebug compressdebug -nostrip
mesa.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
mesa.conf #-Wl,--no-keep-memory
no_ccache.conf FEATURES.*-ccache
no_loops.conf CFLAGS.*
no_loops.conf COMMON_FLAGS.*-O3 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3
no_loops.conf CXXFLAGS.* -fdeclone-ctor-dtor -nostdinc++ -I/usr/include/c++/v1/
no_loops_padrao.conf CFLAGS.*
no_loops_padrao.conf COMMON_FLAGS.*-O3 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3
no_loops_padrao.conf CXXFLAGS.* -fdeclone-ctor-dtor
no_loops_padrao.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
no_rust_lto.conf RUSTFLAGS.*-C target-cpu=native -C target-feature=+avx,+f16c,+mmx,+pclmul,+popcnt,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3 -C opt-level=3
novo_seguro.conf CFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3
novo_seguro.conf CXXFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3
novo_seguro.conf # -floop-block -fgraphite-identity
novo_seguro.conf LDFLAGS.*-pthread -pipe -march=native
now_static_declaration.conf CFLAGS.* -Wno-traditional
now_static_declaration.conf CXXFLAGS.* -Wno-traditional
one_rust_flag.conf RUSTFLAGS.*-C target-cpu=native
padrao.conf CXXFLAGS.* -fdeclone-ctor-dtor
padrao.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
panico.conf export DONT_MOUNT_BOOT.*1
plasma.conf CFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -floop-block -fgraphite-identity -ggdb --param lto-max-streaming-parallelism=3
plasma.conf CXXFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -floop-block -fgraphite-identity -ggdb --param lto-max-streaming-parallelism=3
plasma.conf # -floop-block -fgraphite-identity
plasma.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
prepara_clang.conf CFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
prepara_clang.conf CXXFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
prepara_clang.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
pulseaudio.conf
pulseaudio.conf CFLAGS.*-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity
pulseaudio.conf COMMON_FLAGS.*-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity
pulseaudio.conf CXXFLAGS.*-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity
pulseaudio.conf FCFLAGS.*-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity
pulseaudio.conf FFLAGS.*-O3 -pipe -march=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -fgcse-sm -fgcse-las -floop-block -fgraphite-identity
qemu.conf CC.*clang
qemu.conf CFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
qemu.conf CXX.*clang
qemu.conf CXXFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
qemu.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
qemu.conf #-Wl,--no-keep-memory
qtfdp.conf CC.*gcc
qtfdp.conf CXXFLAGS.* -fdeclone-ctor-dtor
qtfdp.conf CXX.*g++
qtfdp.conf EMERGE_DEFAULT_OPTS.*--jobs 1
qtfdp.conf LDFLAGS.*-pthread -pipe -march=native -fuse-ld=gold -Wl,--icf=safe -Wl,--gc-sections -Wl,--compress-debug-sections=zlib
qtfdp.conf MAKEOPTS.*-j2
qtfdp.conf NINJAFLAGS.*
retire.conf BOOT_CFLAGS.* -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
retire.conf BOOT_CFLAGS.* -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native
retire.conf CFLAGS_FOR_TARGET.* -O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
retire.conf CFLAGS_FOR_TARGET.* -pthread --param lto-max-streaming-parallelism=3 -pipe -march=native
retire.conf CFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
retire.conf CXXFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
retire.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native -fuse-ld=bfd
seguro.conf CFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -floop-block -fgraphite-identity --param lto-max-streaming-parallelism=3
seguro.conf CXXFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure -floop-block -fgraphite-identity --param lto-max-streaming-parallelism=3
seguro.conf # -floop-block -fgraphite-identity
seguro.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
sensible_mono.conf GACUTIL_FLAGS.*-j1
strlen.conf CFLAGS.* -fno-builtin-strlen
tor.conf CFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3
tor.conf CXXFLAGS.*-O2 -pipe -march=native -mtune=native -pthread -fira-hoist-pressure -flive-range-shrinkage -fsched-pressure --param lto-max-streaming-parallelism=3
tor.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
troque_para_clang_completo.conf
troque_para_clang_completo.conf CC.*clang
troque_para_clang_completo.conf #CC.*gclang
troque_para_clang_completo.conf CFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -rtlib=compiler-rt
troque_para_clang_completo.conf CXX.*clang
troque_para_clang_completo.conf CXXFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -stdlib=libc++ -rtlib=compiler-rt
troque_para_clang_completo.conf #CXX.*gclang
troque_para_clang_completo.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native -fuse-ld=bfd
troque_para_clang_completo.conf #WLLVM_CONFIGURE_ONLY.*1
troque_para_clang.conf CC.*clang
troque_para_clang.conf CFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
troque_para_clang.conf CXX.*clang
troque_para_clang.conf CXXFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
troque_para_clang.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
troque_para_clang_quase_completo.conf CC.*clang
troque_para_clang_quase_completo.conf CFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -rtlib=libgcc
troque_para_clang_quase_completo.conf CXX.*clang
troque_para_clang_quase_completo.conf CXXFLAGS.*-O3 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3 -stdlib=libc++ -rtlib=libgcc
troque_para_clang_quase_completo.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native -fuse-ld=lld
troque_para_clang_seguro.conf CC.*clang
troque_para_clang_seguro.conf CFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
troque_para_clang_seguro.conf CXX.*clang
troque_para_clang_seguro.conf CXXFLAGS.*-O2 -pipe -march=native -pthread --param lto-max-streaming-parallelism=3
troque_para_clang_seguro.conf LDFLAGS.*-pthread -pipe -Wl,-O2 -march=native
troque_para_gcc.conf CC.*gcc
troque_para_gcc.conf CXX.*g++
webkitgtk-sharp.conf WEBKIT_CFLAGS.*-I/usr/include/webkitgtk-4.0
webkitgtk-sharp.conf WEBKIT_LIBS.*-L/usr/lib64 -lwebkit2gtk-4.0
xen-tools.conf CPPFLAGS.*-I/usr/include/python3.8/


começo de relacoes_negativas.conf:
Code:

blender.conf compiler.conf retire.conf
blender.conf compiler.conf retire.conf
blender.conf compiler.conf graph-tool.conf julia.conf long_pkg.conf qemu.conf troque_para_clang_completo.conf troque_para_clang_completo.conf troque_para_clang.conf troque_para_clang_quase_completo.conf troque_para_clang_seguro.conf
blender.conf compiler.conf retire.conf
blender.conf compiler.conf retire.conf
blender.conf blender.conf blender.conf compiler.conf compiler.conf compiler.conf long_pkg.conf mesa.conf
Back to top
View user's profile Send private message
jeffss
n00b
n00b


Joined: 13 Sep 2019
Posts: 55

PostPosted: Mon Jul 12, 2021 3:27 am    Post subject: Reply with quote

agora eu vi que na última parte eu tive uma desatenção, troquei para

Code:

cat info_pacotes_instalados | sed -n 's/\/var\/db\/pkg\///;s/-[0-9][^ ]*//p' | while read line; do
   cat substituicoes | sed 's/^.*\.conf\ //' | while read substituidos; do
      if echo "$line" | grep --invert-match "${substituidos}"; then
         { echo "$line" | grep --only-matching "$(echo $line | sed -n 's/\ .*//p')"; grep "$substituidos" substituicoes | sed 's/\ .*//' | xargs; } | xargs >> relacoes_negativas;
         #echo "$line" | grep --only-matching "$(echo $line | sed -n 's/\ .*//p')" | xargs >> relacoes_negativas;
      fi;
   done;
done;


ao menos o formato está correto agora, só está redundante
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum