Bug 30641

Summary: a function to detect if the binary being run will need libgcc_s
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: chrootedAssignee: placeholder <placeholder>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 25280, 30639, 30640    

Description Ivan Zakharyaschev 2015-01-11 01:50:11 MSK
Some programs would need libgcc_s.so.1 in their chroot during their work. 

3 examples: 

* slapd -- https://bugzilla.altlinux.org/show_bug.cgi?id=25280
* policyd -- https://bugzilla.altlinux.org/show_bug.cgi?id=30639
* pdnsd -- https://bugzilla.altlinux.org/show_bug.cgi?id=30640

So, to detect this, any chrooted program's configuration should call a function on the program's binary which would tell whether it would need any additional libs (such as libgcc_s) in the chroot during their work and copy them if needed.