Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Jail propriatory installer to ${D}
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Anton Gubarkov
n00b
n00b


Joined: 13 Mar 2008
Posts: 70

PostPosted: Sun Jun 08, 2025 1:44 pm    Post subject: Jail propriatory installer to ${D} Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31693
Location: here

PostPosted: Sun Jun 08, 2025 2:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anton Gubarkov
n00b
n00b


Joined: 13 Mar 2008
Posts: 70

PostPosted: Sun Jun 08, 2025 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 2215

PostPosted: Sun Jun 08, 2025 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1683
Location: Richmond Hill, Canada

PostPosted: Sun Jun 08, 2025 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anton Gubarkov
n00b
n00b


Joined: 13 Mar 2008
Posts: 70

PostPosted: Sun Jun 08, 2025 6:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anton Gubarkov
n00b
n00b


Joined: 13 Mar 2008
Posts: 70

PostPosted: Sun Jun 08, 2025 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



OSZAR »