Bug 158995 - SDK setup fails on linux, if `hostname` not installed
Summary: SDK setup fails on linux, if `hostname` not installed
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+ Master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-03 07:44 UTC by Sahil Gautam
Modified: 2024-02-13 03:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sahil Gautam 2024-01-03 07:44:15 UTC
Description:
I was setting up libreoffice sdk, but running ./setsdkenv_unix showed error. The error was `hostname` not found (kindof). Asking on irc, sberg suggested to file an issue, because this might not be required.

Steps to Reproduce:
1. clone the libreoffice core repo
2. run `core/instdir/sdk/setsdkenv_unix` to setup sdk
3. it shows error, if hostname is not installed

Actual Results:
ERROR: could not open 'libreoffice24.8_sdk/setsdkenv_unix.sh.in' for reading at /home/sahil/repos/libreoffice/instdir/sdk/configure.pl line 755, <STDIN> line 10.
./setsdkenv_unix: line 72: /home/sahil/libreoffice24.8_sdk//setsdkenv_unix.sh: No such file or directory
shows this error. Line 72 uses hostname

Expected Results:
should work without hostname installed as well.
"and you might want to file an issue to get rid of the use of hostname there, as it is not required to exist per Posix, so might be an issue for other people too" -- sberg (IRC)



Reproducible: Always


User Profile Reset: No

Additional Info:
-