| View previous topic :: View next topic |
| Author |
Message |
tomc4t n00b

Joined: 06 Jul 2003 Posts: 16
|
Posted: Mon Oct 25, 2004 10:05 pm Post subject: |
|
|
My HOWTO:
Ok, the problem seems to be a resolved bug of 6.8 Xorg.
The bug is 1441 located at http://freedesktop.org/bugzilla/show_bug.cgi?id=1441
lucida fonts are not generated.
What to do:
emerge the packages for Xorg without compiling:
| Code: | | emerge --fetchonly xorg-x11 |
now we have to inject the right patch in the right place.
as root we download the patch and save in the right format for the ebuild:
| Code: | | wget http://freedesktop.org/bugzilla/attachment.cgi?id=959 -O 1441_all_6.8.0-Derived_font_not_generated.patch |
Now we have to add this file to the patch file that we already downloaded with the emerge:
| Code: |
cd /usr/portage/distfiles
tar -xjf xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2
cp /1441_all_6.8.0-Derived_font_not_generated.patch
cp /root/1441_all_6.8.0-Derived_font_not_generated.patch ./patch
|
note: substitute /root in the last line with the directory where you downloaded the file.
After we have to recompress the patch files:
| Code: |
tar -cjvf xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2 ./patch
|
now the final step: we have to refresh the MD5 hash in the ebuild file.
| Code: |
md5sum xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2
|
that's the new md5.
open with your favorite editor (vi / nano ... )
| Code: |
nano /usr/portage/x11-base/xorg-x11/files/digest-xorg-x11-6.8.0-r1
|
and edit the line with the "xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2" file: delete the "strange number" (the MD5 of the previus file) and write the new MD5 just calculated with md5sum.
now compile X:
that's all, after that the fonts will be there, no need to change themes, all themes avaliable!!
Please feedback any error in this post ! |
|
| Back to top |
|
 |
wallace1819 Apprentice

Joined: 17 Aug 2002 Posts: 195 Location: VT
|
Posted: Tue Oct 26, 2004 1:53 pm Post subject: |
|
|
SWEET... thx dude
Wally |
|
| Back to top |
|
 |
wallace1819 Apprentice

Joined: 17 Aug 2002 Posts: 195 Location: VT
|
Posted: Tue Oct 26, 2004 2:36 pm Post subject: |
|
|
spoke too soon...
md5sum check is failing.
| Code: | gentoo distfiles # emerge xorg-x11
Calculating dependencies ...done!
>>> emerge (1 of 1) x11-base/xorg-x11-6.8.0-r1 to /
>>> md5 src_uri ;-) eurofonts-X11.tar.bz2
>>> md5 src_uri ;-) xfsft-encodings-0.1.tar.bz2
>>> md5 src_uri ;-) gentoo-cursors-tad-0.3.1.tar.bz2
>>> md5 src_uri ;-) xorg-x11-6.8.0-files-0.4.tar.bz2
!!! Digest verification Failed:
!!! /usr/portage/distfiles/xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2
!!! Reason: Filesize does not match recorded size |
this is what I did...
| Code: | gentoo distfiles # md5sum xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2
009bb06603b341c1f58bc7e32340effc xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2 |
| Code: | gentoo distfiles # vi /usr/portage/x11-base/xorg-x11/files/digest-xorg-x11-6.8.0-r1
MD5 4d7d5fdc4ed56c144ef998302581478c eurofonts-X11.tar.bz2 8811
MD5 01a21c248e5ac4ba02cbbea994fc774a xfsft-encodings-0.1.tar.bz2 11892
MD5 d0fab996daf97adf095e2dad0bd9012e gentoo-cursors-tad-0.3.1.tar.bz2 1196991
MD5 3d4ee581df78c9dacc6e97aa07a1af72 gemini-koi8-u.tar.bz2 439173
MD5 2f0a7db15809d4c2e41b8666a5a8a04f xorg-x11-6.8.0-files-0.4.tar.bz2 9964
MD5 009bb06603b341c1f58bc7e32340effc xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2 62194 <--------------I edited this line
MD5 c31a2e1c226e659c2ff29abfe55386e3 X11R6.8.0-src1.tar.gz 30560275
MD5 4089bb6efb6c5bc73fbcfc23fafcb0c8 X11R6.8.0-src2.tar.gz 5808901
MD5 488a5ebbbdf48d974efbc3a0bde92bf4 X11R6.8.0-src3.tar.gz 10014266
MD5 0ffaef789784ae16ca263e7ae60db656 X11R6.8.0-src4.tar.gz 13166526
MD5 af129720efbe82a1a82505c23227f70b X11R6.8.0-src5.tar.gz 4386145
MD5 4be7648c1512d5da7e738e500dd5ba30 X11R6.8.0-src6.tar.gz 3181068
MD5 888ced8bc85fbd2bd4880dba23a7f44a X11R6.8.0-src7.tar.gz 5052439
|
What are those numbers on the end in the digest file??? '62194' Could that be the problem?
This is odd because if a do the following....
| Code: | gentoo distfiles # cat 009bb06603b341c1f58bc7e32340effc *xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2 >xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2.md5
gentoo distfiles # md5sum -c xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2.md5
xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2: OK |
It showes the md5sum is correct. Any ideas?
Wally |
|
| Back to top |
|
 |
wallace1819 Apprentice

Joined: 17 Aug 2002 Posts: 195 Location: VT
|
Posted: Tue Oct 26, 2004 2:43 pm Post subject: |
|
|
ok ifigured it out... those last 5 digits are the file size... you need to do an...
| Code: | | ls -l xorg-x11-6.8.0-patches-0.2.2.1.tar.bz2 |
and change those digits to the new file size.
wally |
|
| Back to top |
|
 |
tomc4t n00b

Joined: 06 Jul 2003 Posts: 16
|
Posted: Tue Oct 26, 2004 2:46 pm Post subject: |
|
|
Ok, can i add do the howto? I didn't modified the file size parameter, maybe it has been changed *automatically* but i don't remember..
When i will be back @ home, i'll check my config! |
|
| Back to top |
|
 |
tomc4t n00b

Joined: 06 Jul 2003 Posts: 16
|
Posted: Tue Oct 26, 2004 4:13 pm Post subject: |
|
|
| Well, i can't check couse i've modified my tar file after the X-compiling... |
|
| Back to top |
|
 |
Till Varoquaux n00b

Joined: 28 Oct 2004 Posts: 24
|
Posted: Thu Nov 11, 2004 10:47 pm Post subject: |
|
|
the proper way to generate digest for ebuilds is:
| Code: | | ebuild YOUR_FILE.ebuild digest |
This should get you going.
Thanks fot the howto.
If you have sme spare time you might consuder posting in bugzilla. |
|
| Back to top |
|
 |
cheriff n00b

Joined: 18 Nov 2004 Posts: 17 Location: Australia
|
Posted: Thu Dec 16, 2004 8:36 pm Post subject: |
|
|
Has this been reported as a bug / has any word come back from the powers that be?
I just did another install on my new machine and hit the same issue that i did ages ago on my laptop.
Especially when only 1 out of the first 10 threads in a quick search (ie, this one) documents any real solution (short of using different themes or manually copying fonts around) it could easily be overlooked.
I imaginge it cant be too hard to add one more patch to the official xorg-x11ebuild?
Please excuse the rant, but having to compile xorg yet again after messing with other "undocumented features" involving combinations of dlload and static use flags, and the nvidia drivers...
Well, I have a solution, so I'm not *that* worried, but I'll bet there will be others to follow....
- cheriff |
|
| Back to top |
|
 |
lostinlinux Guru


Joined: 05 Oct 2002 Posts: 341
|
Posted: Thu Dec 23, 2004 1:46 pm Post subject: |
|
|
I followed the directions but I am still getting the file size error (I updated it in the digest to the new value). What am I doing wrong? _________________ So many questions so little time.... |
|
| Back to top |
|
 |
cheriff n00b

Joined: 18 Nov 2004 Posts: 17 Location: Australia
|
Posted: Fri Dec 24, 2004 11:40 pm Post subject: |
|
|
yeah, I got that too...
If you're just copy and pasting commands, then
| Code: | | nano /usr/portage/x11-base/xorg-x11/files/digest-xorg-x11-6.8.0-r1 |
is out dated, and you're actually editing a file that portage isn't looking at.
Find which exact version of xorg-x11 you're emerging and fix up the appropriate digest.
Well that's how I fixed it anyways.... Unless you're having a totally different problem.... =) |
|
| Back to top |
|
 |
tecknojunky Veteran


Joined: 19 Oct 2002 Posts: 1937 Location: Montréal
|
Posted: Sat Dec 25, 2004 2:01 am Post subject: |
|
|
| cheriff wrote: | | I imaginge it cant be too hard to add one more patch to the official xorg-x11ebuild? | This is the closest I could find in the bugzilla system: https://bugs.gentoo.org/show_bug.cgi?id=67924
I added a comment and relevant pointers. I think they just have their hands full and did not yet come around to this problem.
Anyhow, I've been struggling with this problem for awhile and I just can't bare no more the BlueSteel theme. I just came back to check on this thread and am happy to see someone found a REAL solution to it.
I'm trying it it as soon as my current emerge world is done . I will (of course) copy the current stable build to my overlay and publish how I did it here. I just want to be sure is works before I do that.
edit:Ok, it's now emerging. Here is what I did and which I think should be the proper fix until the xorg's ebuild devs fix it for real:
1- enable the PORTAGE_OVERLAY in /etc/make.conf. In my case, it's set to the default /usr/local/portage.
2- create the folder for the overlayed xorg-x11 ebuild: | Code: | | # mkdir -p /usr/local/portage/x11-base/xorg-x11/files |
3- change to the folder where the overlayed ebuild will reside: | Code: | | # cd /usr/local/portage/x11-base/xorg-x11 |
4- copy the latest xorg-x11 ebuild from the portage tree into the overlay folder. As of this writting, the latest stable ebuild was version 6.8.0-r3: | Code: | | # cp /usr/portage/x11-base/xorg-x11/xorg-x11-6.8.0-r3.ebuild . |
5- edit the ebuild and add these two lines:
5a- in the XPATCH variable, at the end of it, add the line http://hanzubon.jp/patches/xorg/font_install_fix.diff, so the the finale result looks like this: | Code: | # Misc patches we may need to fetch ..
X_PATCHES="mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2
http://dev.gentoo.org/~spyderous/${PN}/patchsets/${PV}/${P}-patches-${PATCH_VER}.tar.bz2
http://dev.gentoo.org/~cyfred/distfiles/${P}-patches-${PATCH_VER}.tar.bz2
http://hanzubon.jp/patches/xorg/font_install_fix.diff" |
5b- add the line epatch ${DISTDIR}/font_install_fix.diff, in the src_unpack() function, right over the commented line that reads # Remove bum encoding, so that the result code in that region of the ebuild looks like this: | Code: |
# Unpack extra fonts stuff from Mandrake
ebegin "Unpacking fonts"
if use nls
then
unpack gemini-koi8-u.tar.bz2 > /dev/null
fi
unpack eurofonts-X11.tar.bz2 > /dev/null
unpack xfsft-encodings-${XFSFT_ENC_VER}.tar.bz2 > /dev/null
eend 0
epatch ${DISTDIR}/font_install_fix.diff
# Remove bum encoding
rm -f ${WORKDIR}/usr/share/fonts/encodings/urdunaqsh-0.enc
patch_setup
|
6- copy one patch resting in the files subfolder: | Code: | | # cp /usr/portage/x11-base/xorg-x11/files/xpm-secfix-thomas.diff files/ |
note: This was the sole patch that I needed. It may be possible that depending on the USE flags you have, maybe you will need more files from there. In fact, it seems I have borked my xorg-x11 folder in the portage tree and I will need to resync it to be realy sure of that. (update on that: it worked.
7- rebuild the digest file: | Code: | | # ebuild xorg-x11-6.8.0-r3.ebuild digest | note: Since I personaly install with the -doc USE flag, the ebuild SRC_URI will not include two tarballs if, like me, you then try to rebuild the digest. This is, in my own humble opinion, a conceptual bug of ebuild, and to circumvent this you can download the files by preceding the digest command with "USE=-doc"
8- emerge it: | Code: | | # emerge -av xorg-x11 |
To be sure it takes the overlay ebuild, Portage should point that to you: | Quote: | These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] x11-base/xorg-x11-6.8.0-r3 +3dfx -3dnow +bitmap-fonts -cjk -debug +dlloader* +dmx -doc -hardened -insecure-drivers +ipv6 +mmx +nls +pam -sdk +sse -static +xprint* 0 kB [1]
Total size of downloads: 0 kB
Portage overlays:
[1] /usr/local/portage
Do you want me to merge these packages? [Yes/No] |
That's it. The time to write all this and it's still emerging. If there are mistakes, please pm me.
Further updates: In the news today... It's xmax. My merge is finish. My themes are fixed. I still need to restart E when switching theme, otherwise it's all screwed up. E16 is really due for retirement... me think.
Merry Emerge and Happy New Sync everybody. _________________ (7 of 9) Installing star-trek/species-8.4.7.2::talax. |
|
| Back to top |
|
 |
lannocc n00b

Joined: 01 Dec 2004 Posts: 14 Location: Billings, MT
|
Posted: Fri Jan 21, 2005 6:34 pm Post subject: |
|
|
Thanks for the info!
I'd love to try it out myself, but hanzubon.jp doesn't seem to be resolving. Is there somehwere else I can get that patch? |
|
| Back to top |
|
 |
|