View previous topic :: View next topic |
Author |
Message |
Anton Gubarkov n00b

Joined: 13 Mar 2008 Posts: 70
|
Posted: Sun Jun 08, 2025 1:44 pm Post subject: Jail propriatory installer to ${D} |
|
|
I'm not 100% sure this is the right audience to ask...
I'm writing an ebuild for a proprietary software that has a binary installer. It tries to install to the root filesystem /usr/local/bin etc and doesn't have any options to specify an alternative prefix. Is there a way to jail it to the ${D} directory to make it build an image that I can further merge into the installation prefix?
Thanks. |
|
Back to top |
|
 |
fedeliallalinea Administrator


Joined: 08 Mar 2003 Posts: 31693 Location: here
|
Posted: Sun Jun 08, 2025 2:39 pm Post subject: |
|
|
If the installer does not allow you to add a prefix, you should move the files with the installation functions provided by portage yourself. _________________ Questions are guaranteed in life; Answers aren't.
"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968 |
|
Back to top |
|
 |
Anton Gubarkov n00b

Joined: 13 Mar 2008 Posts: 70
|
Posted: Sun Jun 08, 2025 2:50 pm Post subject: |
|
|
So I assume the answer to my question is "no".
My problem is that the installer is the ELF executable with some archive embedded, however objdump -a doesn't reveal any obvious content. it is not understood by unzip either. The only way to unpack it that I know is to run it. I hoped I could move files around ${d} to follow the Gentoo FHS. |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2215
|
Posted: Sun Jun 08, 2025 3:01 pm Post subject: |
|
|
Try to look at unpacker.eclass and see if either the unpack_pdv or unpack_makeself funcitons will work for this archive |
|
Back to top |
|
 |
pingtoo Veteran


Joined: 10 Sep 2021 Posts: 1683 Location: Richmond Hill, Canada
|
Posted: Sun Jun 08, 2025 3:05 pm Post subject: |
|
|
Anton Gubarkov wrote: | So I assume the answer to my question is "no".
My problem is that the installer is the ELF executable with some archive embedded, however objdump -a doesn't reveal any obvious content. it is not understood by unzip either. The only way to unpack it that I know is to run it. I hoped I could move files around ${d} to follow the Gentoo FHS. |
May be you can try app-misc/binwalk to see if it know what that ELF content. |
|
Back to top |
|
 |
Anton Gubarkov n00b

Joined: 13 Mar 2008 Posts: 70
|
Posted: Sun Jun 08, 2025 6:41 pm Post subject: |
|
|
grknight wrote: | Try to look at unpacker.eclass and see if either the unpack_pdv or unpack_makeself funcitons will work for this archive |
thanks for the suggestion. Unfortunately neither worked  |
|
Back to top |
|
 |
Anton Gubarkov n00b

Joined: 13 Mar 2008 Posts: 70
|
Posted: Sun Jun 08, 2025 7:00 pm Post subject: |
|
|
pingtoo wrote: | Anton Gubarkov wrote: | So I assume the answer to my question is "no".
My problem is that the installer is the ELF executable with some archive embedded, however objdump -a doesn't reveal any obvious content. it is not understood by unzip either. The only way to unpack it that I know is to run it. I hoped I could move files around ${d} to follow the Gentoo FHS. |
May be you can try app-misc/binwalk to see if it know what that ELF content. |
This suggestion worked and the file was decomposed into several hundreds files, of which only .png files are of some sense (from the installation point of view). The majority of files are html inside. The seem to be the content of the program's help system. |
|
Back to top |
|
 |
|