Junichi Uekawa wrote:
> Ah, so,  binary sometimes works (if the required shared libs exist).
> 
> I think it's unreliable to send random binary file to inside chroot
> and hope that it can work.
> 
> What can be improved?

a) Print a warning message "Copying binaries into the pbuilder chroot
and running them there may not work!" if 'file $SCRIPT' returns
something containing "binary".

b) add a --nocopy (or choose a better name) flag so that
       sudo pbuilder execute --nocopy -- /bin/echo hello world
will execute the binary found inside the chroot.
Deriving some automatism to detect the users intentions ('copy and
execute' or 'just execute what's in the chroot') will be hard and
more confusing.


Andreas




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to