NetBSD Problem Report #46909

From diro@nixsyspaus.org  Wed Sep  5 16:30:38 2012
Return-Path: <diro@nixsyspaus.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 83B5463B86D
	for <gnats-bugs@gnats.netbsd.org>; Wed,  5 Sep 2012 16:30:38 +0000 (UTC)
Message-Id: <20120905163035.25A092041ED@asche.nixsyspaus.org>
Date: Wed,  5 Sep 2012 16:30:35 +0000 (UTC)
From: diro@nixsyspaus.org
Reply-To: diro@nixsyspaus.org
To: gnats-bugs@gnats.netbsd.org
Subject: please, pull up devel/sparsehash to latest stable
X-Send-Pr-Version: 3.95

>Number:         46909
>Category:       pkg
>Synopsis:       please, pull up devel/sparsehash to latest stable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cheusov
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 05 16:35:02 +0000 2012
>Closed-Date:    Sat Sep 15 17:33:21 +0000 2012
>Last-Modified:  Sat Sep 15 17:33:21 +0000 2012
>Originator:     diro@nixsyspaus.org
>Release:        NetBSD 6.0_RC1
>Organization:
>Environment:
System: NetBSD gift 6.0_RC1 NetBSD 6.0_RC1 (GIFT) #6: Sat Sep  1 04:44:23 UTC 2012  root@gift:/usr/obj/sys/arch/amd64/compile/GIFT amd64
Architecture: amd64
Machine: amd64
>Description:
From https://code.google.com/p/sparsehash/ :
	"The google-sparsehash project has been renamed to sparsehash. [...] The
only functional change from sparsehash 1.12 is that I've renamed the google/
include-directory to be sparsehash/ instead. New code should #include
<sparsehash/sparse_hash_map>/etc. I've kept the old names around as forwarding
headers to the new, so `#include <google/sparse_hash_map>` will continue to
work.

Note that the classes and functions remain in the google C++ namespace (I didn't
change that to sparsehash as well);"
>How-To-Repeat:
	I'm packaging pcsx2 and it requires this newer version of sparsehash, rather
than the one that's in devel/. It doesn't make sense to maintain two separate
packages in this case, so i didn't import the one i made and tested into
pkgsrc-wip.
>Fix:
DISTNAME=     sparsehash-2.0.2
MASTER_SITES= http://sparsehash.googlecode.com/files/
HOMEPAGE=     http://code.google.com/p/sparsehash/
COMMENT=      Extremely memory-efficient hash_map implementation

It doesn't seem like USE_PKGLOCALEDIR and INSTALL_MAKE_FLAGS are necessary in
this version as 1) there are no other languages/po files installed and 2) the
install now seems to put the docs in the right place. These seem to be the only
necessary changes in the Makefile.

# diff ../../devel/sparsehash/PLIST  PLIST
1c1
< @comment $NetBSD: PLIST,v 1.5 2011/05/29 15:12:26 cheusov Exp $
---
> @comment $NetBSD$
9d8
< include/google/sparsehash/sparseconfig.h
11a11
> include/google/template_util.h
12a13,24
> include/sparsehash/dense_hash_map
> include/sparsehash/dense_hash_set
> include/sparsehash/internal/densehashtable.h
> include/sparsehash/internal/hashtable-common.h
> include/sparsehash/internal/libc_allocator_with_realloc.h
> include/sparsehash/internal/sparseconfig.h
> include/sparsehash/internal/sparsehashtable.h
> include/sparsehash/sparse_hash_map
> include/sparsehash/sparse_hash_set
> include/sparsehash/sparsetable
> include/sparsehash/template_util.h
> include/sparsehash/type_traits.h
14,30c26,42
< share/doc/sparsehash/AUTHORS
< share/doc/sparsehash/COPYING
< share/doc/sparsehash/ChangeLog
< share/doc/sparsehash/INSTALL
< share/doc/sparsehash/NEWS
< share/doc/sparsehash/README
< share/doc/sparsehash/README_windows.txt
< share/doc/sparsehash/TODO
< share/doc/sparsehash/dense_hash_map.html
< share/doc/sparsehash/dense_hash_set.html
< share/doc/sparsehash/designstyle.css
< share/doc/sparsehash/implementation.html
< share/doc/sparsehash/index.html
< share/doc/sparsehash/performance.html
< share/doc/sparsehash/sparse_hash_map.html
< share/doc/sparsehash/sparse_hash_set.html
< share/doc/sparsehash/sparsetable.html
---
> share/doc/${PKGNAME}/AUTHORS
> share/doc/${PKGNAME}/COPYING
> share/doc/${PKGNAME}/ChangeLog
> share/doc/${PKGNAME}/INSTALL
> share/doc/${PKGNAME}/NEWS
> share/doc/${PKGNAME}/README
> share/doc/${PKGNAME}/README_windows.txt
> share/doc/${PKGNAME}/TODO
> share/doc/${PKGNAME}/dense_hash_map.html
> share/doc/${PKGNAME}/dense_hash_set.html
> share/doc/${PKGNAME}/designstyle.css
> share/doc/${PKGNAME}/implementation.html
> share/doc/${PKGNAME}/index.html
> share/doc/${PKGNAME}/performance.html
> share/doc/${PKGNAME}/sparse_hash_map.html
> share/doc/${PKGNAME}/sparse_hash_set.html
> share/doc/${PKGNAME}/sparsetable.html


# cat distinfo
$NetBSD$

SHA1 (sparsehash-2.0.2.tar.gz) = 12c7552400b3e20464b3362286653fc17366643e
RMD160 (sparsehash-2.0.2.tar.gz) = 4da86c970e66c4fd3abb82d9b800267175a18bea
Size (sparsehash-2.0.2.tar.gz) = 340514 bytes


# cat buildlink3.mk
# $NetBSD$

BUILDLINK_TREE+=        sparsehash

.if !defined(SPARSEHASH_BUILDLINK3_MK)
SPARSEHASH_BUILDLINK3_MK:=
BUILDLINK_DEPMETHOD.sparsehash?=        build

BUILDLINK_API_DEPENDS.sparsehash+=      sparsehash>=2.0.2
BUILDLINK_PKGSRCDIR.sparsehash?=        ../../devel/sparsehash
.endif  # SPARSEHASH_BUILDLINK3_MK

BUILDLINK_TREE+=        -sparsehash


# cat DESCR
An extremely memory-efficient hash_map implementation. 2 bits/entry overhead!
The SparseHash library contains several hash-map implementations, including
implementations that optimize for space or speed.

These hashtable implementations are similar in API to SGI's hash_map class and
the tr1 unordered_map class, but with different performance characteristics.
It's easy to replace hash_map or unordered_map by sparse_hash_map or
dense_hash_map in C++ code.

They also contain code to serialize and unserialize from disk.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->cheusov
Responsible-Changed-By: cheusov@NetBSD.org
Responsible-Changed-When: Thu, 06 Sep 2012 10:01:59 +0000
Responsible-Changed-Why:
Mine


From: "Aleksey Cheusov" <cheusov@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46909 CVS commit: pkgsrc/devel/sparsehash
Date: Sat, 8 Sep 2012 16:55:47 +0000

 Module Name:	pkgsrc
 Committed By:	cheusov
 Date:		Sat Sep  8 16:55:47 UTC 2012

 Modified Files:
 	pkgsrc/devel/sparsehash: Makefile PLIST distinfo

 Log Message:
 Update to 2.0.2 as requested in PR 46909,
   tested on NetBSD/6_RC1/amd64 and SL-6.2/amd64.
 Set TEST_TARGET to "check".


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/sparsehash/Makefile
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/sparsehash/PLIST
 cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/sparsehash/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: cheusov@NetBSD.org
State-Changed-When: Sat, 08 Sep 2012 17:13:03 +0000
State-Changed-Why:
Updated. Thanks!


From: diro@nixsyspaus.org
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/46909
Date: Tue, 11 Sep 2012 18:29:23 -0400

 Could we get a buildlink3.mk file for this package as well, please?

State-Changed-From-To: closed->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 15 Sep 2012 17:21:29 +0000
State-Changed-Why:
one more bit


From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/46909 CVS commit: pkgsrc/devel/sparsehash
Date: Sat, 15 Sep 2012 17:25:40 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Sat Sep 15 17:25:40 UTC 2012

 Added Files:
 	pkgsrc/devel/sparsehash: buildlink3.mk

 Log Message:
 Add bl3 file, per request in PR 46909.


 To generate a diff of this commit:
 cvs rdiff -u -r0 -r1.1 pkgsrc/devel/sparsehash/buildlink3.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 15 Sep 2012 17:33:21 +0000
State-Changed-Why:
done


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.