Name the generated HPKG files properly
* rule AddPackageFilesToHaikuImage: Add "flags" parameter. The only supported flag is "nameFromMetaInfo". It causes the packages to be copied under their canonical file name onto the image. * Use the new flag for all generated packages save haiku_loader.hpkg.
This commit is contained in:
+14
-2
@@ -1009,14 +1009,26 @@ rule AddBootModuleSymlinksToHaikuImage targets
|
||||
: $(targets) ;
|
||||
}
|
||||
|
||||
rule AddPackageFilesToHaikuImage location : packages
|
||||
rule AddPackageFilesToHaikuImage location : packages : flags
|
||||
{
|
||||
# AddPackageFilesToHaikuImage <location> : <packages> : <flags>
|
||||
#
|
||||
# Supported flags:
|
||||
# nameFromMetaInfo - determine the target file name from the package meta
|
||||
# info
|
||||
|
||||
packages = [ FFilterByBuildFeatures $(packages) ] ;
|
||||
HAIKU_PACKAGES_IN_IMAGE on $(HAIKU_IMAGE_CONTAINER_NAME)
|
||||
= [ on $(HAIKU_IMAGE_CONTAINER_NAME) return $(HAIKU_PACKAGES_IN_IMAGE) ]
|
||||
$(packages) ;
|
||||
HAIKU_PACKAGE_INSTALLATION_LOCATION on $(packages) = $(location) ;
|
||||
AddFilesToHaikuImage $(location) packages : $(packages) ;
|
||||
|
||||
if nameFromMetaInfo in $(flags) {
|
||||
AddFilesToHaikuImage $(location) packages : $(packages)
|
||||
: packageFileName : computeName ;
|
||||
} else {
|
||||
AddFilesToHaikuImage $(location) packages : $(packages) ;
|
||||
}
|
||||
}
|
||||
|
||||
rule AddOptionalHaikuImagePackages packages
|
||||
|
||||
@@ -146,6 +146,8 @@ if [ IsOptionalHaikuImagePackageAdded DevelopmentMin ]
|
||||
haiku_devel.hpkg
|
||||
haiku_$(TARGET_PACKAGING_ARCHS[2-])_devel.hpkg
|
||||
makefile_engine.hpkg
|
||||
:
|
||||
nameFromMetaInfo
|
||||
;
|
||||
}
|
||||
|
||||
@@ -271,7 +273,8 @@ if [ IsOptionalHaikuImagePackageAdded WebPositive ] {
|
||||
for architectureObject in [ MultiArchSubDirSetup ] {
|
||||
on $(architectureObject) {
|
||||
if [ FIsBuildFeatureEnabled webpositive ] {
|
||||
AddPackageFilesToHaikuImage system : webpositive.hpkg ;
|
||||
AddPackageFilesToHaikuImage system : webpositive.hpkg
|
||||
: nameFromMetaInfo ;
|
||||
InstallOptionalHaikuImagePackage
|
||||
$(baseURL)/WebPositiveBookmarks-2012-02-18.zip
|
||||
: home config settings WebPositive ;
|
||||
@@ -284,8 +287,9 @@ if [ IsOptionalHaikuImagePackageAdded WebPositive ] {
|
||||
|
||||
# Welcome
|
||||
if [ IsOptionalHaikuImagePackageAdded Welcome ] {
|
||||
AddPackageFilesToHaikuImage system : haiku_userguide.hpkg ;
|
||||
AddPackageFilesToHaikuImage system : haiku_welcome.hpkg ;
|
||||
AddPackageFilesToHaikuImage system : haiku_userguide.hpkg
|
||||
: nameFromMetaInfo ;
|
||||
AddPackageFilesToHaikuImage system : haiku_welcome.hpkg : nameFromMetaInfo ;
|
||||
|
||||
AddSymlinkToHaikuImage home Desktop : /boot/system/bin/welcome
|
||||
: Welcome ;
|
||||
|
||||
@@ -218,6 +218,8 @@ include [ FDirName $(HAIKU_BUILD_RULES_DIR) HaikuPackages ] ;
|
||||
AddPackageFilesToHaikuImage system :
|
||||
haiku.hpkg
|
||||
haiku_$(TARGET_PACKAGING_ARCHS[2-]).hpkg
|
||||
:
|
||||
nameFromMetaInfo
|
||||
;
|
||||
AddPackageFilesToHaikuImage system : haiku_loader.hpkg ;
|
||||
|
||||
|
||||
@@ -175,6 +175,8 @@ include [ FDirName $(HAIKU_BUILD_RULES_DIR) HaikuPackages ] ;
|
||||
AddPackageFilesToHaikuImage system :
|
||||
haiku.hpkg
|
||||
haiku_$(TARGET_PACKAGING_ARCHS[2-]).hpkg
|
||||
:
|
||||
nameFromMetaInfo
|
||||
;
|
||||
AddPackageFilesToHaikuImage system : haiku_loader.hpkg ;
|
||||
|
||||
|
||||
@@ -219,6 +219,12 @@ downloadFile()
|
||||
}
|
||||
|
||||
|
||||
packageFileName()
|
||||
{
|
||||
$package info -f "%fileName%" "$1"
|
||||
}
|
||||
|
||||
|
||||
mkdir -p $tmpDir
|
||||
copyrightsFile=$tmpDir/copyrights
|
||||
$rmAttrs -f $copyrightsFile
|
||||
|
||||
Reference in New Issue
Block a user