if (r < 0)
goto ERROR;
- // Set target
- if (local_args.target) {
- r = pakfire_build_set_target(build, local_args.target);
- if (r) {
- fprintf(stderr, "Could not set target directory %s: %m\n", local_args.target);
- goto ERROR;
- }
- }
-
// Process all packages
for (unsigned int i = 0; i < local_args.num_makefiles; i++) {
// Run the build
uuid_t id;
char _id[UUID_STR_LEN];
- char target[PATH_MAX];
-
// Times
struct timespec time_start;
return pakfire_string_set(build->ccache_path, path);
}
-int pakfire_build_set_target(
- struct pakfire_build* build, const char* target) {
- return pakfire_string_set(build->target, target);
-}
-
static int pakfire_build_read_makefile(struct pakfire_build* build,
struct pakfire_parser** parser, struct pakfire_package* package) {
char path[PATH_MAX];
struct pakfire_build* pakfire_build_unref(struct pakfire_build* build);
int pakfire_build_set_ccache_path(struct pakfire_build* build, const char* path);
-int pakfire_build_set_target(struct pakfire_build* build, const char* target);
int pakfire_build_shell(struct pakfire_build* build, const char* argv[], const char** packages);
}
}
- // XXX need to set target
-
// Run the build
r = pakfire_build_exec(build, job->pkg, pakfire_job_result, job);