All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksandr Poznyak <oleksandr.poznyak@gmail.com>
To: Diego <diego.ml@zoho.com>
Cc: Paul Eggleton <paul.eggleton@linux.intel.com>, yocto@yoctoproject.org
Subject: Re: Per image customizations
Date: Fri, 3 Jun 2016 20:56:32 +0300	[thread overview]
Message-ID: <CAEeWubKEgaf0+KaVmkUycbqvNUJf69xYTAvhF7S0P2wwUqKvZA@mail.gmail.com> (raw)
In-Reply-To: <1726204.03aEvQFlgk@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 2461 bytes --]

I found that that’s an issue with rpm packages. I didn't expect there might
be some issue with rpm. If you really don't care which package management
system to use, switch to deb:

PACKAGE_CLASSES = "package_deb"

On Fri, Jun 3, 2016 at 4:52 PM, Diego <diego.ml@zoho.com> wrote:

> Hi Oleksandr,
>
> In data mercoledì 1 giugno 2016 21:57:32, Oleksandr Poznyak ha scritto:
> > Here is the content of bbappend recipe for base-files recipe:
> >
> > FILESEXTRAPATHS_append := "${THISDIR}/${PN}"
> >
> > SRC_URI += "file://fstab-flash \
> >         file://fstab-regular \
> >         "
> >
> > PACKAGES += " ${PN}-flash ${PN}-regular"
> > CONFFILES_${PN}-flash = "${CONFFILES_${PN}}"
> > CONFFILES_${PN}-regular = "${CONFFILES_${PN}}"
> >
> > pkg_preinst_${PN}-flash = "${pkg_preinst_${PN}}"
> > pkg_preinst_${PN}-regular = "${pkg_preinst_${PN}}"
> >
> > RREPLACES_${PN}-flash = "${PN}"
> > RPROVIDES_${PN}-flash = "${PN}"
> > RCONFLICTS_${PN}-flash = "${PN}"
> >
> > RREPLACES_${PN}-regular = "${PN}"
> > RPROVIDES_${PN}-regular = "${PN}"
> > RCONFLICTS_${PN}-regular = "${PN}"
> >
> > python populate_packages_prepend() {
> >     import shutil
> >
> >     packages = ("${PN}-flash", "${PN}-regular")
> >     for package in packages:
> >         # copy ${PN} content to packages
> >         shutil.copytree("${PKGD}", "${PKGDEST}/%s" % package,
> symlinks=True)
> > # replace fstab
> >         if package == "${PN}-flash":
> >             shutil.copy("${WORKDIR}/fstab-flash",
> > "${PKGDEST}/${PN}-flash/etc/fstab")
> >         else:
> >             shutil.copy("${WORKDIR}/fstab-regular",
> > "${PKGDEST}/${PN}-regular/etc/fstab")
> > }
> >
> >
> > This will produce two separate packages that will replace base-files
> > package.
> > Moreover, this trick allows You to modify base-files package separately
> for
> > flash-OS and regular-OS
> >
>
> This is very useful, thank you. With this code I'm able to have two
> different
> fstab files under packages-split:
> ./packages-split/base-files-regular/etc/fstab
> ./packages-split/base-files-flash/etc/fstab
>
> Regardless of that though, the resulting rpm packages for
> "base-files-regular"
> and "base-files-flash" have the original fstab as in "base-files", which is
> different to both the fstabs in packages-split mentioned above.
>
> I'm looking at what might be causing this, but any idea is welcome.
>
> Thanks,
> Diego
>
>

[-- Attachment #2: Type: text/html, Size: 3387 bytes --]

  reply	other threads:[~2016-06-03 17:56 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-31 16:05 Per image customizations Diego
2016-05-31 23:57 ` Paul Eggleton
2016-06-01 12:25   ` Oleksandr Poznyak
2016-06-01 16:15     ` Diego
2016-06-01 18:57       ` Oleksandr Poznyak
2016-06-03 13:52         ` Diego
2016-06-03 17:56           ` Oleksandr Poznyak [this message]
2016-06-06 13:27             ` Diego
2016-06-27  4:11               ` Paul Eggleton
2016-07-01  9:18                 ` Diego
2016-06-06 20:55         ` Edward Wingate
2016-06-06 21:10           ` Oleksandr Poznyak
2016-06-06 22:06             ` Edward Wingate
2016-06-06 23:52               ` Edward Wingate
2016-06-07 10:20             ` Paul Eggleton
2016-06-07 10:51               ` Oleksandr Poznyak
2016-06-07 15:57               ` Edward Wingate
2016-06-07 20:47                 ` Paul Eggleton
2016-06-07 23:07                   ` Edward Wingate
2016-06-07 23:23                     ` Paul Eggleton
2016-06-08  8:58                       ` Oleksandr Poznyak
2016-06-08 18:01                         ` Edward Wingate

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEeWubKEgaf0+KaVmkUycbqvNUJf69xYTAvhF7S0P2wwUqKvZA@mail.gmail.com \
    --to=oleksandr.poznyak@gmail.com \
    --cc=diego.ml@zoho.com \
    --cc=paul.eggleton@linux.intel.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.