NetBSD Problem Report #34860

From simon@comsys.ntu-kpi.kiev.ua  Thu Oct 19 11:04:00 2006
Return-Path: <simon@comsys.ntu-kpi.kiev.ua>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9D7F063B898
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 19 Oct 2006 11:04:00 +0000 (UTC)
Message-Id: <20061019100518.GA1519@pm513-1.comsys.ntu-kpi.kiev.ua>
Date: Thu, 19 Oct 2006 13:05:18 +0300
From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: gnats-bugs@NetBSD.org
Subject: New package database/ipa_sdb (database module for sysutils/ipa)

>Number:         34860
>Category:       pkg
>Synopsis:       New package database/ipa_sdb (database module for sysutils/ipa)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 19 11:05:00 +0000 2006
>Closed-Date:    Wed Jan 03 15:22:13 +0000 2007
>Last-Modified:  Fri Jan 26 09:35:01 +0000 2007
>Originator:     Andrey Simonenko
>Release:        NetBSD 2.0
>Organization:
>Environment:
>Description:

Please add new package database/ipa_sdb, which is "IPA simple database
module" and can be used by sysutils/ipa.

I tested this port on NetBSD 2.0 with its pkgsrc and did not find
any problems, except only one: "make install" rebuilds shared library
two times, as I understand this is a problem of old pkgsrc, since
there are similar problems described in PR/32398 and these problems
disappeared in sysutils/ipa with new pkgsrc.

Another problem, I tried to build this port with the most recent pkgsrc
which can be run on NetBSD 2.0 and there is error in "build" phase:
cc cannot find needed header file in /usr/pkg/include, I'm not sure
that this is a problem of port of software.

Please test this port on current pkgsrc.

>How-To-Repeat:
>Fix:
begin 644 ipa_sdb.tar.gz
M'XL("+L]-T4``VEP85]S9&(N=&%R`.U8ZV_B1A"_K^Q?L;U$IZ0MQC88$RJJ
M<\#)H?`J)M?[4`GYL0XK_$#V^JY<E/^]LW[$A&N(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JU48,>RL`].G=@EFXXC+_HP]ZE/0#Q,`S19@Y2+TG!1/\[S2*-[C
M@%A$8'T8$0<J%@Z_!#@B=A@YF,LX&])AY)LL1;G(A@\\+,%\TU[0@,`8GHS8
M/$X`[9`5@:^`<03>SCY<GRG-$"+B@3^?4V]]**'XQ**!&:U3Z<*0T]0?VR9Q
MC%FX$4]L0QVV"+Z)S("!!Z;-D6EP`W`@R!8$)S&)8#Y,5AQDMB#<PCB=RHO`
MW$G\%=\,_J-&V9IKQ9P'.-M.LY#'F?S)<M/2+;%,>RD<"OMKHJ+^3P;0_.U)
MQY/W?W@IZK\JJFG];Q[Z_V<AWEO[4*#*:P"4G=IF04`>M6IE+1<\<YL3A_<<
M*.A;,CD'9/)VL``7%@B:1]Y`*O<LI6"U-O%;#[DYXC8W-Q?X+QW3UT1%_I=W
M@G]?QU/]G]Q0MO__IZK2(?^?@S;O_Y.KR_EX,NN/1\;\HP:W[PV&D!^45,BX
MGDS&TYG>*V8[E2^4+<*$S<T$VJJT?2LX>6=6O&:3?Z!*Y7Y-V:X]>FE\<&4]
M.CKB']Z"FA;O5O.N,(/.>\542J`N_H'X*[8^V?"E/?S&VM.-J[0VY9=NZ(B=
M#+]Z+X4$Z.:H^ZT%N8_?HSI;LE-O)O*HTLT&^+M4/^WQ;F_+_?HNM>6RG;HW
83D-AP$LGR8$.=*`#_0?I+TX6)&X`(```
`
end

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: obache@netbsd.org
State-Changed-When: Wed, 03 Jan 2007 15:22:13 +0000
State-Changed-Why:
I made some modification and imported.
Build and install fine on NetBSD/i386 3.0.1 and 2.0.2 by pkg_comp.


From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34860 CVS commit: pkgsrc/databases/ipa_sdb
Date: Wed,  3 Jan 2007 15:06:02 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Wed Jan  3 15:06:02 UTC 2007

 Update of /cvsroot/pkgsrc/databases/ipa_sdb
 In directory ivanova.netbsd.org:/tmp/cvs-serv25545

 Log Message:
 Import ipa_sdb version 1.0.1.
 Based on PR 34860 by Andrey Simonenko and I made some modification.

 IPA_SDB -- IPA simple database module

 Main features:

 - Distribution consists of database ipa_db_sdb(8) and statistics
   ipa_st_mod(8) modules;
 - Modules completely support dynamic and static rules, limits and
   thresholds;
 - All database files are stored in own record based database formats;
 - Formats of database files are machine architecture independent;
 - Sizes of database records are relatively small (binary data formats);
 - Access to statistics can be granted accordingly to the user group;
 - There is the ipa_sdb_dump(8) utility for dumping database files to
   text format and back.

 Status:

 Vendor Tag:	TNF
 Release Tags:	pkgsrc-base

 N pkgsrc/databases/ipa_sdb/options.mk
 N pkgsrc/databases/ipa_sdb/distinfo
 N pkgsrc/databases/ipa_sdb/Makefile
 N pkgsrc/databases/ipa_sdb/DESCR
 N pkgsrc/databases/ipa_sdb/PLIST

 No conflicts created by this import

From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: gnats-bugs@NetBSD.org
Cc: obache@NetBSD.org
Subject: Re: pkg/34860 (New package database/ipa_sdb (database module for sysutils/ipa))
Date: Mon, 22 Jan 2007 13:56:40 +0200

 On Wed, Jan 03, 2007 at 03:22:15PM +0000, obache@NetBSD.org wrote:
 > Synopsis: New package database/ipa_sdb (database module for sysutils/ipa)
 > 
 > State-Changed-From-To: open->closed
 > State-Changed-By: obache@netbsd.org
 > State-Changed-When: Wed, 03 Jan 2007 15:22:13 +0000
 > State-Changed-Why:
 > I made some modification and imported.
 > Build and install fine on NetBSD/i386 3.0.1 and 2.0.2 by pkg_comp.
 > 

 Hello,

 I found some problems with modified version of this package:

 1. options.mk has some mistakes with names of options (a patch
    is given below).

 2. This package should build only shared libraries, static libraries
    should not be built.  Package's configure has AC_DISABLE_STATIC,
    nevertheless static libraries are built (in the original version
    I did not add USE_LIBTOOL to Makefile and everything worked
    as expected).  I tried to add SHLIBTOOL_OVERRIDE, but this did not
    help, at least on my pkgsrc, which is a bit outdated.

 --- options.mk.orig	2007-01-21 20:39:39.000000000 +0000
 +++ options.mk	2007-01-21 20:41:17.000000000 +0000
 @@ -1,35 +1,35 @@
  # $NetBSD: options.mk,v 1.1.1.1 2007/01/03 15:06:02 obache Exp $

  PKG_OPTIONS_VAR=	PKG_OPTIONS.ipa_sdb
 -PKG_SUPPORTED_OPTIONS=	ipa-without-autorules ipa-without-limits \
 -			ipa-without-rules ipa-without-thresholds
 +PKG_SUPPORTED_OPTIONS=	ipa_sdb-without-autorules ipa_sdb-without-limits \
 +			ipa_sdb-without-rules ipa_sdb-without-thresholds

  .include "../../mk/bsd.options.mk"

  ###
  ### Disable dynamic rules support
  ###
 -.if !empty(PKG_OPTIONS:Mwithout_autorules)
 +.if !empty(PKG_OPTIONS:Mipa_sdb-without-autorules)
  CONFIGURE_ARGS+= --disable-autorules
  .endif

  ###
  ### Disable limits support
  ###
 -.if !empty(PKG_OPTIONS:Mwithout_limits)
 +.if !empty(PKG_OPTIONS:Mipa_sdb-without-limits)
  CONFIGURE_ARGS+= --disable-limits
  .endif

  ###
  ### Disable static rules support
  ###
 -.if !empty(PKG_OPTIONS:Mwithout_rules)
 +.if !empty(PKG_OPTIONS:Mipa_sdb-without-rules)
  CONFIGURE_ARGS+= --disable-rules
  .endif

  ###
  ### Disable thresholds support
  ###
 -.if !empty(PKG_OPTIONS:Mwithout_thresholds)
 +.if !empty(PKG_OPTIONS:Mipa_sdb-without-thresholds)
  CONFIGURE_ARGS+= --disable-thresholds
  .endif

From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34860 CVS commit: pkgsrc/databases/ipa_sdb
Date: Mon, 22 Jan 2007 12:23:39 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Mon Jan 22 12:23:39 UTC 2007

 Modified Files:
 	pkgsrc/databases/ipa_sdb: options.mk

 Log Message:
 Fix mismatch of option name, definition v.s. usage.
 Pointed out in PR 34860.


 To generate a diff of this commit:
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/databases/ipa_sdb/options.mk

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

From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34860 CVS commit: pkgsrc/databases/ipa_sdb
Date: Mon, 22 Jan 2007 13:10:41 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Mon Jan 22 13:10:41 UTC 2007

 Modified Files:
 	pkgsrc/databases/ipa_sdb: Makefile

 Log Message:
 Should build only shared libraries, pointed out in PR 34860.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/databases/ipa_sdb/Makefile

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

From: OBATA Akio <obache@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/34860 (New package database/ipa_sdb (database module for sysutils/ipa))
Date: Mon, 22 Jan 2007 22:16:31 +0900

 On Mon, 22 Jan 2007 12:00:05 +0000 (UTC), Andrey Simonenko wrote:
 >  I found some problems with modified version of this package:
 >  
 >  1. options.mk has some mistakes with names of options (a patch
 >     is given below).

 Fixed mismatch of option names, definition v.s. usage.

 But why are you suggest to use option name different from sysutils/ipa?

 >  2. This package should build only shared libraries, static libraries
 >     should not be built.  Package's configure has AC_DISABLE_STATIC,
 >     nevertheless static libraries are built (in the original version
 >     I did not add USE_LIBTOOL to Makefile and everything worked
 >     as expected).  I tried to add SHLIBTOOL_OVERRIDE, but this did not
 >     help, at least on my pkgsrc, which is a bit outdated.

 Possibly fixed by added SHLIBTOOL_OVERRIDE.  On my environment, works fine.
 Please test on your environment.

From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: gnats-bugs@NetBSD.org
Cc: OBATA Akio <obache@NetBSD.org>
Subject: Re: pkg/34860 (New package database/ipa_sdb (database module for sysutils/ipa))
Date: Tue, 23 Jan 2007 12:45:27 +0200

 On Mon, Jan 22, 2007 at 01:20:04PM +0000, OBATA Akio wrote:
 > The following reply was made to PR pkg/34860; it has been noted by GNATS.
 > 
 > From: OBATA Akio <obache@NetBSD.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/34860 (New package database/ipa_sdb (database module for sysutils/ipa))
 > Date: Mon, 22 Jan 2007 22:16:31 +0900
 > 
 >  On Mon, 22 Jan 2007 12:00:05 +0000 (UTC), Andrey Simonenko wrote:
 >  >  I found some problems with modified version of this package:
 >  >  
 >  >  1. options.mk has some mistakes with names of options (a patch
 >  >     is given below).
 >  
 >  Fixed mismatch of option names, definition v.s. usage.
 >  
 >  But why are you suggest to use option name different from sysutils/ipa?

 I have already thought about checking set options for sysutils/ipa
 from databases/ipa_sdb, but understood that this idea is wrong.

 If some feature is required from sysutils/ipa, then this does not mean
 that this feature also should be enabled in databases/ipa_sdb (or any
 other module), because modules' methods (functions) can be used only for
 parts of ipa.conf or ipastat.conf configuration file.  By default
 everything is enabled, if one decides to disable something (to save some
 memory and speed up applications), then he/she will need to decide what
 and where can be disabled, in any case before using module's methods
 ipa and ipastat check if a module has these methods, so they will not
 call methods which were disabled.

From: OBATA Akio <obache@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/34860 (New package database/ipa_sdb (database module for sysutils/ipa))
Date: Wed, 24 Jan 2007 00:11:43 +0900

 On Tue, 23 Jan 2007 10:50:02 +0000 (UTC), Andrey Simonenko wrote:
 >  >  But why are you suggest to use option name different from sysutils/ipa?
 >  
 >  I have already thought about checking set options for sysutils/ipa
 >  from databases/ipa_sdb, but understood that this idea is wrong.
 >  
 >  If some feature is required from sysutils/ipa, then this does not mean
 >  that this feature also should be enabled in databases/ipa_sdb (or any
 >  other module), because modules' methods (functions) can be used only for
 >  parts of ipa.conf or ipastat.conf configuration file.  By default
 >  everything is enabled, if one decides to disable something (to save some
 >  memory and speed up applications), then he/she will need to decide what
 >  and where can be disabled, in any case before using module's methods
 >  ipa and ipastat check if a module has these methods, so they will not
 >  call methods which were disabled.

 Same meaning option should have same name, and even if using same option names,
 you can specify options to packages individually.
 Is there any problem?

From: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua>
To: OBATA Akio <obache@netbsd.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: pkg/34860 (New package database/ipa_sdb (database module for sysutils/ipa))
Date: Fri, 26 Jan 2007 11:32:37 +0200

 On Tue, Jan 23, 2007 at 03:15:05PM +0000, OBATA Akio wrote:
 > The following reply was made to PR pkg/34860; it has been noted by GNATS.
 > 
 > From: OBATA Akio <obache@NetBSD.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/34860 (New package database/ipa_sdb (database module for sysutils/ipa))
 > Date: Wed, 24 Jan 2007 00:11:43 +0900
 > 
 >  On Tue, 23 Jan 2007 10:50:02 +0000 (UTC), Andrey Simonenko wrote:
 >  >  >  But why are you suggest to use option name different from sysutils/ipa?
 >  >  
 >  >  I have already thought about checking set options for sysutils/ipa
 >  >  from databases/ipa_sdb, but understood that this idea is wrong.
 >  >  
 >  >  If some feature is required from sysutils/ipa, then this does not mean
 >  >  that this feature also should be enabled in databases/ipa_sdb (or any
 >  >  other module), because modules' methods (functions) can be used only for
 >  >  parts of ipa.conf or ipastat.conf configuration file.  By default
 >  >  everything is enabled, if one decides to disable something (to save some
 >  >  memory and speed up applications), then he/she will need to decide what
 >  >  and where can be disabled, in any case before using module's methods
 >  >  ipa and ipastat check if a module has these methods, so they will not
 >  >  call methods which were disabled.
 >  
 >  Same meaning option should have same name, and even if using same option names,
 >  you can specify options to packages individually.
 >  Is there any problem?
 >  

 I understood the idea, one can use PKG_DEFAULT_OPTIONS and PKG_OPTIONS.*
 for each package individually and everything will work as needed.  Thanks.

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