Opened 11 years ago

Closed 11 years ago

#335 closed defect/bug (fixed)

File COPYING is modified during build, still it is tracked by svn

Reported by: pavelmachek.livejournal.com Owned by: KaZeR
Priority: minor Milestone: version 0.2.0
Component: install Version: git master
Severity: Keywords:
Cc:

Description

That means that after svn checkout, typing svn diff produces quite a lot of output.

Attachments (1)

delme (240 bytes) - added by pavelmachek.livejournal.com 11 years ago.
proposed fix

Download all attachments as: .zip

Change History (9)

comment:1 Changed 11 years ago by pavelmachek.livejournal.com

Running autogen.sh is required for this to happen.

comment:2 Changed 11 years ago by pavelmachek.livejournal.com

Messages from failed autogen.sh are:

pavel@amd:~/sf/navit.svn2/trunk/navit$ ./autogen.sh navit/font/freetype/Makefile.am: libfont_freetype.la' is already going to be installed in modulefont' navit/graphics/gd/Makefile.am: libgraphics_gd.la' is already going to be installed in modulegraphics' navit/graphics/null/Makefile.am: libgraphics_null.la' is already going to be installed in modulegraphics' navit/graphics/win32/Makefile.am: libgraphics_win32.la' is already going to be installed in modulegraphics' navit/gui/win32/Makefile.am: libgui_win32.la' is already going to be installed in modulegui' navit/map/binfile/Makefile.am: libmap_binfile.la' is already going to be installed in modulemap' navit/map/garmin/Makefile.am:20: unused variable: `gentypes_SOURCES' navit/map/mg/Makefile.am: libmap_mg.la' is already going to be installed in modulemap' navit/map/shapefile/Makefile.am: libmap_shapefile.la' is already going to be installed in modulemap' navit/map/textfile/Makefile.am: libmap_textfile.la' is already going to be installed in modulemap' navit/osd/core/Makefile.am: libosd_core.la' is already going to be installed in moduleosd' autoreconf2.50: automake failed with exit status: 1

comment:3 Changed 11 years ago by pavelmachek.livejournal.com

On strace, I can see "someone" executing cp

[pid 22484] stat64("COPYING.LIB", 0x81700c0) = -1 ENOENT (No such file or directory)
[pid 22484] stat64("COPYING.LESSER", 0x81700c0) = -1 ENOENT (No such file or directory)
[pid 22484] lstat64("./COPYING", {st_mode=S_IFREG|0644, st_size=17992, ...}) = 0
[pid 22484] stat64("./COPYING", {st_mode=S_IFREG|0644, st_size=17992, ...}) = 0
[pid 22484] stat64("/usr/share/automake-1.7/COPYING", {st_mode=S_IFREG|0644, st_size=17992, ...}) = 0
[pid 22484] stat64("./COPYING", {st_mode=S_IFREG|0644, st_size=17992, ...}) = 0
[pid 22484] unlink("./COPYING")         = 0
[pid 22484] pipe([3, 4])                = 0
[pid 22484] clone(Process 22654 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d20908) = 22654
[pid 22654] close(3)                    = 0
[pid 22654] fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
[pid 22654] rt_sigaction(SIGFPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
[pid 22654] execve("/bin/cp", ["cp", "/usr/share/automake-1.7/COPYING", "./COPYING"], [/* 35 vars */]) = 0


comment:4 Changed 11 years ago by pavelmachek.livejournal.com

and that someone is apparently automake:

[pid 21640] clone(Process 22484 attached
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d61908) = 22484
[pid 22484] close(4)                    = 0
[pid 22484] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
[pid 22484] rt_sigaction(SIGFPE, {SIG_DFL}, {SIG_IGN}, 8) = 0
[pid 22484] execve("/bin/automake", ["automake", "--add-missing", "--copy", "--force-missing"], [/* 35 vars */]) = -1 ENOENT (No such file or directory)
[pid 22484] execve("/usr/bin/automake", ["automake", "--add-missing", "--copy", "--force-missing"], [/* 35 vars */]) = 0

comment:5 Changed 11 years ago by pavelmachek.livejournal.com

It looks like automake 1.7.9 has this problem while automake 1.10.1 is okay...

comment:6 Changed 11 years ago by pavelmachek.livejournal.com

Actually... I guess the proper solution is removing --force option from autoreconf... because --force says all files from svn are "obsolete" and automake 1.7.9 treats COPYING as one of its files.

Patch to do that is attached.

Changed 11 years ago by pavelmachek.livejournal.com

proposed fix

comment:7 Changed 11 years ago by KaZeR

  • Milestone set to version 0.2.0

comment:8 Changed 11 years ago by kazer

  • Resolution set to fixed
  • Status changed from new to closed

Fixes in r2483, thank you

Note: See TracTickets for help on using tickets.