Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 27949 Details for
Bug 43618
scrot 0.6 doesn't compile
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for scrot-0.6 to make it work with the latest giblib
scrot-patch.diff (text/plain), 4.65 KB, created by
Eddahbi Karim
on 2004-03-24 12:30:05 UTC
(
hide
)
Description:
Patch for scrot-0.6 to make it work with the latest giblib
Filename:
MIME Type:
Creator:
Eddahbi Karim
Created:
2004-03-24 12:30:05 UTC
Size:
4.65 KB
patch
obsolete
>diff -uprN scrot-0.6/src/imlib.c scrot-0.6.changed/src/imlib.c >--- scrot-0.6/src/imlib.c 2000-12-05 00:22:26.000000000 +0100 >+++ scrot-0.6.changed/src/imlib.c 2004-03-24 21:08:46.864931512 +0100 >@@ -38,7 +38,7 @@ init_x_and_imlib(char *dispstr, int scre > { > disp = XOpenDisplay(dispstr); > if (!disp) >- eprintf("Can't open X display. It *is* running, yeah?"); >+ gib_eprintf("Can't open X display. It *is* running, yeah?"); > if (screen_num) > scr = ScreenOfDisplay(disp, screen_num); > else >diff -uprN scrot-0.6/src/main.c scrot-0.6.changed/src/main.c >--- scrot-0.6/src/main.c 2001-08-08 22:23:30.000000000 +0200 >+++ scrot-0.6.changed/src/main.c 2004-03-24 21:02:34.366559872 +0100 >@@ -40,8 +40,8 @@ main(int argc, char **argv) > > if (!opt.output_file) > { >- opt.output_file = estrdup("%Y-%m-%d-%H%M%S_$wx$h_scrot.png"); >- opt.thumb_file = estrdup("%Y-%m-%d-%H%M%S_$wx$h_scrot-thumb.png"); >+ opt.output_file = gib_estrdup("%Y-%m-%d-%H%M%S_$wx$h_scrot.png"); >+ opt.thumb_file = gib_estrdup("%Y-%m-%d-%H%M%S_$wx$h_scrot-thumb.png"); > } > > >@@ -61,7 +61,7 @@ main(int argc, char **argv) > } > > if (!image) >- eprintf("no image grabbed"); >+ gib_eprintf("no image grabbed"); > > imlib_context_set_image(image); > imlib_image_attach_data_value("quality", NULL, opt.quality, NULL); >@@ -69,7 +69,7 @@ main(int argc, char **argv) > filename = im_printf(opt.output_file, NULL, image); > gib_imlib_save_image_with_error_return(image, filename, &err); > if (err) >- eprintf("Saving to file %s failed\n", filename); >+ gib_eprintf("Saving to file %s failed\n", filename); > if (opt.thumb) > { > int cwidth, cheight; >@@ -80,13 +80,13 @@ main(int argc, char **argv) > cwidth * opt.thumb / 100, > cheight * opt.thumb / 100,1); > if (thumbnail == NULL) >- eprintf("Unable to create scaled Image\n"); >+ gib_eprintf("Unable to create scaled Image\n"); > else > { > filename = im_printf(opt.thumb_file, NULL, thumbnail); > gib_imlib_save_image_with_error_return(thumbnail, filename, &err); > if (err) >- eprintf("Saving thumbnail %s failed\n", filename); >+ gib_eprintf("Saving thumbnail %s failed\n", filename); > } > } > if (opt.exec) >@@ -181,13 +181,13 @@ Imlib_Image scrot_sel_and_grab_image(voi > ButtonMotionMask | ButtonPressMask | ButtonReleaseMask, > GrabModeAsync, GrabModeAsync, root, cursor, > CurrentTime) != GrabSuccess)) >- eprintf("couldn't grab pointer:"); >+ gib_eprintf("couldn't grab pointer:"); > > if ( > (XGrabKeyboard > (disp, root, False, GrabModeAsync, GrabModeAsync, > CurrentTime) != GrabSuccess)) >- eprintf("couldn't grab keyboard:"); >+ gib_eprintf("couldn't grab keyboard:"); > > > while (1) >@@ -263,7 +263,7 @@ Imlib_Image scrot_sel_and_grab_image(voi > count = select(fdsize, &fdset, NULL, NULL, NULL); > if ((count < 0) > && ((errno == ENOMEM) || (errno == EINVAL) || (errno == EBADF))) >- eprintf("Connection to X display lost"); >+ gib_eprintf("Connection to X display lost"); > } > if (rect_w) > { >@@ -491,7 +491,7 @@ im_printf(char *str, char *filename, Iml > else > strncat(ret, c, 1); > } >- return estrdup(ret); >+ return gib_estrdup(ret); > } > > Window scrot_get_client_window(Display * display, Window target) >@@ -567,7 +567,7 @@ scrot_grab_shot_multi(void) > > dispstr = DisplayString(disp); > >- subdisp = estrdup(DisplayString(disp)); >+ subdisp = gib_estrdup(DisplayString(disp)); > > for (i = 0; i <screens; i++) > { >diff -uprN scrot-0.6/src/options.c scrot-0.6.changed/src/options.c >--- scrot-0.6/src/options.c 2001-08-24 23:31:23.000000000 +0200 >+++ scrot-0.6.changed/src/options.c 2004-03-24 21:07:52.787152584 +0100 >@@ -84,7 +84,7 @@ scrot_parse_option_array(int argc, char > opt.delay = atoi(optarg); > break; > case 'e': >- opt.exec = estrdup(optarg); >+ opt.exec = gib_estrdup(optarg); > break; > case 'm': > opt.multidisp = 1; >@@ -127,7 +127,7 @@ scrot_parse_option_array(int argc, char > opt.thumb_file = name_thumbnail(opt.output_file); > } > else >- weprintf("unrecognised option %s\n", argv[optind++]); >+ gib_weprintf("unrecognised option %s\n", argv[optind++]); > } > } > >@@ -144,7 +144,7 @@ name_thumbnail(char *name) > size_t diff = 0; > > length = strlen(name) + 7; >- new_title = emalloc(length); >+ new_title = gib_emalloc(length); > > dot_pos = strrchr(name, '.'); > if (dot_pos)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43618
: 27949