On Fri 12 Jun 2009 16:59:17 Guilherme Lima wrote:
[cut]
> # Stripping:
> find $PKG | xargs file | grep "ELF 32-bit LSB executable" | cut -f 1 -d : |
> xargs strip --strip-unneeded 2> /dev/null || echo "No ELF 32-bit LSB
> executable to strip"
> find $PKG | xargs file | grep "shared object" | cut -f 1 -d : | xargs strip
> --strip-unneeded 2> /dev/null || echo "No shared object to strip"
> find $PKG | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs
> strip -g 2> /dev/null || echo "No ar archive to strip"

troca (acima) por isso aqui (abaixo), é mais genérico (serve p/ ambas as 
arquiteturas)... Os binários não vão ter match no grep nunca no seu exemplo 
(atente ao 32 bits que usou).

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs 
strip --strip-unneeded 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs 
strip --strip-unneeded 2> /dev/null
)
strip -g $PKG/usr/lib${LIBDIRSUFFIX}/*.a


em x86_64 os binários (e libs) vão aparecer assim:

ELF 64-bit LSB executable, x86-64, version 1 (SYSV)
ELF 64-bit LSB shared object, x86-64, version 1 (SYSV)

Procure apenas por "executable" e "shared object" (e ELF é claro, senão não é 
binário), pois assim funcionará em 32 e 64 bits sempre...


[cut]
> # Use fakeroot if installed, or ask for the root password instead:
> if [ $(which fakeroot 2> /dev/null) ]; then
>   echo "$PACKAGING" | fakeroot

não entendi a necessidade desse "fakeroot", criar pacotes é uma tarefa 
administrativa, conseqüentemente quem faz isso é o root e ponto final!

-- 
Herbert


--~--~---------~--~----~------------~-------~--~----~
GUS-BR - Grupo de Usuários de Slackware Brasil
http://www.slackwarebrasil.org/
http://groups.google.com/group/slack-users-br

Antes de perguntar:
http://www.istf.com.br/perguntas/

Para sair da lista envie um e-mail para:
[email protected]
-~----------~----~----~----~------~----~------~--~---

Responder a