On 07/28/2017 01:21 AM, Marek Marczykowski-Górecki wrote:
> On Thu, Jul 27, 2017 at 07:01:17PM -0700, Andrew Morgan wrote:
>> On 07/26/2017 01:29 AM, Marek Marczykowski-Górecki wrote:
>>> On Tue, Jul 25, 2017 at 08:54:57PM -0700, Andrew Morgan wrote:
>>>> Is it possible to build just Nautilus with qubes-builder? That may make
>>>> things much closer to what we want.
>>>
>>> You'll need source package (.spec for rpm for example). You can start
>>> with upstream source package:
>>>  - dnf download --source nautilus && rpmdev-extract nautilus*src.rpm
>>>  - apt-get source nautilus
>>>
>>> Then place resulting files in a subdirectory of qubes-src and add
>>> Makefile.builder with either (or both):
>>>  RPM_SPEC_FILES = relative/path/to/spec
>>>  DEBIAN_BUILD_DIRS = debian (actually, a path to a directory with "control" 
>>> file)
>>>
>>> For RPM, qubes-builder will handle unpacking sources, for Debian, you
>>> need to add commands to do it into Makefile.builder, something like:
>>>
>>>     ifneq ($(filter $(DISTRIBUTION), debian qubuntu),)
>>>     SOURCE_COPY_IN = debian-source-copy-in
>>>     endif
>>>
>>>     debian-source-copy-in: SRC_FILE = 
>>> "$(CHROOT_DIR)/$(DIST_SRC)/nautilus-x.y.z.tar.gz"
>>>         tar xf $(SRC_FILE) -C $(CHROOT_DIR)/$(DIST_SRC) 
>>> --strip-components=1  
>>>
>>> Some more details here:
>>> https://github.com/QubesOS/qubes-builder/blob/master/doc/ComponentConfiguration.md
>>>
>>>
> 
>> Hey Marek,
> 
>> I was able to build an entire f25-minimal template. Is there any way to
>> build just the app or perhaps just build a new copy of Nautilus for an
>> existing template?
> 
> Yes, I recommend "make help" ;)
> In short: "make component-name", like "make core-agent-linux". It will
> print list of built packages at the end - you need to copy them into
> appropriate (Template)VM and install using rpm or dnf.
> 
> To build nautilus (which is by default downloaded from upstream
> repositories as binary package), you need to add new component,
> according to instruction above.
> 
> Also, other builder documentation
> https://www.qubes-os.org/doc/qubes-builder/
> 
> 

Thanks Marek, I've managed to get it working and all automated with a
dom0 script.

I'll also make sure to update you guys more often on my progress going
forward ;)

Thanks,
Andrew Morgan

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-devel/olh0fo%24ke%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to