795
[darwin-xtools.git] / cctools / ar / notes
blobad20517e2f6dff61c1a60bb4ce01564c6f4a743b
1 Changes for the 5.28 release (the cctools-787 release):
2 - Added testing the environment variable ZERO_AR_DATE to set the ar date to
3   zero to allow testing and comparing things for exact binary equality.
4   The change was in put_arobj() archive.c . Radar bug #7919021.
6 Changes for the 5.28 release (the cctools-777 release):
7 - Changed the Makefile to use -Os for OFLAG.  Radar bug #7475093.
9 Changes for the 5.27 release (the cctools-762 release):
10 - Changed the Makefile to set CC when when SDKROOT is set.  Radar bug #7078805.
12 Changes for the 5.27 release (the cctools-759 release):
13 - Changed the Makefile to add -isysroot $(SDKROOT) to compile and link lines
14   when SDKROOT is set.  Radar bug #6965029.
16 Changes for the 5.26 release (the cctools-757 release):
17 - Changed open_archive() in archive.c to skip the call to flock() if the archive
18   is opened in read-only mode.  Radar bug #6900552.
20 Changes for the 5.26 release (the cctools-756 release):
21 - Changed main() in ar.c to use a prefix on ranlib that it runs so it runs one
22   from the same place as ar(1) if used in an SDK.  Radar bug #6821441.
24 Changes for the 5.26 release (the cctools-752 release):
25 - Ported to build with clang.
26   - Changed Makefile to work around bug 6761248.
28 Changes for the 5.26 release (the cctools-722 release):
29 - Changed open_archive() in archive.c after the call to flock() to check for an
30   return value of -1 and errno value of EAGAIN.  And added a loop that sleeps
31   for a second and tries up to 10 times.  Radar bug #6085183.
33 Changes for the 5.26 release (the cctools-705 release):
34 - Changed two uses of unsigned long in archive.c to uint32_t for reading the
35   fat magic number. Radar bug #6022298.
37 Changes for the 5.19 release (the cctools-590.4 release):
38 - Added the S switch to not run ranlib on the archive.  The change is in main()
39   in main.c and the man page ar.1 .  Radar bug #4130034.
41 Changes for the 5.18 release (the cctools-583 release):
42 - Changed the Makefile so that when RC_XBS is set to YES then the compiler
43   options -MD and -dependency-file as well as the md(1) program are not used.
44   Radar bug #4029936.
46 Changes for the 5.12 release (the cctools-552 release):
47 - Changed ar(1) to update or add a table of contents when in UNIX standard
48   conformance mode (the default). To do this and not hose archives with fat
49   object turning them into fat files that ar(1) will not operate on a new
50   ranlib(1) option -q is used.  This only updates the table of contents when
51   the output would not be a fat file.
52   - Changed archive.[ch] to have a new global variable
53     archive_opened_for_writing which is set to 1 in open_archive() if the
54     file is open(2)'ed with the mode O_RDWR.
55   - Changed main() in ar.c to run ranlib(1) when in UNIX standard conformance
56     mode and archive_opened_for_writing is set using the new -q ranlib(1)
57     option.
59 Changes for the 5.12 release (the cctools-464 release):
60 - Made changes to build cleanly with gcc3.3
61   - Removed -Wno-precomp from the Makefile
62   - Fixed warning for "comparison between signed and unsigned" in archive.c
64 Changes for the 5.12 release (the cctools-450 release):
65 - Added a switch statement for the errno value after the flock() call in
66   archive.c to deal with the fact that NFS can now do locking.  Radar bug
67   #3105943.
69 Changes for the 5.10 release (the cctools-396 release):
70 - Added support for the -s option from freebsd which is:
71        s      Write an object-file index into the archive, or up-
72               date an existing one, even if no  other  change  is
73               made  to  the  archive.   You may use this modifier
74               flag either with any operation, or alone.   Running
75               `ar s' on an archive is equivalent to running `ran-
76               lib' on it.
77   this is done by just running ranlib to ease porting.  When this is done the
78   new ranlib(1) flag -f will be used to generate a warning when a fat archive
79   is created as a result of the ranlib operation and the resulting file will
80   not work with ar(1).
81     - Added the AR_S constant to archive.h
82     - Added the code to parse out -s and -V in main() in ar.c
83     - Updated the usage() lines in ar.c
84     - Added the code to execute ranlib in main() in ar.c 
85     - Update the ar(1) man page with the -s option.
86   Radar bug #2814831.
88 - Changed the Makefile to not use the -dependency-file with gcc as well as
89   mwccppc.
91 Changes for the 5.5 release (the cctools-307 release):
92 - Removed the reference to Rhapsody in the ar.5 man page.  Radar bug #2399338.
94 Changes for the 5.3 release (the cctools-283 release):
95 - The change from ts_sec to tv_sec was picked up for MacOS X (see below).
97 Changes for the 5.3 release (the cctools-282.1 release):
98 - In the stat struct (non-Openstep) there are three struct timespec's
99   (defined in sys/time.h).  The field name ts_sec was change to tv_sec
100   to match Posix (Radar bug #2005170).  So in ar/archive.c the use of the
101   field ts_sec was changed to tv_sec.  Three places (Radar bug #2284290).
103 Changes for the 5.3 release, MacOS X bringup (the cctools-282 release):
104 - Change it so the ar sources are included with the installMWsrc target in the
105   Makefile.
106 - Changed the Makefile to allow for RC_OS=macos for MacOS X builds.
108 Changes for the 5.2 release (the cctools-267 release):
109 - Removed -Dlint from the Makefile to allow precomps to be used.  Radar bug
110   #2227732.
111 - Changed the default to use long names (-L the default with -T off).
112 - Changed ar to pad long names with \0 out to four byte boundaries when using
113   the extended format. Radar bug #1670513. 
115 Changes for the 5.1 release (the cctools-260 release):
116 - Added -c to all the install commands in the Makefile.
118 Changes for the 5.1 release (the cctools-253 release):
119 - Delt with the problem of the uid and gid fields in the ar.5 format being 6
120   characters wide and the types being 32 bits wide.  A cast to u_short was added
121   as in the 4.3bsd ar.  Radar bug #2000486.
123 Changes for the 5.1 release (the cctools-250 release):
124 - Added a comment in the ar.5 man page that the extended format is not
125   yet used by the Rhapsody compiler tools.
126 - Changed the man path to install the man pages directly in /usr/share/man .
128 Changes for the 5.1 release (the cctools-247 release):
129 - Maded the -T option the default so to not used the extended format not yet
130   supported by the compiler tools. The -L option was added to turn this default
131   off.  Updated the man page (Radar 1670513).
132 - Added MKDIRS if code to the Makefile to build native on Rhapsody.
133 - Changed the Makefile to use gnutar instead of tar because it works on Rhapsody
134   where tar does not.
136 Changes for the 5.0 release (the cctools-235 release):
137 - Added code to detect fat files like the old ar program and print a message
138   about using libtool & lipo.
139 - Created this directory from the OpenBSD/src/usr.bin/ar directory.  It is only
140   built when RC_OS=teflon.  Removed all the warnings produced with -Wall and
141   made it compile with the Grail4C header files.