openSUSE Commits
Threads by month
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
September 2006
- 1 participants
- 1262 discussions
Hello community,
here is the log from the commit of package xgl-hardware-list
checked in at Fri Sep 29 19:45:55 CEST 2006.
--------
--- xgl-hardware-list/xgl-hardware-list.changes 2006-08-01 15:34:40.000000000 +0200
+++ /mounts/work_src_done/NOARCH/xgl-hardware-list/xgl-hardware-list.changes 2006-09-29 18:51:50.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Sep 29 18:51:28 CEST 2006 - danw(a)suse.de
+
+- Add new cards tested by Bryan. #209007
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ xgl-hardware-list.spec ++++++
--- /var/tmp/diff_new_pack.QF1lu6/_old 2006-09-29 19:45:31.000000000 +0200
+++ /var/tmp/diff_new_pack.QF1lu6/_new 2006-09-29 19:45:31.000000000 +0200
@@ -16,7 +16,7 @@
Group: System/X11/Servers/XF86_4
Autoreqprov: on
Version: 060526
-Release: 4
+Release: 10
Conflicts: compiz < cvs_060519
BuildArchitectures: noarch
Summary: Xgl hardware compatibility list
@@ -52,6 +52,8 @@
/etc/X11/xgl-intel-setup.sh
%changelog -n xgl-hardware-list
+* Fri Sep 29 2006 - danw(a)suse.de
+- Add new cards tested by Bryan. #209007
* Tue Aug 01 2006 - danw(a)suse.de
- Fix the name of the intel setup script (.sh not .pl) in
xgl-hardware-list. (#194380)
++++++ xgl-hardware-list ++++++
--- xgl-hardware-list/xgl-hardware-list 2006-08-01 15:28:36.000000000 +0200
+++ /mounts/work_src_done/NOARCH/xgl-hardware-list/xgl-hardware-list 2006-09-29 18:50:57.000000000 +0200
@@ -74,7 +74,12 @@
# Supported NVIDIA cards
G 10de:0092 # GeForce 7800 GT
G 10de:0140 # NV43 [GeForce 6600 GT]
+G 10de:0141 # GeForce 6600
G 10de:0161 # GeForce 6200 TurboCache(TM)
+G 10de:01df # GeForce 7300 GS
+G 10de:0242 # GeForce 6100
+G 10de:029e # Quadro FX 1500
+G 10de:02e1 # GeForce 7600 GS
G 10de:0326 # NV34 [GeForce FX 5500]
# Unsupported-but-partially-working NVIDIA cards
@@ -127,7 +132,6 @@
U 10de:0111 # GeForce2 MX 100/200
U 10de:0112 # GeForce2 Go
U 10de:0113 # Quadro2 MXR/EX/Go
-U 10de:0141 # GeForce 6600
U 10de:0142 # GeForce 6600 LE
U 10de:0143 # GeForce 6600 VE
U 10de:0144 # GeForce Go 6600
@@ -173,7 +177,6 @@
U 10de:01db # Quadro NVS 120M
U 10de:01dc # Quadro FX 350M
U 10de:01de # Quadro FX 350
-U 10de:01df # GeForce 7300 GS
U 10de:01f0 # GeForce4 MX Integrated GPU
U 10de:0200 # GeForce3
U 10de:0201 # GeForce3 Ti 200
@@ -185,7 +188,6 @@
U 10de:0218 # GeForce 6800 XT
U 10de:0240 # GeForce 6150
U 10de:0241 # GeForce 6150 LE
-U 10de:0242 # GeForce 6100
U 10de:0250 # GeForce4 Ti 4600
U 10de:0251 # GeForce4 Ti 4400
U 10de:0253 # GeForce4 Ti 4200
@@ -206,9 +208,7 @@
U 10de:029b # Quadro FX 1500M
U 10de:029c # Quadro FX 5500
U 10de:029d # Quadro FX 3500
-U 10de:029e # Quadro FX 1500
U 10de:029f # Quadro FX 4500 X2
-U 10de:02e1 # GeForce 7600 GS
U 10de:0301 # GeForce FX 5800 Ultra
U 10de:0302 # GeForce FX 5800
U 10de:0308 # Quadro FX 2000
@@ -267,6 +267,9 @@
G 1002:5460 # M22 [Radeon Mobility M300]
G 1002:5b62 # RV370 5B62 [Radeon X600 (PCIE)]
G 1002:5b72 # RV380 5B62 [Radeon X600 (PCIE)]
+G 1002:7146 # RADEON X1300 LE (RV515 7146)
+G 1002:71c2 # RADEON X1600 PRO (RV530 71C2)
+G 1002:71c4 # MOBILITY FireGL V5200 (M56 71C4)
# Unsupported-but-partially-working ATI cards
S 1002:4c57 # Radeon Mobility M7 LW [Radeon Mobility 7500]
@@ -396,7 +399,6 @@
U 1002:7143 # RADEON X1300 PRO (RV505 7143)
U 1002:7144 # MOBILITY FireGL (M54 GL 7144)
U 1002:7145 # MOBILITY RADEON X1400 (M54 7145)
-U 1002:7146 # RADEON X1300 LE (RV515 7146)
U 1002:7147 # RADEON X1300 (RV505 7147)
U 1002:7149 # MOBILITY RADEON X1300 (M52 7149)
U 1002:714a # MOBILITY RADEON X1300 (M52 714A)
@@ -410,8 +412,6 @@
U 1002:7183 # RADEON X1300 (RV516 7183)
U 1002:7187 # RADEON X1300 (RV516 7187)
U 1002:71c0 # RADEON X1600 XT (RV530 71C0)
-U 1002:71c2 # RADEON X1600 PRO (RV530 71C2)
-U 1002:71c4 # MOBILITY FireGL V5200 (M56 71C4)
U 1002:71c5 # MOBILITY RADEON X1600 (M56 71C5)
U 1002:71c6 # RADEON (RV530 LE 71C6)
U 1002:71ce # RADEON (RV530 VE 71CE)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package kdebindings3
checked in at Fri Sep 29 19:44:41 CEST 2006.
--------
--- KDE/kdebindings3/kdebindings3-java.changes 2006-09-29 00:56:51.000000000 +0200
+++ /mounts/work_src_done/STABLE/kdebindings3/kdebindings3-java.changes 2006-09-29 19:43:30.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Sep 29 13:46:00 CEST 2006 - dmueller(a)suse.de
+
+- add patch to the right specfile
+
+-------------------------------------------------------------------
kdebindings3-javascript.changes: same change
kdebindings3-python.changes: same change
kdebindings3.changes: same change
New:
----
kdebindings3-java.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ kdebindings3-java.spec ++++++
--- /var/tmp/diff_new_pack.XrElwr/_old 2006-09-29 19:43:35.000000000 +0200
+++ /var/tmp/diff_new_pack.XrElwr/_new 2006-09-29 19:43:35.000000000 +0200
@@ -24,7 +24,7 @@
Summary: Java Bindings for KDE
Provides: kdebindings3:/opt/kde3/lib/java
Version: 3.5.4
-Release: 8
+Release: 9
Requires: kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`)
Url: http://www.kde.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -37,6 +37,7 @@
#Patch5: FIXME.diff
Patch6: 64bit.diff
Patch7: split-files.diff
+Patch8: kdebindings3-java.diff
Patch9: kdebindings-3.5.1_ruby_non_site_dir.patch
%description
@@ -94,6 +95,7 @@
#%patch5
#%patch6
%patch7
+%patch8
%patch9
# eventually we have a patch in kdelibs adding that
if test -f /opt/kde3/include/kscrollview.h; then
@@ -265,6 +267,8 @@
%endif
%changelog -n kdebindings3-java
+* Fri Sep 29 2006 - dmueller(a)suse.de
+- add patch to the right specfile
* Thu Sep 28 2006 - dmueller(a)suse.de
- fix build of python and java bindings
* Thu Aug 31 2006 - stbinner(a)suse.de
++++++ kdebindings3-javascript.spec ++++++
--- /var/tmp/diff_new_pack.XrElwr/_old 2006-09-29 19:43:35.000000000 +0200
+++ /var/tmp/diff_new_pack.XrElwr/_new 2006-09-29 19:43:35.000000000 +0200
@@ -24,7 +24,7 @@
Summary: JavaScript Bindings and Interpreter for KDE
Provides: kdebindings
Version: 3.5.4
-Release: 8
+Release: 9
Requires: kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`)
Url: http://www.kde.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -37,6 +37,7 @@
#Patch5: FIXME.diff
Patch6: 64bit.diff
Patch7: split-files.diff
+Patch8: kdebindings3-java.diff
Patch9: kdebindings-3.5.1_ruby_non_site_dir.patch
%description
@@ -101,6 +102,7 @@
#%patch5
#%patch6
%patch7
+%patch8
%patch9
# eventually we have a patch in kdelibs adding that
if test -f /opt/kde3/include/kscrollview.h; then
@@ -272,6 +274,8 @@
%endif
%changelog -n kdebindings3-javascript
+* Fri Sep 29 2006 - dmueller(a)suse.de
+- add patch to the right specfile
* Thu Sep 28 2006 - dmueller(a)suse.de
- fix build of python and java bindings
* Thu Aug 31 2006 - stbinner(a)suse.de
++++++ kdebindings3-python.spec ++++++
--- /var/tmp/diff_new_pack.XrElwr/_old 2006-09-29 19:43:35.000000000 +0200
+++ /var/tmp/diff_new_pack.XrElwr/_new 2006-09-29 19:43:35.000000000 +0200
@@ -24,7 +24,7 @@
Summary: Python Bindings for KDE
Provides: sip PyKDE
Version: 3.5.4
-Release: 7
+Release: 8
Requires: kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`) python-qt = %{version}
Url: http://www.kde.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -37,6 +37,7 @@
#Patch5: FIXME.diff
Patch6: 64bit.diff
Patch7: split-files.diff
+Patch8: kdebindings3-java.diff
Patch9: kdebindings-3.5.1_ruby_non_site_dir.patch
%description
@@ -94,6 +95,7 @@
#%patch5
#%patch6
%patch7
+%patch8
%patch9
# eventually we have a patch in kdelibs adding that
if test -f /opt/kde3/include/kscrollview.h; then
@@ -265,6 +267,8 @@
%endif
%changelog -n kdebindings3-python
+* Fri Sep 29 2006 - dmueller(a)suse.de
+- add patch to the right specfile
* Thu Sep 28 2006 - dmueller(a)suse.de
- fix build of python and java bindings
* Thu Aug 31 2006 - stbinner(a)suse.de
++++++ kdebindings3.spec ++++++
--- /var/tmp/diff_new_pack.XrElwr/_old 2006-09-29 19:43:35.000000000 +0200
+++ /var/tmp/diff_new_pack.XrElwr/_new 2006-09-29 19:43:35.000000000 +0200
@@ -24,7 +24,7 @@
Summary: Bindings for Qt and KDE Libraries
Provides: kdebindings
Version: 3.5.4
-Release: 8
+Release: 9
Requires: kdelibs3 >= %( echo `rpm -q --queryformat '%{VERSION}' kdelibs3`)
Url: http://www.kde.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -37,6 +37,7 @@
#Patch5: FIXME.diff
Patch6: 64bit.diff
Patch7: split-files.diff
+Patch8: kdebindings3-java.diff
Patch9: kdebindings-3.5.1_ruby_non_site_dir.patch
%description
@@ -108,6 +109,7 @@
#%patch5
#%patch6
%patch7
+%patch8
%patch9
# eventually we have a patch in kdelibs adding that
if test -f /opt/kde3/include/kscrollview.h; then
@@ -279,6 +281,8 @@
%endif
%changelog -n kdebindings3
+* Fri Sep 29 2006 - dmueller(a)suse.de
+- add patch to the right specfile
* Thu Sep 28 2006 - dmueller(a)suse.de
- fix build of python and java bindings
* Thu Aug 31 2006 - stbinner(a)suse.de
++++++ kdebindings3-java.diff ++++++
Index: kdejava/koala/org/kde/koala/Makefile.am
===================================================================
--- kdejava/koala/org/kde/koala/Makefile.am (revision 589518)
+++ kdejava/koala/org/kde/koala/Makefile.am (working copy)
@@ -12,6 +12,6 @@ noinst_JAVA = $(EXTRA_DIST)
JAVAROOT = ../../..
CLASSPATH = $(srcdir)/../../..:$(srcdir)/../../../../../qtjava/javalib/qtjava.jar:$(srcdir)
-JAVACFLAGS = -classpath $(CLASSPATH)
+JAVACFLAGS = -classpath $(CLASSPATH) -target 1.4 -source 1.4
# Prevent stupid automake from putting JAVAC=javac in Makefile.in
JAVAC = @JAVAC@
Index: qtjava/javalib/org/kde/qt/Makefile.am
===================================================================
--- qtjava/javalib/org/kde/qt/Makefile.am (revision 589518)
+++ qtjava/javalib/org/kde/qt/Makefile.am (working copy)
@@ -12,6 +12,6 @@ noinst_JAVA = $(EXTRA_DIST)
JAVAROOT = ../../..
CLASSPATH = $(srcdir)/../../..
-JAVACFLAGS = -classpath $(CLASSPATH)
+JAVACFLAGS = -classpath $(CLASSPATH) -target 1.4 -source 1.4
# Prevent stupid automake from putting JAVAC=javac in Makefile.in
JAVAC = @JAVAC@
++++++ kdebindings3.spec.in ++++++
--- KDE/kdebindings3/kdebindings3.spec.in 2006-08-31 14:16:02.000000000 +0200
+++ /mounts/work_src_done/STABLE/kdebindings3/kdebindings3.spec.in 2006-09-29 13:30:56.000000000 +0200
@@ -38,6 +38,7 @@
#Patch5: FIXME.diff
Patch6: 64bit.diff
Patch7: split-files.diff
+Patch8: kdebindings3-java.diff
Patch9: kdebindings-3.5.1_ruby_non_site_dir.patch
%description
@@ -84,6 +85,7 @@
#%patch5
#%patch6
%patch7
+%patch8
%patch9
# eventually we have a patch in kdelibs adding that
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package limal-devtools
checked in at Fri Sep 29 18:19:12 CEST 2006.
--------
--- limal-devtools/limal-devtools.changes 2006-09-28 15:52:41.000000000 +0200
+++ /mounts/work_src_done/NOARCH/limal-devtools/limal-devtools.changes 2006-09-29 12:13:26.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Sep 29 12:07:26 CEST 2006 - mc(a)suse.de
+
+- version 1.2.4
+- remove fop from requires
+
+-------------------------------------------------------------------
Old:
----
limal-devtools-1.2.3.tar.bz2
New:
----
limal-devtools-1.2.4.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ limal-devtools.spec ++++++
--- /var/tmp/diff_new_pack.MpE2Ir/_old 2006-09-29 18:18:28.000000000 +0200
+++ /var/tmp/diff_new_pack.MpE2Ir/_new 2006-09-29 18:18:28.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package limal-devtools (Version 1.2.3)
+# spec file for package limal-devtools (Version 1.2.4)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -12,13 +12,13 @@
Name: limal-devtools
URL: http://forge.novell.com/modules/xfmod/project/?limal
-Version: 1.2.3
+Version: 1.2.4
Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArchitectures: noarch
-Source0: limal-devtools-1.2.3.tar.bz2
+Source0: limal-devtools-1.2.4.tar.bz2
prefix: /usr
%define swiglibdir %(swig -swiglib)
BuildRequires: docbook-xsl-stylesheets gcc-c++ libxslt perl-XML-Writer pkgconfig sgml-skel swig
@@ -32,7 +32,7 @@
Requires: cvs
%if 0%{?suse_version}
Recommends: subversion
-Requires: docbook-xsl-stylesheets fop
+Requires: docbook-xsl-stylesheets
%endif
%if 0%{?fedora_version}
Requires: docbook-style-xsl
@@ -57,7 +57,7 @@
Stefan Schubert <schubi(a)suse.de>
%prep
-%setup -n limal-devtools-1.2.3
+%setup -n limal-devtools-1.2.4
%build
autoreconf --force --install --verbose
@@ -86,6 +86,9 @@
%doc %{_prefix}/share/doc/packages/limal-devtools
%changelog -n limal-devtools
+* Fri Sep 29 2006 - mc(a)suse.de
+- version 1.2.4
+- remove fop from requires
* Thu Sep 28 2006 - mt(a)suse.de
- version 1.2.3
- Fixed to use limal::Logger in limal-XXxx skeleton testcases
++++++ limal-devtools-1.2.3.tar.bz2 -> limal-devtools-1.2.4.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/limal-devtools-1.2.3/VERSION new/limal-devtools-1.2.4/VERSION
--- old/limal-devtools-1.2.3/VERSION 2006-09-28 15:49:08.000000000 +0200
+++ new/limal-devtools-1.2.4/VERSION 2006-09-29 12:08:53.000000000 +0200
@@ -1 +1 @@
-1.2.3
+1.2.4
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/limal-devtools-1.2.3/configure new/limal-devtools-1.2.4/configure
--- old/limal-devtools-1.2.3/configure 2006-09-28 15:50:04.000000000 +0200
+++ new/limal-devtools-1.2.4/configure 2006-09-29 12:12:23.000000000 +0200
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for limal-devtools 1.2.3.
+# Generated by GNU Autoconf 2.59 for limal-devtools 1.2.4.
#
# Report bugs to <http://www.suse.de/feedback>.
#
@@ -423,8 +423,8 @@
# Identity of this package.
PACKAGE_NAME='limal-devtools'
PACKAGE_TARNAME='limal-devtools'
-PACKAGE_VERSION='1.2.3'
-PACKAGE_STRING='limal-devtools 1.2.3'
+PACKAGE_VERSION='1.2.4'
+PACKAGE_STRING='limal-devtools 1.2.4'
PACKAGE_BUGREPORT='http://www.suse.de/feedback'
ac_unique_file="RPMNAME"
@@ -959,7 +959,7 @@
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures limal-devtools 1.2.3 to adapt to many kinds of systems.
+\`configure' configures limal-devtools 1.2.4 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1026,7 +1026,7 @@
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of limal-devtools 1.2.3:";;
+ short | recursive ) echo "Configuration of limal-devtools 1.2.4:";;
esac
cat <<\_ACEOF
@@ -1167,7 +1167,7 @@
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
-limal-devtools configure 1.2.3
+limal-devtools configure 1.2.4
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
@@ -1181,7 +1181,7 @@
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by limal-devtools $as_me 1.2.3, which was
+It was created by limal-devtools $as_me 1.2.4, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
@@ -1911,7 +1911,7 @@
# Define the identity of the package.
PACKAGE='limal-devtools'
- VERSION='1.2.3'
+ VERSION='1.2.4'
cat >>confdefs.h <<_ACEOF
@@ -2122,7 +2122,7 @@
-VERSION="1.2.3"
+VERSION="1.2.4"
RPMNAME="limal-devtools"
RPMARCH="noarch"
RPMLIB="devtools"
@@ -20026,7 +20026,7 @@
} >&5
cat >&5 <<_CSEOF
-This file was extended by limal-devtools $as_me 1.2.3, which was
+This file was extended by limal-devtools $as_me 1.2.4, which was
generated by GNU Autoconf 2.59. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -20084,7 +20084,7 @@
cat >>$CONFIG_STATUS <<_ACEOF
ac_cs_version="\\
-limal-devtools config.status 1.2.3
+limal-devtools config.status 1.2.4
configured by $0, generated by GNU Autoconf 2.59,
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/limal-devtools-1.2.3/configure.in new/limal-devtools-1.2.4/configure.in
--- old/limal-devtools-1.2.3/configure.in 2006-09-28 15:49:51.000000000 +0200
+++ new/limal-devtools-1.2.4/configure.in 2006-09-29 12:12:04.000000000 +0200
@@ -3,7 +3,7 @@
dnl -- This file is generated by limalautoconf - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(limal-devtools, 1.2.3, http://www.suse.de/feedback, limal-devtools)
+AC_INIT(limal-devtools, 1.2.4, http://www.suse.de/feedback, limal-devtools)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important LiMaL variables
-VERSION="1.2.3"
+VERSION="1.2.4"
RPMNAME="limal-devtools"
RPMARCH="noarch"
RPMLIB="devtools"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/limal-devtools-1.2.3/devtools/bin/version new/limal-devtools-1.2.4/devtools/bin/version
--- old/limal-devtools-1.2.3/devtools/bin/version 2006-09-28 15:50:17.000000000 +0200
+++ new/limal-devtools-1.2.4/devtools/bin/version 2006-09-29 12:12:40.000000000 +0200
@@ -1,5 +1,5 @@
#!/bin/bash
-echo 1.2.3
+echo 1.2.4
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/limal-devtools-1.2.3/limal-devtools.spec.in new/limal-devtools-1.2.4/limal-devtools.spec.in
--- old/limal-devtools-1.2.3/limal-devtools.spec.in 2006-08-17 14:27:08.000000000 +0200
+++ new/limal-devtools-1.2.4/limal-devtools.spec.in 2006-09-29 12:06:48.000000000 +0200
@@ -13,7 +13,7 @@
%if 0%{?suse_version}
Recommends: subversion
-Requires: docbook-xsl-stylesheets fop
+Requires: docbook-xsl-stylesheets
%endif
%if 0%{?fedora_version}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package yast2-qt
checked in at Fri Sep 29 18:18:15 CEST 2006.
--------
--- yast2-qt/yast2-qt.changes 2006-08-03 15:23:49.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-qt/yast2-qt.changes 2006-09-29 17:55:43.000000000 +0200
@@ -1,0 +2,18 @@
+Fri Sep 29 17:53:59 CEST 2006 - sh(a)suse.de
+
+- V 2.13.63
+- Fixed bug #205059: CapsLock warning in password fields
+
+-------------------------------------------------------------------
+Fri Sep 22 16:59:31 CEST 2006 - sh(a)suse.de
+
+- Allow pattern categories to be collapsed
+- V 2.13.62
+
+-------------------------------------------------------------------
+Wed Sep 13 16:42:01 CEST 2006 - sh(a)suse.de
+
+- Applied patch from Ricardo Cruz <rpmcruz(a)clix.pt>
+ for new UI::Beep() built-in
+
+-------------------------------------------------------------------
Old:
----
yast2-qt-2.13.61.tar.bz2
New:
----
yast2-qt-2.13.63.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-qt.spec ++++++
--- /var/tmp/diff_new_pack.gO2n27/_old 2006-09-29 18:17:34.000000000 +0200
+++ /var/tmp/diff_new_pack.gO2n27/_new 2006-09-29 18:17:34.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-qt (Version 2.13.61)
+# spec file for package yast2-qt (Version 2.13.63)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-qt
-Version: 2.13.61
+Version: 2.13.63
Release: 1
License: GPL
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-qt-2.13.61.tar.bz2
+Source0: yast2-qt-2.13.63.tar.bz2
prefix: /usr
BuildRequires: boost-devel curl-devel dbus-1-devel docbook-xsl-stylesheets doxygen hal-devel libdrm-devel libjpeg-devel libxcrypt-devel libxslt libzypp-devel perl-XML-Writer qt3-devel rpm-devel sgml-skel update-desktop-files yast2-core-devel yast2-devtools
Summary: YaST2 - Graphical User Interface
@@ -42,7 +42,7 @@
Stefan Hundhammer <sh(a)suse.de>
%prep
-%setup -n yast2-qt-2.13.61
+%setup -n yast2-qt-2.13.63
%build
%{prefix}/bin/y2tool y2autoconf
@@ -85,6 +85,15 @@
%doc %{prefix}/share/doc/packages/yast2-qt
%changelog -n yast2-qt
+* Fri Sep 29 2006 - sh(a)suse.de
+- V 2.13.63
+- Fixed bug #205059: CapsLock warning in password fields
+* Fri Sep 22 2006 - sh(a)suse.de
+- Allow pattern categories to be collapsed
+- V 2.13.62
+* Wed Sep 13 2006 - sh(a)suse.de
+- Applied patch from Ricardo Cruz <rpmcruz(a)clix.pt>
+ for new UI::Beep() built-in
* Thu Aug 03 2006 - mvidner(a)suse.cz
- Added a configure-time check for the X font directory.
- 2.13.61
++++++ yast2-qt-2.13.61.tar.bz2 -> yast2-qt-2.13.63.tar.bz2 ++++++
++++ 16057 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/VERSION new/yast2-qt-2.13.63/VERSION
--- old/yast2-qt-2.13.61/VERSION 2006-08-02 15:57:11.000000000 +0200
+++ new/yast2-qt-2.13.63/VERSION 2006-09-29 17:53:52.000000000 +0200
@@ -1 +1 @@
-2.13.61
+2.13.63
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/configure.in new/yast2-qt-2.13.63/configure.in
--- old/yast2-qt-2.13.61/configure.in 2006-08-03 15:26:07.000000000 +0200
+++ new/yast2-qt-2.13.63/configure.in 2006-08-30 19:10:34.000000000 +0200
@@ -1,6 +1,6 @@
dnl configure.in for yast2-qt
dnl
-dnl -- This file is generated by y2autoconf 2.13.19 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.13.22 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
AC_INIT(yast2-qt, 2.13.61, http://bugs.opensuse.org/, yast2-qt)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/YQIconPool.cc new/yast2-qt-2.13.63/src/YQIconPool.cc
--- old/yast2-qt-2.13.61/src/YQIconPool.cc 2005-04-22 14:43:18.000000000 +0200
+++ new/yast2-qt-2.13.63/src/YQIconPool.cc 2006-09-22 16:51:14.000000000 +0200
@@ -48,6 +48,8 @@
#include "icons/taboo_disabled.xpm"
#include "icons/update.xpm"
#include "icons/update_disabled.xpm"
+#include "icons/tree_plus.xpm"
+#include "icons/tree_minus.xpm"
#include "icons/normal_conflict.xpm"
#include "icons/select_conflict.xpm"
@@ -99,6 +101,9 @@
QPixmap YQIconPool::tabooPkgConflict() { return iconPool()->cachedIcon( normal_conflict_xpm ); }
QPixmap YQIconPool::selectPkgConflict() { return iconPool()->cachedIcon( select_conflict_xpm ); }
+QPixmap YQIconPool::treePlus() { return iconPool()->cachedIcon( tree_plus_xpm ); }
+QPixmap YQIconPool::treeMinus() { return iconPool()->cachedIcon( tree_minus_xpm ); }
+
YQIconPool * YQIconPool::iconPool()
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/YQPackageSelector.cc new/yast2-qt-2.13.63/src/YQPackageSelector.cc
--- old/yast2-qt-2.13.61/src/YQPackageSelector.cc 2006-05-26 16:01:30.000000000 +0200
+++ new/yast2-qt-2.13.63/src/YQPackageSelector.cc 2006-09-20 11:56:32.000000000 +0200
@@ -543,7 +543,7 @@
// Translators: Please keep this short!
_checkDependenciesButton = new QPushButton( _( "Chec&k" ), button_box );
CHECK_PTR( _checkDependenciesButton );
- _checkDependenciesButton->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed ) ); // hor/vert
+ _checkDependenciesButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, QSizePolicy::Fixed ) ); // hor/vert
_normalButtonBackground = _checkDependenciesButton->paletteBackgroundColor();
connect( _checkDependenciesButton, SIGNAL( clicked() ),
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/YQPkgPatchFilterView.cc new/yast2-qt-2.13.63/src/YQPkgPatchFilterView.cc
--- old/yast2-qt-2.13.61/src/YQPkgPatchFilterView.cc 2006-04-10 13:50:45.000000000 +0200
+++ new/yast2-qt-2.13.63/src/YQPkgPatchFilterView.cc 2006-09-22 11:29:34.000000000 +0200
@@ -52,10 +52,9 @@
{
QVBox * vbox;
- _splitter = new QSplitter( QSplitter::Vertical, this ); CHECK_PTR( _splitter );
-
- vbox = new QVBox( _splitter ); CHECK_PTR( vbox );
- _patchList = new YQPkgPatchList( vbox ); CHECK_PTR( _patchList );
+ _splitter = new QSplitter( QSplitter::Vertical, this ); CHECK_PTR( _splitter );
+ vbox = new QVBox( _splitter ); CHECK_PTR( vbox );
+ _patchList = new YQPkgPatchList( vbox ); CHECK_PTR( _patchList );
addVSpacing( vbox, 4 );
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/YQPkgPatternList.cc new/yast2-qt-2.13.63/src/YQPkgPatternList.cc
--- old/yast2-qt-2.13.61/src/YQPkgPatternList.cc 2006-04-10 13:50:44.000000000 +0200
+++ new/yast2-qt-2.13.63/src/YQPkgPatternList.cc 2006-09-22 17:16:52.000000000 +0200
@@ -30,6 +30,7 @@
#include "YQi18n.h"
#include "utf8.h"
#include "YQPkgPatternList.h"
+#include "YQIconPool.h"
#include "YQUI.h"
@@ -210,6 +211,54 @@
}
+void
+YQPkgPatternList::pkgObjClicked( int button,
+ QListViewItem * listViewItem,
+ int col,
+ const QPoint & pos )
+{
+ YQPkgPatternCategoryItem * categoryItem
+ = dynamic_cast<YQPkgPatternCategoryItem *> (listViewItem);
+
+ if ( categoryItem )
+ {
+ if ( button == Qt::LeftButton )
+ {
+ if ( col == statusCol() )
+ {
+ categoryItem->setOpen( ! categoryItem->isOpen() );
+ }
+ }
+ }
+ else
+ {
+ YQPkgObjList::pkgObjClicked( button, listViewItem, col, pos );
+ }
+}
+
+
+void
+YQPkgPatternList::selectSomething()
+{
+ QListViewItemIterator it( this );
+
+ while ( *it )
+ {
+ QY2ListViewItem * item = dynamic_cast<QY2ListViewItem *> (*it);
+ YQPkgPatternCategoryItem * categoryItem =
+ dynamic_cast<YQPkgPatternCategoryItem *> (*it);
+
+ if ( item && item->isSelectable() && ! categoryItem )
+ {
+ setSelected( item, true ); // emits signal, too
+ return;
+ }
+
+ ++it;
+ }
+}
+
+
@@ -296,11 +345,12 @@
YQPkgPatternCategoryItem::YQPkgPatternCategoryItem( YQPkgPatternList * patternList,
const QString & category )
: QY2ListViewItem( patternList )
+ , _patternList( patternList )
{
- setText( patternList->summaryCol(), category );
+ setText( _patternList->summaryCol(), category );
setBackgroundColor( CATEGORY_BACKGROUND );
setOpen( true );
- setSelectable( false );
+ setTreeIcon();
}
@@ -339,15 +389,25 @@
void
-YQPkgPatternCategoryItem::setOpen( bool )
+YQPkgPatternCategoryItem::setOpen( bool open )
{
- // Pattern categories should always remain open -
- // suppress any attempt to close them
+ QListViewItem::setOpen( open );
+ setTreeIcon();
+}
+
- QListViewItem::setOpen( true );
+void
+YQPkgPatternCategoryItem::setTreeIcon()
+{
+ setPixmap( _patternList->statusCol(),
+ isOpen() ?
+ YQIconPool::treeMinus() :
+ YQIconPool::treePlus() );
+
}
+
/**
* Comparison function used for sorting the list.
* Returns:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/YQPkgVersionsView.cc new/yast2-qt-2.13.63/src/YQPkgVersionsView.cc
--- old/yast2-qt-2.13.61/src/YQPkgVersionsView.cc 2006-05-26 16:01:30.000000000 +0200
+++ new/yast2-qt-2.13.63/src/YQPkgVersionsView.cc 2006-09-20 15:20:24.000000000 +0200
@@ -128,7 +128,9 @@
new YQPkgVersion( this, root, selectable, *it, _userCanSwitch );
if ( selectable->installedObj() &&
- selectable->installedObj()->edition() == (*it)->edition() )
+ selectable->installedObj()->edition() == (*it)->edition() &&
+ selectable->installedObj()->arch() == (*it)->arch() )
+ // FIXME: In future releases, also the vendor will make a difference
installedIsAvailable = true;
#if 0
@@ -255,7 +257,8 @@
if ( _selectable->hasInstalledObj() )
{
- if ( _zyppObj->edition() == _selectable->installedObj()->edition() )
+ if ( _zyppObj->edition() == _selectable->installedObj()->edition() &&
+ _zyppObj->arch() == _selectable->installedObj()->arch() )
{
setPixmap( statusCol(), YQIconPool::pkgKeepInstalled() );
setBackgroundColor( QColor( 0xF0, 0xF0, 0xF0 ) ); // light grey
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/YQTextEntry.cc new/yast2-qt-2.13.63/src/YQTextEntry.cc
--- old/yast2-qt-2.13.61/src/YQTextEntry.cc 2005-05-20 16:41:53.000000000 +0200
+++ new/yast2-qt-2.13.63/src/YQTextEntry.cc 2006-09-29 17:50:39.000000000 +0200
@@ -15,11 +15,16 @@
Author: Mathias Kettner <kettner(a)suse.de>
Maintainer: Stefan Hundhammer <sh(a)suse.de>
+ textdomain "qt-packages"
+
/-*/
#include <qlineedit.h>
#include <qlabel.h>
+#include <X11/X.h>
+#include <X11/Xlib.h>
+#include <X11/keysym.h>
#define y2log_component "qt-ui"
#include <ycp/y2log.h>
@@ -30,6 +35,7 @@
#include "YEvent.h"
#include "QY2CharValidator.h"
#include "YQTextEntry.h"
+#include "YQi18n.h"
YQTextEntry::YQTextEntry( QWidget * parent,
@@ -39,6 +45,7 @@
: QVBox( parent )
, YTextEntry( opt, label )
, _validator(0)
+ , _displayingCapsLockWarning( false )
{
setWidgetRep( this );
@@ -52,25 +59,33 @@
if ( label->value() == "" )
_qt_label->hide();
- _qt_lineedit = new QLineEdit( this );
- _qt_lineedit->setFont( YQUI::ui()->currentFont() );
- _qt_lineedit->setText( fromUTF8(text->value() ) );
-
- _qt_label->setBuddy( _qt_lineedit );
+ _qt_lineEdit = new YQRawLineEdit( this );
+ _qt_lineEdit->setFont( YQUI::ui()->currentFont() );
+ _qt_lineEdit->setText( fromUTF8(text->value() ) );
- if ( opt.passwordMode.value() )
- _qt_lineedit->setEchoMode( QLineEdit::Password );
+ _qt_label->setBuddy( _qt_lineEdit );
_shrinkable = opt.isShrinkable.value();
- connect( _qt_lineedit, SIGNAL( textChanged( const QString & ) ),
+ connect( _qt_lineEdit, SIGNAL( textChanged( const QString & ) ),
this, SLOT ( changed ( const QString & ) ) );
+
+ if ( opt.passwordMode.value() )
+ {
+ _qt_lineEdit->setEchoMode( QLineEdit::Password );
+
+ connect( _qt_lineEdit, SIGNAL( capsLockActivated() ),
+ this, SLOT ( displayCapsLockWarning() ) );
+
+ connect( _qt_lineEdit, SIGNAL( capsLockDeactivated() ),
+ this, SLOT ( clearCapsLockWarning() ) );
+ }
}
void YQTextEntry::setEnabling( bool enabled )
{
- _qt_lineedit->setEnabled( enabled );
+ _qt_lineEdit->setEnabled( enabled );
}
@@ -101,12 +116,12 @@
void YQTextEntry::setText( const YCPString & ytext )
{
QString text = fromUTF8( ytext->value() );
-
+
if ( isValidText( text ) )
{
- _qt_lineedit->blockSignals( true );
- _qt_lineedit->setText( text );
- _qt_lineedit->blockSignals( false );
+ _qt_lineEdit->blockSignals( true );
+ _qt_lineEdit->setText( text );
+ _qt_lineEdit->blockSignals( false );
}
else
{
@@ -118,7 +133,7 @@
YCPString YQTextEntry::getText()
{
- return YCPString( toUTF8(_qt_lineedit->text() ) );
+ return YCPString( toUTF8(_qt_lineEdit->text() ) );
}
@@ -136,7 +151,7 @@
int pos = 0;
QString text( txt ); // need a non-const QString &
-
+
return _validator->validate( text, pos ) == QValidator::Acceptable;
}
@@ -150,19 +165,19 @@
else
{
_validator = new QY2CharValidator( fromUTF8( newValidChars->value() ), this );
- _qt_lineedit->setValidator( _validator );
+ _qt_lineEdit->setValidator( _validator );
// No need to delete the validator in the destructor - Qt will take
// care of that since it's a QObject with a parent!
}
- if ( ! isValidText( _qt_lineedit->text() ) )
+ if ( ! isValidText( _qt_lineEdit->text() ) )
{
y2error( "Old value \"%s\" of %s \"%s\" invalid according to ValidChars \"%s\" - deleting",
- (const char *) _qt_lineedit->text(),
+ (const char *) _qt_lineEdit->text(),
widgetClass(), debugLabel().c_str(),
newValidChars->value().c_str() );
- _qt_lineedit->setText( "" );
+ _qt_lineEdit->setText( "" );
}
YTextEntry::setValidChars( newValidChars );
@@ -170,13 +185,13 @@
void YQTextEntry::setInputMaxLength( const YCPInteger & numberOfChars)
{
- _qt_lineedit->setMaxLength(numberOfChars->asInteger()->value());
+ _qt_lineEdit->setMaxLength(numberOfChars->asInteger()->value());
}
bool YQTextEntry::setKeyboardFocus()
{
- _qt_lineedit->setFocus();
- _qt_lineedit->selectAll();
+ _qt_lineEdit->setFocus();
+ _qt_lineEdit->selectAll();
return true;
}
@@ -189,7 +204,117 @@
}
+void YQTextEntry::displayCapsLockWarning()
+{
+ y2milestone( "warning" );
+ if ( _displayingCapsLockWarning )
+ return;
+ if ( _qt_lineEdit->echoMode() == QLineEdit::Normal )
+ return;
-#include "YQTextEntry.moc"
+ // Translators: This is a very short warning that the CapsLock key
+ // is active while trying to type in a password field. This warning
+ // replaces the normal label (caption) of that password field while
+ // CapsLock is active, so please keep it short. Please don't translate it
+ // at all if the term "CapsLock" can reasonably expected to be understood
+ // by the target audience.
+ //
+ // In particular, please don't translate this to death in German.
+ // Simply leave it.
+ _qt_label->setText( _( "CapsLock!" ) );
+ _qt_label->setFont( YQUI::ui()->boldFont() );
+ _displayingCapsLockWarning = true;
+}
+
+
+void YQTextEntry::clearCapsLockWarning()
+{
+ y2milestone( "warning off " );
+ if ( ! _displayingCapsLockWarning )
+ return;
+
+ if ( _qt_lineEdit->echoMode() == QLineEdit::Normal )
+ return;
+
+ _qt_label->setText( fromUTF8( getLabel()->value() ) );
+ _qt_label->setFont( YQUI::ui()->currentFont() );
+ _displayingCapsLockWarning = false;
+}
+
+
+bool YQRawLineEdit::x11Event( XEvent * event )
+{
+ // Qt (3.x) does not have support for the CapsLock key.
+ // All other modifiers (Shift, Control, Meta) are propagated via
+ // Qt's events, but for some reason, CapsLock is not.
+ //
+ // So let's examine the raw X11 event here to check for the
+ // CapsLock status. All events are really handled on the parent class
+ // (QWidget) level, though. We only peek into the modifier states.
+
+ if ( event )
+ {
+ bool oldCapsLockActive = _capsLockActive;
+
+ switch ( event->type )
+ {
+ case KeyPress:
+ _capsLockActive = (bool) ( event->xkey.state & LockMask );
+ break;
+
+ case KeyRelease:
+
+ _capsLockActive = (bool) ( event->xkey.state & LockMask );
+
+ if ( _capsLockActive && oldCapsLockActive )
+ {
+ KeySym key = XLookupKeysym( &(event->xkey), 0 );
+
+ if ( key == XK_Caps_Lock ||
+ key == XK_Shift_Lock )
+ {
+ y2milestone( "CapsLock released" );
+ _capsLockActive = false;
+ }
+ }
+
+ y2debug( "Key event; caps lock: %s", _capsLockActive ? "on" : "off" );
+ break;
+
+ case ButtonPress:
+ case ButtonRelease:
+ _capsLockActive = (bool) ( event->xbutton.state & LockMask );
+ break;
+
+ case EnterNotify:
+ _capsLockActive = (bool) ( event->xcrossing.state & LockMask );
+ break;
+
+ case LeaveNotify:
+ case FocusOut:
+ _capsLockActive = false;
+ emit capsLockDeactivated();
+ break;
+
+ default:
+ break;
+ }
+
+ if ( oldCapsLockActive != _capsLockActive )
+ {
+ y2milestone( "Emitting warning" );
+
+ if ( _capsLockActive )
+ emit capsLockActivated();
+ else
+ emit capsLockDeactivated();
+ }
+ }
+
+ return false; // handle this event at the Qt level
+}
+
+
+#include "YQTextEntry.moc"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/YQUI_x11.cc new/yast2-qt-2.13.63/src/YQUI_x11.cc
--- old/yast2-qt-2.13.61/src/YQUI_x11.cc 2006-06-14 17:16:20.000000000 +0200
+++ new/yast2-qt-2.13.63/src/YQUI_x11.cc 2006-09-13 16:23:12.000000000 +0200
@@ -91,6 +91,13 @@
return _main_win;
};
+
+void YQUI::beep()
+{
+ qApp->beep();
+}
+
+
void
YQUI::busyCursor( void )
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/include/QY2ListView.h new/yast2-qt-2.13.63/src/include/QY2ListView.h
--- old/yast2-qt-2.13.61/src/include/QY2ListView.h 2006-03-20 10:56:10.000000000 +0100
+++ new/yast2-qt-2.13.63/src/include/QY2ListView.h 2006-09-22 17:08:58.000000000 +0200
@@ -58,7 +58,7 @@
public slots:
/**
- * Select a list entry ( if there is any ).
+ * Select a list entry (if there is any).
* Usually this will be the first list entry, but don't rely on that - this
* might change without notice. Emits signal selectionChanged().
**/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/include/YQIconPool.h new/yast2-qt-2.13.63/src/include/YQIconPool.h
--- old/yast2-qt-2.13.61/src/include/YQIconPool.h 2005-04-22 14:43:08.000000000 +0200
+++ new/yast2-qt-2.13.63/src/include/YQIconPool.h 2006-09-22 16:52:05.000000000 +0200
@@ -67,6 +67,9 @@
static QPixmap tabooPkgConflict();
static QPixmap selectPkgConflict();
+ static QPixmap treePlus();
+ static QPixmap treeMinus();
+
protected:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/include/YQPkgPatternList.h new/yast2-qt-2.13.63/src/include/YQPkgPatternList.h
--- old/yast2-qt-2.13.61/src/include/YQPkgPatternList.h 2006-04-10 13:50:41.000000000 +0200
+++ new/yast2-qt-2.13.63/src/include/YQPkgPatternList.h 2006-09-22 17:09:57.000000000 +0200
@@ -87,6 +87,25 @@
**/
void fillList();
+ /**
+ * Dispatcher slot for mouse click: cycle status depending on column.
+ * For pattern category items, emulate tree open / close behaviour.
+ *
+ * Reimplemented from YQPkgObjList.
+ **/
+ virtual void pkgObjClicked( int button,
+ QListViewItem * item,
+ int col,
+ const QPoint & pos );
+
+ /**
+ * Select the first selectable list entry that is not a pattern category.
+ *
+ * Reimplemented from QY2ListView.
+ **/
+ virtual void selectSomething();
+
+
public:
/**
@@ -252,10 +271,22 @@
* Reimplemented from QListViewItem to force categories open at all times
*/
virtual void setOpen( bool open );
+
protected:
/**
+ * Set a suitable tree open/close icon depending on this category's
+ * open/close status.
+ *
+ * The default QListView plus/minus icons would require treeStepSize() to
+ * be set >0 and rootItemDecorated( true ), but that would look very ugly
+ * in this context, so the pattern categories paint their own tree open /
+ * close icons.
+ **/
+ void setTreeIcon( void );
+
+ /**
* Paint method. Reimplemented from @ref QListViewItem so a different
* font can be used.
*
@@ -271,7 +302,8 @@
// Data members
//
- ZyppPattern _firstPattern;
+ YQPkgPatternList * _patternList;
+ ZyppPattern _firstPattern;
};
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/include/YQTextEntry.h new/yast2-qt-2.13.63/src/include/YQTextEntry.h
--- old/yast2-qt-2.13.61/src/include/YQTextEntry.h 2005-11-21 12:41:40.000000000 +0100
+++ new/yast2-qt-2.13.63/src/include/YQTextEntry.h 2006-09-29 17:14:20.000000000 +0200
@@ -23,6 +23,7 @@
#define YQTextEntry_h
#include <qvbox.h>
+#include <qlineedit.h>
#include <ycp/YCPString.h>
#include "YTextEntry.h"
@@ -32,6 +33,8 @@
class QLabel;
class QLineEdit;
class QY2CharValidator;
+class YQRawLineEdit;
+
class YQTextEntry : public QVBox, public YTextEntry
{
@@ -112,28 +115,79 @@
*/
void changed( const QString & );
+ /**
+ * Display a warning that CapsLock is active:
+ * Replace the label with "CapsLock!"
+ **/
+ void displayCapsLockWarning();
+
+ /**
+ * Clear the CapsLock warning: Restore old label
+ **/
+ void clearCapsLockWarning();
+
protected:
+ //
+ // Data members
+ //
+
+ QLabel * _qt_label;
+ YQRawLineEdit * _qt_lineEdit;
+ QY2CharValidator * _validator;
+ bool _shrinkable;
+ bool _displayingCapsLockWarning;
+};
+
+
+/**
+ * Helper class that can obtain the CapsLock status, too.
+ * For some reason, Qt does not propagate that information from X11.
+ **/
+class YQRawLineEdit: public QLineEdit
+{
+ Q_OBJECT
+
+public:
+
/**
- * Pointer to the qt widget representing the label
- */
- QLabel * _qt_label;
+ * Constructor
+ **/
+ YQRawLineEdit( QWidget * parent )
+ : QLineEdit( parent )
+ , _capsLockActive( false )
+ {}
/**
- * Pointer to the qt widget representing the text entry
- */
- QLineEdit * _qt_lineedit;
+ * Destructor
+ **/
+ virtual ~YQRawLineEdit() {};
/**
- * Pointer to the validator object
+ * Check if CapsLock is active
+ * (rather: was active at the time of the last key or focus event)
**/
- QY2CharValidator * _validator;
+ bool isCapsLockActive() const { return _capsLockActive; }
+
+
+signals:
+ void capsLockActivated();
+ void capsLockDeactivated();
+
+protected:
/**
- * true if the horizontal nice size should be very small
- */
- bool _shrinkable;
+ * X11 raw event handler. Propagates all events to the Qt event handlers,
+ * but updates _capsLockActive for key events.
+ *
+ * Reimplemented from QWidget.
+ **/
+ bool x11Event( XEvent * event ) ;
+
+private:
+
+ bool _capsLockActive;
};
#endif // YQTextEntry_h
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-qt-2.13.61/src/include/YQUI.h new/yast2-qt-2.13.63/src/include/YQUI.h
--- old/yast2-qt-2.13.61/src/include/YQUI.h 2006-02-01 11:03:30.000000000 +0100
+++ new/yast2-qt-2.13.63/src/include/YQUI.h 2006-09-13 16:30:29.000000000 +0200
@@ -236,7 +236,14 @@
**/
QString productName() const;
+ /**
+ * Beep - activate the system (X11) bell.
+ *
+ * Reimplemented from YUI.
+ */
+ void beep();
+
public slots:
/**
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package unifdef
checked in at Fri Sep 29 18:17:22 CEST 2006.
--------
--- unifdef/unifdef.changes 2006-01-25 21:42:26.000000000 +0100
+++ /mounts/work_src_done/STABLE/unifdef/unifdef.changes 2006-09-29 12:53:37.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Sep 29 12:52:57 CEST 2006 - pth(a)suse.de
+
+- Remove nasm from BuildRequires.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ unifdef.spec ++++++
--- /var/tmp/diff_new_pack.jD0KOk/_old 2006-09-29 18:17:12.000000000 +0200
+++ /var/tmp/diff_new_pack.jD0KOk/_new 2006-09-29 18:17:12.000000000 +0200
@@ -1,22 +1,21 @@
#
# spec file for package unifdef (Version 1.0)
#
-# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
-# Please submit bugfixes or comments via http://bugs.opensuse.org
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: unifdef
-BuildRequires: nasm
License: BSD
Group: Development/Libraries/C and C++
Summary: Removes ifdefs from C files
Version: 1.0
-Release: 7
+Release: 23
Source: http://www.cs.cmu.edu/~ajw/dist/unifdef-1.0.tar.gz
Patch: unifdef-codecleanup.diff
Source1: Makefile.am
@@ -26,9 +25,9 @@
%description
Unifdef is useful for removing ifdef'ed lines from a file while
otherwise leaving the file alone. Unifdef acts on #ifdef, #ifndef,
-#else, and #enX dif lines, and it knows only enough about C to know
-when one of these is inactive because it is inside a comment, or a
-single or double quote.
+#else, and #endif lines, and it knows only enough about C to know when
+one of these is inactive because it is inside a comment, or a single or
+double quote.
@@ -54,6 +53,8 @@
%doc LICENSE README unifdef.1
%changelog -n unifdef
+* Fri Sep 29 2006 - pth(a)suse.de
+- Remove nasm from BuildRequires.
* Wed Jan 25 2006 - mls(a)suse.de
- converted neededforbuild to BuildRequires
* Mon Nov 07 2005 - pth(a)suse.de
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package strace
checked in at Fri Sep 29 18:17:00 CEST 2006.
--------
--- strace/strace.changes 2006-09-08 23:27:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/strace/strace.changes 2006-09-29 10:52:27.000000000 +0200
@@ -1,0 +2,5 @@
+Fri Sep 29 10:52:03 CEST 2006 - schwab(a)suse.de
+
+- Fix use of PT_GETSIGINFO.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ strace.spec ++++++
--- /var/tmp/diff_new_pack.URfENv/_old 2006-09-29 18:16:28.000000000 +0200
+++ /var/tmp/diff_new_pack.URfENv/_new 2006-09-29 18:16:28.000000000 +0200
@@ -16,7 +16,7 @@
Group: Development/Tools/Debuggers
Autoreqprov: on
Version: 4.5.14
-Release: 20
+Release: 23
Summary: A utility to trace the system calls of a program
Source: strace-%{version}.tar.bz2
Patch99: strace-cvs.diff
@@ -86,6 +86,8 @@
%doc %{_mandir}/man1/strace.1.gz
%changelog -n strace
+* Fri Sep 29 2006 - schwab(a)suse.de
+- Fix use of PT_GETSIGINFO.
* Fri Sep 08 2006 - schwab(a)suse.de
- Fix last change.
* Thu Sep 07 2006 - schwab(a)suse.de
++++++ strace-4.5.14.diff ++++++
--- /var/tmp/diff_new_pack.URfENv/_old 2006-09-29 18:16:28.000000000 +0200
+++ /var/tmp/diff_new_pack.URfENv/_new 2006-09-29 18:16:28.000000000 +0200
@@ -64,7 +64,7 @@
}
--- strace.c
+++ strace.c
-@@ -1375,7 +1375,7 @@
+@@ -1382,7 +1382,7 @@
#ifdef LINUX
if (zombie != NULL)
@@ -73,7 +73,7 @@
#endif
return error;
-@@ -1955,7 +1955,7 @@
+@@ -1962,7 +1962,7 @@
fprintf(stderr,
"PANIC: handle_group_exit: %d leader %d\n",
tcp->pid, leader ? leader->pid : -1);
@@ -82,3 +82,28 @@
}
else {
/* Mark that we are taking the process down. */
+@@ -2259,6 +2259,7 @@
+ && (qual_flags[WSTOPSIG(status)] & QUAL_SIGNAL)) {
+ unsigned long addr = 0, pc = 0;
+ #ifdef PT_GETSIGINFO
++# if defined IA64 && defined LINUX
+ # define PSR_RI 41
+ struct siginfo si;
+ unsigned long psr;
+@@ -2269,7 +2270,7 @@
+ pc += (psr >> PSR_RI) & 0x3;
+ ptrace(PT_GETSIGINFO, pid, 0, (long) &si);
+ addr = (unsigned long) si.si_addr;
+-#elif defined PTRACE_GETSIGINFO
++# else
+ if (WSTOPSIG(status) == SIGSEGV ||
+ WSTOPSIG(status) == SIGBUS) {
+ siginfo_t si;
+@@ -2278,6 +2279,7 @@
+ addr = (unsigned long)
+ si.si_addr;
+ }
++# endif
+ #endif
+ printleader(tcp);
+ tprintf("--- %s (%s) @ %lx (%lx) ---",
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package resmgr
checked in at Fri Sep 29 18:16:12 CEST 2006.
--------
--- resmgr/resmgr.changes 2006-09-07 14:23:31.000000000 +0200
+++ /mounts/work_src_done/STABLE/resmgr/resmgr.changes 2006-09-29 11:48:38.000000000 +0200
@@ -1,0 +2,6 @@
+Fri Sep 29 11:48:19 CEST 2006 - lnussel(a)suse.de
+
+- update docu
+- do not call hal-resmgr from init script anymore
+
+-------------------------------------------------------------------
Old:
----
resmgr-0.9.8_SVNr110.tar.bz2
New:
----
resmgr-0.9.8_SVNr117.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ resmgr.spec ++++++
--- /var/tmp/diff_new_pack.0s2B1o/_old 2006-09-29 18:15:31.000000000 +0200
+++ /var/tmp/diff_new_pack.0s2B1o/_new 2006-09-29 18:15:31.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package resmgr (Version 0.9.8_SVNr110)
+# spec file for package resmgr (Version 0.9.8_SVNr117)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -14,9 +14,9 @@
BuildRequires: pam-devel
License: GPL
Group: System/Daemons
-Version: 0.9.8_SVNr110
+Version: 0.9.8_SVNr117
Release: 1
-Summary: A program to allow arbitrary access to device files
+Summary: A program to track when users log in and out
Source: resmgr-%{version}.tar.bz2
Source1: resmgr.init
Source2: resmgr-doc.desktop
@@ -30,14 +30,9 @@
PreReq: %insserv_prereq %fillup_prereq
%description
-The resource manager is a framework to give user applications access to
-certain device files. The resource manager daemon can be configured to
-give certain users access to different resource classes.
-
-It supports hotplugging devices (i.e. new devices can be added to and
-removed from resource classes at run time), and it provides transparent
-access to the raw SCSI device corresponding to a CD writer or a
-scanner.
+resmgr tracks when users log in and out via PAM module. It then
+executes commands based on configurable rules according to that login
+information.
@@ -119,6 +114,9 @@
%dir /var/run/resmgr/classes
%changelog -n resmgr
+* Fri Sep 29 2006 - lnussel(a)suse.de
+- update docu
+- do not call hal-resmgr from init script anymore
* Thu Sep 07 2006 - lnussel(a)suse.de
- fix resmgr.h for use with C++
* Wed Sep 06 2006 - lnussel(a)suse.de
++++++ resmgr-0.9.8_SVNr110.tar.bz2 -> resmgr-0.9.8_SVNr117.tar.bz2 ++++++
++++ 10406 lines of diff (skipped)
++++++ resmgr.init ++++++
--- resmgr/resmgr.init 2006-06-16 10:07:27.000000000 +0200
+++ /mounts/work_src_done/STABLE/resmgr/resmgr.init 2006-09-29 11:48:17.000000000 +0200
@@ -68,11 +68,6 @@
(cd /var/run/resmgr/classes && /bin/rm -rf -- *)
startproc $RESMGR_BIN
rc_status -v
- if [ -x /usr/sbin/hal-resmgr ] && checkproc /usr/sbin/hald; then
- echo -n " hald already running, registering devices"
- /usr/sbin/hal-resmgr
- rc_status -v
- fi
fi
;;
stop)
@@ -97,7 +92,7 @@
rc_status
;;
restart)
- /sbin/resmgr dump dynamic-devices sessions grants > /var/run/resmgr.sessions 2>/dev/null
+ /sbin/resmgr dump sessions grants > /var/run/resmgr.sessions 2>/dev/null
$0 stop
$0 start
/sbin/resmgr < /var/run/resmgr.sessions > /dev/null
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-Params-Validate
checked in at Fri Sep 29 18:15:15 CEST 2006.
--------
--- perl-Params-Validate/perl-Params-Validate.changes 2006-01-25 21:39:54.000000000 +0100
+++ /mounts/work_src_done/STABLE/perl-Params-Validate/perl-Params-Validate.changes 2006-09-29 14:15:11.000000000 +0200
@@ -1,0 +2,9 @@
+Fri Sep 29 14:09:21 CEST 2006 - anicka(a)suse.cz
+
+- update to 0.84
+ * XS version uses Carp::confess instead of Carp::croak
+ * bugfixes
+ * speed optimalizations
+- remove last patch (fixed in upstream)
+
+-------------------------------------------------------------------
Old:
----
Params-Validate-0.79.tar.bz2
Params-Validate-codecleanup.diff
New:
----
Params-Validate-0.84.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Params-Validate.spec ++++++
--- /var/tmp/diff_new_pack.8PkRXe/_old 2006-09-29 18:13:57.000000000 +0200
+++ /var/tmp/diff_new_pack.8PkRXe/_new 2006-09-29 18:13:57.000000000 +0200
@@ -1,25 +1,25 @@
#
-# spec file for package perl-Params-Validate (Version 0.79)
+# spec file for package perl-Params-Validate (Version 0.84)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
-# Please submit bugfixes or comments via http://bugs.opensuse.org
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Params-Validate
+URL: http://cpan.org/modules/by-module/Params/
License: GPL
Group: Development/Libraries/Perl
Requires: perl = %{perl_version}
#Conflicts: perlmod
Autoreqprov: on
-Version: 0.79
+Version: 0.84
Release: 1
Source: Params-Validate-%{version}.tar.bz2
-Patch: Params-Validate-codecleanup.diff
Summary: provides a system for validation method/function call parameters
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -39,7 +39,6 @@
%prep
%setup -q -n Params-Validate-%{version}
-%patch
%build
perl Makefile.PL
@@ -67,6 +66,12 @@
%{_mandir}/man3/*.3pm.gz
%changelog -n perl-Params-Validate
+* Fri Sep 29 2006 - anicka(a)suse.cz
+- update to 0.84
+ * XS version uses Carp::confess instead of Carp::croak
+ * bugfixes
+ * speed optimalizations
+- remove last patch (fixed in upstream)
* Wed Jan 25 2006 - mls(a)suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 - sf(a)suse.de
++++++ Params-Validate-0.79.tar.bz2 -> Params-Validate-0.84.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/Changes new/Params-Validate-0.84/Changes
--- old/Params-Validate-0.79/Changes 2006-01-13 18:45:31.000000000 +0100
+++ new/Params-Validate-0.84/Changes 2006-05-29 17:11:59.000000000 +0200
@@ -1,3 +1,55 @@
+0.84 May29, 2006
+
+- The XS version of the code used Carp::croak to report failures,
+while the Perl version used Carp::confess. The module has always been
+documented as using confess, so now the XS version uses this.
+
+- The new compiler detection code always returned false if you didn't
+have ExtUtils::CBuilder installed.
+
+
+0.83 May 28, 2006
+
+- Change how C compiler detection is done in the Makefile.PL so it
+does not rely on having make on the system. The new way should work on
+(most?) Unix and Win32 systems. Suggested by David Golden. See RT
+18969 (for DateTime.pm, but equally applicable to this module). Will
+hopefully fix RT 17644.
+
+- Previously, if a parameter was undefined, regex checks for that
+parameter always failed. However, it's quite possible for a regex to
+successfully match an undefined value (qr/^$/, for example). Now the
+code treats undef as an empty string ('') in regex checks. Reported by
+Duncan Salada.
+
+
+0.82 May 9, 2006
+
+- Disabled function inlining if _MSC_VER is defined. Patch from Audrey
+Tang.
+
+- Check isa by calling it as a method on the thing being checked.
+
+- Do the same for can in the pure Perl version. This was already fixed
+for the XS version in 0.75.
+
+
+0.81 Apr 1, 2006
+
+- Speed up no validation in XS version by short-circuiting immediately
+if validation is off. This gives a noticeable speed boost when
+$ENV{NO_VALIDATION} is in use. Patch by Daisuke Maki.
+
+- Inlined some C functions for additional speed in the XS
+version. Patch by Daisuke Maki.
+
+
+0.80 Jan 22, 2006
+
+- If a undef value was given for a parameter that had a regex in its
+spec, a warning was emitted. RT #15196.
+
+
0.79 Jan 13, 2006
- The XS version of Params::Validate did not work if a spec hash
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/MANIFEST new/Params-Validate-0.84/MANIFEST
--- old/Params-Validate-0.79/MANIFEST 2006-01-13 18:46:49.000000000 +0100
+++ new/Params-Validate-0.84/MANIFEST 2006-05-10 00:03:12.000000000 +0200
@@ -32,6 +32,8 @@
t/22-overload-can-bug.t
t/23-readonly.t
t/24-tied.t
+t/25-undef-regex.t
+t/26-isa.t
t/callbacks.pl
t/defaults.pl
t/regex.pl
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/META.yml new/Params-Validate-0.84/META.yml
--- old/Params-Validate-0.79/META.yml 2006-01-13 18:49:08.000000000 +0100
+++ new/Params-Validate-0.84/META.yml 2006-05-29 17:12:44.000000000 +0200
@@ -1,7 +1,7 @@
# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
name: Params-Validate
-version: 0.79
+version: 0.84
version_from: lib/Params/Validate.pm
installdirs: site
requires:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/Makefile.PL new/Params-Validate-0.84/Makefile.PL
--- old/Params-Validate-0.79/Makefile.PL 2005-12-18 20:14:34.000000000 +0100
+++ new/Params-Validate-0.84/Makefile.PL 2006-05-29 17:11:35.000000000 +0200
@@ -12,7 +12,7 @@
for (@ARGV)
{
/^--pm/ and $no_xs = 1;
- /^--xs/ and $force_xs = 1;
+ /^--xs/ and $no_xs = 0;
}
if ($no_xs)
@@ -21,56 +21,39 @@
exit;
}
-my @clean;
-unless ($force_xs)
+unless (defined $no_xs)
{
- print "Testing if you have a C compiler\n";
+ check_for_compiler()
+ or no_cc();
- unless ( open F, ">test.c" )
+ if ( -d '.svn' )
{
- warn "Cannot write test.c, skipping test compilation and install pure Perl version.\n";
- no_cc();
- }
-
- print F <<'EOF';
-int main() { return 0; }
-EOF
+ local *DIR;
+ opendir DIR, "t" or die "Cannot read t: $!";
- close F or no_cc();
+ foreach my $file ( grep { /^\d.+\.t$/ } readdir DIR )
+ {
+ next if $file eq '99-pod.t';
- system("$Config{make} test$Config{obj_ext}") and no_cc();
-
-}
-
-if ( -d '.svn' )
-{
- local *DIR;
- opendir DIR, "t" or die "Cannot read t: $!";
-
- foreach my $file ( grep { /^\d.+\.t$/ } readdir DIR )
- {
- next if $file eq '99-pod.t';
+ my $real_file = File::Spec->catfile( 't', $file );
- my $real_file = File::Spec->catfile( 't', $file );
+ local *F;
+ open F, "<$real_file" or die "Cannot read $real_file: $!";
- local *F;
- open F, "<$real_file" or die "Cannot read $real_file: $!";
+ my $shbang = <F>;
+ my $test = do { local $/; <F> };
- my $shbang = <F>;
- my $test = do { local $/; <F> };
+ close F;
- close F;
+ $test = "$shbang\nBEGIN { \$ENV{PV_TEST_PERL} = 1 }\n\n$test";
- $test = "$shbang\nBEGIN { \$ENV{PV_TEST_PERL} = 1 }\n\n$test";
+ my $new_file = File::Spec->catfile( 't', "zz_$file" );
+ open F, ">$new_file" or die "Cannot write $new_file: $!";
- my $new_file = File::Spec->catfile( 't', "zz_$file" );
- open F, ">$new_file" or die "Cannot write $new_file: $!";
+ print F $test;
- print F $test;
-
- close F;
-
- push @clean, $new_file;
+ close F;
+ }
}
}
@@ -78,25 +61,16 @@
sub write_makefile
{
- print <<'EOF';
-
-*** NOTE ***
-
-You can safely ignore the warnings below about 'Too late to run
-CHECK/INIT blocks'.
-
-*************
-
-EOF
-
my %prereq = ( 'Test::More' => 0 );
$prereq{'Attribute::Handlers'} = 0 if $] >= 5.006;
+ my $zz = join ' ', glob File::Spec->catfile( 't', 'zz_*.t' );
+
WriteMakefile( VERSION_FROM => "lib/Params/Validate.pm",
NAME => "Params::Validate",
PREREQ_PM => \%prereq,
CONFIGURE => \&init,
- clean => { FILES => "test.c test.o @clean" },
+ clean => { FILES => "test.c test.o $zz" },
( $] >= 5.005 ?
( ABSTRACT_FROM => 'lib/Params/Validate.pm',
AUTHOR => 'Dave Rolsky, <autarch(a)urth.org>') :
@@ -134,3 +108,44 @@
write_makefile();
exit;
}
+
+sub check_for_compiler
+{
+ print "Testing if you have a C compiler\n";
+
+ eval { require ExtUtils::CBuilder };
+ if ($@)
+ {
+ return _check_for_compiler_manually();
+ }
+ else
+ {
+ return _check_for_compiler_with_cbuilder();
+ }
+}
+
+sub _check_for_compiler_with_cbuilder
+{
+ my $cb = ExtUtils::CBuilder->new( quiet => 1 );
+
+ return $cb->have_compiler;
+}
+
+sub _check_for_compiler_manually
+{
+ unless ( open F, ">test.c" )
+ {
+ warn "Cannot write test.c, skipping test compilation and installing pure Perl version.\n";
+ return 0;
+ }
+
+ print F <<'EOF';
+int main() { return 0; }
+EOF
+
+ close F or return 0;
+
+ system( "$Config{cc} -o test$Config{obj_ext} test.c" ) and return 0;
+
+ return 1;
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/Validate.xs new/Params-Validate-0.84/Validate.xs
--- old/Params-Validate-0.79/Validate.xs 2006-01-13 18:42:32.000000000 +0100
+++ new/Params-Validate-0.84/Validate.xs 2006-05-29 07:36:59.000000000 +0200
@@ -10,6 +10,12 @@
#define NEED_newCONSTSUB
#include "ppport.h"
+#ifdef _MSC_VER
+#define INLINE
+#else
+#define INLINE inline
+#endif
+
/* not defined in 5.00503 _or_ ppport.h! */
#ifndef CopSTASHPV
# ifdef USE_ITHREADS
@@ -112,7 +118,6 @@
static void
bootinit()
{
- char* str;
HV* stash;
/* define constants */
@@ -131,20 +136,20 @@
newCONSTSUB(stash, "BOOLEAN", newSViv(BOOLEAN));
}
-static bool
+INLINE static bool
no_validation()
{
SV* no_v;
no_v = perl_get_sv("Params::Validate::NO_VALIDATION", 0);
if (! no_v)
- croak("Cannot retrieve $Params::Validate::NO_VALIATION\n");
+ croak("Cannot retrieve $Params::Validate::NO_VALIDATION\n");
return SvTRUE(no_v);
}
/* return type string that corresponds to typemask */
-static SV*
+INLINE static SV*
typemask_to_string(IV mask)
{
SV* buffer;
@@ -197,7 +202,7 @@
}
/* compute numberic datatype for variable */
-static IV
+INLINE static IV
get_type(SV* sv)
{
IV type = 0;
@@ -242,6 +247,7 @@
}
/* get an article for given string */
+INLINE
#if (PERL_VERSION >= 6) /* Perl 5.6.0+ */
static const char*
#else
@@ -313,7 +319,7 @@
PUSHMARK(SP);
XPUSHs(message);
PUTBACK;
- perl_call_pv("Carp::croak", G_DISCARD);
+ perl_call_pv("Carp::confess", G_DISCARD);
}
return;
@@ -364,23 +370,63 @@
validate_isa(SV* value, SV* package, SV* id, HV* options)
{
SV* buffer;
+ IV ok = 1;
- /* quick test directly from Perl internals */
- if (sv_derived_from(value, SvPV_nolen(package))) return 1;
+ if (SvOK(value)) {
+ dSP;
- buffer = sv_2mortal(newSVsv(id));
- sv_catpv(buffer, " to ");
- sv_catsv(buffer, get_called(options));
- sv_catpv(buffer, " was not ");
- sv_catpv(buffer, article(package));
- sv_catpv(buffer, " '");
- sv_catsv(buffer, package);
- sv_catpv(buffer, "' (it is ");
- sv_catpv(buffer, article(value));
- sv_catpv(buffer, " ");
- sv_catsv(buffer, value);
- sv_catpv(buffer, ")\n");
- FAIL(buffer, options);
+ SV* ret;
+ IV count;
+
+ ENTER;
+ SAVETMPS;
+
+ PUSHMARK(SP);
+ EXTEND(SP, 2);
+ PUSHs(value);
+ PUSHs(package);
+ PUTBACK;
+
+ count = call_method("isa", G_SCALAR);
+
+ if (! count)
+ croak("Calling can did not return a value");
+
+ SPAGAIN;
+
+ ret = POPs;
+ SvGETMAGIC(ret);
+
+ ok = SvTRUE(ret);
+
+ PUTBACK;
+ FREETMPS;
+ LEAVE;
+ } else {
+ ok = 0;
+ }
+
+ if (! ok) {
+ buffer = sv_2mortal(newSVsv(id));
+ sv_catpv(buffer, " to ");
+ sv_catsv(buffer, get_called(options));
+ sv_catpv(buffer, " was not ");
+ sv_catpv(buffer, article(package));
+ sv_catpv(buffer, " '");
+ sv_catsv(buffer, package);
+ sv_catpv(buffer, "' (it is ");
+ if ( SvOK(value) ) {
+ sv_catpv(buffer, article(value));
+ sv_catpv(buffer, " ");
+ sv_catsv(buffer, value);
+ } else {
+ sv_catpv(buffer, "undef");
+ }
+ sv_catpv(buffer, ")\n");
+ FAIL(buffer, options);
+ }
+
+ return 1;
}
static IV
@@ -954,6 +1000,68 @@
}
}
+void
+apply_defaults(HV *ret, HV *p, HV *specs, AV *missing)
+{
+ HE* he;
+ SV** temp;
+
+ hv_iterinit(specs);
+ while (he = hv_iternext(specs)) {
+ HV* spec;
+ SV* val;
+
+ val = HeVAL(he);
+
+ /* get extended param spec if available */
+ if (SvROK(val) && SvTYPE(SvRV(val)) == SVt_PVHV) {
+ spec = (HV*) SvRV(val);
+ } else {
+ spec = NULL;
+ }
+
+ /* test for parameter existence */
+ if (hv_exists_ent(p, HeSVKEY_force(he), HeHASH(he))) {
+ continue;
+ }
+
+ /* parameter may not be defined but we may have default */
+ if (spec && (temp = hv_fetch(spec, "default", 7, 0))) {
+ SV* value;
+
+ SvGETMAGIC(*temp);
+ value = sv_2mortal(newSVsv(*temp));
+
+ /* make sure that parameter is put into return hash */
+ if (GIMME_V != G_VOID) {
+ if (!hv_store_ent(ret, HeSVKEY_force(he),
+ SvREFCNT_inc(value), HeHASH(he))) {
+ SvREFCNT_dec(value);
+ croak("Cannot add new key to hash");
+ }
+ }
+
+ continue;
+ }
+
+ /* find if missing parameter is mandatory */
+ if (! no_validation()) {
+ SV** temp;
+
+ if (spec) {
+ if (temp = hv_fetch(spec, "optional", 8, 0)) {
+ SvGETMAGIC(*temp);
+
+ if (SvTRUE(*temp)) continue;
+ }
+ } else if (!SvTRUE(HeVAL(he))) {
+ continue;
+ }
+ av_push(missing, SvREFCNT_inc(HeSVKEY_force(he)));
+ }
+ }
+}
+
static IV
validate(HV* p, HV* specs, HV* options, HV* ret)
{
@@ -998,6 +1106,30 @@
specs = normalize_hash_keys(specs, normalize_func, strip_leading, ignore_case);
}
+ /* short-circuit everything else when no_validation is true */
+ if (no_validation()) {
+ if (GIMME_V != G_VOID) {
+ while (he = hv_iternext(p)) {
+ /* This may be related to bug #7387 on bugs.perl.org */
+#if (PERL_VERSION == 5)
+ if (! PL_tainting)
+#endif
+ SvGETMAGIC(HeVAL(he));
+
+
+ /* put the parameter into return hash */
+ if (!hv_store_ent(ret, HeSVKEY_force(he), SvREFCNT_inc(HeVAL(he)),
+ HeHASH(he))) {
+ SvREFCNT_dec(HeVAL(he));
+ croak("Cannot add new key to hash");
+ }
+ }
+ apply_defaults(ret, p, specs, NULL);
+ }
+
+ return 1;
+ }
+
if (temp = hv_fetch(options, "allow_extra", 11, 0)) {
SvGETMAGIC(*temp);
allow_extra = SvTRUE(*temp);
@@ -1006,8 +1138,7 @@
}
/* find extra parameters and validate good parameters */
- if (! no_validation())
- unmentioned = (AV*) sv_2mortal((SV*) newAV());
+ unmentioned = (AV*) sv_2mortal((SV*) newAV());
hv_iterinit(p);
while (he = hv_iternext(p)) {
@@ -1017,7 +1148,6 @@
#endif
SvGETMAGIC(HeVAL(he));
-
/* put the parameter into return hash */
if (GIMME_V != G_VOID) {
if (!hv_store_ent(ret, HeSVKEY_force(he), SvREFCNT_inc(HeVAL(he)),
@@ -1027,7 +1157,6 @@
}
}
- if (!no_validation()) {
/* check if this parameter is defined in spec and if it is
then validate it using spec */
he1 = hv_fetch_ent(specs, HeSVKEY_force(he), 0, HeHASH(he));
@@ -1057,9 +1186,8 @@
} else if (! allow_extra) {
av_push(unmentioned, SvREFCNT_inc(HeSVKEY_force(he)));
}
- }
- if (!no_validation() && av_len(unmentioned) > -1) {
+ if (av_len(unmentioned) > -1) {
SV* buffer;
buffer = sv_2mortal(newSVpv("The following parameter", 0));
@@ -1092,65 +1220,11 @@
validate_named_depends(p, specs, options);
/* find missing parameters */
- if (! no_validation())
- missing = (AV*) sv_2mortal((SV*) newAV());
-
- hv_iterinit(specs);
- while (he = hv_iternext(specs)) {
- HV* spec;
- SV* val;
-
- val = HeVAL(he);
+ missing = (AV*) sv_2mortal((SV*) newAV());
- /* get extended param spec if available */
- if (SvROK(val) && SvTYPE(SvRV(val)) == SVt_PVHV) {
- spec = (HV*) SvRV(val);
- } else {
- spec = NULL;
- }
-
- /* test for parameter existence */
- if (hv_exists_ent(p, HeSVKEY_force(he), HeHASH(he))) {
- continue;
- }
+ apply_defaults(ret, p, specs, missing);
- /* parameter may not be defined but we may have default */
- if (spec && (temp = hv_fetch(spec, "default", 7, 0))) {
- SV* value;
-
- SvGETMAGIC(*temp);
- value = sv_2mortal(newSVsv(*temp));
-
- /* make sure that parameter is put into return hash */
- if (GIMME_V != G_VOID) {
- if (!hv_store_ent(ret, HeSVKEY_force(he),
- SvREFCNT_inc(value), HeHASH(he))) {
- SvREFCNT_dec(value);
- croak("Cannot add new key to hash");
- }
- }
-
- continue;
- }
-
- /* find if missing parameter is mandatory */
- if (! no_validation()) {
- SV** temp;
-
- if (spec) {
- if (temp = hv_fetch(spec, "optional", 8, 0)) {
- SvGETMAGIC(*temp);
-
- if (SvTRUE(*temp)) continue;
- }
- } else if (!SvTRUE(HeVAL(he))) {
- continue;
- }
- av_push(missing, SvREFCNT_inc(HeSVKEY_force(he)));
- }
- }
-
- if (! no_validation() && av_len(missing) > -1) {
+ if (av_len(missing) > -1) {
SV* buffer;
buffer = sv_2mortal(newSVpv("Mandatory parameter", 0));
@@ -1260,6 +1334,34 @@
IV min = -1;
AV* untaint_indexes = (AV*) sv_2mortal((SV*) newAV());
+ if (no_validation()) {
+ IV spec_count = av_len(specs);
+ IV p_count = av_len(p);
+ IV max = spec_count > p_count ? spec_count : p_count;
+
+ if (GIMME_V == G_VOID)
+ return 1;
+
+ for (i = 0; i <= max; i++) {
+ if (i <= spec_count) {
+ spec = *av_fetch(specs, i, 1);
+ SvGETMAGIC(spec);
+ complex_spec = (SvROK(spec) && SvTYPE(SvRV(spec)) == SVt_PVHV);
+ }
+
+ if (i <= av_len(p)) {
+ value = *av_fetch(p, i, 1);
+ SvGETMAGIC(value);
+ av_push(ret, SvREFCNT_inc(value));
+ } else if (complex_spec &&
+ (temp = hv_fetch((HV*) SvRV(spec), "default", 7, 0))) {
+ SvGETMAGIC(*temp);
+ av_push(ret, SvREFCNT_inc(*temp));
+ }
+ }
+ return 1;
+ }
+
/* iterate through all parameters and validate them */
for (i = 0; i <= av_len(specs); i++) {
spec = *av_fetch(specs, i, 1);
@@ -1277,7 +1379,7 @@
value = *av_fetch(p, i, 1);
SvGETMAGIC(value);
- if (! no_validation() && complex_spec) {
+ if (complex_spec) {
IV untaint = 0;
buffer = sv_2mortal(newSVpvf("Parameter #%d (", (int) i + 1));
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/lib/Params/Validate.pm new/Params-Validate-0.84/lib/Params/Validate.pm
--- old/Params-Validate-0.79/lib/Params/Validate.pm 2006-01-13 18:45:37.000000000 +0100
+++ new/Params-Validate-0.84/lib/Params/Validate.pm 2006-05-29 17:11:50.000000000 +0200
@@ -16,7 +16,7 @@
@ISA = 'Exporter';
- $VERSION = '0.79';
+ $VERSION = '0.84';
my %tags =
( types =>
@@ -350,6 +350,10 @@
The value of the "regex" key may be either a string or a pre-compiled
regex created via C<qr>.
+If the value being checked against a regex is undefined, the regex is
+explicitly checked against the empty string ('') instead, in order to
+avoid "Use of uninitialized value" warnings.
+
The C<Regexp::Common> module on CPAN is an excellent source of regular
expressions suitable for validating input.
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/lib/Params/ValidatePP.pm new/Params-Validate-0.84/lib/Params/ValidatePP.pm
--- old/Params-Validate-0.79/lib/Params/ValidatePP.pm 2005-12-18 20:14:34.000000000 +0100
+++ new/Params-Validate-0.84/lib/Params/ValidatePP.pm 2006-05-28 18:25:16.000000000 +0200
@@ -478,7 +478,7 @@
{
foreach ( ref $spec->{isa} ? @{ $spec->{isa} } : $spec->{isa} )
{
- unless ( UNIVERSAL::isa( $value, $_ ) )
+ unless ( eval { $value->isa($_) } )
{
my $is = ref $value ? ref $value : 'plain scalar';
my $article1 = $_ =~ /^[aeiou]/i ? 'an' : 'a';
@@ -497,7 +497,7 @@
{
foreach ( ref $spec->{can} ? @{ $spec->{can} } : $spec->{can} )
{
- unless ( defined $value && $value->can($_) )
+ unless ( eval { $value->can($_) } )
{
my $called = _get_called(1);
@@ -537,7 +537,7 @@
if ( exists $spec->{regex} )
{
- unless ( $value =~ /$spec->{regex}/ )
+ unless ( ( defined $value ? $value : '' ) =~ /$spec->{regex}/ )
{
my $called = _get_called(1);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/lib/Params/ValidateXS.pm new/Params-Validate-0.84/lib/Params/ValidateXS.pm
--- old/Params-Validate-0.79/lib/Params/ValidateXS.pm 2005-12-18 20:14:34.000000000 +0100
+++ new/Params-Validate-0.84/lib/Params/ValidateXS.pm 2006-05-28 18:23:27.000000000 +0200
@@ -49,7 +49,7 @@
}
}
-sub _check_regex_from_xs { return $_[0] =~ /$_[1]/ ? 1 : 0 }
+sub _check_regex_from_xs { return ( defined $_[0] ? $_[0] : '' ) =~ /$_[1]/ ? 1 : 0 }
BEGIN
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/t/25-undef-regex.t new/Params-Validate-0.84/t/25-undef-regex.t
--- old/Params-Validate-0.79/t/25-undef-regex.t 1970-01-01 01:00:00.000000000 +0100
+++ new/Params-Validate-0.84/t/25-undef-regex.t 2006-01-23 05:52:36.000000000 +0100
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -w
+
+use strict;
+
+use Params::Validate qw(validate);
+use Test::More tests => 2;
+
+{
+ my @w;
+ local $SIG{__WARN__} = sub { push @w, @_ };
+
+ my @p = ( foo => undef);
+ eval { validate( @p, { foo => { regex => qr/^bar/ } } ) };
+ ok( $@, 'validation failed' );
+ ok( ! @w, 'no warnings' );
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/t/26-isa.t new/Params-Validate-0.84/t/26-isa.t
--- old/Params-Validate-0.79/t/26-isa.t 1970-01-01 01:00:00.000000000 +0100
+++ new/Params-Validate-0.84/t/26-isa.t 2006-05-09 23:59:39.000000000 +0200
@@ -0,0 +1,120 @@
+#!/usr/bin/perl -w
+
+use strict;
+
+use Params::Validate qw(validate);
+use Test::More tests => 9;
+
+{
+ my @p = ( foo => 'ClassISA' );
+
+ eval
+ {
+ validate( @p,
+ { foo => { isa => 'FooBar' } },
+ );
+ };
+
+ is( $@, '', 'no error checking if ClassISA->isa(FooBar)' );
+
+ eval
+ {
+ validate( @p,
+ { foo => { isa => 'Thingy' } },
+ );
+ };
+
+ like( $@, qr/was not a 'Thingy'/ );
+}
+
+{
+ my @p = ( foo => undef );
+ eval
+ {
+ validate( @p,
+ { foo => { isa => 'FooBar' } },
+ );
+ };
+
+ like( $@, qr/was not a 'FooBar'/ );
+}
+
+{
+ my @p = ( foo => 'SubClass' );
+
+ eval
+ {
+ validate( @p,
+ { foo => { isa => 'ClassISA' } },
+ );
+ };
+
+ ok( ! $@, 'SubClass->isa(ClassISA)' );
+
+ eval
+ {
+ validate( @p,
+ { foo => { isa => 'FooBar' } },
+ );
+ };
+
+ ok( ! $@, 'SubClass->isa(FooBar)' );
+
+ eval
+ {
+ validate( @p,
+ { foo => { isa => 'Thingy' } },
+ );
+ };
+
+ like( $@, qr/was not a 'Thingy'/ );
+}
+
+{
+ my @p = ( foo => bless {}, 'SubClass' );
+
+ eval
+ {
+ validate( @p,
+ { foo => { isa => 'ClassISA' } },
+ );
+ };
+
+ ok( ! $@, 'SubClass->isa(ClassISA)' );
+
+ eval
+ {
+ validate( @p,
+ { foo => { isa => 'FooBar' } },
+ );
+ };
+
+ ok( ! $@, 'SubClass->isa(FooBar)' );
+
+ eval
+ {
+ validate( @p,
+ { foo => { isa => 'Thingy' } },
+ );
+ };
+
+ like( $@, qr/was not a 'Thingy'/ );
+}
+
+
+
+package ClassISA;
+
+sub isa
+{
+ return 1 if $_[1] eq 'FooBar';
+ return $_[0]->SUPER::isa($_[1]);
+}
+
+sub thingy { 1 }
+
+package SubClass;
+
+use base 'ClassISA';
+
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/Params-Validate-0.79/t/regex.pl new/Params-Validate-0.84/t/regex.pl
--- old/Params-Validate-0.79/t/regex.pl 2005-12-18 20:14:33.000000000 +0100
+++ new/Params-Validate-0.84/t/regex.pl 2006-05-28 18:20:55.000000000 +0200
@@ -1,5 +1,5 @@
use Test;
-BEGIN { plan test => 6 }
+BEGIN { plan test => 7 }
my $r = '^bar$';
eval
@@ -51,6 +51,13 @@
};
ok( ! $@ );
+eval
+{
+ my @a = ( foo => undef );
+ validate( @a, { foo => { regex => qr/^$|^bubba$/ } } );
+};
+ok( ! $@ );
+
1;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-Net-Server
checked in at Fri Sep 29 18:13:49 CEST 2006.
--------
--- perl-Net-Server/perl-Net-Server.changes 2006-01-25 21:39:52.000000000 +0100
+++ /mounts/work_src_done/STABLE/perl-Net-Server/perl-Net-Server.changes 2006-09-29 14:46:38.000000000 +0200
@@ -1,0 +2,18 @@
+Fri Sep 29 14:38:38 CEST 2006 - anicka(a)suse.cz
+
+- update to 0.94
+ * Added the leave_children_open_on_hup flag which leaves
+ open connections open when the server is hupped.
+ * Allow for port, host, and proto to be passed as arrayrefs
+ to run and new.
+ * Allow for get sock info routines to use $peer->{client}
+ rather than STDIN which may not be set if
+ the "no_client_stdout" flag is set.
+ * Allow for duplicated STDIN and STDOUT to properly close.
+ * Add flag to disable all of the binding of client
+ to STDIN and STDOUT.
+ * Abstract shutdown_sockets method that is called at the end
+ of server_close (to allow for calling in other places).
+ * bugfixes
+
+-------------------------------------------------------------------
Old:
----
Net-Server-0.90.tar.bz2
New:
----
Net-Server-0.94.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Net-Server.spec ++++++
--- /var/tmp/diff_new_pack.bwV4QC/_old 2006-09-29 18:13:28.000000000 +0200
+++ /var/tmp/diff_new_pack.bwV4QC/_new 2006-09-29 18:13:28.000000000 +0200
@@ -1,23 +1,23 @@
#
-# spec file for package perl-Net-Server (Version 0.90)
+# spec file for package perl-Net-Server (Version 0.94)
#
-# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
-# Please submit bugfixes or comments via http://bugs.opensuse.org
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-Net-Server
-URL: http://seamons.com/
+URL: http://cpan.org/modules/by-module/Net/
License: GPL, Artistic License
Group: Development/Libraries/Perl
Requires: perl = %{perl_version}
Autoreqprov: on
Summary: Net::Server - Extensible, general Perl server engine
-Version: 0.90
+Version: 0.94
Release: 1
Source: Net-Server-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -61,6 +61,21 @@
/var/adm/perl-modules/perl-Net-Server
%changelog -n perl-Net-Server
+* Fri Sep 29 2006 - anicka(a)suse.cz
+- update to 0.94
+ * Added the leave_children_open_on_hup flag which leaves
+ open connections open when the server is hupped.
+ * Allow for port, host, and proto to be passed as arrayrefs
+ to run and new.
+ * Allow for get sock info routines to use $peer->{client}
+ rather than STDIN which may not be set if
+ the "no_client_stdout" flag is set.
+ * Allow for duplicated STDIN and STDOUT to properly close.
+ * Add flag to disable all of the binding of client
+ to STDIN and STDOUT.
+ * Abstract shutdown_sockets method that is called at the end
+ of server_close (to allow for calling in other places).
+ * bugfixes
* Wed Jan 25 2006 - mls(a)suse.de
- converted neededforbuild to BuildRequires
* Thu Dec 08 2005 - sf(a)suse.de
++++++ Net-Server-0.90.tar.bz2 -> Net-Server-0.94.tar.bz2 ++++++
++++ 1710 lines of diff (skipped)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0
Hello community,
here is the log from the commit of package perl-Bootloader
checked in at Fri Sep 29 18:13:14 CEST 2006.
--------
--- perl-Bootloader/perl-Bootloader.changes 2006-09-04 17:03:57.000000000 +0200
+++ /mounts/work_src_done/STABLE/perl-Bootloader/perl-Bootloader.changes 2006-09-29 14:22:24.000000000 +0200
@@ -1,0 +2,20 @@
+Fri Sep 29 12:41:55 CEST 2006 - jplack(a)suse.de
+
+- new interface for FATE#300732
+
+-------------------------------------------------------------------
+Thu Sep 28 15:47:23 CEST 2006 - aosthof(a)suse.de
+
+- added new interface script bootloader_entry
+
+-------------------------------------------------------------------
+Tue Sep 19 17:29:38 CEST 2006 - jplack(a)suse.de
+
+- fix man page for update-bootloader
+
+-------------------------------------------------------------------
+Mon Sep 4 17:15:19 CEST 2006 - jplack(a)suse.de
+
+- support new options no_os_chooser and optional (#202069, #202072)
+
+-------------------------------------------------------------------
Old:
----
perl-Bootloader-0.2.27.tar.bz2
New:
----
bootloader_entry
perl-Bootloader-0.3.1.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Bootloader.spec ++++++
--- /var/tmp/diff_new_pack.g8d2js/_old 2006-09-29 18:11:50.000000000 +0200
+++ /var/tmp/diff_new_pack.g8d2js/_new 2006-09-29 18:11:50.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package perl-Bootloader (Version 0.2.27)
+# spec file for package perl-Bootloader (Version 0.3.1)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,8 +11,8 @@
# norootforbuild
Name: perl-Bootloader
-Version: 0.2.27
-Release: 7
+Version: 0.3.1
+Release: 1
Requires: perl >= %{perl_version}
Requires: perl-gettext
Requires: mdadm e2fsprogs
@@ -22,6 +22,7 @@
Summary: Library for Configuring Boot Loaders
Source: perl-Bootloader-%{version}.tar.bz2
Source1: update-bootloader
+Source2: bootloader_entry
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@@ -47,6 +48,8 @@
%perl_process_packlist
mkdir -p $RPM_BUILD_ROOT/sbin
install -m 755 %_sourcedir/update-bootloader $RPM_BUILD_ROOT/sbin
+install -d -m 711 $RPM_BUILD_ROOT/usr/lib/bootloader
+install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/usr/lib/bootloader
%files
%defattr(-, root, root)
@@ -56,8 +59,17 @@
%{perl_vendorlib}/Bootloader
/var/adm/perl-modules/perl-Bootloader
/sbin/update-bootloader
+/usr/lib/bootloader
%changelog -n perl-Bootloader
+* Fri Sep 29 2006 - jplack(a)suse.de
+- new interface for FATE#300732
+* Thu Sep 28 2006 - aosthof(a)suse.de
+- added new interface script bootloader_entry
+* Tue Sep 19 2006 - jplack(a)suse.de
+- fix man page for update-bootloader
+* Mon Sep 04 2006 - jplack(a)suse.de
+- support new options no_os_chooser and optional (#202069, #202072)
* Mon Sep 04 2006 - jplack(a)suse.de
- remove braces when parsing device.map file (#203545)
* Mon Aug 07 2006 - jplack(a)suse.de
++++++ perl-Bootloader-0.2.27.tar.bz2 -> perl-Bootloader-0.3.1.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/perl-Bootloader-0.2.27/lib/Bootloader/Core/PowerLILO.pm new/perl-Bootloader-0.3.1/lib/Bootloader/Core/PowerLILO.pm
--- old/perl-Bootloader-0.2.27/lib/Bootloader/Core/PowerLILO.pm 2006-05-22 18:11:08.000000000 +0200
+++ new/perl-Bootloader-0.3.1/lib/Bootloader/Core/PowerLILO.pm 2006-09-29 14:22:24.000000000 +0200
@@ -45,7 +45,7 @@
#module interface
-sub getExports() {
+sub GetMetaData() {
my $loader = shift;
# possible global entries:
@@ -159,7 +159,7 @@
activate => "bool:Change boot-device in NV-RAM:true",
timeout => "int:Timeout in 1/10th seconds:50:0:600",
default => "string:Default boot section:Linux",
- root => "select:Default root device::" . ":" . $root_devices,
+ root => "selectdevice:Default root device::" . ":" . $root_devices,
append => "string:Append options for kernel command line",
initrd => "path:Default initrd path"
};
@@ -168,7 +168,7 @@
if ( "$arch" eq "chrp" ) {
# pSeries only
- $go->{clone} = "select:Partition for boot loader duplication::" . ":" . $boot_partitions;
+ $go->{clone} = "selectdevice:Partition for boot loader duplication::" . ":" . $boot_partitions;
$go->{force_fat} = "bool:Always boot from FAT partition:false";
$go->{force} = "bool:Install boot loader even on errors:false";
@@ -179,21 +179,22 @@
# only on old prep machines
$go->{bootfolder} = "string:Bootfolder path";
$go->{boot_prep_custom}
- = "select:PReP partition::" . $boot_partitions;
+ = "selectdevice:PReP partition::" . $boot_partitions;
}
elsif ( "$arch" eq "iseries" ) {
# only on legacy iseries
$go->{boot_slot} = "select:Write to boot slot:B:" . "A:B:C:D";
$go->{boot_file} = "path:Create boot image in file:/tmp/suse_boot_image";
$go->{boot_iseries_custom}
- = "select:PReP partition::" . $boot_partitions;
+ = "selectdevice:PReP partition::" . $boot_partitions;
}
elsif ( "$arch" eq "pmac" ) {
# only on pmac_new and pmac_old
$go->{bootfolder} = "string:Bootfolder path:";
$go->{boot_pmac_custom}
= "select:HFS boot partition::" . $boot_partitions;
- }
+ $go->{no_os_chooser} = "bool:Do not use os-chooser:false";
+ }
$exports{"section_options"} = {
type_image => "bool:Kernel section",
@@ -202,6 +203,7 @@
# image_label => "string:Name of section", # implicit
image_append => "string:Optional kernel command line parameter",
image_initrd => "path:Initial RAM disk:/boot/initrd",
+ image_optional => "bool:Skip section gracefully on errors:false",
};
my $so = $exports{"section_options"};
@@ -226,6 +228,7 @@
}
$loader->{"exports"}=\%exports;
+ return \%exports;
}
@@ -247,7 +250,7 @@
bless ($loader);
- $loader->getExports();
+ $loader->GetMetaData();
$loader->l_milestone ("PowerLILO::new: Created PowerLILO instance");
return $loader;
}
@@ -264,7 +267,6 @@
# map<string,any> GetSettings ()
sub GetSettings {
my $self = shift;
- $self->getExports();
return $self->SUPER::GetSettings();
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/perl-Bootloader-0.2.27/lib/Bootloader/Core.pm new/perl-Bootloader-0.3.1/lib/Bootloader/Core.pm
--- old/perl-Bootloader-0.2.27/lib/Bootloader/Core.pm 2006-07-11 18:51:45.000000000 +0200
+++ new/perl-Bootloader-0.3.1/lib/Bootloader/Core.pm 2006-09-29 14:22:24.000000000 +0200
@@ -1516,6 +1516,12 @@
return $ok;
}
+#
+# map<string,any> GetMetaData ()
+# sub GetMetaData() {
+# return undef;
+# }
+#
# boolean InitializeBootloader ()
# sub InitializeBootloader {
# return undef;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/perl-Bootloader-0.2.27/lib/Bootloader/Library.pm new/perl-Bootloader-0.3.1/lib/Bootloader/Library.pm
--- old/perl-Bootloader-0.2.27/lib/Bootloader/Library.pm 2006-06-02 14:38:57.000000000 +0200
+++ new/perl-Bootloader-0.3.1/lib/Bootloader/Library.pm 2006-09-29 14:22:24.000000000 +0200
@@ -19,7 +19,7 @@
C<< $obj_ref = Bootloader::Library->new (); >>
-C<< $status = Bootloader::Library->Initialize ($bootloader); >>
+C<< $status = Bootloader::Library->SetLoaderType ($bootloader); >>
C<< $status = Bootloader::Library->DefineMountPoints (\%mountpoints); >>
@@ -49,15 +49,17 @@
C<< $status Bootloader::Library->SetSettings ($settings_ref); >>
-C<< $sections_ref = Bootloader::Library->GetSections (); >>
+C<< $meta_ref = Bootloader::Library->GetMetaData (); >>
C<< $global_ref = Bootloader::Library->GetGlobalSettings (); >>
-C<< $device_map_ref = Bootloader::Library->GetDeviceMapping (); >>
+C<< $status = Bootloader::Library->SetGlobalSettings ($global_settings_ref); >>
+
+C<< $sections_ref = Bootloader::Library->GetSections (); >>
C<< $status = Bootloader::Library->SetSections ($sections_ref); >>
-C<< $status = Bootloader::Library->SetGlobalSettings ($global_settings_ref); >>
+C<< $device_map_ref = Bootloader::Library->GetDeviceMapping (); >>
C<< $status = Bootloader::Library->SetDeviceMapping ($device_map_ref); >>
@@ -103,7 +105,7 @@
}
=item
-C<< $status = Bootloader::Library->Initialize ($bootloader); >>
+C<< $status = Bootloader::Library->SetLoaderType($bootloader); >>
Initializes the library for the particular bootloader.
Takes the name of the bootloader as parameter.
@@ -111,7 +113,7 @@
EXAMPLE:
- my $status = Bootloader::Library->Initialize ("lilo");
+ my $status = Bootloader::Library->SetLoaderType ("lilo");
if (! defined ($status))
{
die "Error occurred while initalizing for LILO";
@@ -119,7 +121,7 @@
=cut
-sub Initialize {
+sub SetLoaderType {
my $self = shift;
my $bootloader = shift;
@@ -149,7 +151,7 @@
{
# FIXME: handle case 'none'
$loader = Bootloader::Core->new ($loader);
- $loader->l_error ("Bootloader::Library::Initialize: Initializing for unknown bootloader $bootloader");
+ $loader->l_error ("Bootloader::Library::SetLoaderType: Initializing for unknown bootloader $bootloader");
}
$self->{"loader"} = $loader;
@@ -626,6 +628,51 @@
}
=item
+C<< $meta_ref = Bootloader::Library->GetMetaData (); >>
+
+Gets the meta data of the bootloader describing possible setting in the config,
+its data type, default value, etc.
+Returns undef on fail.
+
+=cut
+
+sub GetMetaData {
+ my $self = shift;
+
+ my $meta_ref = $self->GetMetaData();
+ if (defined $meta_ref) {
+ return $meta_ref;
+ }
+
+ my $settings_ref = $self->GetSettings ();
+ return undef unless defined $settings_ref;
+
+ # copy the hash and add export tags
+ my %metadata=();
+ if (defined $settings_ref->{"exports"}) {
+ while ((my $key, my $value) = each ( %{$settings_ref->{"exports"}} ))
+ {
+ if (ref($value)) {
+ if (ref($value) eq "HASH") {
+ foreach my $k (keys %$value) {
+ $metadata{"%" . $key . "%" . $k} = $value->{$k};
+ }
+ }
+ elsif (ref($value) eq "ARRAY") {
+ foreach my $i (0 .. $#$value) {
+ $metadata{"#" . $key . "#" . $i} = $value->[$i];
+ }
+ }
+ }
+ else {
+ $metadata{$key} = $value;
+ }
+ }
+ }
+ return \%metadata;
+}
+
+=item
C<< $global_ref = Bootloader::Library->GetGlobalSettings (); >>
Gets the global settings of the bootloader. See the example map above TODO
@@ -652,32 +699,9 @@
return undef;
}
- # copy the hash and add export tags
+ # copy the hash and return the ref to copy
my %globals=%{$settings_ref->{"global"}|| {}};
- if (defined $settings_ref->{"exports"}) {
- # $globals{"__exports"} = %{$settings_ref->{"exports"}};
- my @exports;
-
- while ((my $key, my $value) = each ( %{$settings_ref->{"exports"}} ))
- {
- if (ref($value)) {
- if (ref($value) eq "HASH") {
- foreach my $k (keys %$value) {
- $globals{"__exports__%" . $key . "%" . $k} = $value->{$k};
- }
- }
- elsif (ref($value) eq "ARRAY") {
- foreach my $i (0 .. $#$value) {
- $globals{"__exports__#" . $key . "#" . $i} = $value->[$i];
- }
- }
- }
- else {
- $globals{"__exports__" . $key} = $value;
- }
- }
- }
return \%globals;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/perl-Bootloader-0.2.27/lib/Bootloader/Tools.pm new/perl-Bootloader-0.3.1/lib/Bootloader/Tools.pm
--- old/perl-Bootloader-0.2.27/lib/Bootloader/Tools.pm 2006-08-01 13:57:13.000000000 +0200
+++ new/perl-Bootloader-0.3.1/lib/Bootloader/Tools.pm 2006-09-29 14:22:24.000000000 +0200
@@ -288,7 +288,7 @@
my $part = ReadPartitions ();
my $md = ReadRAID1Arrays ();
- $lib_ref->Initialize (GetBootloader ());
+ $lib_ref->SetLoaderType (GetBootloader ());
$lib_ref->DefineMountPoints ($mp);
$lib_ref->DefinePartitions ($part);
$lib_ref->DefineMDArrays ($md);
++++++ update-bootloader ++++++
--- perl-Bootloader/update-bootloader 2006-06-12 17:19:01.000000000 +0200
+++ /mounts/work_src_done/STABLE/perl-Bootloader/update-bootloader 2006-09-19 17:32:10.000000000 +0200
@@ -60,6 +60,10 @@
specify path to kernel image
+=item B<--initrd> F<file>
+
+specify path to initrd file
+
=item B<--xen>
specify that you what to add a xen and not a regular image section
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org
1
0