Issue 73217 - FreeBSD porting : epm cannot package with long pathname.
Summary: FreeBSD porting : epm cannot package with long pathname.
Status: REOPENED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 2.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-07 05:12 UTC by maho.nakata
Modified: 2017-05-20 11:31 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
temporary extend to maximum 256 chars to 1024 chars. (3.37 KB, text/plain)
2007-01-07 05:24 UTC, maho.nakata
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description maho.nakata 2007-01-07 05:12:01 UTC
with long pathname, 
cd
/work/veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryvery/openoffice.org-2/
make
...
build fails like:
**************************************************
ERROR: ERROR: "epm -f bsd openoffice.org-sdk
/work/veryveryveryveryveryveryveryveryveryveryvery
veryveryveryveryvery/openoffice.org-2/work/OOE680_m6/instsetoo_native/unxfbsdx.pro/OpenOffice_S
DK/bsd/listfile/en-US/epm_OpenOffice_SDK_gid_Module_Root_unxfbsdx_OOE680__en-US.lst
-v  2>&1 |"
!
in function: call_epm
**************************************************

**************************************************
ERROR: Saved logfile:
/work/veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryvery/op
enoffice.org-2/work/OOE680_m6/instsetoo_native/unxfbsdx.pro/OpenOffice_SDK/bsd/logging/en-US/lo
g_OOE680__en-US.log
**************************************************
... cleaning the output tree ...
... removing directory
/work/veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryvery/o
penoffice.org-2/work/OOE680_m6/instsetoo_native/unxfbsdx.pro/OpenOffice_SDK/bsd/zip/en-US
...
Sun Jan  7 13:52:39 2007 (03:36 min.)
dmake:  Error code 255, while making 'sdkoo_en-US.bsd'
'---* tg_merge.mk *---'

1 module(s): 
        instsetoo_native
need(s) to be rebuilt

Reason(s):
Comment 1 maho.nakata 2007-01-07 05:24:28 UTC
Created attachment 41957 [details]
temporary extend to maximum 256 chars to 1024 chars.
Comment 2 maho.nakata 2007-01-07 05:32:38 UTC
it happens if path name is longer than ~256 chars.
the attached patch extends to 1024 chars.
reassign to maho
Comment 3 pavel 2007-01-08 07:04:01 UTC
maho: you have changed options as well?

What about using PATH_MAX? Can you please report this to epm people as well and/or verify their latest 
version if it is fixed there already?
Comment 4 maho.nakata 2007-01-08 07:24:57 UTC
pjanik:
using PATH_MAX is a good idea. unfortunately epm doesn't accept the length
via configure or something like that. it is hardcoded :(
I'll report this to the developer of epm.
Comment 5 maho.nakata 2007-06-01 23:21:01 UTC
fixed in cws freebsd08.
Comment 6 maho.nakata 2007-06-02 00:18:40 UTC
now i understand what you said...
reopen.
Comment 7 maho.nakata 2007-06-02 00:21:09 UTC
fixed.
Comment 8 maho.nakata 2007-06-02 01:52:32 UTC
also reported in the upstream.
http://www.easysw.com/epm/newsgroups.php?s56+gepm.bugs+v65
Comment 9 maho.nakata 2007-06-05 22:22:35 UTC
According to http://www.easysw.com/epm/newsgroups.php?s56+gepm.bugs+v66
> The problem is that POSIX tar files are limited to 256 characters
> (the actual limit is more like 155 + 100 characters for any
> combination of directory path and name, thanks to the way POSIX
> extended the original tar format, which only allowed 100 characters
> total), so even if we wanted to support longer names, we couldn't
> for any format that depends on tar files - BSD, Slackware, and
> portable all use tar files.  The IRIX format also limit filenames
> to 256 characters...
so I backouted...
Comment 10 nospam4obr 2007-06-06 06:26:47 UTC
My understanding of this issue is that epm currently limits
<long packaging path>/<long office or SDK path> to 256 characters, while the
POSIX tar specification limits the second part to this length. Is this correct ? 

Do we already have paths exceeding this length in OOo SDK ?
Comment 11 Pedro Giffuni 2011-10-09 00:47:40 UTC
EPM is GPL'd so it's not included anymore in OpenOffice's distribution,
It's a build dependency so the ports tree will take care of it.
Comment 12 Marcus 2017-05-20 11:31:20 UTC
Reset assigne to the default "issues@openoffice.apache.org".