Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Can I execute commands before the build system is invoked at all in a flatpak-builder module?

+0
−0

I'm creating a flatpak-builder manifest wherein I want to do some "pre-processing" steps of the source code in a given module before the build system is invoked. In particular, I want to "merge" three codebases into one. I cannot simply use the dest directive as flatpak-builder's git handling gets confused when you merge repositories this way.

This was what I tried:

{
	"name": "Example project",
	"buildsystem": "meson",
	"build-commands": [
		"cp -a source2/. source1/src",
		"cp -a source3/. source1/src"
	],
	"sources": [
		/* Several sources. */
	]
}

However, this does not work as when using build-commands with a build system, the commands get invoked between the "make" and the "make install" steps per the documentation, so the projects get merged after the build has happened. Looking at the documentation, I can't any sort of "pre build" command execution method. Is there any way to achieve this with flatpak-builder? I would rather avoid having to vendor these files in the actual source tree as I'm working with an existing codebase that I would prefer to modify as little as possible.

History

0 comment threads

Sign up to answer this question »