Web lists-archives.com

Re: [Spca50x-devs] Applying patch




Le Dimanche 29 Juillet 2007 00:17, Shixin Zeng a écrit :
> All right, when I was trying to produce a patch based on that patch
> but against
> http://mxhaard.free.fr/spca50x/Download/gspcav1-20070508.tar.gz, I found
> that the camera supported by the patch was already included.
You are welcome :) read the "news" on my website should give you the history 
of our driver !
>
> Have you tried this tarball?
>
> On 7/28/07, Kamran Soomro <kamransoomro84@xxxxxxxxx> wrote:
> > Well, it says on the website that that tarball is for kernel version
> > below 2.6.11. Like I mentioend, I'm using kernel 2.6.22. Guess the patch
> > isn't for me then. Any idea how I can get my camera to work?
> >
> >  On 7/29/07, Shixin Zeng <zeng.shixin@xxxxxxxxx> wrote:
> > > I'm sorry if I underestimated your linux skills.
> > >
> > > But you apparently used the wrong paramters to "patch". you need at
> > > least strip the toplevel directory with "-p1".
> > >
> > > Anyway, I've tried to patch it myself. and it seems to me that you
> > > downloaded a wrong tarball. I think you need this one,
> >
> > http://mxhaard.free.fr/spca50x/Download/spca5xx-v4l1goodbye.tar.gz,
> >
> > > instead. because the directory hierarchy in your tarball is very
> > > different from the one described in the patch.
> > >
> > > However, even with the tarball I showed above, it can't be applied
> > > cleanly. this is what I did.
> > > $ patch -p1 <../spca5xx.patch
> > > patching file `drivers/usb/spca5xx.c'
> > > Hunk #1 FAILED at 418.
> > > Hunk #2 FAILED at 557.
> > > Hunk #3 FAILED at 698.
> > > Hunk #4 FAILED at 8046.
> > > 4 out of 4 hunks FAILED -- saving rejects to drivers/usb/spca5xx.c.rej
> > >
> > > Perhaps you can edit the source file manually.
> > >
> > > On 7/28/07, Kamran Soomro <kamransoomro84@xxxxxxxxx> wrote:
> > > > Please do not assume anything. I do indeed have the required linux
> >
> > skills.
> >
> > > > In fact, I consider myself an intermediate, if not an advanced user.
> > > > I
> >
> > very
> >
> > > > well know that the specific version may have a different directory.
> >
> > However,
> >
> > > > what I meant to say was there is no directory along the pattern
> >
> > spca5xx-*.
> >
> > > > Since you consider yourself an advanced user, I believe you can
> >
> > understand
> >
> > > > what I mean. Anyway, the reason I asked on this list was because I
> >
> > thought
> >
> > > > that I downloaded the wrong source code or that the patch is not
> >
> > compatible
> >
> > > > with the driver for kernel version 2.6.22.
> > > >
> > > > Once again,
> >
> > http://mxhaard.free.fr/spca50x/Download/gspcav1-20070508.tar.gz,
> >
> > > > is the driver I downloaded. Does the patch work with this version of
> > > > the driver?
> > > >
> > > > On 7/29/07, Shixin Zeng <zeng.shixin@xxxxxxxxx> wrote:
> > > > > it seems that you don't have some basic linux skills.
> > > > >
> > > > > in my command "cd spca5xx-20050906", spca5xx-20050906 is a
> > > > > directory you get after you decompress the downloaded tarball. so
> > > > > it may differ from spca5xx-20050906. I used this name for the
> > > > > directory simply because the patch was produced against this
> > > > > version of the driver. it may not apply to other versions.
> > > > >
> > > > > you may consult the manual of patch for detailed information by
> > > > > "man
> > > >
> > > > patch".
> > > >
> > > > > On 7/28/07, Kamran Soomro < kamransoomro84@xxxxxxxxx> wrote:
> > > > > > Sorry. Forgot to mention that there's no such directory :S
> > > > > >
> > > > > > On 7/28/07, Shixin Zeng < zeng.shixin@xxxxxxxxx > wrote:
> > > > > > > On 7/28/07, Kamran Soomro < kamransoomro84@xxxxxxxxx > wrote:
> > > > > > > > Hi,
> > > > > > > >
> > > > > > > > I downloaded the patch available here. I downloaded the
> > > > > > > > drivers
> >
> > from
> >
> > > > > > here.
> > > > > >
> > > > > > > > I'm using kernel version 2.6.22 with OpenSUSE 10.2. The
> > > > > > > > problem
> >
> > is,
> >
> > > > I
> > > >
> > > > > > can't
> > > > > >
> > > > > > > > seem to be able to apply the patch. I do:
> > > > > > > >
> > > > > > > > # patch < gzI3jdBU8UCw
> > > > > > >
> > > > > > > I think you need do "cd spca5xx-20050906" first, and then
> > > > > > > "patch
> >
> > -p1 <
> >
> > > > > > > gzI3jdBU8UCw".
> > > > > > >
> > > > > > > > and I get the following message:
> > > > > > > >
> > > > > > > > can't find file to patch at input line 4
> > > > > > > > Perhaps you should have used the -p or --strip option?
> > > > > > > > The text leading up to this was:
> > > > > > > >  --------------------------
> > > > > > > >
> > > > > > > > |diff -r -c
> >
> > spca5xx-20050906/drivers/usb/spca5xx.c
> >
> > > > > > > > spca5xx-20050906.patched/drivers/usb/spca5xx.c
> > > > > > > >
> > > > > > > > |*** spca5xx-20050906/drivers/usb/spca5xx.c
> > > > > >
> > > > > > 2005-09-06
> > > > > >
> > > > > > > > 22:13: 58.000000000 +0200
> > > > > > > >
> > > > > > > >  |--- spca5xx-20050906.patched/drivers/usb/spca5xx.c
> >
> > 2005-10-08
> >
> > > > > > > > 17:51:48.000000000 +0200
> > > > > > > >  --------------------------
> > > > > > > > File to patch:
> > > > > > > >
> > > > > > > >
> > > > > > > > Can somebody help me in applying the patch please? Thankyou.
> > > > > > > >
> > > > > > > > --
> > > > > > > > Regards,
> > > > > > > > Kamran Soomro.
> >
> > -------------------------------------------------------------------------
> >
> > > > > > > > This SF.net email is sponsored by: Splunk Inc.
> > > > > > > > Still grepping through log files to find problems?  Stop.
> > > > > > > > Now Search log events and configuration files using AJAX and
> > > > > > > > a
> > > >
> > > > browser.
> > > >
> > > > > > > > Download your FREE copy of Splunk now >>
> >
> > http://get.splunk.com/
> >
> > > > > > > > _______________________________________________
> > > > > > > > Spca50x-devs mailing list
> > > > > > > > Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
> >
> > https://lists.sourceforge.net/lists/listinfo/spca50x-devs
> >
> > > > > > > --
> > > > > > > Best Regards
> > > > > > >
> > > > > > > Shixin Zeng
> > > > > >
> > > > > > --
> > > > > > Regards,
> > > > > > Kamran Soomro.
> > > > >
> > > > > --
> > > > > Best Regards
> > > > >
> > > > > Shixin Zeng
> > > >
> > > > --
> > > > Regards,
> > > > Kamran Soomro.
> >
> > -------------------------------------------------------------------------
> >
> > > > This SF.net email is sponsored by: Splunk Inc.
> > > > Still grepping through log files to find problems?  Stop.
> > > > Now Search log events and configuration files using AJAX and a
> > > > browser. Download your FREE copy of Splunk now >>  
> > > > http://get.splunk.com/
> > > > _______________________________________________
> > > > Spca50x-devs mailing list
> > > > Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
> >
> > https://lists.sourceforge.net/lists/listinfo/spca50x-devs
> >
> > > --
> > > Best Regards
> > >
> > > Shixin Zeng
> >
> > -------------------------------------------------------------------------
> >
> > > This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a browser.
> > > Download your FREE copy of Splunk now >>   http://get.splunk.com/
> > > _______________________________________________
> > > Spca50x-devs mailing list
> > > Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
> > > https://lists.sourceforge.net/lists/listinfo/spca50x-devs
> >
> > --
> > Regards,
> > Kamran Soomro.

-- 
Michel Xhaard
http://mxhaard.free.fr

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs