Can't compile *deb from patched version

hi folks,

I’m ashamed to ask this stupid question but I can’t get to a final result with build a *deb fvwm package. Stealing Thomas Adams time he gives me hints, but I’m an idiot…can’t get it.

I’m running Debian etch (i386), all dependecies fulfilled.
Patchset is from 20070701, applied to fvwm snapshot 20070701 and 20070702 successfully without any errors like I wrote in here patches from u15dm4

applied the patch like this. all patches except the gentoo.patch successfully applied with -p0, xlockmore patch applied using -p1.

$ cat .../name-of-the-patch.patch | patch -p0 

against fvwm 2.5.21 and latest snapshot I can get (20070705) patchset won’t work. 02-Resizepatch gives out some errors while patching. Neither have time to fix it nore conviction that I can clean it up.

configure and compile it with

$ ./configure && make deb-dist

Don’t get a copy of the failure, beacause I’m on work right now. It says something like this. “File or directory image not found”.
Something outthere who can help me with the holy grale. I really appreciate this. Or someone could give me an already patched version in a deb-file for debian stable?.

Thank you

First thing I advice you is to:

1.- stay with 2.5.21 stable and no patches, or
2.- use today’s latest cvs, with the latest patchset

I am maintaining this patchset (to some extent) now, but I only fix the latest patchset, and only against the latest cvs. So, if there is any problem with an older patchset and any older cvs snapshot, it is not likely that it will get fixed by me (fixed like in “to make it compile” :stuck_out_tongue:).

Latest CVS has version number 2.5.22.

This is the latest patchset:
jesgue.homelinux.org/fvwm-files/ … 01.tar.bz2

As you see, it is numbered 20070701, so, yours is newer, and not packed by me (unless that ‘5’ at the end of your version is a typo).

The reason for so much problems is the same reason that in any other live cvs build: it changes, and usually, each patchset works only with the cvs snapshot of the same date that it was made for. Most of the times, most of the patches could patch ok, but some other times, they will not. Additionally, the patches in the first level should be independent, and patch ok individually (no guarantees, of course). But the ones in the extra directory MUST be applied incrementally, and I can tell you for sure that, unless applied incrementally, from 01 to the last one, some of them will not patch.

Try to provide some more data, and we’ll see if we can help.

hi 6thpink,

thank you for your reply.
I’m still using your patchset from 20070701…the 20070705 concerned to the snapshot of fvwm.

Furthermore I applied the patches in the extra directory incrementally. Patching works fine…no errors.

I didn’t understand one thing. Hope to describe it with my bad english.
Your latest patchset is 20070701. Why should I choose a cvs package or a later snapshot of the fvwm source? As you said “it changes, and usually, each patchset works only with the cvs snapshot of the same date that it was made for.” So I choosed snapshot of fvwm from 20070701 and 20070702. The hole patchprocess is not the problem.
My problem is that it won’t compile my *deb package…

Later today I’ll compile it without building a deb. Hopefully it works.

Kind regards

Oh, I see. Sorry then. I missread your whole post.

Then the problem should be in fvwm itself, I think.

deb-dist is just another target into a Makefile. And as far as I know, the patches don’t touch that. I could be wrong, though.

Luck with that :slight_smile:

– Jesús Guerrero

successfully build fvwm_2.5.22-0.20070710_i386.deb for testing purpose…works fine…but no patches :laughing:

built it against the patches…won’t work (same error on snapshot 20070709)

zack@natalie:~/Desktop/test/fvwm-snap-20070709$ cat /home/zack/Desktop/test/patchset/extras/02-ResizeOutlineThin.patch | patch -p0
patching file fvwm/fvwm.h
patching file fvwm/move_resize.c
Hunk #12 FAILED at 4060.
1 out of 12 hunks FAILED -- saving rejects to file fvwm/move_resize.c.rej
patching file fvwm/style.c
Hunk #1 succeeded at 3805 (offset 304 lines).
patching file fvwm/style.h
Hunk #1 succeeded at 220 (offset 32 lines).
patching file fvwm/window_flags.h

patched snapshot 20070702 without any errors

zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/01-ColourBorders.patch | patch -p0 patching file fvwm/borders.c patching file fvwm/fvwm.c patching file fvwm/fvwm.h patching file fvwm/screen.h patching file fvwm/style.c patching file fvwm/style.h zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/02-ResizeOutlineThin.patch | patch -p0 patching file fvwm/fvwm.h patching file fvwm/move_resize.c patching file fvwm/style.c Hunk #1 succeeded at 3805 (offset 304 lines). patching file fvwm/style.h Hunk #1 succeeded at 220 (offset 32 lines). patching file fvwm/window_flags.h zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/03-Conditionals.patch | patch -p0 patching file fvwm/conditional.c Hunk #1 succeeded at 600 (offset 19 lines). zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/04-FlatSeparators.patch | patch -p0 patching file fvwm/menuitem.c Hunk #2 succeeded at 390 with fuzz 2 (offset 56 lines). Hunk #3 succeeded at 607 (offset 62 lines). Hunk #4 succeeded at 629 (offset 62 lines). Hunk #5 succeeded at 671 (offset 62 lines). Hunk #6 succeeded at 685 (offset 62 lines). patching file fvwm/menustyle.c Hunk #1 succeeded at 405 (offset 7 lines). Hunk #2 succeeded at 880 (offset 38 lines). Hunk #3 succeeded at 1568 (offset 38 lines). Hunk #4 succeeded at 1824 (offset 38 lines). patching file fvwm/menus.c Hunk #1 succeeded at 1488 (offset -875 lines). patching file fvwm/menustyle.h zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/05-BorderUnderTitle.patch | patch -p0 patching file fvwm/style.c Hunk #1 succeeded at 2158 (offset 103 lines). Hunk #2 succeeded at 4823 (offset 421 lines). patching file fvwm/style.h Hunk #1 succeeded at 371 (offset 48 lines). patching file fvwm/geometry.c Hunk #2 succeeded at 346 (offset 1 line). Hunk #3 succeeded at 473 (offset 1 line). patching file fvwm/geometry.h patching file fvwm/fvwm.h Hunk #1 succeeded at 269 (offset 4 lines). patching file fvwm/window_flags.h Hunk #1 succeeded at 328 (offset 18 lines). patching file fvwm/borders.c Hunk #1 succeeded at 4997 (offset 415 lines). Hunk #2 succeeded at 5068 (offset 415 lines). patching file fvwm/borders.h zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/06-InactiveFont.patch | patch -p0 patching file fvwm/style.c Hunk #1 succeeded at 415 (offset 6 lines). Hunk #2 succeeded at 858 (offset 107 lines). Hunk #3 succeeded at 3182 (offset 328 lines). Hunk #4 succeeded at 4878 with fuzz 2 (offset 421 lines). patching file fvwm/style.h Hunk #1 succeeded at 295 (offset 48 lines). Hunk #2 succeeded at 495 (offset 48 lines). patching file fvwm/fvwm.h Hunk #2 succeeded at 362 (offset 4 lines). Hunk #3 succeeded at 650 with fuzz 1 (offset 40 lines). Hunk #4 succeeded at 797 (offset 74 lines). patching file fvwm/add_window.c Hunk #1 succeeded at 638 (offset 6 lines). Hunk #2 succeeded at 1691 (offset 6 lines). patching file fvwm/window_flags.h Hunk #1 succeeded at 580 (offset 18 lines). Hunk #2 succeeded at 628 (offset 18 lines). patching file fvwm/borders.c Hunk #1 succeeded at 3923 (offset 413 lines). Hunk #2 succeeded at 3933 (offset 413 lines). Hunk #3 succeeded at 3998 (offset 413 lines). Hunk #4 succeeded at 4020 (offset 413 lines). Hunk #5 succeeded at 4044 (offset 413 lines). Hunk #6 succeeded at 4083 (offset 413 lines). Hunk #7 succeeded at 4091 (offset 413 lines). Hunk #8 succeeded at 4159 (offset 413 lines). Hunk #9 succeeded at 4172 (offset 413 lines). Hunk #10 succeeded at 4190 (offset 413 lines). Hunk #11 succeeded at 4679 (offset 415 lines). Hunk #12 succeeded at 4787 (offset 415 lines). zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/07-FluxRoundedCorners.patch | patch -p0 patching file fvwm/add_window.c patching file fvwm/borders.c patching file fvwm/frame.c patching file fvwm/frame.h patching file fvwm/fvwm.h patching file fvwm/geometry.c patching file fvwm/menus.c patching file fvwm/menustyle.c patching file fvwm/menustyle.h patching file fvwm/style.c patching file fvwm/style.h patching file fvwm/window_flags.h patching file fvwm/windowshade.c zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/09-TopBorder.patch | patch -p0 patching file fvwm/style.c Hunk #1 succeeded at 4321 (offset 453 lines). Hunk #2 succeeded at 4955 (offset 447 lines). patching file fvwm/style.h Hunk #1 succeeded at 397 (offset 48 lines). patching file fvwm/geometry.c Hunk #1 succeeded at 480 (offset 1 line). Hunk #2 succeeded at 498 (offset 1 line). Hunk #3 succeeded at 537 (offset 1 line). patching file fvwm/fvwm.h Hunk #1 succeeded at 275 (offset 4 lines). patching file fvwm/window_flags.h Hunk #1 succeeded at 358 (offset 18 lines). zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/10-ButtonWidth.patch | patch -p0 patching file fvwm/frame.c Hunk #1 succeeded at 1371 (offset 2 lines). patching file fvwm/screen.h patching file fvwm/builtins.c Hunk #1 succeeded at 492 (offset 7 lines). zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/11-MultiBorder.patch | patch -p0 patching file fvwm/borders.c Hunk #1 succeeded at 1647 (offset -7 lines). Hunk #2 succeeded at 1840 (offset -7 lines). Hunk #3 succeeded at 1954 (offset -7 lines). Hunk #4 succeeded at 1978 (offset -7 lines). Hunk #5 succeeded at 1992 (offset -7 lines). Hunk #6 succeeded at 2056 (offset -7 lines). Hunk #7 succeeded at 2166 (offset -7 lines). Hunk #8 succeeded at 2221 (offset -7 lines). Hunk #9 succeeded at 3848 (offset -7 lines). Hunk #10 succeeded at 4298 (offset -7 lines). patching file fvwm/builtins.c Hunk #1 succeeded at 777 (offset -7 lines). Hunk #2 succeeded at 1530 (offset -7 lines). Hunk #3 succeeded at 1907 (offset -7 lines). patching file fvwm/menus.c patching file fvwm/menustyle.c patching file fvwm/menustyle.h patching file fvwm/screen.h zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/12-Hover.patch | patch -p0 patching file fvwm/events.c Hunk #1 succeeded at 164 with fuzz 1 (offset 6 lines). Hunk #2 succeeded at 1693 (offset 20 lines). Hunk #3 succeeded at 1915 (offset 20 lines). Hunk #4 succeeded at 2579 (offset 43 lines). patching file fvwm/fvwm.h Hunk #1 succeeded at 780 (offset 74 lines). patching file fvwm/screen.h Hunk #3 succeeded at 532 (offset 15 lines). patching file fvwm/builtins.c Hunk #1 succeeded at 100 (offset 7 lines). Hunk #2 succeeded at 120 (offset 7 lines). patching file fvwm/borders.c Hunk #1 succeeded at 67 (offset 2 lines). Hunk #2 succeeded at 245 (offset 59 lines). Hunk #3 succeeded at 351 (offset 59 lines). Hunk #4 succeeded at 877 (offset 282 lines). Hunk #5 succeeded at 901 (offset 282 lines). Hunk #6 succeeded at 4413 (offset 413 lines). Hunk #7 succeeded at 4682 (offset 415 lines). Hunk #8 succeeded at 4958 (offset 418 lines). Hunk #9 succeeded at 5010 (offset 418 lines). Hunk #10 succeeded at 5101 (offset 418 lines). Hunk #11 succeeded at 5119 (offset 418 lines). Hunk #12 succeeded at 5582 (offset 418 lines). Hunk #13 succeeded at 5604 (offset 418 lines). Hunk #14 succeeded at 5618 (offset 418 lines). zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/13-FvwmIconMan.patch | patch -p0 patching file modules/FvwmIconMan/readconfig.c Hunk #1 succeeded at 2023 (offset -5 lines). patching file modules/FvwmIconMan/xmanager.c Hunk #1 succeeded at 1365 (offset -31 lines). Hunk #2 succeeded at 1639 (offset -31 lines). Hunk #3 succeeded at 1854 (offset -31 lines). patching file modules/FvwmIconMan/FvwmIconMan.h Hunk #1 succeeded at 314 (offset -1 lines). zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/14-FvwmButtonsTips | patch -p0 cat: /home/zack/Desktop/test/patchset/extras/14-FvwmButtonsTips: Datei oder Verzeichnis nicht gefunden zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/extras/14-FvwmButtonsTips.patch | patch -p0 patching file libs/FTips.c patching file modules/FvwmButtons/FvwmButtons.c Hunk #3 succeeded at 1085 (offset -2 lines). Hunk #4 succeeded at 1213 (offset -2 lines). Hunk #5 succeeded at 1259 (offset -2 lines). Hunk #6 succeeded at 1298 (offset -2 lines). Hunk #7 succeeded at 1326 (offset -2 lines). Hunk #8 succeeded at 1369 (offset -2 lines). patching file modules/FvwmButtons/FvwmButtons.h patching file modules/FvwmButtons/parse.c zack@natalie:~/Desktop/test/fvwm-snap-20070702$ cat /home/zack/Desktop/test/patchset/fvwm-translucent-menus.patch | patch -p0 patching file fvwm/colorset.c Hunk #6 succeeded at 1645 (offset 4 lines). Hunk #7 succeeded at 1761 (offset 4 lines). Hunk #8 succeeded at 1779 (offset 4 lines). Hunk #9 succeeded at 1791 (offset 4 lines). patching file fvwm/menuroot.h patching file fvwm/menus.c Hunk #1 succeeded at 77 (offset 2 lines). Hunk #2 succeeded at 203 (offset 2 lines). Hunk #3 succeeded at 370 (offset 2 lines). Hunk #4 succeeded at 1810 (offset 6 lines). Hunk #5 succeeded at 2666 (offset 46 lines). Hunk #6 succeeded at 3516 (offset 59 lines). Hunk #7 succeeded at 3697 with fuzz 1 (offset 61 lines). Hunk #8 succeeded at 6248 (offset 61 lines). Hunk #9 succeeded at 6404 (offset 61 lines). Hunk #10 succeeded at 7041 (offset 61 lines). patching file fvwm/menus.h patching file libs/Colorset.h patching file libs/PictureGraphics.c patching file libs/PictureGraphics.h zack@natalie:~/Desktop/test/fvwm-snap-20070702$

want to built it…getting these errors (german)

make[7]: Leaving directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22/doc/images'
make[6]: Leaving directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22/doc/images'
Making install in modules
make[6]: Entering directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22/doc/modules'
make[7]: Entering directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22/doc/modules'
make[7]: Für das Ziel »install-exec-am« ist nichts zu tun.
test -z "/usr/share/doc/fvwm/modules" || mkdir -p -- "/home/zack/Desktop/fvwm-snap-20070702/inst-2.5.22/usr/share/doc/fvwm/modules"
make[7]: Leaving directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22/doc/modules'
cp: Aufruf von stat für „images“ nicht möglich: Datei oder Verzeichnis nicht gefunden
make[6]: *** [install] Fehler 1 
make[6]: Leaving directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22/doc/modules'
make[5]: *** [install-recursive] Fehler 1
make[5]: Leaving directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22/doc'
make[4]: *** [install-recursive] Fehler 1
make[4]: Leaving directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22'
make[3]: *** [inplace] Fehler 2
make[3]: Leaving directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22'
make[2]: *** [deb-inplace] Fehler 1
make[2]: Leaving directory `/home/zack/Desktop/fvwm-snap-20070702/fvwm-2.5.22'
make[1]: *** [this] Fehler 2
make[1]: Leaving directory `/home/zack/Desktop/fvwm-snap-20070702'
make: *** [deb-this] Fehler 1
zack@natalie:~/Desktop/fvwm-snap-20070702$

I go crazy…

@6thpink: no problem. Sure difficult to understand what I write :laughing:
appreciate your help.

Your cvs snapshot from 20070702 will not work, I think for the same reason that it did not work in Gentoo. There is something wrong with the doc/modules/images directory, in Gentoo it was a sandbox violation, when building the package for debian it should be any other thing. But for the few things I understand in the German output, I think the problem is equivalent.

So, you can either sync to the latest cvs, or apply the gentoo.patch included in the tarball. Alternatively, you can patch by hand this file: doc/modules/Makefile.am. In line 55~ you’ll find this:

       @ cp -rp images $(docdir)

Try to comment the line:

#       @ cp -rp images $(docdir)

And make again. As I say, I am not sure your problem is the same (I can’t read German), but you can try this workaround and see what happens.

By the way, you might be interested in prepending the locale when compiling, into your command line:

$ LC_ALL="C" make

The C locale is mostly an english locale, that should turn the compiler messages to english, which is probably the language that most people will understand on these forums and the mailing lists.

– Jesús Guerrero

thx for your hints…will check soon when I’m home.

finally ended up with a deb of s snapshot from 14.06.2007…applied matching patches (01-12) without translucent-menus.patch.

With translucent-menus.patch can’t compile.

I’m pleased for the moment. I’ll check a little bit to either find the error or get it work with further version.

Appreciate your help.

last entry on this thread.

found a new patchset on 6thpink…(20070715?) and patched it against cvs snapshot (20070716) successfully.

everything works fine now…thx to 6thpink!!!