bugGNU gettext - Bugs: bug #37925, preserve time stamp for libintl.h...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #37925: preserve time stamp for libintl.h in destination folder

Submitter:  Andrey <andrey>
Submitted:  Fri 14 Dec 2012 09:11:55 PM UTC
   
 
Category:  Build Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Not a Bug Privacy:  Public
Assigned to:  ueno Open/Closed:  Closed

Discussion

Mon 12 Dec 2016 12:57:08 AM UTC, comment #2: 


> After running install target without changing any code libintl.h in declination folder installed with new time without changes This is triggering compilation for other library who include libintl.h


Even if libintl.h has not changed, the libintl.a that is being installed at the same time may have changed. Therefore relinking of the libraries or executables that make use of libintl.a may be needed, but the compiler has no way to know it, because the Makefile rules typically do not have the .a files as dependencies, and AFAIK gcc's dependency mechanism looks at the included .h files, not at the linked .a files.

Therefore, really, the only reliable behaviour is that libintl.h and libintl.a are being considered "new", thus your project gets recompiled.

I guess that's also the reason why the install(1) program does not have an option to skip installation if the contents won't change.

Bruno Haible <haible>
Group administrator
Fri 08 Mar 2013 09:19:15 AM UTC, comment #1: 

I think this is normal behavior of upstream library installation.
You could workaround like:

make install INSTALL="install -p"

Daiki Ueno <ueno>
Group administrator
Fri 14 Dec 2012 09:11:55 PM UTC, original submission:  


After running install target without changing any code libintl.h in
declination folder installed with new time without changes
This is triggering compilation for other library who include libintl.h

Problem can be fixed by  modifying installation command  line in  file gettext-runtime/intl/Makefile.in

From
          $(INSTALL_DATA)  libintl.h $(DESTDIR)$(includedir)/libintl.h; \
To
          $(INSTALL_DATA) -p libintl.h $(DESTDIR)$(includedir)/libintl.h; \

Andrey <andrey>

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by haible (Updated the item)
  • -email is unavailable- added by ueno (Posted a comment)
  • -email is unavailable- added by andrey (Submitted the item)
  •  

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    History

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-27 haible CategoryNone Build
        Assigned toNone ueno
    2013-03-08 ueno StatusNone Not a Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.16-ed84.
    Corresponding source code