77908d8a08
The places of the terms *do* affect the sum in apt's case; start with lowlevel items like SYSTEM_PACKAGES and end with high-level ones like THE_LISTS to reduce the chance of getting hit by premature virtual dependency expansion/fixation. Adapt live and rescue features accordingly. See-also: https://bugzilla.altlinux.org/show_bug.cgi?id=30806#c5 Suggested-by: Leonid Krivoshein <klark@altlinux.org>
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# step 4: build main subprofile (requisite + optional packages for media)
|
|
|
|
ifndef GLOBAL_BUILDDIR
|
|
$(error GLOBAL_BUILDDIR not defined)
|
|
endif
|
|
|
|
default: all
|
|
|
|
include $(GLOBAL_BUILDDIR)/distcfg.mk
|
|
include $(GLOBAL_BUILDDIR)/functions.mk
|
|
include $(MKIMAGE_PREFIX)/config.mk
|
|
|
|
CHROOT_PACKAGES = apt-utils rsync
|
|
|
|
IMAGE_PACKAGES_REGEXP = $(BASE_PACKAGES_REGEXP) \
|
|
$(THE_PACKAGES_REGEXP) \
|
|
$(MAIN_PACKAGES_REGEXP) \
|
|
$(call kpackages, \
|
|
$(KFLAVOURS), \
|
|
$(BASE_KMODULES) \
|
|
$(BASE_KMODULES_REGEXP) \
|
|
$(THE_KMODULES) \
|
|
$(MAIN_KMODULES))
|
|
|
|
IMAGE_PACKAGES = $(SYSTEM_PACKAGES) $(COMMON_PACKAGES) \
|
|
$(BASE_PACKAGES) $(THE_PACKAGES) $(MAIN_PACKAGES) \
|
|
$(call map,list,$(BASE_LISTS) $(THE_LISTS) $(MAIN_LISTS) \
|
|
$(call groups2lists))
|
|
|
|
-include $(sort $(wildcard lib/*.mk))
|
|
|
|
MKI_DESTDIR = ALTLinux/RPMS.main
|
|
MKI_PACK_RESULTS = data
|
|
|
|
include $(MKIMAGE_PREFIX)/targets.mk
|
|
|
|
all: $(GLOBAL_DEBUG) copy-packages pack-image $(GLOBAL_CLEAN_WORKDIR)
|
|
|
|
debug:
|
|
@echo "** main: IMAGE_PACKAGES: $(IMAGE_PACKAGES)"
|
|
@echo "** main: IMAGE_PACKAGES_REGEXP: $(IMAGE_PACKAGES_REGEXP)"
|