From: "Walter Dnes" <waltdnes@waltdnes.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: xpdf - missing fonts
Date: Mon, 9 Jan 2012 17:48:29 -0500 [thread overview]
Message-ID: <20120109224829.GB4373@waltdnes.org> (raw)
In-Reply-To: <20120109175028.GA7818@syscon7.inet>
[-- Attachment #1: Type: text/plain, Size: 1469 bytes --]
On Mon, Jan 09, 2012 at 10:50:28AM -0700, Joseph wrote
> I think you are correct on this one. I'll try to modify your system.
> What is the easiest way to re-emerge all the fonts on the system or
> list the one that are installed?
>
> I've manually installed some of the fonts that I have on my other
> system and it partially solved the problem.
I've attached a bash script to list all files, including those pulled
in as dependancies of xorg-server. It also sets up another bash script
to do the actual emerge. Here's how it works...
* It creates a bash script "ef" (emerge fonts)
* First put in the "#!/bin/bash"
* Add "emerge -1 " to the file. *NOTE* The "-n" option prevents the
normal linefeed
* "emerge -pv --depclean" lists (amongst other things) all installed
packages. This includes both stuff in world, and stuff that is pulled
in as a dependancy
* "grep media-fonts" filters the listing down to the "media-fonts"
group, including various font utilities.
* "sort -u" filters out duplicate lines
* 'grep -v "pulled in by"' gets rid of the "pulled in by" lines.
* The "sed" command puts an "=" sign in front of each package name, to
make it a valid emerge parameter
* the "tr" command converts linefeeds to spaces. The string of
packagenames is appended to "emerge -1 " in the file "ef"
* last, but not least, the file "ef" is set executable. You can look at
it before launching it.
--
Walter Dnes <waltdnes@waltdnes.org>
[-- Attachment #2: listfonts --]
[-- Type: text/plain, Size: 209 bytes --]
#!/bin/bash
echo "#!/bin/bash" > ef
echo -n "emerge -1 " >> ef
emerge -pv --depclean | \
grep media-fonts | \
sort -u | \
grep -v "pulled in by" | \
sed "s/ /=/" |\
tr '\n' ' ' >> ef
chmod 744 ef
next prev parent reply other threads:[~2012-01-09 22:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-03 22:15 [gentoo-user] xpdf - missing fonts Joseph
2012-01-03 23:20 ` Florian Philipp
2012-01-03 23:42 ` Joseph
2012-01-04 10:52 ` Willie WY Wong
2012-01-04 13:52 ` Florian Philipp
2012-01-04 15:51 ` Joseph
2012-01-05 8:59 ` Willie WY Wong
2012-01-05 17:36 ` Joseph
2012-01-06 8:57 ` Willie WY Wong
2012-01-06 15:52 ` [gentoo-user] " walt
2012-01-06 16:48 ` Joseph
2012-01-06 21:51 ` walt
2012-01-07 3:40 ` Joseph
2012-01-09 0:31 ` Walter Dnes
2012-01-09 17:50 ` Joseph
2012-01-09 22:23 ` walt
2012-01-09 22:39 ` Michael Mol
2012-01-09 22:48 ` Walter Dnes [this message]
2012-01-06 16:50 ` Joseph
2012-01-05 8:49 ` [gentoo-user] " Willie WY Wong
2012-01-05 17:50 ` Joseph
2012-01-06 9:05 ` Willie WY Wong
2012-01-06 16:44 ` Joseph
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=20120109224829.GB4373@waltdnes.org \
--to=waltdnes@waltdnes.org \
--cc=gentoo-user@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox