Bug#848077: dateutils FTBFS on many architectures with parallel build issues

2016-12-14 Thread Dr. Tobias Quathamer

Am 13.12.2016 um 21:26 schrieb Adrian Bunk:

Source: dateutils
Version: 0.4.0-1
Severity: serious

I haven't been able to reproduce this, but I assume passing
--no-parallel to dh should be enough to workaround it.


Thank you very much for this hint, I've just uploaded a new version to 
unstable.


Regards,
Tobias




signature.asc
Description: OpenPGP digital signature


Bug#848077: marked as done (dateutils FTBFS on many architectures with parallel build issues)

2016-12-14 Thread Debian Bug Tracking System
Your message dated Wed, 14 Dec 2016 09:03:45 +
with message-id 
and subject line Bug#848077: fixed in dateutils 0.4.0-2
has caused the Debian Bug report #848077,
regarding dateutils FTBFS on many architectures with parallel build issues
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
848077: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848077
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: dateutils
Version: 0.4.0-1
Severity: serious

I haven't been able to reproduce this, but I assume passing
--no-parallel to dh should be enough to workaround it.
--- End Message ---
--- Begin Message ---
Source: dateutils
Source-Version: 0.4.0-2

We believe that the bug you reported is fixed in the latest version of
dateutils, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 848...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dr. Tobias Quathamer  (supplier of updated dateutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Format: 1.8
Date: Wed, 14 Dec 2016 09:36:46 +0100
Source: dateutils
Binary: dateutils
Architecture: source
Version: 0.4.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group 
Changed-By: Dr. Tobias Quathamer 
Description:
 dateutils  - nifty command line date and time utilities
Closes: 848077
Changes:
 dateutils (0.4.0-2) unstable; urgency=medium
 .
   * QA upload.
   * Add --no-parallel to fix FTBFS on multiple archs.
 Thanks to Adrian Bunk  (Closes: #848077)
Checksums-Sha1:
 98a590bb1ff86d2760a41ad580d0f0dbd37977c5 1926 dateutils_0.4.0-2.dsc
 503d511482e027806facc912f28d299239250185 4376 dateutils_0.4.0-2.debian.tar.xz
Checksums-Sha256:
 d50e125b029308f1eafd5c3b07391506872a6bd60b03f8535e14bb6f6292e222 1926 
dateutils_0.4.0-2.dsc
 5df5d7e4d984d38769a625fa9f1ebeb0d3be5e292a3e3df6b35f7b99be45d1e4 4376 
dateutils_0.4.0-2.debian.tar.xz
Files:
 4c7c96f8e139b94094acbf92f0a5b54b 1926 utils extra dateutils_0.4.0-2.dsc
 72fda5b4d341160d38f6e8d4ba26d3b7 4376 utils extra 
dateutils_0.4.0-2.debian.tar.xz

-BEGIN PGP SIGNATURE-

iQIcBAEBCgAGBQJYUQYTAAoJEBMC8fA26+sZtwUP/ikvVJPjoIZksaXAsZKRSU25
qMnXsnlTyOu85538CMmXLzWP/kI0cI277fMsqMJ3LWIY+TzjsHFXQyzORITWXgMj
MnjIJdxZBGfJBuQnoXOLF+7CTnnN6KDwp6FP5otlztzPvCdFvgDATqqqyYAqRmTD
a3Dgqz4ClSD1NMmop/0XPqSi4Pv3/dflauddOhHcoKty850Y4+Ul0JQFRDfdTnDL
5gv9KzLhLH5dwbhb+MKk2YpooiiuyN13h5ieEqhNraDCM0lWF6dQCbcPdh2+maKo
4R/0LJD8E+OnQ2+O5oYtX51V1zNZwQbGisaQEXteedaP7/fJK6pBvCo+yPGbBx8p
sH/+eFMmIFnrLD7//45ZN0qYkTG/D3IT2GwYo0nsHlbUS4Ip3DAjSmZiNSueqhih
R48Sfs/OwP6scYfuOg/w0x+dFkQsQa+xXVZeENvWFW9ZJ7++zj4zd5jrIJqCl7k/
AkVIYnXjHWZjUbBz7jaeDqQXpnqp3UYGfyrISEWwQJGKn9wWoEzqcsrN+P+/t8il
qjsm7aI3eXy/wSfhfEKCiwOcUQns1wEEmt7TCL884d9xFtFB2/tfodmW50oS+rYw
ZgZJh69YoZlSYWqqf289+BnWbxDfrmVAqlZLJMmju+hxsEVql4mVjuJ0X5oa7Xad
9DO53T+etYbjlH0vzdDB
=6myD
-END PGP SIGNATURE End Message ---


Processing of dateutils_0.4.0-2_amd64.changes

2016-12-14 Thread Debian FTP Masters
dateutils_0.4.0-2_amd64.changes uploaded successfully to localhost
along with the files:
  dateutils_0.4.0-2.dsc
  dateutils_0.4.0-2.debian.tar.xz

Greetings,

Your Debian queue daemon (running on host usper.debian.org)



dateutils_0.4.0-2_amd64.changes ACCEPTED into unstable

2016-12-14 Thread Debian FTP Masters


Accepted:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Format: 1.8
Date: Wed, 14 Dec 2016 09:36:46 +0100
Source: dateutils
Binary: dateutils
Architecture: source
Version: 0.4.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group 
Changed-By: Dr. Tobias Quathamer 
Description:
 dateutils  - nifty command line date and time utilities
Closes: 848077
Changes:
 dateutils (0.4.0-2) unstable; urgency=medium
 .
   * QA upload.
   * Add --no-parallel to fix FTBFS on multiple archs.
 Thanks to Adrian Bunk  (Closes: #848077)
Checksums-Sha1:
 98a590bb1ff86d2760a41ad580d0f0dbd37977c5 1926 dateutils_0.4.0-2.dsc
 503d511482e027806facc912f28d299239250185 4376 dateutils_0.4.0-2.debian.tar.xz
Checksums-Sha256:
 d50e125b029308f1eafd5c3b07391506872a6bd60b03f8535e14bb6f6292e222 1926 
dateutils_0.4.0-2.dsc
 5df5d7e4d984d38769a625fa9f1ebeb0d3be5e292a3e3df6b35f7b99be45d1e4 4376 
dateutils_0.4.0-2.debian.tar.xz
Files:
 4c7c96f8e139b94094acbf92f0a5b54b 1926 utils extra dateutils_0.4.0-2.dsc
 72fda5b4d341160d38f6e8d4ba26d3b7 4376 utils extra 
dateutils_0.4.0-2.debian.tar.xz

-BEGIN PGP SIGNATURE-

iQIcBAEBCgAGBQJYUQYTAAoJEBMC8fA26+sZtwUP/ikvVJPjoIZksaXAsZKRSU25
qMnXsnlTyOu85538CMmXLzWP/kI0cI277fMsqMJ3LWIY+TzjsHFXQyzORITWXgMj
MnjIJdxZBGfJBuQnoXOLF+7CTnnN6KDwp6FP5otlztzPvCdFvgDATqqqyYAqRmTD
a3Dgqz4ClSD1NMmop/0XPqSi4Pv3/dflauddOhHcoKty850Y4+Ul0JQFRDfdTnDL
5gv9KzLhLH5dwbhb+MKk2YpooiiuyN13h5ieEqhNraDCM0lWF6dQCbcPdh2+maKo
4R/0LJD8E+OnQ2+O5oYtX51V1zNZwQbGisaQEXteedaP7/fJK6pBvCo+yPGbBx8p
sH/+eFMmIFnrLD7//45ZN0qYkTG/D3IT2GwYo0nsHlbUS4Ip3DAjSmZiNSueqhih
R48Sfs/OwP6scYfuOg/w0x+dFkQsQa+xXVZeENvWFW9ZJ7++zj4zd5jrIJqCl7k/
AkVIYnXjHWZjUbBz7jaeDqQXpnqp3UYGfyrISEWwQJGKn9wWoEzqcsrN+P+/t8il
qjsm7aI3eXy/wSfhfEKCiwOcUQns1wEEmt7TCL884d9xFtFB2/tfodmW50oS+rYw
ZgZJh69YoZlSYWqqf289+BnWbxDfrmVAqlZLJMmju+hxsEVql4mVjuJ0X5oa7Xad
9DO53T+etYbjlH0vzdDB
=6myD
-END PGP SIGNATURE-


Thank you for your contribution to Debian.



Booking Confirmation

2016-12-14 Thread emilia mcbride
Booking Confirmation


This email and any attachments are confidential. If you have received it in 
error - notify the sender immediately, delete it from your system, and do not 
use, copy or disclose the information in any way. Kirklees Council monitors all 
emails sent or received.



BookingConfirmation_18502_packages@qa.debian.org.docm
Description: BookingConfirmation_18502_packages@qa.debian.org.docm


Processing of opencryptoki_3.6+dfsg-2_source.changes

2016-12-14 Thread Debian FTP Masters
opencryptoki_3.6+dfsg-2_source.changes uploaded successfully to localhost
along with the files:
  opencryptoki_3.6+dfsg-2.dsc
  opencryptoki_3.6+dfsg-2.debian.tar.xz

Greetings,

Your Debian queue daemon (running on host usper.debian.org)



opencryptoki_3.6+dfsg-2_source.changes REJECTED

2016-12-14 Thread Debian FTP Masters


opencryptoki_3.6+dfsg-2.dsc: Refers to non-existing file 
'opencryptoki_3.6+dfsg.orig.tar.gz'
Perhaps you need to include the file in your upload?



===

Please feel free to respond to this email if you don't understand why
your files were rejected, or if you upload new files which address our
concerns.



Processing of opencryptoki_3.6+dfsg-2_source.changes

2016-12-14 Thread Debian FTP Masters
opencryptoki_3.6+dfsg-2_source.changes uploaded successfully to localhost
along with the files:
  opencryptoki_3.6+dfsg-2.dsc
  opencryptoki_3.6+dfsg.orig.tar.gz
  opencryptoki_3.6+dfsg-2.debian.tar.xz

Greetings,

Your Debian queue daemon (running on host usper.debian.org)



opencryptoki_3.6+dfsg-2_source.changes ACCEPTED into experimental

2016-12-14 Thread Debian FTP Masters


Accepted:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Format: 1.8
Date: Wed, 14 Dec 2016 11:41:02 +
Source: opencryptoki
Binary: opencryptoki libopencryptoki0 libopencryptoki-dev
Architecture: source
Version: 3.6+dfsg-2
Distribution: experimental
Urgency: medium
Maintainer: Debian QA Group 
Changed-By: Dimitri John Ledkov 
Description:
 libopencryptoki-dev - PKCS#11 implementation (development)
 libopencryptoki0 - PKCS#11 implementation (library)
 opencryptoki - PKCS#11 implementation (daemon)
Changes:
 opencryptoki (3.6+dfsg-2) experimental; urgency=medium
 .
   * Cherry-pick upstream patches for openssl 1.1 compat.
 .
 opencryptoki (3.6+dfsg-1) experimental; urgency=medium
 .
   * QA upload.
   * New upstream release
   * Refresh patches
   * Set standards version to 3.9.8
Checksums-Sha1:
 44df44ce19e2e7c0cd679686412b54c8ab2c4ff3 1697 opencryptoki_3.6+dfsg-2.dsc
 7ceefda2a798bec840ff7fa38ac1441f20f6 693888 
opencryptoki_3.6+dfsg.orig.tar.gz
 90d4e57dc100275243d606d667df94a687aa4f10 18772 
opencryptoki_3.6+dfsg-2.debian.tar.xz
Checksums-Sha256:
 e89729308be7f425e3fec9162863b8ec09e07d18619f4ec1187c596ff4e998c6 1697 
opencryptoki_3.6+dfsg-2.dsc
 ec1516cac78c1578c88402be83ee5cf42a92734998f210575c994a1b2e94be95 693888 
opencryptoki_3.6+dfsg.orig.tar.gz
 0c39e935deffd108e95dd14beeb6e591522c0ffebc66556b7f848d8dfa55dc2a 18772 
opencryptoki_3.6+dfsg-2.debian.tar.xz
Files:
 1ba0a87cafdfbc2763d9d07974f2cb97 1697 admin optional 
opencryptoki_3.6+dfsg-2.dsc
 17ee8d210adbd6960ae10972ada4ba1c 693888 admin optional 
opencryptoki_3.6+dfsg.orig.tar.gz
 bb85a91b96ac0bc40a8c6a3d4461492b 18772 admin optional 
opencryptoki_3.6+dfsg-2.debian.tar.xz

-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQEcBAEBCAAGBQJYUTwLAAoJEMrC2LnNLKX5BusIALww28ZcL4evuDwnfA8j/2w8
3XraARlu6qQbUTwbhj/6l8XUO+/TGDvh93vKxOxbcQ6dUA9KPQmSwlO0GJwictc7
Ky27MX+3Te7oV3tmB6d0XhiH/g2EPAnfplk1/IgL5cIgl/jHpekP1gJ6dx0DJFRS
PzT0yF+8M0VfUOELS96nYTBw1OQZRI0IjwBQ2Dvoj9x88i4gJBO90p3M3j8rdteE
6oHvn/VuGVOgp0aVWoYI79NPniaTnjdmKy/WHSMfWLxXk3e8BgKcg0iNd1yCEMrf
o2LZJ34WBGONOPX/X1T9ncmiojvFl3ea2oLuVgPxEgPE75ZXbFrTMjtsi5M74SE=
=vFGz
-END PGP SIGNATURE-


Thank you for your contribution to Debian.



Processing of imagination_3.0-7_source.changes

2016-12-14 Thread Debian FTP Masters
imagination_3.0-7_source.changes uploaded successfully to localhost
along with the files:
  imagination_3.0-7.dsc
  imagination_3.0-7.debian.tar.xz

Greetings,

Your Debian queue daemon (running on host usper.debian.org)



imagination_3.0-7_source.changes ACCEPTED into unstable

2016-12-14 Thread Debian FTP Masters


Accepted:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Format: 1.8
Date: Mon, 12 Dec 2016 17:53:33 -0200
Source: imagination
Binary: imagination imagination-common
Architecture: source
Version: 3.0-7
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group 
Changed-By: Joao Eriberto Mota Filho 
Description:
 imagination - DVD slide show maker
 imagination-common - DVD slide show maker - common files
Changes:
 imagination (3.0-7) unstable; urgency=medium
 .
   * QA upload.
   * Bumped DH level to 10.
   * debian/control:
   - Improved the long description.
   - Removed Conflicts and Replaces fields because it was pointing to very
 old versions of the imagination.
   - Removed the unneeded variable ${shlibs:Depends} from
 imagination-common binary.
   - Removed the Vcs-* fields because the repository was never used.
   * debian/copyright:
   - Fixed the licensing for upstream.
   - Updated some data.
   * debian/imagination-common.doc-base: removed a duplicated word.
   * debian/imagination.install: dropped dh-install.
   * debian/rules:
   - Added DEB_BUILD_MAINT_OPTIONS variable to improve the GCC hardening.
   - Added DEB_CFLAGS_MAINT_APPEND variable to provide -lgmodule-2.0 and
 -lm options to GCC.
   - Added the DEB_LDFLAGS_MAINT_APPEND variable to avoid an  unnecessary
 linking against libraries.
   * debian/patches/:
   - 10_link_math_lib.patch: removed. The upstream is using Makefile.am now
 and the option -lm is being sent to CFLAGS via debian/rules.
   - 15_PLUGINS_INSTALLED.patch:
   ~ Added a header.
   ~ Renamed to 10_plugins-installed.patch.
   - hurd-rpath-ftbfs-fix.patch: removed. The issue was fixed by upstream.
   - lib_underlinkage.patch: removed. The option -lm is being sent to CFLAGS
 via debian/rules.
   - 15_add-keywords.patch: created to provides the keywords field to
 .desktop file.
   * debian/source/options: created to ignore changes in some files.
Checksums-Sha1:
 665cbd3884d1ec114abfe4cd3d12f81c8165cfb8 1888 imagination_3.0-7.dsc
 cf31c5b070024a129a322b56d4d75fb0648daa39 6180 imagination_3.0-7.debian.tar.xz
Checksums-Sha256:
 c12a23047facd2952e2a90b9e34d0731c88ed752bb262948829e55315f53a6c6 1888 
imagination_3.0-7.dsc
 455e4fade33a8c57d36eb77997b55950bc2e28e0db9f0459704ccdf3e93ac5ec 6180 
imagination_3.0-7.debian.tar.xz
Files:
 bc6662b8e418d3ab47d10a1946752d56 1888 video optional imagination_3.0-7.dsc
 42e192844543a4d9bb8a77ebc728517d 6180 video optional 
imagination_3.0-7.debian.tar.xz

-BEGIN PGP SIGNATURE-

iQIzBAEBCAAdFiEENX3LDuyVoBrrofDS3mO5xwTr6e8FAlhRmCMACgkQ3mO5xwTr
6e+JjRAAqx/HAYiId/w+Yb6kpud+BnWMBdgaWJ8IJt0xAIOW+tp6DPrIhgoD24PD
fgH++v2tArO/NTENXYcGGSb1/XegK29OWEW+IBrtrgKMzPQB6RuA0bKLY9mtOuCG
amBCaOGMW+NXqFH6SdYs0qxjgKCGAy67ooKEsGCI1WThmbsBFB0U5lsgDp8iIZZg
LsfMNEZZO6NF1FYNIjmw9RXPpDG3O6L2nMcCmAoOSoxIuYcXwyvVTUHpwcO8UsGo
E4+JPccoTyhYd04gQMQieui92OlRVq4I63glNFwrAnnCpJn4aD4qZyKOZd0zqMRh
1+aASQPTmupNnV3hNLUF2Vi2zmCG3ntaVctKOGpDdWSamsTcGs2+2kIocVJ6LnkN
QiMRUie7N0/rknhH5oQ6Q/+upIhrSBp3oTisCnFtefyRuJ5nzFERgcyBoBi3oSfm
04zLDR9tjltfqu4sE2ZmNw4MMHTNsXPRCAhgzFKFX6INAZqf9UFwK3zDOFQREVlf
NHhLnUyYxiI0sA85/PyEMqqbZ7IRNuRebeU/1HsxY6Yp/wdIjho3h0KRmh5ZuOwg
PV0sibhy4cR/hkjwAmStbTCXZikQs558k4JNICen+man7jE6dIC8DB0YlbAajfgf
Tp5E3UaTjscgqTJ+W3OdUAWhq+BmRPhutNuGerEpmlmPMsKr3GU=
=19Vf
-END PGP SIGNATURE-


Thank you for your contribution to Debian.



Bug#211119: libgdbm3: ordered traversal option for firstkey/nextkey?

2016-12-14 Thread Dmitry Bogatov

control: tag -1 +wontfix
control: close -1

[2003-09-16 02:02] Colin Watson 
> It'd be nice to have a flag to gdbm_setopt() or similar which would
> cause gdbm_firstkey() and gdbm_nextkey() to return entries in a
> lexicographically sorted fashion, or I suppose even with an arbitrary
> comparison function if somebody were feeling particularly industrious
> (although I don't need that myself). When migrating man-db from Berkeley
> DB to GDBM and brushing up the old support code, I just had to write a
> hashtable of ordered hashtables in order to do the sort myself without
> turning lots of code upside down, which is not the most pleasant data
> structure in the world.
>
> I'm guessing that gdbm could also manage a more efficient sorted
> traversal internally than I can in a wrapper.

This bugreport asks for very significant change, so it is better to
discuss it directly with upstream.

-- 
X-Web-Site: https://sinsekvu.github.io | Note that I process my email in batch,
Accept-Languages: eo,ru,en | at most once every 24 hours. If matter
Accept: text/plain, text/x-diff| is urgent, you have my phone number.


pgpyGVExwNRNd.pgp
Description: PGP signature


Processed: Re: libgdbm3: gdbm_open(... GDBM_NEWDB ...) keeps old entries

2016-12-14 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 +unreproducible
Bug #447981 [libgdbm3] libgdbm3: gdbm_open(... GDBM_NEWDB ...) keeps old entries
Added tag(s) unreproducible.
> close -1
Bug #447981 [libgdbm3] libgdbm3: gdbm_open(... GDBM_NEWDB ...) keeps old entries
Marked Bug as done

-- 
447981: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447981
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Processed: Re: libgdbm3: gdbm_open continually reopens file in a loop until it runs out of file descriptors and fails.

2016-12-14 Thread Debian Bug Tracking System
Processing control commands:

> close -1
Bug #374354 [libgdbm3] libgdbm3: gdbm_open continually reopens file in a loop 
until it runs out of file descriptors and fails.
Marked Bug as done

-- 
374354: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=374354
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Processed: Re: libgdbm3: ordered traversal option for firstkey/nextkey?

2016-12-14 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 +wontfix
Bug #29 [libgdbm3] libgdbm3: ordered traversal option for firstkey/nextkey?
Added tag(s) wontfix.
> close -1
Bug #29 [libgdbm3] libgdbm3: ordered traversal option for firstkey/nextkey?
Marked Bug as done

-- 
29: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=29
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#374354: libgdbm3: gdbm_open continually reopens file in a loop until it runs out of file descriptors and fails.

2016-12-14 Thread Dmitry Bogatov

control: close -1

> When I try yo invoke gdbm_open, the call appears to internally open and
> reopen the specified file until we run out of file descriptors, at which
> point gdbm_open fails with gdbm_errno 3(File open failure) and errno 24
> (Too many open files).
>
> This will officially be my first bug report, so be kind if I make any
> faux pauxes! Thanks. :)

Your first bug report is very good. Thank you.

But it is not real bug. Issue is that you call your function `write',
which is collision with normal write(2) function.

In this situation I would expect linker error, but what actually happens
is that your function shadows write(2) one. Problem is that `gdbm_open'
internally uses write(2), so here we have endless rescursion.

If you have little available descriptors, result will be as you described.
If you have many available described, result will be stack overflow and
segfault. It happens on my system.

Try renaming your `write' function into `my_own_write' and check again.
Closing bug for now. Feel free to reopen it, if `my_own_write' would still
misbehave.

> #include
> #include
> #include
>
> void write()
> {
>   GDBM_FILE dbf;
>
>   if( (dbf = gdbm_open("test.gdb", 0, GDBM_NEWDB, 0640, NULL)) == NULL)
>   {
> printf("dat file open error (%d,%d): %s/%s\n", gdbm_errno, errno,
> gdbm_strerror(gdbm_errno), strerror(errno));
> exit(1);
>   }
>
>   gdbm_close(dbf);
> }
>
> int main()
> {
>   write();
> }

BTW, main function must return something, otherwise exit code is
undefined.

--
X-Web-Site: https://sinsekvu.github.io | Note that I process my email in batch,
Accept-Languages: eo,ru,en | at most once every 24 hours. If matter
Accept: text/plain, text/x-diff| is urgent, you have my phone number.


pgpmqKe8SRWh2.pgp
Description: PGP signature


Bug#447981: libgdbm3: gdbm_open(... GDBM_NEWDB ...) keeps old entries

2016-12-14 Thread Dmitry Bogatov

control: tag -1 +unreproducible
control: close -1

> In some software I'm using libgdbm=1.8.3-3. Some routine wants to use
> a gdbm file as a kind of non-memory-limited hash, so it tries to open
> some filename with GDBM_NEWDB.
>
> I wondered for some time why this routine gets old entries, until
> looking at an strace revealed that the open() call on the file has
> O_CREAT set, but not O_TRUNC - so no new database seems to be done!

I can't reproduce it. Here is my minimal working example:

#include 
#include 
#include 
#include 

int
main(void)
{
GDBM_FILE db = gdbm_open("store.db", 0, GDBM_NEWDB|GDBM_SYNC, 
0644, NULL);
datum datum, key;
if (!db) {
fprintf(stderr, "Failed to open database: %s", 
gdbm_strerror(gdbm_errno));
return 1;
}
datum.dptr = malloc(100);
datum.dsize = snprintf(datum.dptr, 1000, "%d", (int) 
(time(NULL)));
gdbm_store(db, datum, datum, GDBM_REPLACE);

for (key = gdbm_firstkey(db); key.dptr; key = gdbm_nextkey(db, 
key)) {
printf("%s\n", key.dptr);
}
return 0;
}

As I understand your report, this program every invokation would output
one more line then on previous. At least on my system, this program
outputs exacly one line -- current time. I linked this program with
libgdbm3_1.8.3-13.1. Same behaviour with libgdbm4.

Moreover, in gdbm-1.12 source there is following lines in src/gdbmopen.c:144

case GDBM_NEWDB:
  dbf->desc = open (dbf->name, O_RDWR|O_CREAT|fbits, mode);
  need_trunc = TRUE;
  break;

I understand, that this bug is almost 10 years old. So with reasoning
above I close it instead of marking +moreinfo/+unreproducible. Feel free
to reopen if you still experience problems.

-- 
X-Web-Site: https://sinsekvu.github.io | Note that I process my email in batch,
Accept-Languages: eo,ru,en | at most once every 24 hours. If matter
Accept: text/plain, text/x-diff| is urgent, you have my phone number.


pgp1lEmM5EysH.pgp
Description: PGP signature