Opened 15 years ago
Closed 5 years ago
#22228 closed defect (fixed)
nvi says "page sizes must be a power-of-2"
Reported by: | helbig.wolfgang@… | Owned by: | tobypeterson |
---|---|---|---|
Priority: | Low | Milestone: | |
Component: | ports | Version: | 1.8.1 |
Keywords: | Cc: | qbarnes (Quentin Barnes), suominen (Kimmo Suominen) | |
Port: | nvi |
Description
This occurs when editing a big file. I do not know, whether its harmful. But makes me feel uncomfortable somewhat.
Attachments (1)
Change History (10)
comment:1 Changed 15 years ago by jmroot (Joshua Root)
Keywords: | nvi pages size power-of-2 removed |
---|---|
Owner: | changed from macports-tickets@… to toby@… |
Port: | nvi added |
comment:2 Changed 15 years ago by tobypeterson
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:3 Changed 15 years ago by helbig.wolfgang@…
Hmm, since nvi works flawlessly on NetBSD, this looked like I porting issue to me.
Changed 14 years ago by qbarnes (Quentin Barnes)
Patch to address "page size must be power-of-2" message.
comment:4 Changed 14 years ago by qbarnes (Quentin Barnes)
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
The message comes from db4. Nvi is requesting a non-power of 2 page size with its call to db->set_pagesize(). The message comes out on OSX as well as Linux. I don't know why NetBSD doesn't get the same message. I haven't looked.
I developed a fix that works to address this issue on both Linux and OSX. I uploaded a patch for Macports nvi that I installed and tested. Seems to work fine. I wish I understood the code better, but the fix does solve the problem and I think doesn't introduce any other side effects or additional issues. Let me know if there's any problems applying or using it.
comment:6 Changed 14 years ago by tobypeterson
Priority: | Normal → Low |
---|
comment:8 Changed 5 years ago by tobypeterson
Still appears to be reproducible; not sure the proposed patch is the best approach.
comment:9 Changed 5 years ago by tobypeterson
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
we don't have a "third party to resolve" resolution, but seriously - report this upstream