Bug 36587 - news/inn{-stable} do not install when --enable-tagged-hash is configured
Summary: news/inn{-stable} do not install when --enable-tagged-hash is configured
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-31 19:10 UTC by Thomas-Martin Seck
Modified: 2003-08-01 06:17 UTC (History)
0 users

See Also:


Attachments
file.diff (1.84 KB, patch)
2002-03-31 19:10 UTC, Thomas-Martin Seck
no flags Details | Diff
file.diff (602 bytes, patch)
2002-03-31 19:10 UTC, Thomas-Martin Seck
no flags Details | Diff
file.diff (1.79 KB, patch)
2002-03-31 19:10 UTC, Thomas-Martin Seck
no flags Details | Diff
file.diff (609 bytes, patch)
2002-03-31 19:10 UTC, Thomas-Martin Seck
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas-Martin Seck 2002-03-31 19:10:04 UTC
In the post-install target, the news/inn{-stable} port initializes the
INN history databases using the 'makedbz(8) -i' command and renames the
resulting files afterwards. There is no check done whether the files
that are to be renamed really exist so the for loop will exit ungracefully
when a nonexistent file is to be moved and the installation fails.

When INN is built with the --enable-tagged-hash option, 'makedbz(8)
-i' does not create the files 'history.n.index' and 'history.n.hash'.
Instead, a file 'history.n.pag' will be created. As far as I can
see (I am an INN novice user) this is not documented anywhere. Due to
this behaviour of makedbz(8), 'make install' of the inn ports will fail
because the shell script which is run in the post-install target cannot
rename 'history.n.{hash,index}' to 'history.{hash,index}'.

Additionally, the current pkg-plists are only correct when these ports
are built without "tagged hash".

Fix: I suggest the following patches to the appropriate Makefiles and
pkg-plist files. I added a knob WITH_TAGGED_HASH for those who want to
use this feature.
How-To-Repeat: Add --enable-tagged-hash to CONFIGURE_ARGS (and comment out
--with-largefiles, these options are not compatible with each other) and
do a 'make install'.
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2002-05-31 18:58:23 UTC
Responsible Changed
From-To: freebsd-ports->des

I'm the INN maintainer
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2003-07-14 15:52:28 UTC
Responsible Changed
From-To: des->freebsd-ports

I no longer have time to maintain inn.
Comment 3 Mark Linimon 2003-07-27 23:20:43 UTC
This was erroneously assigned to freebsd-ports; it should be
freebsd-ports-bugs.
Comment 4 Ceri Davies freebsd_committer freebsd_triage 2003-07-28 11:08:16 UTC
Responsible Changed
From-To: freebsd-ports->freebsd-ports-bugs

Reassign.
Comment 5 Daichi GOTO freebsd_committer freebsd_triage 2003-08-01 06:16:53 UTC
State Changed
From-To: open->closed

Superseded by ports/55108 and 55110. Thanks!