LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 03-08-2023, 01:11 PM   #1
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 811
Blog Entries: 1

Rep: Reputation: 439Reputation: 439Reputation: 439Reputation: 439Reputation: 439
libreoffice-7.5.0.3 gid_Module_*


Howdy LQ slackware-aarch64-current enthusiasts:

I compiled by hand libreoffice-7.5.0.3 on pinebook-pro running slackware-aarch64-current, and though successful, during this build process, several questions piqued my curiosity:

1) Slackbuilds are generally executed by root or by a user with root priviledges, but in the case of libreoffice, a warning is output that says compiling libreoffice as a root user is a bad idea, which is why I elected to manually build the package. Is it safe to ignore this warning? IMHO, since slackbuilds are executed as root, if it was not safe to build as root, it would be easy enough for the build to create a user, su to the user, build, and then go back to root, and make the package, and finish by deleting the user... are there slackbuilds that do this, or would that be unnecessary?

The details of the build are just a side note for the curious: I made sure ant was installed, and zulu-openjdk11. I used standard slackware configuration options for prefix, sysconfdir, localstatedir, libdir, etc., and I had to disable junit. It was still going six hours later when I went to bed, but was finished when I awoke. I then used the DESTDIR option to make to install it to a directory in /tmp instead of to my root directory, so I can use makepkg. This led me to the second question.

2) In the destination directory, which would be the root directory on the system that has the slackware package I am building installed on it, in addition to the standard /usr directory that I was expecting, libreoffice populated the root directory with many files that begin with "gid_Module_" such as:

gid_module_Brand_Prg_Base
gid_module_Brand_Prg_Calc
gid_module_Brand_Prg_Draw
gid_module_Brand_Prg_Impress
gid_module_Brand_Prg_Math
gid_module_Brand_Prg_Wrt
gid_module_Langpack_Basis_en_US
gid_Module_Langpack_Brand_en_US
gid_Module_Libreofficekit ...

and so on with 32 files that all start with gid_Module...


Why would they place these in a root directory, instead of something inside their tree with a sensible name like modules? I don't really want to wait another 12 hours. Perhaps I missed something in configure that was supposed to specify where to place all these gid_Module files? Are they necessary? They seem to contain a directory specification and the same path twice:

Code:
cat gid_Module_Brand_Prg_Base
%dir /usr/lib64/libreoffice/program
/usr/lib64/libreoffice/program/sbase
/usr/lib64/libreoffice/program/sbase
It did not create binaries in /usr/bin, but instead in /usr/lib64/libreoffice/program, so I have to either add that to my path, or create some symlinks to the respective binaries and put them in /usr/bin, which I can do in the destdir and rerun makepkg... When I launch the executable everything works. I am mainly wondering about all those gid_Module files.

All advice and criticism appreciated.
 
Old 03-08-2023, 03:51 PM   #2
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 2,040

Rep: Reputation: Disabled
can compare with built aarch64 package
 
1 members found this post helpful.
Old 03-08-2023, 04:57 PM   #3
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 811

Original Poster
Blog Entries: 1

Rep: Reputation: 439Reputation: 439Reputation: 439Reputation: 439Reputation: 439
Quote:
Originally Posted by sndwvs View Post
can compare with built aarch64 package
Hi again. Thank you. This tells me that these gid_Module_files are superfluous because find cannot find them in your package, after exploding it:
Code:
mkdir bomb
cd bomb
explodepkg ../libreoffice-7.4.3.2-aarch64-1mara.txz
find . -name "gid_Module_*" -print
returns empty.

Therefore, I think I'm safe to remove these gid_Modules.

I downloaded the package, (from xap), but in source/xap I didn't find source for libreoffice to look at SlackBuild, to see if regular user is used, or if entire package built as root.

The general trend in many linux distros is to avoid root altogether, using sudo only. However, we slackers are captains of our ships, so we are already used to ignoring these cautions about logging in as root.

But libreoffice specifically warned against compiling as root, so I was not sure if this was just the regular trend against using root, that I could safely ignore, or whether it was actually dangerous from security standpoint, giving something in the build root ownerships instead of user's?

Last edited by slac-in-the-box; 03-08-2023 at 04:58 PM.
 
Old 03-08-2023, 05:27 PM   #4
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 811

Original Poster
Blog Entries: 1

Rep: Reputation: 439Reputation: 439Reputation: 439Reputation: 439Reputation: 439
Quote:
Originally Posted by sndwvs View Post
can compare with built aarch64 package
Hi again. Thank you. This tells me that these gid_Module_files are superfluous because find cannot find them in your package, after exploding it:
Code:
mkdir bomb
cd bomb
explodepkg ../libreoffice-7.4.3.2-aarch64-1mara.txz
find . -name "gid_Module_*" -print
returns empty.

Therefore, I think I'm safe to remove these gid_Modules.

I downloaded the package, (from xap), but in source/xap I didn't find source for libreoffice to look at SlackBuild, to see if regular user is used, or if entire package built as root.

The general trend in many linux distros is to avoid root altogether, using sudo only. However, we slackers are captains of our ships, so we are already used to ignoring the cautions about logging in as root.

But libreoffice specifically warned against compiling as root, so I was not sure if this was just the regular trend against using root, that I could safely ignore, or whether it was actually dangerous from security standpoint?
 
Old 03-09-2023, 11:31 AM   #5
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 2,040

Rep: Reputation: Disabled
update 7.5.1.2 source
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: LibreOffice 4.4 Released as the Most Beautiful LibreOffice Ever LXer Syndicated Linux News 0 01-30-2015 02:10 AM
LXer: LibreOffice vs. OpenOffice: Why LibreOffice Wins LXer Syndicated Linux News 0 10-29-2014 11:50 AM
How to install only Writer from Libreoffice package"libreoffice-4.0.3-i486-1alien.txz just.srad Slackware 10 05-30-2013 03:37 PM
LXer: Build Your Business Around LibreOffice, LibreOffice Certification Program Announced LXer Syndicated Linux News 0 05-07-2012 01:10 PM
LXer: LibreOffice Tips: Inserting QurĂ¢??an text in LibreOffice Writer LXer Syndicated Linux News 0 04-16-2012 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration