Re: cups - debuild - pbuilder

Herbert Parentes Fortes Neto <[email protected]>
Newsgroups gmane.linux.debian.devel.portuguese
Message-ID <[email protected]>
Em Qui, 2014-11-06 às 11:17 -0200, Antonio Terceiro escreveu:
> On Sun, Nov 02, 2014 at 04:07:55PM -0200, Herbert Parentes Fortes Neto wrote:
> > Em Dom, 2014-11-02 às 12:33 -0200, Antonio Terceiro escreveu:
> > > n, Oct 27, 2014 at 10:23:21AM -0200, Herbert Parentes Fortes Neto wrote:
> > > > > > Olá,                                                   
> > > > > > 
> > > > > > não estou conseguindo criar o pacote do cups com o pbuilder.
> > > > > > com debuild correu tudo bem.
> > > > > > 
> > > > > > o problema está quando o script cups-1.7.5/test/run-stp-tests.sh é
> > > > > > executado. o trecho do código:
> > > > > > 
> > > > > > while true; do
> > > > > >         running=`../systemv/lpstat -r 2>/dev/null`
> > > > > >         if test "x$running" = "xscheduler is running"; then
> > > > > >                 break
> > > > > >         fi
> > > > > > 
> > > > > >         echo "Waiting for scheduler to become ready..."
> > > > > >         sleep 10
> > > > > > done
> > > > > > 
> > > > > > o problema é que ../systemv/lpstat não existe, então fica um
> > > > > > loop infinito.
> > > > > 
> > > > > que estranho a primeira coisa que eu tentaria é:
> > > > > 
> > > > >   0) colocar um `find ../systemv` antes do loop pra ter certeza do que tem lá dentro
> > > > > 
> > > > >   1) tirar aquele 2>/dev/null dali pra que o erro que acontece na chama
> > > > >      não ser omitido.
> > > > 
> > > > não estou conseguindo fazer isso. não estou me intendendo com o quilt.
> > > > segui as orientações para fazer o patch daqui[0]. ele aparece em
> > > > debian/patches/series. e fazendo 'quilt push -a' o patch é aplicado. mas
> > > > na construção do pacote não. tentei fazer as mudanças direto no arquivo,
> > > > mas não dá certo. O que fiz foi olhar aqui[1] e o lpstat está lá.
> > > > alguma orientação?
> > > > 
> > > > [0] - https://wiki.debian.org/UsingQuilt
> > > > [1] - /var/cache/pbuilder/build/2441/tmp/buildd/cups-1.7.5/systemv/
> > > 
> > > a melhor forma de fazer isso provavelmente é criar um novo patch no
> > > final da fila, ao invés de tentar modificar os patches no meio. o
> > > problema é que quando você faz `quilt push -a` ele empurra todos os
> > > patches, e pra vc editar um arquivo que foi modificado por um patch no
> > > meio da fila fica complicado.
> > > 
> > > pra criar um novo patch, tente isso aqui:
> > > 
> > > $ quilt push -a
> > > $ quilt new my-tests.patch
> > > $ quilt add test/run-stp-tests.sh
> > > $ sensible-editor test/run-stp-tests.sh
> > > # altere o arquivo
> > > $ quilt refresh
> > > 
> > > e depois compile
> > > 
> > 
> > baixei um novo source para começar do zero. mafiz os passos mas ainda não 
> > deu certo.
> > 
> > chequei o debian/patches/my-tests.sh e ele tem o padrão 'a/' '/b/' e ele 
> > aparece no debian/patches/series em último. isso no diretório onde baixei o 
> > source. fui conferir no diretório de construção, em /var/cache/pbuilder/build, 
> > e o patch não é transportado para lá. nem aparece no series de lá.
> 
> se você está passando o .dsc para o pbuilder, você tem que refazer o
> pacote fonte antes; `dpkg-source -b .` de dentro do diretório dos
> fontes vai refazer o .dsc e o .debian.tar.gz.
> 
> idealmente você tem que adicionar uma nova entrada no debian/changelog
> antes, pra que o .dsc gerado tenha um número de versão maior que o
> original, e daí você vai poder comparar as duas versões do pacote usando
> debdiff(1).
> 
ok, feito.

o lpstat é executado. a resposta é "scheduler is not running". mas antes
é informado o pid do scheduler.

teria que aparecer em '/var/cache/pbuilder/build/proc' ?

abaixo a saída do 'pbuilder build':

Starting scheduler:
     ../scheduler/cupsd -c /tmp/cups-root/cupsd.conf -f
>/tmp/cups-root/log/debug_log 2>&1 &

Scheduler is PID 24161.

----------------
../systemv
../systemv/cupsctl.o
../systemv/lpstat.c
../systemv/accept
../systemv/cupsaccept
../systemv/cupsaddsmb
../systemv/lp.c
../systemv/Dependencies
../systemv/cupsaddsmb.o
../systemv/lp
../systemv/lpoptions
../systemv/lp.o
../systemv/lpoptions.o
../systemv/cupstestppd.o
../systemv/cupsctl.c
../systemv/lpinfo.c
../systemv/cancel
../systemv/lpmove.o
../systemv/cupsdisable
../systemv/lpadmin.o
../systemv/cupsctl
../systemv/cupsaccept.c
../systemv/cupstestppd.c
../systemv/lpadmin
../systemv/cupsenable
../systemv/cupstestdsc
../systemv/cupstestdsc.o
../systemv/cancel.o
../systemv/cupsreject
../systemv/lppasswd
../systemv/reject
../systemv/cancel.c
../systemv/lppasswd.o
../systemv/cupstestppd
../systemv/Makefile
../systemv/lpoptions.c
../systemv/cupstestdsc.c
../systemv/lpmove.c
../systemv/cupsaccept.o
../systemv/lpstat.o
../systemv/lpmove
../systemv/lpinfo
../systemv/lpstat
../systemv/lpinfo.o
../systemv/cupsaddsmb.c
../systemv/lppasswd.c
../systemv/lpadmin.c
----------------

scheduler is not running
Waiting for scheduler to become ready...
scheduler is not running
Waiting for scheduler to become ready...



-- 
Herbert Parentes Fortes Neto (hpfn)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.