NetBSD Problem Report #48070
From www@NetBSD.org Sat Jul 20 00:36:31 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 3DC3E71E45
for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Jul 2013 00:36:31 +0000 (UTC)
Message-Id: <20130720003629.CF7AF71E46@mollari.NetBSD.org>
Date: Sat, 20 Jul 2013 00:36:29 +0000 (UTC)
From: nullnilaki@gmail.com
Reply-To: nullnilaki@gmail.com
To: gnats-bugs@NetBSD.org
Subject: The printf width specifier z should be used to format that type(MISSING_SIZE_T_SUPPORT)
X-Send-Pr-Version: www-1.0
>Number: 48070
>Category: pkg
>Synopsis: The printf width specifier z should be used to format that type(MISSING_SIZE_T_SUPPORT)
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: agc
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 20 00:40:00 +0000 2013
>Closed-Date: Mon Aug 05 23:53:18 +0000 2013
>Last-Modified: Mon Aug 05 23:53:18 +0000 2013
>Originator: nullnilaki
>Release:
>Organization:
japan
>Environment:
>Description:
1:core dumped
#pkg_admin rebuild Segmentation fault (core dumped)
2:debug
(gdb) where
#0 0x48162fd6 in __svfprintf () from /shlib/libc.so.2
#1 0x48165592 in vfprintf () from /shlib/libc.so.2
...
#4 0x48161824 in printf () from /shlib/libc.so.2
#5 0x804c3ba in rebuild ()
3:source
pkgtools/pkg_install/files/admin/main.c
rebuild(void)
{
printf("Stored %" PRIzu " file%s and %zu explicit director%s"
}
4:configure
*-*-hpux*)
$as_echo "#define MISSING_SIZE_T_SUPPORT 1" >>confdefs.h
5:macro
#ifndef MISSING_SIZE_T_SUPPORT
# define PRIzu "zu"
#elif SIZEOF_SIZE_T == SIZEOF_INT
# define PRIzu "u"
#elif SIZEOF_SIZE_T == SIZEOF_LONG
# define PRIzu "lu"
#elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG
# define PRIzu "llu"
#else
# errror "Unknown size_t size"
#endif
6:summary
The printf width specifier z should be used to format that type.
But some platform do not support z.
>How-To-Repeat:
>Fix:
printf("Stored %" PRIzu " file%s and %" PRIzu " explicit director%s"
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->agc
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sat, 20 Jul 2013 07:13:08 +0000
Responsible-Changed-Why:
Over to maintainer.
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48070: The printf width specifier z should be used to format
that type(MISSING_SIZE_T_SUPPORT)
Date: Wed, 24 Jul 2013 21:06:29 +0900
On Sat, 20 Jul 2013 09:40:00 +0900, <nullnilaki@gmail.com> wrote:
>> Release:
On what platform are you doing?
HP-UX? or other proposed MISSING_SIZE_T_SUPPORT platforms?
--
OBATA Akio / obache@NetBSD.org
From: =?ISO-2022-JP?B?GyRCOT5JWTh5Ty8bKEI=?= <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: agc@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/48070: The printf width specifier z should be used to format
that type(MISSING_SIZE_T_SUPPORT)
Date: Thu, 25 Jul 2013 02:55:19 +0900
--089e01493384e02ece04e2459cb1
Content-Type: text/plain; charset=ISO-8859-1
Konbanwa!
Thank you for your mail!
>On what platform are you doing?
>HP-UX? or other proposed MISSING_SIZE_T_SUPPORT platforms?
HP-UX B.11.11 U 9000/785 2257270770 unlimited-user license
pkg_admin rebuild
Stored 45 files and zu explicit director from 112644 pSegmentation fault
(core dumped)
and
BSD/OS 4.3 BSDI BSD/OS 4.3 Kernel #0: Thu Oct 4 09:41:46 MDT 2001
polk@hephaestus.DELOS.COM:/mnt/proto/4.3-i386/usr/src/sys/compile/GENERIC
i386
pkg_admin rebuild Segmentation fault (core dumped)
I think this problem is platform independent.
I think arguments of a printf function should consistently use PRIzu format
macro because due to its portability.
By now, I guess you get used to my funny English writing...
That's very nice of you!
--
Naruaki Etomi / nullnilaki@gmail.com
2013/7/24 OBATA Akio <obache@netbsd.org>
> The following reply was made to PR pkg/48070; it has been noted by GNATS.
>
> From: "OBATA Akio" <obache@netbsd.org>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/48070: The printf width specifier z should be used to
> format
> that type(MISSING_SIZE_T_SUPPORT)
> Date: Wed, 24 Jul 2013 21:06:29 +0900
>
> On Sat, 20 Jul 2013 09:40:00 +0900, <nullnilaki@gmail.com> wrote:
>
> >> Release:
>
> On what platform are you doing?
> HP-UX? or other proposed MISSING_SIZE_T_SUPPORT platforms?
>
> --
> OBATA Akio / obache@NetBSD.org
>
>
--089e01493384e02ece04e2459cb1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Konbanwa!<br>
<br>
Thank you for your mail!<br><br>>On what platform are you doing?<br>
>HP-UX? or other proposed MISSING_SIZE_T_SUPPORT platforms?<br><br>HP-UX=
B.11.11 U 9000/785 2257270770 unlimited-user license<br>pkg_admin rebuild<=
br>Stored 45 files and zu explicit director from 112644 pSegmentation fault=
(core dumped)<br>
</div>and<br>BSD/OS 4.3 BSDI BSD/OS 4.3 Kernel #0: Thu Oct=A0 4 09:41:46 MD=
T 2001=A0=A0=A0=A0 polk@hephaestus.DELOS.COM:/mnt/proto/4.3-i386/usr/src/sy=
s/compile/GENERIC=A0 i386<br><div>pkg_admin rebuild Segmentation fault (cor=
e dumped)<br>
<br>I think this problem is platform independent.<br>I think arguments of a=
printf function should consistently use PRIzu format macro because due to =
its portability.<br><br>By now, I guess you get used to my funny English wr=
iting...<br>
<br>That's very nice of you! <br>--<br></div><div>Naruaki Etomi / <span=
name=3D"nullnilaki@gmail.com" class=3D""><a href=3D"mailto:nullnilaki@gmai=
l.com">nullnilaki@gmail.com</a></span></div></div><div class=3D"gmail_extra=
"><br>
<br><div class=3D"gmail_quote">2013/7/24 OBATA Akio <span dir=3D"ltr"><<=
a href=3D"mailto:obache@netbsd.org" target=3D"_blank">obache@netbsd.org</a>=
></span><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex">
The following reply was made to PR pkg/48070; it has been noted by GNATS.<b=
r>
<br>
From: "OBATA Akio" <<a href=3D"mailto:obache@netbsd.org">obach=
e@netbsd.org</a>><br>
To: <a href=3D"mailto:gnats-bugs@netbsd.org">gnats-bugs@netbsd.org</a><br>
Cc:<br>
Subject: Re: pkg/48070: The printf width specifier z should be used to form=
at<br>
=A0that type(MISSING_SIZE_T_SUPPORT)<br>
Date: Wed, 24 Jul 2013 21:06:29 +0900<br>
<br>
=A0On Sat, 20 Jul 2013 09:40:00 +0900, <<a href=3D"mailto:nullnilaki@gma=
il.com">nullnilaki@gmail.com</a>> wrote:<br>
<br>
=A0>> Release:<br>
<br>
=A0On what platform are you doing?<br>
=A0HP-UX? or other proposed MISSING_SIZE_T_SUPPORT platforms?<br>
<br>
=A0--<br>
=A0OBATA Akio / obache@NetBSD.org<br>
<br>
</blockquote></div><br></div>
--089e01493384e02ece04e2459cb1--
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48070: The printf width specifier z should be used to format
that type(MISSING_SIZE_T_SUPPORT)
Date: Thu, 25 Jul 2013 20:17:43 +0900
So, there are two problem:
1. BSD/OS is also missing `z' modifier support for printf(3) format.
2. bare `zu' modifier is used, it should be replaced with `PRIzu` instead.
OK?
Then, following patch should resolve those issues.
Could you confirm it?
Index: files/configure
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_install/files/configure,v
retrieving revision 1.38
diff -u -p -r1.38 configure
--- files/configure 10 Feb 2013 12:46:56 -0000 1.38
+++ files/configure 25 Jul 2013 11:14:09 -0000
@@ -5034,7 +5034,7 @@ _ACEOF
case $host in
-*-*-hpux*)
+*-*-bsdi*|*-*-hpux*)
$as_echo "#define MISSING_SIZE_T_SUPPORT 1" >>confdefs.h
Index: files/configure.ac
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_install/files/configure.ac,v
retrieving revision 1.37
diff -u -p -r1.37 configure.ac
--- files/configure.ac 10 Feb 2013 12:46:56 -0000 1.37
+++ files/configure.ac 25 Jul 2013 11:14:09 -0000
@@ -133,7 +133,7 @@ AC_CHECK_SIZEOF(long long)
AC_CHECK_SIZEOF(size_t, [#include <stdlib.h>])
case $host in
-*-*-hpux*)
+*-*-bsdi*|*-*-hpux*)
AC_DEFINE(MISSING_SIZE_T_SUPPORT)
AH_TEMPLATE([MISSING_SIZE_T_SUPPORT], [
Define to 1 if the `z' modifider for printf is missing.
Index: files/admin/main.c
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_install/files/admin/main.c,v
retrieving revision 1.61
diff -u -p -r1.61 main.c
--- files/admin/main.c 20 Apr 2010 00:39:13 -0000 1.61
+++ files/admin/main.c 25 Jul 2013 11:14:09 -0000
@@ -248,7 +248,7 @@ rebuild(void)
iterate_pkg_db(add_pkg, &count);
printf("\n");
- printf("Stored %" PRIzu " file%s and %zu explicit director%s"
+ printf("Stored %" PRIzu " file%s and %" PRIzu " explicit director%s"
" from %"PRIzu " package%s in %s.\n",
count.files, count.files == 1 ? "" : "s",
count.directories, count.directories == 1 ? "y" : "ies",
--
OBATA Akio / obache@NetBSD.org
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48070: The printf width specifier z should be used to format
that type(MISSING_SIZE_T_SUPPORT)
Date: Thu, 25 Jul 2013 18:43:22 +0200
On Thu, Jul 25, 2013 at 11:20:00AM +0000, OBATA Akio wrote:
> So, there are two problem:
>
> 1. BSD/OS is also missing `z' modifier support for printf(3) format.
> 2. bare `zu' modifier is used, it should be replaced with `PRIzu` instead.
>
> OK?
>
> Then, following patch should resolve those issues.
> Could you confirm it?
Patch looks good. After confirmation & commit, please request a pull up.
Joerg
From: =?ISO-2022-JP?B?GyRCOT5JWTh5Ty8bKEI=?= <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: agc@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
joerg@britannica.bec.de, obache@netbsd.org
Subject: Re: pkg/48070: The printf width specifier z should be used to format
that type(MISSING_SIZE_T_SUPPORT)
Date: Fri, 26 Jul 2013 03:43:22 +0900
--001a11c242aa8e4bd204e25a6619
Content-Type: text/plain; charset=ISO-8859-1
Konbanwa!
Thank you for your mail!
> Then, following patch should resolve those issues.
> Could you confirm it?
I carry out a test.
HP-UX
pkg_admin rebuild
Stored 45 files and 0 explicit directories from 6 packages in
/home/bootstrap/.db/pkgdb.byfile.db.
Done.
and
BSD/OS
Stored 42 files and 0 explicit directories from 4 packages in
/usr/pkgsrc/bootstrap/.db/pkgdb.byfile.db.
Done.
It worked fine!!
I am very pleased.
That's very nice of you!
--
Naruaki Etomi / nullnilaki@gmail.com
2013/7/26 Joerg Sonnenberger <joerg@britannica.bec.de>
> The following reply was made to PR pkg/48070; it has been noted by GNATS.
>
> From: Joerg Sonnenberger <joerg@britannica.bec.de>
> To: gnats-bugs@NetBSD.org
> Cc:
> Subject: Re: pkg/48070: The printf width specifier z should be used to
> format
> that type(MISSING_SIZE_T_SUPPORT)
> Date: Thu, 25 Jul 2013 18:43:22 +0200
>
> On Thu, Jul 25, 2013 at 11:20:00AM +0000, OBATA Akio wrote:
> > So, there are two problem:
> >
> > 1. BSD/OS is also missing `z' modifier support for printf(3) format.
> > 2. bare `zu' modifier is used, it should be replaced with `PRIzu`
> instead.
> >
> > OK?
> >
> > Then, following patch should resolve those issues.
> > Could you confirm it?
>
> Patch looks good. After confirmation & commit, please request a pull up.
>
> Joerg
>
>
--001a11c242aa8e4bd204e25a6619
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he=
lvetica,sans-serif">Konbanwa!<br>
<br>
Thank you for your mail!<br><br>> =A0Then, following patch should resolv=
e those issues.<br>
> =A0Could you confirm it?<br><br>=A0I carry out a test.<br><br>HP-UX<br=
>pkg_admin rebuild<br>Stored 45 files and 0 explicit directories from 6 pac=
kages in /home/bootstrap/.db/pkgdb.byfile.db.<br>Done.<br><br>and<br><br>BS=
D/OS<br>
Stored 42 files and 0 explicit directories from 4 packages in /usr/pkgsrc/b=
ootstrap/.db/pkgdb.byfile.db.<br>Done.<br><br>It worked fine!!<br>I am very=
pleased.<br><br>That's very nice of you!<br>
=A0--<br>
=A0Naruaki Etomi / <a href=3D"mailto:nullnilaki@gmail.com">nullnilaki@gmail=
.com</a><br>
</div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">2=
013/7/26 Joerg Sonnenberger <span dir=3D"ltr"><<a href=3D"mailto:joerg@b=
ritannica.bec.de" target=3D"_blank">joerg@britannica.bec.de</a>></span><=
br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left=
:1px #ccc solid;padding-left:1ex">
The following reply was made to PR pkg/48070; it has been noted by GNATS.<b=
r>
<br>
From: Joerg Sonnenberger <<a href=3D"mailto:joerg@britannica.bec.de">joe=
rg@britannica.bec.de</a>><br>
To: gnats-bugs@NetBSD.org<br>
Cc:<br>
Subject: Re: pkg/48070: The printf width specifier z should be used to form=
at<br>
=A0that type(MISSING_SIZE_T_SUPPORT)<br>
Date: Thu, 25 Jul 2013 18:43:22 +0200<br>
<br>
=A0On Thu, Jul 25, 2013 at 11:20:00AM +0000, OBATA Akio wrote:<br>
=A0> =A0So, there are two problem:<br>
=A0><br>
=A0> =A01. BSD/OS is also missing `z' modifier support for printf(3)=
format.<br>
=A0> =A02. bare `zu' modifier is used, it should be replaced with `P=
RIzu` instead.<br>
=A0><br>
=A0> =A0OK?<br>
=A0><br>
=A0> =A0Then, following patch should resolve those issues.<br>
=A0> =A0Could you confirm it?<br>
<br>
=A0Patch looks good. After confirmation & commit, please request a pull=
up.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
=A0Joerg<br>
<br>
</font></span></blockquote></div><br></div>
--001a11c242aa8e4bd204e25a6619--
From: =?ISO-2022-JP?B?GyRCOT5JWTh5Ty8bKEI=?= <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: agc@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/48070: The printf width specifier z should be used to format
that type(MISSING_SIZE_T_SUPPORT)
Date: Sat, 27 Jul 2013 12:23:59 +0900
--bcaec520eab147f6d104e275ca05
Content-Type: text/plain; charset=ISO-8859-1
Konnichiwa!
Thank you for your mail!
Please add OSF/1 to your Change list.
=================================================================================================================================================
uname -a OSF1 V5.1 2650 alpha
>cat test.c
#include <stdio.h>
int main(void){
char c;
printf("%zu, %zu", sizeof c, sizeof (int));
return 0;
}
> cc test.c
cc: Warning: test.c, line 5: In this statement, this argument to printf has
a conversion specification "%zu" that is not supported or not fully
supported on this platform. (unsupconvspec)
printf("%zu, %zu", sizeof c, sizeof (int));
---------------------------^
cc: Warning: test.c, line 5: In this statement, this argument to printf has
a conversion specification "%zu" that is not supported or not fully
supported on this platform. (unsupconvspec)
printf("%zu, %zu", sizeof c, sizeof (int));
-------------------------------------^
> ./a.out
zu, zu>
===================================================================================================================================================
That's very nice of you!
--
Naruaki Etomi / nullnilaki@gmail.com
--bcaec520eab147f6d104e275ca05
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: base64
PGRpdiBkaXI9Imx0ciI+PGRpdiBjbGFzcz0iZ21haWxfZGVmYXVsdCIgc3R5bGU9ImZvbnQtZmFt
aWx5OmFyaWFsLGhlbHZldGljYSxzYW5zLXNlcmlmIj6gS29ubmljaGl3YSE8YnI+DQo8YnI+DQqg
VGhhbmsgeW91IGZvciB5b3VyIG1haWwhPGJyPjxicj48L2Rpdj48ZGl2IGNsYXNzPSJnbWFpbF9k
ZWZhdWx0IiBzdHlsZT0iZm9udC1mYW1pbHk6YXJpYWwsaGVsdmV0aWNhLHNhbnMtc2VyaWYiPlBs
ZWFzZSBhZGQgT1NGLzEgdG8geW91ciBDaGFuZ2UgbGlzdC48YnI+PGJyPj09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT08YnI+DQo8YnI+dW5hbWUgLWEgT1NGMSBWNS4xIDI2NTAgYWxwaGE8
YnI+PGJyPiZndDtjYXQgdGVzdC5jPGJyPiNpbmNsdWRlICZsdDtzdGRpby5oJmd0Ozxicj48YnI+
aW50IG1haW4odm9pZCl7PGJyPqCgoCBjaGFyIGM7PGJyPqCgoCBwcmludGYoJnF1b3Q7JXp1LCAl
enUmcXVvdDssIHNpemVvZiBjLCBzaXplb2YgKGludCkpOzxicj6goKAgcmV0dXJuIDA7PGJyPn08
YnI+PGJyPiZndDsgY2MgdGVzdC5jPGJyPg0KY2M6IFdhcm5pbmc6IHRlc3QuYywgbGluZSA1OiBJ
biB0aGlzIHN0YXRlbWVudCwgdGhpcyBhcmd1bWVudCB0byBwcmludGYgaGFzIGEgY29udmVyc2lv
biBzcGVjaWZpY2F0aW9uICZxdW90OyV6dSZxdW90OyB0aGF0IGlzIG5vdCBzdXBwb3J0ZWQgb3Ig
bm90IGZ1bGx5IHN1cHBvcnRlZCBvbiB0aGlzIHBsYXRmb3JtLiAodW5zdXBjb252c3BlYyk8YnI+
oKCgIHByaW50ZigmcXVvdDslenUsICV6dSZxdW90Oywgc2l6ZW9mIGMsIHNpemVvZiAoaW50KSk7
PGJyPg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXjxicj5jYzogV2FybmluZzogdGVzdC5j
LCBsaW5lIDU6IEluIHRoaXMgc3RhdGVtZW50LCB0aGlzIGFyZ3VtZW50IHRvIHByaW50ZiBoYXMg
YSBjb252ZXJzaW9uIHNwZWNpZmljYXRpb24gJnF1b3Q7JXp1JnF1b3Q7IHRoYXQgaXMgbm90IHN1
cHBvcnRlZCBvciBub3QgZnVsbHkgc3VwcG9ydGVkIG9uIHRoaXMgcGxhdGZvcm0uICh1bnN1cGNv
bnZzcGVjKTxicj4NCqCgoCBwcmludGYoJnF1b3Q7JXp1LCAlenUmcXVvdDssIHNpemVvZiBjLCBz
aXplb2YgKGludCkpOzxicj4tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXjxi
cj4mZ3Q7IC4vYS5vdXQ8YnI+enUsIHp1Jmd0OyA8YnI+PGJyPj09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PTxicj4NCjxicj5UaGF0JiMzOTtzIHZlcnkgbmljZSBvZiB5b3UhIDxicj4t
LTxicj48ZGl2Pk5hcnVha2kgRXRvbWkgLyA8c3BhbiBuYW1lPSJudWxsbmlsYWtpQGdtYWlsLmNv
bSI+PGEgaHJlZj0ibWFpbHRvOm51bGxuaWxha2lAZ21haWwuY29tIiB0YXJnZXQ9Il9ibGFuayI+
bnVsbG5pbGFraUBnbWFpbC5jb208L2E+PC9zcGFuPjwvZGl2Pg0KPGJyPg0KPGJyPg0KPC9kaXY+
PC9kaXY+DQo=
--bcaec520eab147f6d104e275ca05--
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48070 CVS commit: pkgsrc/pkgtools/pkg_install/files
Date: Sat, 3 Aug 2013 11:45:14 +0000
Module Name: pkgsrc
Committed By: obache
Date: Sat Aug 3 11:45:14 UTC 2013
Modified Files:
pkgsrc/pkgtools/pkg_install/files: configure configure.ac
pkgsrc/pkgtools/pkg_install/files/admin: main.c
Log Message:
* BSD/OS and OSF/1 are also missing `z' modifier support for printf(3) format.
* bare `zu' modifier is used, it should be replaced with `PRIzu` instead.
Fixes crash with `pkg_admin rebuild' on platforms missing %z support,
PR pkg/48070.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/pkgtools/pkg_install/files/configure
cvs rdiff -u -r1.37 -r1.38 pkgsrc/pkgtools/pkg_install/files/configure.ac
cvs rdiff -u -r1.61 -r1.62 pkgsrc/pkgtools/pkg_install/files/admin/main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Sat, 03 Aug 2013 12:06:52 +0000
State-Changed-Why:
Should be fixed on BSD/OS, HP-UX and OSF/1.
Could you confirm and feedback?
From: =?ISO-2022-JP?B?GyRCOT5JWTh5Ty8bKEI=?= <nullnilaki@gmail.com>
To: gnats-bugs@netbsd.org
Cc: agc@netbsd.org, obache@netbsd.org, joerg@britannica.bec.de
Subject: Re: pkg/48070 (The printf width specifier z should be used to format
that type(MISSING_SIZE_T_SUPPORT))
Date: Tue, 6 Aug 2013 06:13:29 +0900
Konbanwa!
Thank you for your mail!
>Should be fixed on BSD/OS, HP-UX and OSF/1.
>Could you confirm and feedback?
It worked fine!!
I am very pleased.
That's very nice of you!
--
Naruaki Etomi / nullnilaki@gmail.com
State-Changed-From-To: feedback->closed
State-Changed-By: obache@NetBSD.org
State-Changed-When: Mon, 05 Aug 2013 23:53:18 +0000
State-Changed-Why:
Confirmed fixed. Thanks!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.