All text replaced w/ square boxes in ISO created w/ molecule

If you are using the daily ISO, please report issues here to keep confusion down in other forums. Questions or issues with Molecule also here

Moderator: Moderators

All text replaced w/ square boxes in ISO created w/ molecule

Postby nwrain » Tue Sep 30, 2014 4:39

I have been experimenting with molecule and making a Sabayon spin and have run into a strange result where all the text labels are replaced with square boxes. I had a few that worked great, made some changes to my spec file and now everytime I run it, I get the squares instead of text (image below). I have tried with the 14.10 ISO, a recent daily ISO as well as an ISO I added some files to, all get the same result.

Image

My spec file is below:

Code: Select all
# Sabayon Linux 14.10 x64 XFCE Molecule remaster spec file
# The aim of this spec file is to add arbitrary applications & misc stuff
# to an already built ISO image via scripting (providing hooks that call
# user-defined scripts).
# squashfs, mkisofs needed

# Define an alternative execution strategy, in this case, the value must be
# "iso_remaster"
execution_strategy: iso_remaster

# pre chroot command, example, for 32bit chroots on 64bit system, you always
# have to append "linux32" this is useful for inner_chroot_script
#prechroot: linux32

# Path to source ISO file (MANDATORY)
source_iso: /home/user/SabayonBaseXFCE.iso

# Error script command, executed when something went wrong and molecule has to terminate the execution
# environment variables exported:
# - CHROOT_DIR: path to chroot directory, if any
# - CDROOT_DIR: path to livecd root directory, if any
# - SOURCE_CHROOT_DIR: path from where chroot is copied for final handling
# error_script: /path/to/script/to/be/executed/outside/after

# Outer chroot script command, to be executed outside destination chroot before
# before entering it (and before inner_chroot_script)
# outer_chroot_script: /home/user/remaster_pre.sh

# Inner chroot script command, to be executed inside destination chroot before packing it
# - kmerge.sh - setup kernel bins
# inner_chroot_script: /sabayon/scripts/inner_chroot_script.sh

# Inner chroot script command, to be executed inside destination chroot after
# packages installation and removal
#inner_chroot_script_after: #/home/joost/REMASTER/sabatom/inner_chroot_script_after.sh

# Outer chroot script command, to be executed outside destination chroot before
# before entering it (and AFTER inner_chroot_script)
# outer_chroot_script_after: /home/user/remaster_post.sh

# Extra mkisofs parameters, perhaps something to include/use your bootloader
extra_mkisofs_parameters: -b isolinux/isolinux.bin -c isolinux/boot.cat

# Pre-ISO building script. Hook to be able to copy kernel images in place, for #example
#pre_iso_script: /home/joost/REMASTER/sabatom/cdroot.sh

# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /home/user

# Destination ISO image name, call whatever you want.iso, not mandatory
destination_iso_image_name: SabayonPhoto.iso

# Output iso image title
iso_title: SabayonPhoto

# Alternative ISO file mount command (default is: mount -o loop -t iso9660)
# iso_mounter:

# Alternative ISO umounter command (default is: umount)
# iso_umounter:

# Alternative squashfs file mount command (default is: mount -o loop -t squashfs)
# squash_mounter:

# Alternative ISO squashfs umount command (default is: umount)
# squash_umounter:

# Merge directory with destination LiveCD root
# merge_livecd_root: /put/more/files/onto/CD/root

# List of packages that would be removed from chrooted system (comma separated)
packages_to_remove: media-gfx/feh,app-misc/gnote,dev-util/glade,net-irc/hexchat,net-im/pidgin,net-p2p/transmission-gtk,net-p2p/transmission-common,net-misc/tightvnc,media-sound/audacious

# Custom shell call to packages removal (default is: equo remove)
# custom_packages_remove_cmd:

# List of packages that would be added from chrooted system (comma separated)
packages_to_add: app-office/libreoffice,media-gfx/darktable,media-gfx/shotwell,app-backup/luckybackup,www-client/firefox,media-fonts/ubuntu-font-family,app-admin/keepass,media-gfx/hugin,media-gfx/inkscape,media-gfx/simple-scan,net-ftp/filezilla,app-office/glabels,media-sound/audacity,media-sound/banshee,media-video/dvdstyler,media-video/openshot,media-sound/ripperx,media-video/winff,app-crypt/truecrypt,media-sound/pithos,app-cdr/isomaster,app-cdr/brasero,net-print/hplip,media-sound/pavucontrol

# Custom shell call to packages add (default is: equo install)
# custom_packages_add_cmd:

# Custom command for updating repositories (default is: equo update)
# repositories_update_cmd:

# Determine whether repositories update should be run (if packages_to_add is set)
# (default is: no), values are: yes, no.
execute_repositories_update: yes

# Directories to remove completely (comma separated)
# paths_to_remove:

# Directories to empty (comma separated)
# paths_to_empty:


Any ideas? Thanks in advance!
nwrain
Baby Hen
 
Posts: 5
Joined: Sun Sep 14, 2014 7:02
Location: Washington State

Re: All text replaced w/ square boxes in ISO created w/ mole

Postby joost » Tue Sep 30, 2014 9:17

(re)install x11-libs/pango
joost
Sagely Hen
 
Posts: 2638
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: All text replaced w/ square boxes in ISO created w/ mole

Postby albfneto » Tue Sep 30, 2014 16:29

modify your SPEC file fos add the packages (or only in the installed ISO):

re-install the packages pango and gdk-pixbuf
ALBERTO FEDERMAN NETO
albfneto
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE
User avatar
albfneto
Sagely Hen
 
Posts: 1798
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: All text replaced w/ square boxes in ISO created w/ mole

Postby nwrain » Wed Oct 01, 2014 4:36

Thanks guys, I added x11-libs/pango & gdk-pixbuf to the added packages for Molecule as well as installing/re-installing them (terminal, via equo i) in the VM that was creating the spin. No luck, the resulting ISO has more display issues in the result.

Image
nwrain
Baby Hen
 
Posts: 5
Joined: Sun Sep 14, 2014 7:02
Location: Washington State

Re: All text replaced w/ square boxes in ISO created w/ mole

Postby joost » Wed Oct 01, 2014 9:54

It is this part of the ebuild code that gets executed once you install pango that is relevant here:

Code: Select all
      einfo "Generating modules listing..."
      "${CHOST}-pango-querymodules" --update-cache

      # Remove old autogenerated file to prevent collisions with newer
      rm -f "${EROOT}/etc/pango/${CHOST}/pango.modules"


So from a shell this is what needs to be done:
Code: Select all
# pango-querymodules --update-cache
# rm -f "/etc/pango/x86_64-pc-linux-gnu/pango.modules"


Perhaps put those commands in your script somewhere:
# Inner chroot script command, to be executed inside destination chroot after
# packages installation and removal
#inner_chroot_script_after: #/home/joost/REMASTER/sabatom/inner_chroot_script_after.sh
joost
Sagely Hen
 
Posts: 2638
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands

Re: All text replaced w/ square boxes in ISO created w/ mole

Postby nwrain » Sun Oct 05, 2014 5:33

Unfortunately I am still getting the same output. I tried creating the inner_chroot_script_after.sh with the following code:

Code: Select all
#!/bin/sh
pango-querymodules --update-cache
rm -f "/etc/pango/x86_64-pc-linux-gnu/pango.modules"


And then tried putting those two lines directly into the spec file in the same spot (with the inner_chroot_script_after.sh line commented out), same results each time. More squares. :( About ready to give up on making a spin at this point.

Are the quotes needed in the rm -f line?
nwrain
Baby Hen
 
Posts: 5
Joined: Sun Sep 14, 2014 7:02
Location: Washington State

Re: All text replaced w/ square boxes in ISO created w/ mole

Postby jsalpha2 » Tue Oct 07, 2014 22:39

Perhaps you are missing a font?
jsalpha2
Young Hen
 
Posts: 20
Joined: Sat Aug 17, 2013 13:21


Return to ISO Testing & Molecule

Who is online

Users browsing this forum: No registered users and 1 guest