LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2006, 03:11 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
Smile how to patch?


I would like to patch OpenOffice for using system freetype.
Is it possible to patch .deb package or do I have to use source?
(Debian, testing, KDE)
Please help, I need the easiest possible solution.
 
Old 08-02-2006, 11:47 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
usually patches get applied to source code, and then the code is recompiled... of course if the patch only changes certain run-time configs or whatever, then there's no need to recompile as the binaries aren't touched... the best thing would be to look at the comments in the patch, or a documentation web page for it... where'd you get the patch??
 
Old 08-03-2006, 01:35 AM   #3
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
Here it is:
http://cvs.pld.org.pl/SOURCES/openof...freetype.patch

but I'm not actually sure it will solve my non_anti_aliased font problem with OpenOffice in Debian even if I manage to patch&recompile
 
Old 08-03-2006, 07:52 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
well, judging by the name of the parent directory ("SOURCES") and the fact the patch looks like it adds certain lib options, i'd say yeah, you wanna apply this patch before recompiling... are you using a howto or something to recompile openoffice.org?? personally, i've never done it...

Last edited by win32sux; 08-03-2006 at 07:53 AM.
 
Old 08-04-2006, 02:30 AM   #5
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
er, no. Only thing I know about recompiling it is that its hard. I was hoping to find someone do it for me like building me package.

I have managed to compile freetype libs for system with BCI switched on, using the standard three commands.
There has to be a solution for the damn fonts
 
Old 08-04-2006, 07:43 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i actually thought debian came with a package building solution which made things rather simple... isn't that why the sources are also distributed as .debs??

okay i googled a bit, and found this:
Quote:
6.14 How do I build binary packages from a source package?

You will need all of foo_*.dsc, foo_*.tar.gz and foo_*.diff.gz to compile the source (note: there is no .diff.gz for some packages that are native to Debian).

Once you have them (How do I install a source package?, Section 6.13), if you have the dpkg-dev package installed, the following command:

dpkg-source -x foo_version-revision.dsc

will extract the package into a directory called foo-version.

If you want just to compile the package, you may cd into foo-version directory and issue the command

dpkg-buildpackage -rfakeroot -b

to build the package (note that this also requires the fakeroot package), and then

dpkg -i ../foo_version-revision_arch.deb

to install the newly-built package(s).
http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html

also maybe look at this link: http://www.debian.org/doc/manuals/ma...modify.en.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
patch problem - can't find file to patch jnutt Linux - Kernel 3 02-10-2010 03:45 PM
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration