All of lore.kernel.org
 help / color / mirror / Atom feed
* pango modules postinst issue
@ 2012-07-31 15:01 Andreas Müller
  2012-08-02 19:23 ` Andreas Müller
  2012-08-20 14:20 ` Andreas Müller
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Müller @ 2012-07-31 15:01 UTC (permalink / raw)
  To: openembedded-core

Hi,

sorry fur disturbing again - but:

When starting X on a maiden image I receive:

No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/etc/pango/pango.modules'

and have no fonts displayed. Followed the suggestion

pango-querymodules > '/etc/pango/pango.modules'

-> fonts are OK.

I checked: Besides other pango modules my image contains
pango-module-basic-x. In the postinst of this package I see

#!/bin/sh
if [ "x$D" != "x" ]; then
  exit 1
fi

if ! [ -e $D/etc/pango ] ; then
	mkdir -p $D/etc/pango
fi
/usr/bin/pango-querymodules > /etc/pango/pango.modules

This looks OK so far ( besides that I would not have the $D in second part ).

Additionally log.do_rootfs says:

Configuring pango-module-basic-x.
pango-module-basic-x.postinst returned 1, marking as unpacked only,
configuration required on target.

Any idea what is happening here?

Andreas



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

* Re: pango modules postinst issue
  2012-07-31 15:01 pango modules postinst issue Andreas Müller
@ 2012-08-02 19:23 ` Andreas Müller
  2012-08-02 19:30   ` Martin Jansa
  2012-08-20 14:20 ` Andreas Müller
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Müller @ 2012-08-02 19:23 UTC (permalink / raw)
  To: openembedded-core

On Tue, Jul 31, 2012 at 5:01 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> Hi,
>
> sorry fur disturbing again - but:
>
> When starting X on a maiden image I receive:
>
> No builtin or dynamically loaded modules were found.
> PangoFc will not work correctly.
> This probably means there was an error in the creation of:
>   '/etc/pango/pango.modules'
> You should create this file by running:
>   pango-querymodules > '/etc/pango/pango.modules'
>
> and have no fonts displayed. Followed the suggestion
>
> pango-querymodules > '/etc/pango/pango.modules'
>
> -> fonts are OK.
>
> I checked: Besides other pango modules my image contains
> pango-module-basic-x. In the postinst of this package I see
>
> #!/bin/sh
> if [ "x$D" != "x" ]; then
>   exit 1
> fi
>
> if ! [ -e $D/etc/pango ] ; then
>         mkdir -p $D/etc/pango
> fi
> /usr/bin/pango-querymodules > /etc/pango/pango.modules
>
> This looks OK so far ( besides that I would not have the $D in second part ).
>
> Additionally log.do_rootfs says:
>
> Configuring pango-module-basic-x.
> pango-module-basic-x.postinst returned 1, marking as unpacked only,
> configuration required on target.
>
> Any idea what is happening here?
>
> Andreas

Nobody else seeing this?

Andreas



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

* Re: pango modules postinst issue
  2012-08-02 19:23 ` Andreas Müller
@ 2012-08-02 19:30   ` Martin Jansa
  2012-08-08  7:34     ` Burton, Ross
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2012-08-02 19:30 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

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

On Thu, Aug 02, 2012 at 09:23:52PM +0200, Andreas Müller wrote:
> On Tue, Jul 31, 2012 at 5:01 PM, Andreas Müller
> <schnitzeltony@googlemail.com> wrote:
> > Hi,
> >
> > sorry fur disturbing again - but:
> >
> > When starting X on a maiden image I receive:
> >
> > No builtin or dynamically loaded modules were found.
> > PangoFc will not work correctly.
> > This probably means there was an error in the creation of:
> >   '/etc/pango/pango.modules'
> > You should create this file by running:
> >   pango-querymodules > '/etc/pango/pango.modules'
> >
> > and have no fonts displayed. Followed the suggestion
> >
> > pango-querymodules > '/etc/pango/pango.modules'
> >
> > -> fonts are OK.
> >
> > I checked: Besides other pango modules my image contains
> > pango-module-basic-x. In the postinst of this package I see
> >
> > #!/bin/sh
> > if [ "x$D" != "x" ]; then
> >   exit 1
> > fi
> >
> > if ! [ -e $D/etc/pango ] ; then
> >         mkdir -p $D/etc/pango
> > fi
> > /usr/bin/pango-querymodules > /etc/pango/pango.modules
> >
> > This looks OK so far ( besides that I would not have the $D in second part ).
> >
> > Additionally log.do_rootfs says:
> >
> > Configuring pango-module-basic-x.
> > pango-module-basic-x.postinst returned 1, marking as unpacked only,
> > configuration required on target.
> >
> > Any idea what is happening here?
> >
> > Andreas
> 
> Nobody else seeing this?

I do. Already got ticket about it
http://www.shr-project.org/trac/ticket/2045
but didn't have time to look into it

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: pango modules postinst issue
  2012-08-02 19:30   ` Martin Jansa
@ 2012-08-08  7:34     ` Burton, Ross
  0 siblings, 0 replies; 6+ messages in thread
From: Burton, Ross @ 2012-08-08  7:34 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 2 August 2012 20:30, Martin Jansa <martin.jansa@gmail.com> wrote:
> I do. Already got ticket about it
> http://www.shr-project.org/trac/ticket/2045
> but didn't have time to look into it

This is curious, I wonder why the postinst isn't running on boot.  Has
anyone affected by this tried booting without a splash to see if the
first boot postinst throws an error?

Ross



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

* Re: pango modules postinst issue
  2012-07-31 15:01 pango modules postinst issue Andreas Müller
  2012-08-02 19:23 ` Andreas Müller
@ 2012-08-20 14:20 ` Andreas Müller
  2012-08-20 15:47   ` Andreas Müller
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Müller @ 2012-08-20 14:20 UTC (permalink / raw)
  To: openembedded-core; +Cc: angstrom-distro-devel

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

On Tue, Jul 31, 2012 at 5:01 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> Hi,
>
> sorry fur disturbing again - but:
>
> When starting X on a maiden image I receive:
>
> No builtin or dynamically loaded modules were found.
> PangoFc will not work correctly.
> This probably means there was an error in the creation of:
>   '/etc/pango/pango.modules'
> You should create this file by running:
>   pango-querymodules > '/etc/pango/pango.modules'
>
> and have no fonts displayed. Followed the suggestion
>
> pango-querymodules > '/etc/pango/pango.modules'
>
> -> fonts are OK.
>
> I checked: Besides other pango modules my image contains
> pango-module-basic-x. In the postinst of this package I see
>
> #!/bin/sh
> if [ "x$D" != "x" ]; then
>   exit 1
> fi
>
> if ! [ -e $D/etc/pango ] ; then
>         mkdir -p $D/etc/pango
> fi
> /usr/bin/pango-querymodules > /etc/pango/pango.modules
>
> This looks OK so far ( besides that I would not have the $D in second part ).
>
> Additionally log.do_rootfs says:
>
> Configuring pango-module-basic-x.
> pango-module-basic-x.postinst returned 1, marking as unpacked only,
> configuration required on target.
>
> Any idea what is happening here?
>
I investigated this and found oe-core commit
ffe93e2a099e4cadb1829dc12a58a6d7bef9a5a7 for opkg-collateral. Besides
changing the configuration location it changes

-lists_dir ext /var/lib/ipkg
+lists_dir ext /var/lib/opkg

The patch attached for meta-angstrom fixes the pango-postinst issue
but I am not quite sure if this is a good solution, because it
reinvents parts of opkg-collateral. Why does angstrom replace
opkg-collateral? Wouldn't it be a better solution to append
opkg-collateral with angstrom feeds packages?

Andreas

[-- Attachment #2: 0001-angstrom-feed-configs-add-opkg.conf-from-oe-core-opk.patch --]
[-- Type: application/octet-stream, Size: 3295 bytes --]

From 97a6578b5eba583fa04603e98d929134f36763c9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
Date: Mon, 20 Aug 2012 16:15:16 +0200
Subject: [meta-angstrom] angstrom-feed-configs: add opkg.conf from oe-core
 opkg-collateral
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit


Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 recipes-angstrom/angstrom/angstrom-feed-configs.bb |    7 ++++-
 .../angstrom/angstrom-feed-configs/opkg.conf       |   29 ++++++++++++++++++++
 2 files changed, 35 insertions(+), 1 deletions(-)
 create mode 100644 recipes-angstrom/angstrom/angstrom-feed-configs/opkg.conf

diff --git a/recipes-angstrom/angstrom/angstrom-feed-configs.bb b/recipes-angstrom/angstrom/angstrom-feed-configs.bb
index 93c1e71..bf1b275 100644
--- a/recipes-angstrom/angstrom/angstrom-feed-configs.bb
+++ b/recipes-angstrom/angstrom/angstrom-feed-configs.bb
@@ -3,9 +3,11 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
 
 #PV = "${DISTRO_VERSION}"
-PR = "r16"
+PR = "r17"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
+SRC_URI = "file://opkg.conf"
+
 FEED_BASEPATH ?= "unstable/feed/"
 
 IWMMXT_FEED = "${@base_contains('MACHINE_FEATURES', 'iwmmxt', 'iwmmxt', '',d)}"
@@ -36,6 +38,7 @@ do_compile() {
 do_install () {
 	install -d ${D}${sysconfdir}/opkg
 	install -m 0644  ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
+	install -m 0644  ${WORKDIR}/opkg.conf ${D}/${sysconfdir}/opkg
 }
 
 FILES_${PN} = "${sysconfdir}/opkg/base-feed.conf \
@@ -47,6 +50,7 @@ FILES_${PN} = "${sysconfdir}/opkg/base-feed.conf \
 					${sysconfdir}/opkg/noarch-feed.conf \
 					${sysconfdir}/opkg/iwmmxt-feed.conf \
 					${sysconfdir}/opkg/sdk-feed.conf \
+					${sysconfdir}/opkg/opkg.conf \
 					"
 
 CONFFILES_${PN} += "${sysconfdir}/opkg/base-feed.conf \
@@ -57,6 +61,7 @@ CONFFILES_${PN} += "${sysconfdir}/opkg/base-feed.conf \
 					${sysconfdir}/opkg/${MACHINE_ARCH}-feed.conf \
 					${sysconfdir}/opkg/noarch-feed.conf \
 					${sysconfdir}/opkg/sdk-feed.conf \
+					${sysconfdir}/opkg/opkg.conf \
 					"
 
 # Get rid of opkg-collateral
diff --git a/recipes-angstrom/angstrom/angstrom-feed-configs/opkg.conf b/recipes-angstrom/angstrom/angstrom-feed-configs/opkg.conf
new file mode 100644
index 0000000..5dd8bff
--- /dev/null
+++ b/recipes-angstrom/angstrom/angstrom-feed-configs/opkg.conf
@@ -0,0 +1,29 @@
+# Must have one or more source entries of the form:
+#
+#   src <src-name> <source-url>
+#
+# and one or more destination entries of the form:
+#
+#   dest <dest-name> <target-path>
+#
+# where <src-name> and <dest-names> are identifiers that
+# should match [a-zA-Z0-9._-]+, <source-url> should be a
+# URL that points to a directory containing a Familiar
+# Packages file, and <target-path> should be a directory
+# that exists on the target system.
+
+# Proxy Support
+#option http_proxy http://proxy.tld:3128
+#option ftp_proxy http://proxy.tld:3128
+#option proxy_username <username>
+#option proxy_password <password>
+
+# Enable GPGME signature
+# option check_signature 1
+
+# Offline mode (for use in constructing flash images offline)
+#option offline_root target
+
+dest root /
+lists_dir ext /var/lib/opkg
+
-- 
1.7.6.5


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

* Re: pango modules postinst issue
  2012-08-20 14:20 ` Andreas Müller
@ 2012-08-20 15:47   ` Andreas Müller
  0 siblings, 0 replies; 6+ messages in thread
From: Andreas Müller @ 2012-08-20 15:47 UTC (permalink / raw)
  To: openembedded-core, openembedded-devel

On Mon, Aug 20, 2012 at 4:20 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Tue, Jul 31, 2012 at 5:01 PM, Andreas Müller
> <schnitzeltony@googlemail.com> wrote:
>> Hi,
>>
>> sorry fur disturbing again - but:
>>
>> When starting X on a maiden image I receive:
>>
>> No builtin or dynamically loaded modules were found.
>> PangoFc will not work correctly.
>> This probably means there was an error in the creation of:
>>   '/etc/pango/pango.modules'
>> You should create this file by running:
>>   pango-querymodules > '/etc/pango/pango.modules'
>>
>> and have no fonts displayed. Followed the suggestion
>>
>> pango-querymodules > '/etc/pango/pango.modules'
>>
>> -> fonts are OK.
>>
>> I checked: Besides other pango modules my image contains
>> pango-module-basic-x. In the postinst of this package I see
>>
>> #!/bin/sh
>> if [ "x$D" != "x" ]; then
>>   exit 1
>> fi
>>
>> if ! [ -e $D/etc/pango ] ; then
>>         mkdir -p $D/etc/pango
>> fi
>> /usr/bin/pango-querymodules > /etc/pango/pango.modules
>>
>> This looks OK so far ( besides that I would not have the $D in second part ).
>>
>> Additionally log.do_rootfs says:
>>
>> Configuring pango-module-basic-x.
>> pango-module-basic-x.postinst returned 1, marking as unpacked only,
>> configuration required on target.
>>
>> Any idea what is happening here?
>>
> I investigated this and found oe-core commit
> ffe93e2a099e4cadb1829dc12a58a6d7bef9a5a7 for opkg-collateral. Besides
> changing the configuration location it changes
>
> -lists_dir ext /var/lib/ipkg
> +lists_dir ext /var/lib/opkg
>
> The patch attached for meta-angstrom fixes the pango-postinst issue
> but I am not quite sure if this is a good solution, because it
> reinvents parts of opkg-collateral. Why does angstrom replace
> opkg-collateral? Wouldn't it be a better solution to append
> opkg-collateral with angstrom feeds packages?
>
Aargh - I did two things at the same time

1. patch attached in previous mail
2.
diff --git a/meta/recipes-devtools/opkg/opkg.inc
b/meta/recipes-devtools/opkg/opkg.inc
index 5c7cad3..168e4b1 100644
--- a/meta/recipes-devtools/opkg/opkg.inc
+++ b/meta/recipes-devtools/opkg/opkg.inc
@@ -59,7 +59,7 @@ if [ "x$D" != "x" ]; then
        install -d $D${sysconfdir}/rcS.d
        # this happens at S98 where our good 'ole packages script used to run
        echo "#!/bin/sh
-opkg-cl configure
+opkg-cl configure > /var/log/opkg-configure.log
 rm -f /${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
 " > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
        chmod 0755
$D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts


Now that I reverted 2. pango is again not properly prepared after
first boot :( So it is not a matter of wrong configuration of opkg by
meta-angstrom.

Seems that writing output of 'opkg-cl configure' changes timing and
thereby working around the bug.

Suspicious: The systemd startup sequence log says:

         Starting Run pending postinsts...
[  OK  ] Mounted POSIXBluetooth: HIDP (Human Interface Emulation) ver 1.2
 Message Queue File System.
[  OK  ] Mounted Debug File System.
systemd-journald[66]: Fixed max_use=23.9M max_size=2.9M min_size=64.0K
keep_free=11.9M
systemd-udevd[64]: starting version 187
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Load Kernel Modules.
         Mounting FUSE Control File System...
systemd-journald[66]: Reserving 5447 entries in hash table.
[  OK  ] Mounted FUSE Control File System.
systemd-journald[66]: Vacuuming...
[  OK  ] Started udev Coldplug all Devices.
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
         Starting Load Random Seed...
[  OK  ] Mounted /tmp.

and

root@overo:~# journalctl | grep tmp
Aug 20 16:59:33 overo S98run-postinsts[68]: * opkg_prep_intercepts:
Failed to make temp dir /tmp/opkg-07xOYO/opkg-intercept-wfVgAQ: No
such file or directory.
Aug 20 16:59:33 overo S98run-postinsts[68]: * rm_r: Failed to open dir
/tmp/opkg-07xOYO: No such file or directory.
Aug 20 16:59:56 overo kernel[276]: devtmpfs: initialized
Aug 20 16:59:59 overo kernel[276]: devtmpfs: mounted

So my conclusion (for now): During postinst /tmp is required (by which
package I don't know and guess it is out of interest). Unfortunately
at that time /tmp is not yet mounted causing postinst to abort and
leave packages undone:

root@overo:~# opkg info pango-module*
Package: pango-module-basic-fc
Version: 1.30.0-r0
Depends: libffi5 (>= 3.0.10), libc6 (>= 2.15), libfreetype6 (>=
2.4.9), libstdc++6 (>=
4.7.1.0+git1+d07e24f4ab59f264d68d21838795349faab5dede), libglib-2.0-0
(>= 2.32.4), pango, )
Provides:
Status: install ok *unpacked*
Architecture: armv7a-vfp-neon
Installed-Time: 1345474265

Package: pango-module-basic-x
Version: 1.30.0-r0
Depends: libx11-6 (>= 1.5.0), libxcb1 (>= 1.8.1), libffi5 (>= 3.0.10),
libc6 (>= 2.15), libglib-2.0-0 (>= 2.32.4), pango, libxau6 (>= 1.0.7),
libxdmcp6 (>= 1.1.1)
Provides:
Status: install ok *unpacked*
Architecture: armv7a-vfp-neon
Installed-Time: 1345474265

Support running postinst after /tmp is mounted is welcome...

Andreas



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

end of thread, other threads:[~2012-08-20 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-31 15:01 pango modules postinst issue Andreas Müller
2012-08-02 19:23 ` Andreas Müller
2012-08-02 19:30   ` Martin Jansa
2012-08-08  7:34     ` Burton, Ross
2012-08-20 14:20 ` Andreas Müller
2012-08-20 15:47   ` Andreas Müller

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.