View Single Post
  #4   (View Single Post)  
Old 29th March 2020
bashrules's Avatar
bashrules bashrules is offline
Aspiring Unix Greybeard
 
Join Date: Mar 2010
Location: Here
Posts: 80
Default

Hello Sensucht,

Quote:
Originally Posted by Sensucht94 View Post

Quote:
Glad to see another xv user
I love pkgsrc for various reasons. One is the ability to nicely integrate custom patches via

Code:
LOCALPATCHES=   /home/bashrules/pkgsrc/patches
Here is an example for xv. Note the directory hierachy - it must model pkgsrc' directory hierachy. Upon saving a jpeg, xv adds itself to the jpeg meta-data which I disable with this patch

Code:
$ cat ~/pkgsrc/patches/graphics/xv/patch-CREATOR.patch 
--- xvjpeg.c.orig	2012-02-14 22:52:40.000000000 -0800
+++ xvjpeg.c	2012-02-14 22:53:07.000000000 -0800
@@ -977,7 +977,6 @@
   else comment = xvcmt;
 
 
-  jpeg_write_marker(&cinfo, JPEG_COM, (byte *)comment, (u_int)strlen(comment));
 
   if (picExifInfo) jpeg_write_marker(&cinfo, JPEG_APP1, (byte *)picExifInfo,
                                      (u_int)picExifInfoSize);
And so I have here and there some small patches.


Pkgsrc is not perfect. There is always a package or two that does not build. If the problem is in the actual code, I can keep /usr/pkgsrc/ untouched and put my patch into LOCALPATCHES.

Last edited by bashrules; 30th March 2020 at 03:09 AM.
Reply With Quote