Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 8421] New: util-linux installs systemd files in output/target/home/
@ 2015-10-21 12:21 bugzilla at busybox.net
  2015-10-21 12:32 ` [Buildroot] [Bug 8421] " bugzilla at busybox.net
  2015-10-22 20:43 ` bugzilla at busybox.net
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2015-10-21 12:21 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8421

           Summary: util-linux installs systemd files in
                    output/target/home/
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Mac OS
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: thijsvermeir at gmail.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


When I use a user table and enable systemd, the home folder of the user
contains systemd files from the util-linux package and other directories.

~/buildroot/sheeva/output/target/home/tvermeir$ tree .
.
`-- buildroot
    |-- host
    |   `-- sheevaplug-glibc
    |       `-- usr
    |           `-- arm-buildroot-linux-gnueabi
    |               `-- sysroot
    |                   `-- lib
    |                       `-- systemd
    |                           `-- system
    |                               |-- fstrim.service
    |                               `-- fstrim.timer
    `-- sheeva

10 directories, 2 files

~/buildroot/sheeva$ find ./ -name "fstrim.service"
./output/target/home/tvermeir/buildroot/host/sheevaplug-glibc/usr/arm-buildroot-linux-gnueabi/sysroot/lib/systemd/system/fstrim.service
./output/build/util-linux-2.27/sys-utils/fstrim.service

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 8421] util-linux installs systemd files in output/target/home/
  2015-10-21 12:21 [Buildroot] [Bug 8421] New: util-linux installs systemd files in output/target/home/ bugzilla at busybox.net
@ 2015-10-21 12:32 ` bugzilla at busybox.net
  2015-10-22 20:43 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2015-10-21 12:32 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8421

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #1 from Peter Korsgaard <jacmet@uclibc.org> 2015-10-21 12:32:55 UTC ---
Looks to be caused by the recent pkgconf version bump, which now prefixes all
variables with the sysroot:

commit 3fe434bf35b09ddf438392e6e5b4bc0b849495c7
Author: Gustavo Zacarias <gustavo@zacarias.com.ar>
Date:   Mon Oct 5 16:54:30 2015 -0300

    glib-networking: specify GIO_MODULE_DIR for target

    Since the upgrade to pkgconf 0.9.12 all directories and variables with
    directories are sysroot-prefixed, whereas with the old patch only some
    variables were (includedir, mapdir, sdkdir, libdir).

    libglib2 uses a giomoduledir=${libdir}/gio/modules variable in
    gio-2.0.pc, which when expanded via sysroot by pkgconf at configure time
    points to the staging directory (via libdir expansion).
    When target install gets called the gio module gets installed to staging
    rather than target, with the obvious consequences this has.

    Work-around this pkgconfig abuse by overriding GIO_MODULE_DIR at target
    install time.

    Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
    Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

I'll add a workaround for util-linux as well.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [Bug 8421] util-linux installs systemd files in output/target/home/
  2015-10-21 12:21 [Buildroot] [Bug 8421] New: util-linux installs systemd files in output/target/home/ bugzilla at busybox.net
  2015-10-21 12:32 ` [Buildroot] [Bug 8421] " bugzilla at busybox.net
@ 2015-10-22 20:43 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2015-10-22 20:43 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8421

Peter Korsgaard <jacmet@uclibc.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Peter Korsgaard <jacmet@uclibc.org> 2015-10-22 20:43:23 UTC ---
Hi,

I've committed a fix to disable systemd support in util-linux. You must have
ended up with the problem by rebuilding util-linux after building systemd,
because system depends on util-linux, so it gets built before systemd and will
not be able to find the systemd .pc files.

We cannot enable systemd support as that would cause a circular dependency.

commit 762b64daa2fd1424053754ed55d0f9704ccc2405
Author: Peter Korsgaard <peter@korsgaard.com>
Date:   Thu Oct 22 22:36:50 2015 +0200

    util-linux: disable systemd support

    Fixes (works around) #8421

    Util-linux has optional systemd support, but we cannot enable it as systemd
    depends on util-linux, so that would create a circular dependency.

    The systemd unit directory location detection also fails as pkg-config
    0.9.12+ prefixes all directory variables with the sysroot, and the
configure
    script expects to see the target location, so disable that as well for good
    measure.

    The systemd support doesn't seem to add much, so it isn't a big loss.

    Signed-off-by: Peter Korsgaard <peter@korsgaard.com>

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-22 20:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-21 12:21 [Buildroot] [Bug 8421] New: util-linux installs systemd files in output/target/home/ bugzilla at busybox.net
2015-10-21 12:32 ` [Buildroot] [Bug 8421] " bugzilla at busybox.net
2015-10-22 20:43 ` bugzilla at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox