Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 267105 Details for
Bug 359745
dev-python/pygame-1.9.1 fails to build with sys-kernel/linux-headers-2.6.38 due to V4L1 removal
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch which rips v4l version 1 support out of pygame.
pygame-v4l.patch (text/plain), 2.88 KB, created by
Martijn Schmidt
on 2011-03-24 16:58:39 UTC
(
hide
)
Description:
Proposed patch which rips v4l version 1 support out of pygame.
Filename:
MIME Type:
Creator:
Martijn Schmidt
Created:
2011-03-24 16:58:39 UTC
Size:
2.88 KB
patch
obsolete
>diff -crB pygame-1.9.1release/Setup.in pygame-1.9.1release-v4lpatch//Setup.in >*** pygame-1.9.1release/Setup.in Thu Jul 2 06:41:56 2009 >--- pygame-1.9.1release-v4lpatch//Setup.in Thu Mar 24 17:31:22 2011 >*************** >*** 34,40 **** > _numericsndarray src/_numericsndarray.c $(SDL) $(MIXER) $(DEBUG) > movie src/movie.c $(SDL) $(SMPEG) $(DEBUG) > scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG) >! _camera src/_camera.c src/camera_v4l2.c src/camera_v4l.c $(SDL) $(DEBUG) > pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG) > > GFX = src/SDL_gfx/SDL_gfxPrimitives.c >--- 34,40 ---- > _numericsndarray src/_numericsndarray.c $(SDL) $(MIXER) $(DEBUG) > movie src/movie.c $(SDL) $(SMPEG) $(DEBUG) > scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG) >! _camera src/_camera.c src/camera_v4l2.c $(SDL) $(DEBUG) > pypm src/pypm.c $(SDL) $(PORTMIDI) $(PORTTIME) $(DEBUG) > > GFX = src/SDL_gfx/SDL_gfxPrimitives.c >diff -crB pygame-1.9.1release/src/_camera.c pygame-1.9.1release-v4lpatch//src/_camera.c >*** pygame-1.9.1release/src/_camera.c Sun Mar 15 20:30:41 2009 >--- pygame-1.9.1release-v4lpatch//src/_camera.c Thu Mar 24 16:58:18 2011 >*************** >*** 160,179 **** > { > #if defined(__unix__) > if (v4l2_open_device(self) == 0) { >! if (v4l_open_device(self) == 0) { >! v4l2_close_device(self); >! return NULL; >! } else { >! self->camera_type = CAM_V4L; >! if (v4l_init_device(self) == 0) { >! v4l2_close_device(self); >! return NULL; >! } >! if (v4l_start_capturing(self) == 0) { >! v4l2_close_device(self); >! return NULL; >! } >! } > } else { > self->camera_type = CAM_V4L2; > if (v4l2_init_device(self) == 0) { >--- 160,167 ---- > { > #if defined(__unix__) > if (v4l2_open_device(self) == 0) { >! v4l2_close_device(self); >! return NULL; > } else { > self->camera_type = CAM_V4L2; > if (v4l2_init_device(self) == 0) { >diff -crB pygame-1.9.1release/src/camera.h pygame-1.9.1release-v4lpatch//src/camera.h >*** pygame-1.9.1release/src/camera.h Fri Oct 10 04:37:10 2008 >--- pygame-1.9.1release-v4lpatch//src/camera.h Thu Mar 24 16:44:32 2011 >*************** >*** 39,45 **** > > #include <asm/types.h> /* for videodev2.h */ > >- #include <linux/videodev.h> > #include <linux/videodev2.h> > #endif > >--- 39,44 ---- >*************** >*** 51,57 **** > #define RGB_OUT 1 > #define YUV_OUT 2 > #define HSV_OUT 4 >- #define CAM_V4L 1 > #define CAM_V4L2 2 > > struct buffer >--- 50,55 ---- >*************** >*** 111,118 **** > int v4l2_close_device (PyCameraObject* self); > int v4l2_open_device (PyCameraObject* self); > >- /* internal functions specific to v4l */ >- int v4l_open_device (PyCameraObject* self); >- int v4l_init_device(PyCameraObject* self); >- int v4l_start_capturing(PyCameraObject* self); > #endif >--- 109,112 ----
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 359745
: 267105 |
267107