On 31/03/2016 20:27, Roger Koehler wrote:
> On Mar 30, 2016 10:18 AM, "Pierre Labastie" <[email protected]
> <mailto:[email protected]>> wrote:
>> How long... Depends on you ;-) I mean I am not able to work on this
>> myself, because I have too much else to do (with updating BLFS
>> + real life job). But I'd be happy to follow what you do and give some
>> advice.
> 
> Is there a tool out there that will take two xml files as inputs and generate
> the xsl transform for you?
> 

None that I know of. But I have thought about what you said. It'd be nice to
have a way to wrap install commands inside another command, as needed by porg.
I am thinking of fakeroot for example, which allows to run DESTDIR install as
a normal user, but fake the packager to think files are owned by root.
I think it would not be difficult to add a custom wrapper, that could contain
something like:
---
<custom command> sh << WRAP_EOF
install commands
WRAP_EOF
---
where <custom command> could be "porg -lD".

This is just a few more lines of xsl. I have already written the
wrapper for BLFS jhalfs. We'd have to pass the custom command as a parameter.

Of course, we would have four cases, the first two of which are already
implemented:
no DESTDIR, no wrapper
DESTDIR, no wrapper
no DESTDIR, wrapper (porg's case)
DESTDIR, wrapper (fakeroot's case)

Regards
Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to