Apache OpenOffice (AOO) Bugzilla – Issue 73217
FreeBSD porting : epm cannot package with long pathname.
Last modified: 2017-05-20 11:31:20 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):
Created attachment 41957 [details] temporary extend to maximum 256 chars to 1024 chars.
it happens if path name is longer than ~256 chars. the attached patch extends to 1024 chars. reassign to maho
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?
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.
fixed in cws freebsd08.
now i understand what you said... reopen.
fixed.
also reported in the upstream. http://www.easysw.com/epm/newsgroups.php?s56+gepm.bugs+v65
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...
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 ?
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.
Reset assigne to the default "issues@openoffice.apache.org".