23245669 Deliver upower 0.99.3 in Solaris
authorNiveditha Rau <Niveditha.Rau@Oracle.COM>
Thu, 09 Jun 2016 22:07:33 -0700
changeset 6204 286d0a1ac331
parent 6203 cfbde41b138f
child 6205 06c28dee31e4
23245669 Deliver upower 0.99.3 in Solaris PSARC/2016/283 UPower 0.99.3
components/desktop/upower/Makefile
components/desktop/upower/patches/01-tail.patch
components/desktop/upower/upower.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/desktop/upower/Makefile	Thu Jun 09 22:07:33 2016 -0700
@@ -0,0 +1,74 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+BUILD_BITS =            64_and_32
+# All components using gobject-introspection must be built with gcc as
+# gobject-introspection does not produce correct results when using Studio.
+COMPILER=gcc
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		upower
+COMPONENT_VERSION=	0.99.3
+COMPONENT_PROJECT_URL=	http://upower.freedesktop.org/
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
+COMPONENT_ARCHIVE_HASH= \
+	sha256:697199bcc113bb069e6fb6bf4135536a702ba9847e46c5fc6df87d19624ddd38
+COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB=	library/upower
+
+TPNO=			25610
+
+# Tests do not work on Solaris yet
+TEST_TARGET= $(SKIP_TEST)
+
+# Needs gobject-introspection, not available on S11.
+ifeq ($(BUILD_TYPE), evaluation)
+BUILD_32_and_64=
+INSTALL_32_and_64=
+PUBLISH_STAMP=
+endif
+
+include $(WS_MAKE_RULES)/common.mk
+
+# Assumes GNU xgettext in PATH
+CONFIGURE_ENV += PATH=$(GNUBIN):$(PATH)
+
+# Tell g-ir-scanner not to cache results in homedir of user running the build
+COMPONENT_BUILD_ENV += GI_SCANNER_DISABLE_CACHE=""
+
+# XXX wants gudev for better backend support; alternatively, create solaris
+# native backend as was done for openbsd/freebsd.
+CONFIGURE_OPTIONS += --libexecdir="$(USRLIB)"
+CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
+CONFIGURE_OPTIONS += --disable-static
+CONFIGURE_OPTIONS += --enable-gtk-doc
+CONFIGURE_OPTIONS += --enable-man-pages
+CONFIGURE_OPTIONS += --enable-shared
+CONFIGURE_OPTIONS += --with-pic
+
+REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
+REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
+REQUIRED_PACKAGES += library/glib2
+REQUIRED_PACKAGES += system/library/libdbus
+REQUIRED_PACKAGES += system/library/libdbus-glib
+REQUIRED_PACKAGES += system/library/math
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/desktop/upower/patches/01-tail.patch	Thu Jun 09 22:07:33 2016 -0700
@@ -0,0 +1,60 @@
+Assumes GNU tail is in path (or at least one that supports the specific
+option syntax).
+
+Upstream should either detect GNU tail via configure or should not use
+GNU-specific options to tail.
+
+XXX file upstream bug
+
+--- upower-0.99.3/doc/dbus/Makefile.am	2015-04-22 02:57:08.000000000 -0700
++++ upower-0.99.3/doc/dbus/Makefile.am	2015-07-07 13:09:50.587953887 -0700
+@@ -3,19 +3,19 @@
+ 
+ org.freedesktop.UPower.ref.xml : $(top_srcdir)/src/org.freedesktop.UPower.xml $(top_srcdir)/doc/dbus/spec-to-docbook.xsl
+ 	echo "<?xml version=\"1.0\"?>""<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" > $@
+-	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 >> $@
++	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | gtail -n +2 >> $@
+ 
+ org.freedesktop.UPower.Device.ref.xml : $(top_srcdir)/src/org.freedesktop.UPower.Device.xml $(top_srcdir)/doc/dbus/spec-to-docbook.xsl
+ 	echo "<?xml version=\"1.0\"?>""<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" > $@
+-	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 >> $@
++	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | gtail -n +2 >> $@
+ 
+ org.freedesktop.UPower.KbdBacklight.ref.xml : $(top_srcdir)/src/org.freedesktop.UPower.KbdBacklight.xml $(top_srcdir)/doc/dbus/spec-to-docbook.xsl
+ 	echo "<?xml version=\"1.0\"?>""<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" > $@
+-	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 >> $@
++	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | gtail -n +2 >> $@
+ 
+ org.freedesktop.UPower.Wakeups.ref.xml : $(top_srcdir)/src/org.freedesktop.UPower.Wakeups.xml $(top_srcdir)/doc/dbus/spec-to-docbook.xsl
+ 	echo "<?xml version=\"1.0\"?>""<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" > $@
+-	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 >> $@
++	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | gtail -n +2 >> $@
+ 
+ EXTRA_DIST = spec-to-docbook.xsl dbus-introspect-docs.dtd
+ 
+--- upower-0.99.3/doc/dbus/Makefile.in	2015-05-28 01:51:56.000000000 -0700
++++ upower-0.99.3/doc/dbus/Makefile.in	2015-07-07 13:09:58.484250364 -0700
+@@ -522,19 +522,19 @@
+ 
+ org.freedesktop.UPower.ref.xml : $(top_srcdir)/src/org.freedesktop.UPower.xml $(top_srcdir)/doc/dbus/spec-to-docbook.xsl
+ 	echo "<?xml version=\"1.0\"?>""<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" > $@
+-	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 >> $@
++	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | gtail -n +2 >> $@
+ 
+ org.freedesktop.UPower.Device.ref.xml : $(top_srcdir)/src/org.freedesktop.UPower.Device.xml $(top_srcdir)/doc/dbus/spec-to-docbook.xsl
+ 	echo "<?xml version=\"1.0\"?>""<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" > $@
+-	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 >> $@
++	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | gtail -n +2 >> $@
+ 
+ org.freedesktop.UPower.KbdBacklight.ref.xml : $(top_srcdir)/src/org.freedesktop.UPower.KbdBacklight.xml $(top_srcdir)/doc/dbus/spec-to-docbook.xsl
+ 	echo "<?xml version=\"1.0\"?>""<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" > $@
+-	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 >> $@
++	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | gtail -n +2 >> $@
+ 
+ org.freedesktop.UPower.Wakeups.ref.xml : $(top_srcdir)/src/org.freedesktop.UPower.Wakeups.xml $(top_srcdir)/doc/dbus/spec-to-docbook.xsl
+ 	echo "<?xml version=\"1.0\"?>""<!DOCTYPE refentry PUBLIC \"-//OASIS//DTD DocBook XML V4.1.2//EN\" \"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd\">" > $@
+-	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | tail -n +2 >> $@
++	$(XSLTPROC) $(top_srcdir)/doc/dbus/spec-to-docbook.xsl $< | gtail -n +2 >> $@
+ 
+ clean-local :
+ 	rm -f *~ *.ref.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/desktop/upower/upower.p5m	Thu Jun 09 22:07:33 2016 -0700
@@ -0,0 +1,108 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+<transform file path=usr.*/man/.+ -> \
+    default mangler.man.stability "pass-through volatile">
+set name=pkg.fmri \
+    value=pkg:/system/library/upower@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary \
+    value="A library for enumerating and querying data related to power devices"
+set name=pkg.description \
+    value="UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics. Any application or service on the system can access the org.freedesktop.UPower service via the system message bus. Some operations (such as suspending the system) are restricted using PolicyKit."
+set name=com.oracle.info.description value=$(COMPONENT_NAME)
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value=org.opensolaris.category.2008:System/Libraries
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2016/283
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=etc/UPower/UPower.conf
+file path=etc/dbus-1/system.d/org.freedesktop.UPower.conf
+file path=usr/bin/upower
+file path=usr/include/libupower-glib/up-client.h
+file path=usr/include/libupower-glib/up-device.h
+file path=usr/include/libupower-glib/up-history-item.h
+file path=usr/include/libupower-glib/up-stats-item.h
+file path=usr/include/libupower-glib/up-types.h
+file path=usr/include/libupower-glib/up-version.h
+file path=usr/include/libupower-glib/up-wakeup-item.h
+file path=usr/include/libupower-glib/up-wakeups.h
+file path=usr/include/libupower-glib/upower.h
+file path=usr/lib/$(MACH64)/girepository-1.0/UPowerGlib-1.0.typelib
+link path=usr/lib/$(MACH64)/libupower-glib.so target=libupower-glib.so.3.0.1
+link path=usr/lib/$(MACH64)/libupower-glib.so.3 target=libupower-glib.so.3.0.1
+file path=usr/lib/$(MACH64)/libupower-glib.so.3.0.1
+file path=usr/lib/$(MACH64)/pkgconfig/upower-glib.pc
+file path=usr/lib/$(MACH64)/upowerd
+file path=usr/lib/girepository-1.0/UPowerGlib-1.0.typelib
+link path=usr/lib/libupower-glib.so target=libupower-glib.so.3.0.1
+link path=usr/lib/libupower-glib.so.3 target=libupower-glib.so.3.0.1
+file path=usr/lib/libupower-glib.so.3.0.1
+file path=usr/lib/pkgconfig/upower-glib.pc
+file path=usr/lib/upowerd
+file path=usr/share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml
+file path=usr/share/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml
+file path=usr/share/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml
+file path=usr/share/dbus-1/interfaces/org.freedesktop.UPower.xml
+file path=usr/share/dbus-1/system-services/org.freedesktop.UPower.service
+file path=usr/share/gir-1.0/UPowerGlib-1.0.gir
+file path=usr/share/gtk-doc/html/UPower/Device.html
+file path=usr/share/gtk-doc/html/UPower/KbdBacklight.html
+file path=usr/share/gtk-doc/html/UPower/UPower-up-client.html
+file path=usr/share/gtk-doc/html/UPower/UPower-up-device.html
+file path=usr/share/gtk-doc/html/UPower/UPower-up-history-item.html
+file path=usr/share/gtk-doc/html/UPower/UPower-up-stats-item.html
+file path=usr/share/gtk-doc/html/UPower/UPower-up-types.html
+file path=usr/share/gtk-doc/html/UPower/UPower-up-wakeup-item.html
+file path=usr/share/gtk-doc/html/UPower/UPower.7.html
+file path=usr/share/gtk-doc/html/UPower/UPower.devhelp2
+file path=usr/share/gtk-doc/html/UPower/UPower.html
+file path=usr/share/gtk-doc/html/UPower/home.png
+file path=usr/share/gtk-doc/html/UPower/index.html
+file path=usr/share/gtk-doc/html/UPower/index.sgml
+file path=usr/share/gtk-doc/html/UPower/ix01.html
+file path=usr/share/gtk-doc/html/UPower/left-insensitive.png
+file path=usr/share/gtk-doc/html/UPower/left.png
+file path=usr/share/gtk-doc/html/UPower/libupower-glib-helpers.html
+file path=usr/share/gtk-doc/html/UPower/libupower-glib.html
+file path=usr/share/gtk-doc/html/UPower/license.html
+file path=usr/share/gtk-doc/html/UPower/ref-dbus.html
+file path=usr/share/gtk-doc/html/UPower/right-insensitive.png
+file path=usr/share/gtk-doc/html/UPower/right.png
+file path=usr/share/gtk-doc/html/UPower/style.css
+file path=usr/share/gtk-doc/html/UPower/tools-fileformats.html
+file path=usr/share/gtk-doc/html/UPower/up-insensitive.png
+file path=usr/share/gtk-doc/html/UPower/up.png
+file path=usr/share/gtk-doc/html/UPower/upower.1.html
+file path=usr/share/gtk-doc/html/UPower/upowerd.8.html
+file path=usr/share/locale/fr/LC_MESSAGES/upower.mo
+file path=usr/share/locale/it/LC_MESSAGES/upower.mo
+file path=usr/share/locale/pl/LC_MESSAGES/upower.mo
+file path=usr/share/locale/sv/LC_MESSAGES/upower.mo
+file path=usr/share/man/man1/upower.1
+file path=usr/share/man/man7/UPower.7
+file path=usr/share/man/man8/upowerd.8
+license COPYING license=GPLv2