linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ENC: Aplicando patch de   atualização
@ 2006-01-19 23:35 mvaldinei
  0 siblings, 0 replies; only message in thread
From: mvaldinei @ 2006-01-19 23:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: mrval

[-- Attachment #1: Mail message body --]
[-- Type: text/plain, Size: 3784 bytes --]

Derrubei atualizações em www.conectiva.com.br/atualizacoes.Usei outro 
computador. 
Então agora localmente, após abrir os rpm obtive também varios  arquivos 
patch. 
Entrei no diretório /usr/src/linux/drivers/usb/host/ que continha o 
ohci-hcd.c e digitei: 
#patch ohci-hcd.c --dry-run --verbose 
(Coloquei --dry-run só para testar e evitar estragar algo.) 
a resposta foi que não achava a entrada, então acrescentei 
-i /usr/src/rpm/SOURCE/usb-ohci-hcd-.....patch e obtive um retorno como: 

Hmm...  Looks like a unified diff to me... 
can't find file to patch at input line 25 
Perhaps you should have used the -p or --strip option? 
The text leading up to this was: 
-------------------------- 
|# This is a BitKeeper generated patch for the following project: 
|# Project Name: Linux kernel tree 
|# This patch format is intended for GNU patch command version 2.5 or 
higher. 
|# This patch includes the following deltas: 
|#	           ChangeSet	1.481   -> 1.482 
|#	drivers/usb/host/ohci-hcd.c	1.15    -> 1.16 
|# 
|# The following is the BitKeeper ChangeSet Log 
|# -------------------------------------------- 
|# 02/06/13	david-b@pacbell.net	1.482 
|# [PATCH] ohci-hcd init err detect 
|# 
|# Here's a followup patch, should apply on top of what I sent 
|# this morning ... please do so!  (Sorry, same name but the 
|# patch is different.) 
|# 
|# Along with some cleanups, this actually restores a line that 
|# was dropped somewhere in 2.5 ... basically, at least SiS and 
|# OPTi violate the OHCI spec so they don't init "by the book". 
|# -------------------------------------------- 
|# 
|diff -Nru a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c 
|--- a/drivers/usb/host/ohci-hcd.c	Fri Jun 14 14:15:33 2002 
|+++ b/drivers/usb/host/ohci-hcd.c	Fri Jun 14 14:15:33 2002 
-------------------------- 
File to patch: 
Skip this patch? [y] 
Skipping patch. 
Hunk #1 ignored at 106. 
Hunk #2 ignored at 348. 
Hunk #3 ignored at 372. 
Hunk #4 ignored at 446. 
Hunk #5 ignored at 456. 
Hunk #6 ignored at 469. 
Hunk #7 ignored at 480. 
7 out of 7 hunks ignored 
done 

Quem é o "--- a/..." e o "+++ b/..." no diff acima ? 

experimentei usar o kompare: aplicar diferenças mas na hora de salvar na 
caixa de informação: 
Nâo foi possível atualizar o arquivo temporário para a localização destino . 
O arquivo temporário ainda está disponível em: 
/tmp/kde-root/kompares9NTGa.tmp. Você pode copiá-lo manualmente para o local 
correto. 

Onde seria o local correto ? drivers/usb/host/ohci-hcd.c ? Esse arquivo não 
tem semelhança nenhuma com o patch que estou querendo aplicar,nome de 
funções e linhas de comando, não entendi porque, o compare mostra muitas 
semelhanças. 

Experimentei também: 
cd /usr/src/linux 
patch --dry < ../rpm/SOURCES/usb-ohci-hcd.c      e quando: 
File to Patch:           informei drivers/usb//host/ohci-hcd.c 
obtive como retorno: 
Patching file drivers/usb/host/ohci-hcd.c 
reversed (or previously applied) Assume -R? [n]    aceitei o n ,pressionei 
<enter> 
Apply anyway ?[n]     aceitando,   <enter> obtenho: 
7 out of 7 hunks ignored -- saving rejects to file 
drivers/usb/host/ohci-hcd.c.rej 
mas, para que serviria esse arquivo ?     ( como usei --dry o arquivo não 
foi gerado ) 
e se aceito com y <enter> segue abaixo 7 FAILED e  7 out of 7 ... --saving 
... ohci-hcd.c.rej 

No diretório /usr/src/rpm/SPECS existe varios especs mas, que tipo de 
arquivo é a estensão .spec ? 
Alguem pode me ajudar com um passo a passo de como entender-se melhor com o 
patch ? 

Aguém poderia me ajudar com algum passo a passo do tipo: 
1) entre no diretório tal 
2) neste dir aplique o patch assim e deverá obter isso 
	se obter o erro x então ... 
		- 
		-	 
		- 
n) agora é só compilar o kernel, .... 

	 
Agradeço a ajuda, muito obrigado. 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-19 23:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-19 23:35 ENC: Aplicando patch de atualização mvaldinei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).