Re: [Linuxwacom-devel] [PATCH linuxwacom] Add support for Oracle Solaris 10

2017-04-20 Thread Ping Cheng
On Thu, Apr 20, 2017 at 2:48 PM, Jason Gerecke  wrote:
> This patch adds support for Solaris 10 and is based on code produced
> in 2010 by Sun Microsystems. The original code was targeted at OpenSolaris
> snv_115 - snv_129 and was based on linuxwacom 0.8.4. The original patches
> don't appear to be available online [1] anymore, except in our out-of-date
> 'solaris' branch.
>
> [1]: 
> http://hub.opensolaris.org/bin/view/Community+Group+device_drivers/wacomtablet
>
> Signed-off-by: Jason Gerecke 

It was a few developers' effort to get this far. Let's keep the code
for those who still need it.

Acked-by: Ping Cheng 

Thank you Jason for maintaining the code.

Ping
> ---
>  README.solaris.md| 179 
>  THIRDPARTYLICENSEREADME.txt  |   8 +
>  configure.in |  26 ++-
>  solaris-build.sh | 387 
> +++
>  src/include/usbwcm_build.h   | 110 
>  src/util/10-linuxwacom.fdi   |  25 +++
>  src/util/Makefile.am |   6 +
>  src/util/hal-setup-wacom.c   | 127 +-
>  src/util/wactablet.c |  28 
>  src/util/wacusb.c|  28 +++-
>  src/xdrv/Makefile.am |   2 +-
>  src/xdrv/wcmUSB.c|  29 
>  src/xdrv/wcmValidateDevice.c |  10 +-
>  src/xdrv/xf86Wacom.h |   5 +
>  src/xdrv/xf86WacomDefs.h |   8 +
>  15 files changed, 968 insertions(+), 10 deletions(-)
>  create mode 100644 README.solaris.md
>  create mode 100644 THIRDPARTYLICENSEREADME.txt
>  create mode 100755 solaris-build.sh
>  create mode 100644 src/include/usbwcm_build.h
>
> diff --git a/README.solaris.md b/README.solaris.md
> new file mode 100644
> index 000..47238e2
> --- /dev/null
> +++ b/README.solaris.md
> @@ -0,0 +1,179 @@
> +**Solaris Notes For linuxwacom**
> +
> +
> +# Overview  ###
> +
> +[usbwcm STREAMS module]:
> +https://github.com/linuxwacom/usbwcm/
> +
> +Version 0.12.0 of the linuxwacom driver introduced support for the Solaris
> +operating system. This code is minimally tested and regressions may occur
> +without warning. At the time of writing, only Solaris 10 U9 and U11
> +("5/10" and "1/13") have been explicitly tested for compatibility. Please
> +contact the linuxwacom project maintainers through SourceForge or Github
> +if you have specific concerns or issues using this driver on Solaris.
> +
> +Note that these sources do not contain any Solaris kernel code. License
> +incompatibilities prevent us from distributing both as a combined work.
> +Please be sure to install the [usbwcm STREAMS module][] in addition to
> +this driver.
> +
> +
> +# Usage  ##
> +
> +[configuring X11]:
> +http://linuxwacom.sourceforge.net/index_old.php/howto/x11
> +
> +The Xorg server must be manually configured to make use of connected
> +tablets in Solaris 10. Please see the [configuring X11][] section of
> +the linuxwacom manual for details on the modifications that must be
> +made to the `/etc/X11/xorg.conf` file. The appropriate device node
> +(e.g. `/dev/usb/hid0`) will need to be determined based on the output
> +of `dmesg`. See the Troubleshooting section below if you encounter
> +problems. The mouse pointer should move in response to pen input once
> +the X server is properly configured.
> +
> +Some applications require additional configuration to make full use
> +of tablet data. For example, GIMP must have the "stylus" and "eraser"
> +tools set to "Screen" mode in its Extended Input Devices preferences.
> +It is impossible to provide instructions for each application. Please
> +see your application documentation for details if the tablet does not
> +appear to be automatically detected.
> +
> +The linuxwacom driver provides a pair of configuration utilities
> +that can be used to modify or tune the behavior of connected tablets.
> +The `xsetwacom` utility provides a scriptable command-line interface,
> +while `wacomcpl` is a graphical Tcl/Tk application. Debug utilities
> +such as `wacdump` and `xidump` are also included should issues arise.
> +
> +
> +# Build, Install, and Uninstall ###
> +
> +## Solaris 10 ##
> +
> +Although the linuxwacom driver can be built for Solaris 10, the process
> +is non-obvious largely due to a lack of Xorg SDK development headers. An
> +interactive script which takes care of the entire build process (from
> +obtaining prerequisites to setting up environment variables) should have
> +been distributed alongside this file. Please note that the final command
> +may warn you that the `wacom_drv.so` file is already present on the system
> +and ask what you would like to do. This is normal: the SUNWxorg-server
> +package installs an out-of-date version of this file and you should tell the
> +system to replace it.
> +
> +# 

[Linuxwacom-devel] [PATCH linuxwacom] Add support for Oracle Solaris 10

2017-04-20 Thread Jason Gerecke
This patch adds support for Solaris 10 and is based on code produced
in 2010 by Sun Microsystems. The original code was targeted at OpenSolaris
snv_115 - snv_129 and was based on linuxwacom 0.8.4. The original patches
don't appear to be available online [1] anymore, except in our out-of-date
'solaris' branch.

[1]: 
http://hub.opensolaris.org/bin/view/Community+Group+device_drivers/wacomtablet

Signed-off-by: Jason Gerecke 
---
 README.solaris.md| 179 
 THIRDPARTYLICENSEREADME.txt  |   8 +
 configure.in |  26 ++-
 solaris-build.sh | 387 +++
 src/include/usbwcm_build.h   | 110 
 src/util/10-linuxwacom.fdi   |  25 +++
 src/util/Makefile.am |   6 +
 src/util/hal-setup-wacom.c   | 127 +-
 src/util/wactablet.c |  28 
 src/util/wacusb.c|  28 +++-
 src/xdrv/Makefile.am |   2 +-
 src/xdrv/wcmUSB.c|  29 
 src/xdrv/wcmValidateDevice.c |  10 +-
 src/xdrv/xf86Wacom.h |   5 +
 src/xdrv/xf86WacomDefs.h |   8 +
 15 files changed, 968 insertions(+), 10 deletions(-)
 create mode 100644 README.solaris.md
 create mode 100644 THIRDPARTYLICENSEREADME.txt
 create mode 100755 solaris-build.sh
 create mode 100644 src/include/usbwcm_build.h

diff --git a/README.solaris.md b/README.solaris.md
new file mode 100644
index 000..47238e2
--- /dev/null
+++ b/README.solaris.md
@@ -0,0 +1,179 @@
+**Solaris Notes For linuxwacom**
+
+
+# Overview  ###
+
+[usbwcm STREAMS module]:
+https://github.com/linuxwacom/usbwcm/
+
+Version 0.12.0 of the linuxwacom driver introduced support for the Solaris
+operating system. This code is minimally tested and regressions may occur
+without warning. At the time of writing, only Solaris 10 U9 and U11
+("5/10" and "1/13") have been explicitly tested for compatibility. Please
+contact the linuxwacom project maintainers through SourceForge or Github
+if you have specific concerns or issues using this driver on Solaris.
+
+Note that these sources do not contain any Solaris kernel code. License
+incompatibilities prevent us from distributing both as a combined work.
+Please be sure to install the [usbwcm STREAMS module][] in addition to
+this driver.
+
+
+# Usage  ##
+
+[configuring X11]:
+http://linuxwacom.sourceforge.net/index_old.php/howto/x11
+
+The Xorg server must be manually configured to make use of connected
+tablets in Solaris 10. Please see the [configuring X11][] section of
+the linuxwacom manual for details on the modifications that must be
+made to the `/etc/X11/xorg.conf` file. The appropriate device node
+(e.g. `/dev/usb/hid0`) will need to be determined based on the output
+of `dmesg`. See the Troubleshooting section below if you encounter
+problems. The mouse pointer should move in response to pen input once
+the X server is properly configured.
+
+Some applications require additional configuration to make full use
+of tablet data. For example, GIMP must have the "stylus" and "eraser"
+tools set to "Screen" mode in its Extended Input Devices preferences.
+It is impossible to provide instructions for each application. Please
+see your application documentation for details if the tablet does not
+appear to be automatically detected.
+
+The linuxwacom driver provides a pair of configuration utilities
+that can be used to modify or tune the behavior of connected tablets.
+The `xsetwacom` utility provides a scriptable command-line interface,
+while `wacomcpl` is a graphical Tcl/Tk application. Debug utilities
+such as `wacdump` and `xidump` are also included should issues arise.
+
+
+# Build, Install, and Uninstall ###
+
+## Solaris 10 ##
+
+Although the linuxwacom driver can be built for Solaris 10, the process
+is non-obvious largely due to a lack of Xorg SDK development headers. An
+interactive script which takes care of the entire build process (from
+obtaining prerequisites to setting up environment variables) should have
+been distributed alongside this file. Please note that the final command
+may warn you that the `wacom_drv.so` file is already present on the system
+and ask what you would like to do. This is normal: the SUNWxorg-server
+package installs an out-of-date version of this file and you should tell the
+system to replace it.
+
+# ./solaris-build.sh
+# cp workdir/WAClinuxwacom__.pkg.tar.gz /tmp
+# cd /tmp
+# gzcat WAClinuxwacom__.pkg.tar.gz | tar xf -
+# pkgadd -d .
+
+Once the linuxwacom (and usbwcm) driver has been installed, you will need
+to edit your `/etc/X11/xorg.conf` file as outlined above in the **Usage**
+section. If no `xorg.conf` file exists, it may be necessary to first
+generate one by running `/usr/X11/bin/xorgcfg` as root.
+
+Reboot, and the screen cursor should follow