|Summary:||new ebuild for ppscsi|
|Product:||Gentoo Linux||Reporter:||Astrid Malo <kess>|
|Component:||New packages||Assignee:||Default Assignee for New Packages <maintainer-wanted>|
|Severity:||normal||CC:||ladserg, leio, miguelmarte|
|Package list:||Runtime testing required:||---|
ppscsi updated to 20060424
ppscsi-20060424.ebuild w/ cleanup
New improved ebulid
fixes config.h <-> autoconf.h in ppscsi.h
update patch for 2.6.24
2.6.25 build log
diff for 2.6.25 kernel
Description Astrid Malo 2006-01-16 07:20:32 UTC
As posted at http://forums.gentoo.org/viewtopic-t-175465-postdays-0-postorder-asc-highlight-sanebackends-start-25.html#3023800 I created an ebuild for the standalone package of the parallel port SCSI adapter driver suite ppscsi.
Comment 2 Jakub Moc (RETIRED) 2006-05-06 00:03:29 UTC
*** Bug 132403 has been marked as a duplicate of this bug. ***
Comment 3 ladserg 2006-05-06 00:24:40 UTC
Created attachment 86238 [details] ppscsi updated to 20060424
Comment 4 Hypnos 2007-01-15 13:16:19 UTC
Thanks -- works well for me.
Comment 5 Hypnos 2007-01-16 02:23:18 UTC
Created attachment 107143 [details] ppscsi-20060424.ebuild w/ cleanup Removed extraneous dependencies and made more extensive use of linux-mod eclass.
Comment 6 Russell Knighton 2007-01-24 23:17:50 UTC
well done with the ebuild, and cheers. Can I suggest the use of a || die after the make? It failed to build on mine (don't worry - it was my fault), but instead of exiting in error, it just ploughed straight on.
Comment 7 Russell Knighton 2007-01-25 00:07:53 UTC
Ok, scratch what I saad about it being my fault. Here is the emerge output: kryten ~ # emerge ppscsi Calculating dependencies... done! >>> Emerging (1 of 1) media-video/ppscsi-20060424 to / * ppscsi-beta2-20060424.tar.gz MD5 ;-) ... [ ok ] * ppscsi-beta2-20060424.tar.gz RMD160 ;-) ... [ ok ] * ppscsi-beta2-20060424.tar.gz SHA1 ;-) ... [ ok ] * ppscsi-beta2-20060424.tar.gz SHA256 ;-) ... [ ok ] * ppscsi-beta2-20060424.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking ppscsi-beta2-20060424.tar.gz ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.19-gentoo-r4 >>> Unpacking source... >>> Unpacking ppscsi-beta2-20060424.tar.gz to /var/tmp/portage/media-video/ppscsi-20060424/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/media-video/ppscsi-20060424/work/ppscsi-beta2 ... make -C /lib/modules/`uname -r`/build M=`pwd` modules make: Entering directory `/usr/src/linux-2.6.19-gentoo-r2' CC [M] /var/tmp/portage/media-video/ppscsi-20060424/work/ppscsi-beta2/ppscsi.o In file included from /var/tmp/portage/media-video/ppscsi-20060424/work/ppscsi-beta2/ppscsi.c:55: /var/tmp/portage/media-video/ppscsi-20060424/work/ppscsi-beta2/ppscsi.h:16:26: error: linux/config.h: No such file or directory make: *** [/var/tmp/portage/media-video/ppscsi-20060424/work/ppscsi-beta2/ppscsi.o] Error 1 make: *** [_module_/var/tmp/portage/media-video/ppscsi-20060424/work/ppscsi-beta2] Error 2 make: Leaving directory `/usr/src/linux-2.6.19-gentoo-r2' make: *** [all] Error 2 >>> Source compiled. >>> Test phase [not enabled]: media-video/ppscsi-20060424 >>> Install ppscsi-20060424 into /var/tmp/portage/media-video/ppscsi-20060424/image/ category media-video ls: cannot access *.ko: No such file or directory >>> Completed installing ppscsi-20060424 into /var/tmp/portage/media-video/ppscsi-20060424/image/ man: >>> Merging media-video/ppscsi-20060424 to / --- /usr/ --- /usr/share/ --- /usr/share/doc/ --- /usr/share/doc/ppscsi-20060424/ >>> /usr/share/doc/ppscsi-20060424/README.ppscsi.gz >>> Safely unmerging already-installed instance... --- !mtime obj /usr/share/doc/ppscsi-20060424/README.ppscsi.gz --- !empty dir /usr/share/doc/ppscsi-20060424 --- !empty dir /usr/share/doc --- !empty dir /usr/share --- !empty dir /usr >>> Original instance of package unmerged safely. >>> media-video/ppscsi-20060424 merged. You can see that the kernel it should be building against is 2.6.19-r4 (this kernel is freshly installed and compiled). But because my running kernel hasn't changed yet, it has failed. (the 2.6.19-r2 sources have a hacked patch against it for ppscsi which I made - hence the failure). Any ideas what to do to fix it?
Comment 8 Russell Knighton 2007-01-27 18:34:25 UTC
Created attachment 108299 [details] New improved ebulid Added simple SED statement change Makefile to use $KV_FULL Added 2.6.19 patch Added "|| die" to capture make failures
Comment 9 Russell Knighton 2007-01-27 18:35:28 UTC
Created attachment 108300 [details, diff] ppscsi-2.6.19.patch Patch to go with improved ebuild
Comment 10 Hypnos 2007-02-11 08:19:30 UTC
Russell: Works well here. One small thing I should have fixed: the KEYWORDS should be "~x86", not "x86", for the time being.
Comment 11 Miguel Marte 2007-03-12 18:22:38 UTC
Can some one fix the drivers for >=2.6.20. The workstruct changes broke the drivers.
Comment 12 Russell Knighton 2007-04-02 18:28:53 UTC
Created attachment 115304 [details] New ebuild New ebuild to change x86 to ~x86, and apply 2.6.20 patch.
Comment 13 Russell Knighton 2007-04-02 18:29:52 UTC
Created attachment 115309 [details] ppscsi-2.6.20.patch New patch for 2.6.20 kernel
Comment 14 Russell Knighton 2007-04-02 18:33:25 UTC
Thanks for the feedback Sourav. I have made the change to keywords now. Also added a new patch for the 2.6.20 kernel (you still need the 2.6.19 one in your overlay). Seems to work okay for me, but I can only test the onscsi module.
Comment 15 Miguel Marte 2007-04-09 17:01:54 UTC
I am using the 5100c, but it always is using polling so my cpu is always at 100% when scanning. How do i get the modules to use interupts instead of polling, or is it not possible? ppSCSI 0.92 (0.92) installed epst.0: epst 0.92 (0.92), Shuttle EPST at 0x378 mode 5 (EPP-32) dly 1 nice 0 sg 16 scsi9 : epst scsi 9:0:0:0: Processor HP C5190A 3740 PQ: 0 ANSI: 2 scsi 9:0:0:0: Attached scsi generic sg8 type 3
Comment 16 Hypnos 2007-06-20 22:56:17 UTC
The ebuild w/ both patches works well with kernel 2.6.21. One small hiccup is that it seems to take a while for the driver to load into the kernel. I will see if it's repeatable. Perhaps related to the following dmesg error message: Device driver host1 lacks bus and class support for being resumed. Device driver target1:0:0 lacks bus and class support for being resumed.
Comment 17 Jonathan Müller 2007-08-23 15:19:07 UTC
Created attachment 128961 [details, diff] fixes config.h <-> autoconf.h in ppscsi.h Newer kernels use /lib/modules/"kernel-version"/build/linux/autoconf.h instead of config.h, so I had to change it inside of ppscsi.h. I have also included the other patch on ppscsi.c other people made.
Comment 18 Hypnos 2007-08-23 16:20:35 UTC
Jonathan, Are the changes in your patch not covered in Russell's two patches? I use Russell's ebuild with kernel 2.6.21 ...
Comment 19 Miguel Marte 2008-02-07 04:55:45 UTC
Created attachment 142861 [details, diff] update patch for 2.6.24 This is for the 2.6.24 kernel. Don't know if and #if will be needed for older kernels.
Comment 20 Matthew Schultz 2008-06-14 04:41:21 UTC
Created attachment 156711 [details] 2.6.25 build log ppscsi fails to build on 2.6.25. Any ideas?
Comment 21 Matthew Schultz 2008-06-14 04:44:47 UTC
(In reply to comment #20) > Created an attachment (id=156711)  > 2.6.25 build log > > ppscsi fails to build on 2.6.25. Any ideas? > The two patches I'm using are just a combination of all the posted patches here.
Comment 22 Liftyor 2008-07-05 17:37:46 UTC
Created attachment 159646 [details, diff] diff for 2.6.25 kernel You should try this patch. It worked for me on 22.214.171.124 (http://forums.gentoo.org/viewtopic-p-5142421.html#5142421)
Comment 23 Matthew Schultz 2008-07-08 04:45:03 UTC
Created attachment 159853 [details] ppscsi.tar.bz2 I combined all the patches and ebuild change and created a tarball with all the latest changes. I have tested this on both gentoo-sources 2.6.25-r4 & 2.6.24-r8 and my ScanJet 5100C scanner works. :-)
Comment 24 Matthew Schultz 2008-07-08 04:47:36 UTC
(In reply to comment #22) > Created an attachment (id=159646)  > diff for 2.6.25 kernel > > You should try this patch. It worked for me on 126.96.36.199 > (http://forums.gentoo.org/viewtopic-p-5142421.html#5142421) > Thanks for the post! I was hoping not to have to trash my scanner just yet. It still works. :-) I combined all the ebuild and patches into one tarball. I improved your patch so that the ebuild can compile with previous kernels (< 2.6.25) as well as 2.6.25.
Comment 25 Matthew Schultz 2009-01-07 02:43:20 UTC
Anyone have any idea how to fix this compile error? I'd like to have this work for 2.6.28. /var/tmp/portage/portage/media-gfx/ppscsi-20060424-r2/work/ppscsi-beta2/ppscsi.c: In function ‘ppsc_engine’: /var/tmp/portage/portage/media-gfx/ppscsi-20060424-r2/work/ppscsi-beta2/ppscsi.c:597: warning: assignment from incompatible pointer type /var/tmp/portage/portage/media-gfx/ppscsi-20060424-r2/work/ppscsi-beta2/ppscsi.c: In function ‘ppsc_cleanup’: /var/tmp/portage/portage/media-gfx/ppscsi-20060424-r2/work/ppscsi-beta2/ppscsi.c:849: warning: assignment from incompatible pointer type /var/tmp/portage/portage/media-gfx/ppscsi-20060424-r2/work/ppscsi-beta2/ppscsi.c: In function ‘ppsc_inquire’: /var/tmp/portage/portage/media-gfx/ppscsi-20060424-r2/work/ppscsi-beta2/ppscsi.c:1054: warning: assignment from incompatible pointer type /var/tmp/portage/portage/media-gfx/ppscsi-20060424-r2/work/ppscsi-beta2/ppscsi.c: In function ‘ppsc_detect’: /var/tmp/portage/portage/media-gfx/ppscsi-20060424-r2/work/ppscsi-beta2/ppscsi.c:1192: warning: assignment from incompatible pointer type
Comment 26 Matthew Schultz 2014-03-18 13:20:01 UTC
ppscsi is quite dead. This bug should be closed and marked wontfix.
Comment 27 Matthew Schultz 2018-06-07 18:43:51 UTC
This package died a long time ago. I think it's time to close this bug.