summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-12-30 19:59:37 +0000
committerjbj <devnull@localhost>2000-12-30 19:59:37 +0000
commitb9145eabe09db09a56c9daf3006426b08182d848 (patch)
tree28e94bc8210eb7176559b7982af71c5e03c5c2a1
parente5899585adb06bc6d934b6a571c6778710a334a6 (diff)
downloadrpm-b9145eabe09db09a56c9daf3006426b08182d848.tar.gz
rpm-b9145eabe09db09a56c9daf3006426b08182d848.tar.bz2
rpm-b9145eabe09db09a56c9daf3006426b08182d848.zip
- (popt): fix float/double handling (#19701).
- (popt): non-linux needs <float.h> (#22732). CVS patchset: 4390 CVS date: 2000/12/30 19:59:37
-rw-r--r--CHANGES2
-rw-r--r--configure.in3
-rwxr-xr-xpopt/configure.in2
-rw-r--r--popt/po/cs.po2
-rw-r--r--popt/po/da.po2
-rw-r--r--popt/po/de.po2
-rw-r--r--popt/po/es.po2
-rw-r--r--popt/po/fi.po2
-rw-r--r--popt/po/fr.po2
-rw-r--r--popt/po/gl.po2
-rw-r--r--popt/po/hu.po2
-rw-r--r--popt/po/id.po2
-rw-r--r--popt/po/is.po2
-rw-r--r--popt/po/it.po2
-rw-r--r--popt/po/ja.po2
-rw-r--r--popt/po/ko.po2
-rw-r--r--popt/po/no.po2
-rw-r--r--popt/po/pl.po2
-rw-r--r--popt/po/popt.pot2
-rw-r--r--popt/po/pt.po2
-rw-r--r--popt/po/pt_BR.po2
-rw-r--r--popt/po/ro.po2
-rw-r--r--popt/po/ru.po2
-rw-r--r--popt/po/sk.po2
-rw-r--r--popt/po/sl.po2
-rw-r--r--popt/po/sr.po2
-rw-r--r--popt/po/sv.po2
-rw-r--r--popt/po/tr.po2
-rw-r--r--popt/po/uk.po2
-rw-r--r--popt/po/wa.po2
-rw-r--r--popt/po/zh.po2
-rw-r--r--popt/po/zh_CN.GB2312.po2
-rw-r--r--popt/popt.c5
33 files changed, 39 insertions, 31 deletions
diff --git a/CHANGES b/CHANGES
index 86deb135b..6570e8da2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -84,6 +84,8 @@
- rpmmodule.c(handleDbResult): return empty list when nothing matches.
- (non-linux): move stubs.c to rpmio (#21132).
- (python): bind initdb (#20988).
+ - (popt): fix float/double handling (#19701).
+ - (popt): non-linux needs <float.h> (#22732).
3.0.6 -> 4.0
- use DIRNAMES/BASENAMES/DIRINDICES not FILENAMES in packages and db.
diff --git a/configure.in b/configure.in
index cc391baa1..8c5c62efb 100644
--- a/configure.in
+++ b/configure.in
@@ -436,6 +436,9 @@ AC_CHECK_HEADERS(sys/mount.h sys/mntctl.h sys/param.h sys/vmount.h)
AC_CHECK_HEADERS(bzlib.h libio.h zlib.h)
AC_CHECK_HEADERS(err.h mcheck.h)
+dnl popt w float/double needs.
+AC_CHECK_HEADERS(float.h)
+
dnl whether or not we should try to build rpmgettext/rpmputtext.
if test X"$USE_NLS" = Xyes; then
BUILD_RPMNLSTOOLS="rpmgettext rpmputtext"
diff --git a/popt/configure.in b/popt/configure.in
index 9c6ddac22..b484c87ec 100755
--- a/popt/configure.in
+++ b/popt/configure.in
@@ -48,7 +48,7 @@ else
fi
AC_SUBST(TARGET)
-AC_CHECK_HEADERS(alloca.h libintl.h mcheck.h unistd.h)
+AC_CHECK_HEADERS(alloca.h float.h libintl.h mcheck.h unistd.h)
AC_MSG_CHECKING(for /usr/ucblib in LIBS)
if test -d /usr/ucblib ; then
if test "$build" = "mips-sni-sysv4" ; then
diff --git a/popt/po/cs.po b/popt/po/cs.po
index 31b10cdbb..d81453bdf 100644
--- a/popt/po/cs.po
+++ b/popt/po/cs.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-08-23 22:24+0100\n"
"Last-Translator: Milan Kerslager <milan.kerslager@spsselib.hiedu.cz>\n"
"Language-Team: Czech <cs@li.org>\n"
diff --git a/popt/po/da.po b/popt/po/da.po
index 346a40345..ab784a524 100644
--- a/popt/po/da.po
+++ b/popt/po/da.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-03-07 05:17+01:00\n"
"Last-Translator: K. Christiansen <kenneth@gnu.org>\n"
"Language-Team: Danish/Dansk <dansk@klid.dk>\n"
diff --git a/popt/po/de.po b/popt/po/de.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/de.po
+++ b/popt/po/de.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/es.po b/popt/po/es.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/es.po
+++ b/popt/po/es.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/fi.po b/popt/po/fi.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/fi.po
+++ b/popt/po/fi.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/fr.po b/popt/po/fr.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/fr.po
+++ b/popt/po/fr.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/gl.po b/popt/po/gl.po
index 9f5848411..989e96354 100644
--- a/popt/po/gl.po
+++ b/popt/po/gl.po
@@ -10,7 +10,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-01-06 20:31+0100\n"
"Last-Translator: Jesús Bravo Álvarez <jba@pobox.com>\n"
"Language-Team: Galician <gpul-traduccion@ceu.fi.udc.es>\n"
diff --git a/popt/po/hu.po b/popt/po/hu.po
index a3abdb364..22b953f0d 100644
--- a/popt/po/hu.po
+++ b/popt/po/hu.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-08-03 23:26+0200\n"
"Last-Translator: László Németh <nemeth@qwertynet.hu>\n"
"Language-Team: Hungarian\n"
diff --git a/popt/po/id.po b/popt/po/id.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/id.po
+++ b/popt/po/id.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/is.po b/popt/po/is.po
index 2d9759fa3..2e582b259 100644
--- a/popt/po/is.po
+++ b/popt/po/is.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-06-16 02:12+0000\n"
"Last-Translator: Richard Allen <ra@hp.is>\n"
"Language-Team: is <kde-isl@mmedia.is>\n"
diff --git a/popt/po/it.po b/popt/po/it.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/it.po
+++ b/popt/po/it.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/ja.po b/popt/po/ja.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/ja.po
+++ b/popt/po/ja.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/ko.po b/popt/po/ko.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/ko.po
+++ b/popt/po/ko.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/no.po b/popt/po/no.po
index bf8e74265..4443b9847 100644
--- a/popt/po/no.po
+++ b/popt/po/no.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-06-21 16:11+02:00\n"
"Last-Translator: Kjartan Maraas <kmaraas@online.no>\n"
"Language-Team: Norwegian <no@li.org>\n"
diff --git a/popt/po/pl.po b/popt/po/pl.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/pl.po
+++ b/popt/po/pl.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/popt.pot b/popt/po/popt.pot
index b15489b25..4fb4a861d 100644
--- a/popt/po/popt.pot
+++ b/popt/po/popt.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/pt.po b/popt/po/pt.po
index 2bd6434d3..398e7f799 100644
--- a/popt/po/pt.po
+++ b/popt/po/pt.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-06-22 01:02+01:00\n"
"Last-Translator: Pedro Morais <morais@kde.org>\n"
"Language-Team: pt <morais@kde.org>\n"
diff --git a/popt/po/pt_BR.po b/popt/po/pt_BR.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/pt_BR.po
+++ b/popt/po/pt_BR.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/ro.po b/popt/po/ro.po
index e374d86f6..cf36c526d 100644
--- a/popt/po/ro.po
+++ b/popt/po/ro.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-06-14 23:23+EST\n"
"Last-Translator: Cristian Gafton <gafton@redhat.com>\n"
"Language-Team: Romanian <ro@li.org>\n"
diff --git a/popt/po/ru.po b/popt/po/ru.po
index 60098eeff..692381b3a 100644
--- a/popt/po/ru.po
+++ b/popt/po/ru.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-08-13 21:00+0300\n"
"Last-Translator: Leon Kanter <leon@blackcatlinux.com>\n"
"Language-Team: Black Cat Linux Team <blackcat-support@blackcatlinux.com>\n"
diff --git a/popt/po/sk.po b/popt/po/sk.po
index de2d3474a..1a7cf7a3b 100644
--- a/popt/po/sk.po
+++ b/popt/po/sk.po
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 1999-08-04 21:40+0200\n"
"Last-Translator: Stanislav Meduna <stano@eunet.sk>\n"
"Language-Team: Slovak <sk-i18n@rak.isternet.sk>\n"
diff --git a/popt/po/sl.po b/popt/po/sl.po
index 293933171..35071edbe 100644
--- a/popt/po/sl.po
+++ b/popt/po/sl.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-09-05 12:30+0200\n"
"Last-Translator: Roman Maurer <roman.maurer@hermes.si>\n"
"Language-Team: Slovenian <sl@li.org>\n"
diff --git a/popt/po/sr.po b/popt/po/sr.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/sr.po
+++ b/popt/po/sr.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/sv.po b/popt/po/sv.po
index bd5f15728..32fd97d91 100644
--- a/popt/po/sv.po
+++ b/popt/po/sv.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-06-20 00:07+0200\n"
"Last-Translator: Christian Rose <menthos@menthos.com>\n"
"Language-Team: Swedish <sv@li.org>\n"
diff --git a/popt/po/tr.po b/popt/po/tr.po
index 2e56a9163..8e5c43d3e 100644
--- a/popt/po/tr.po
+++ b/popt/po/tr.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 2000-01-06 13:01+0100\n"
"Last-Translator: Görkem Çetin <kabalak@gmx.net>\n"
"Language-Team: Gelecek A.Ţ <gorkem@gelecek.com.tr>\n"
diff --git a/popt/po/uk.po b/popt/po/uk.po
index b4ea03266..94d689028 100644
--- a/popt/po/uk.po
+++ b/popt/po/uk.po
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 1999-09-30 16:54+0200\n"
"Last-Translator: Yuri Syrota <rasta@renome.rovno.ua>\n"
"Language-Team: Ukrainian <uk@li.org>\n"
diff --git a/popt/po/wa.po b/popt/po/wa.po
index d054d3982..8731d70fb 100644
--- a/popt/po/wa.po
+++ b/popt/po/wa.po
@@ -9,7 +9,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 1999-03-18 23:11+0100\n"
"Last-Translator: Nobody yet\n"
"Language-Team: walon <linux-wa@chanae.alphanet.ch>\n"
diff --git a/popt/po/zh.po b/popt/po/zh.po
index 4c4d98f9d..35c422612 100644
--- a/popt/po/zh.po
+++ b/popt/po/zh.po
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/popt/po/zh_CN.GB2312.po b/popt/po/zh_CN.GB2312.po
index 3e7a016c3..4459f615a 100644
--- a/popt/po/zh_CN.GB2312.po
+++ b/popt/po/zh_CN.GB2312.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: popt 1.6.1\n"
-"POT-Creation-Date: 2000-12-19 18:05-0500\n"
+"POT-Creation-Date: 2000-12-30 14:24-0500\n"
"PO-Revision-Date: 1999-11-11 05:04+0800\n"
"Last-Translator: Dillion Chen <dillon.chen@turbolinux.com.cn>\n"
"Language-Team: TLDN\n"
diff --git a/popt/popt.c b/popt/popt.c
index 6c4100cef..79bfdaaa0 100644
--- a/popt/popt.c
+++ b/popt/popt.c
@@ -10,6 +10,9 @@
#include "system.h"
+#if HAVE_FLOAT_H
+#include <float.h>
+#endif
#include <math.h>
#include "findme.h"
@@ -716,7 +719,7 @@ int poptGetNextOpt(poptContext con)
case POPT_ARG_FLOAT:
case POPT_ARG_DOUBLE:
- { long aDouble;
+ { double aDouble;
char *end;
aDouble = strtod(con->os->nextArg, &end);