ilbers / isar

Integration System for Automated Root filesystem generation
Other
177 stars 72 forks source link

Support sources not containing a debian folder in the debianize class #70

Closed mebel-christ closed 2 years ago

mebel-christ commented 2 years ago

Since I am lazy I just created a recipe that looks kind of like the following (note this only includes dummy values for simplicity):

MAINTAINER = "..."
DESCRIPTION = "..."

inherit dpkg

SRC_URI = "git://...;destsuffix=${P}"
SRCREV = "..."

do_prepare_build() {
    deb_debianize
}

When building the image I received the following error: cannot create <path_to_source>/debian/compat: Directory nonexistent

This seems to happen when the source repository does no contain a debian directory but the deb_debianize function requires it. For the sake of lazy people that do not write there own debianization it would be neat when the deb_debianize function creates a debian directory if it does not already exist in the source repository.

I created a patch that can be found in the mailing list.

mebel-christ commented 2 years ago

As outlines by @amikan on the mailing list the following solution looks better and also removes the directory again when running do_clean.

...

do_prepare_build[cleandirs] += "${S}/debian"
do_prepare_build() {
    deb_debianize
}