OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.8 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../sonypid/fixes.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. X11R6 is a relict of the past, X11R7 or better just X11 now ... also we need
  17. .../lib64 on many architectures and last but not least gcc-4.1 warns about
  18. missing sentinal due 0 vs. NULL.
  19. - Rene Rebe <rene@exactcode.de>
  20. diff -u sonypid-1.9.1/Makefile sonypid-1.9.1-fixed/Makefile
  21. --- sonypid-1.9.1/Makefile 2004-02-24 11:35:13.000000000 +0100
  22. +++ sonypid-1.9.1-fixed/Makefile 2006-03-04 23:16:26.348888000 +0100
  23. @@ -2,7 +2,7 @@
  24. CFLAGS = -Wall -Wstrict-prototypes -O2 -pipe
  25. SONYPIH = /usr/include/linux
  26. LDFLAGS =
  27. -LIBS = -L/usr/X11R6/lib -lX11 -lXtst
  28. +LIBS = `pkg-config x11 --cflags --libs` -lXtst
  29. PREFIX = /usr/local
  30. DESTBIN = $(PREFIX)/bin
  31. Only in sonypid-1.9.1-fixed/: sonypi.h
  32. Only in sonypid-1.9.1-fixed/: sonypid
  33. diff -u sonypid-1.9.1/sonypid.c sonypid-1.9.1-fixed/sonypid.c
  34. --- sonypid-1.9.1/sonypid.c 2004-02-24 11:35:13.000000000 +0100
  35. +++ sonypid-1.9.1-fixed/sonypid.c 2006-03-04 23:15:56.855044750 +0100
  36. @@ -202,7 +202,7 @@
  37. break;
  38. case SONYPI_EVENT_CAPTURE_PRESSED:
  39. if (!fork()) {
  40. - execlp("xterm", "xterm", 0);
  41. + execlp("xterm", "xterm", NULL);
  42. exit(0);
  43. }
  44. verboseEvent("Capture Pressed");
  45. Only in sonypid-1.9.1-fixed/: sonypid.o