1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/print/ghostscript6/files/patch-ac
Andreas Klemm 7aa654686b update to ghostscript v 6.50
- removed port revision, because of new version
- added PCL3 driver (hpdj successor) from Martin Lottermoser
  *both* driver, HPDJ and PCL3, are now compiled in
  reason: PCL3 is still flagged as BETA and author didn't get much response
  Although Martin says, its definitively not ALPHA, its safer to have the
  old drivers around, if things fail for some reason.
  Martin confirmed, that its possible to have both in one gs binary !!!
- disable configure script temporarily, since dialog needs a driver update
  but I don't want to hold back that port any longer.
- enabled as many gs driver as possible
- reorganized MASTER_SITES
  - added mirrors
  - add a note, that russion mirror isn't up to date, so don't add it
  - optimized downloading from 6 different sources by special ordering
- reorganized Makefile completely
  - put only ${GS_SOURCES} into EXTRACT_ONLY variable
    unpacking other 3rd party src's is handled in post-extract target
  - directory creating, patching, unpacking and install actions are
    now handeled within the proper make target. This makes port maintenance
    much easier, i.e.: if you enter make extract, then only extraction
    of things happen, but makefiles are still not patched. Before this
    cleanup, things were not so structured and not easy to maintain.
    Maybe we get a configure script later, to choose between different
    3rd party driver options, then this "sorting" and documenting
    will support the migration process...
  - silence port by hiding actions with "@"
  - insert many informational echoes. This makes port maintenance and
    troubleshooting easier
  - put more unique comments in front of the different 3rd party modules
  - document things better
  - use as many environment variables as necessary, so that "numerical"
    changes only have to happen on some places and not withing make targets
  - use gs version number also in docu directory
  - properly install runtime, info and doc files from 3rd party drivers
  - put not needed stuff into "NOPORTDOCS" section
- keep old font names to avoid fetching unnecessary things
- updated patches as necessary
- added new patch from Nartin Lottermoser
- removed 2 patches that have been incorporated into gs 6.50
- added needed manual pages
- updated pkg-plist
- finally tested port and package building as well as port removal
  new port passes all disciplines ;-)
2001-01-16 22:57:24 +00:00

87 lines
2.0 KiB
Plaintext

begin patches/patch-ac:
This patch removes the code that tries to figure out the cache size of
the host. The algorithm may very well fail under some circumstances --
it makes too many assumptions about the cache behaviour, but most
importantly, the figured out values ARE NOT USED anywhere in the
ghostscript code anymore.
-mi
--- src/genarch.c Thu Mar 9 03:40:41 2000
+++ src/genarch.c Wed Jul 19 09:37:30 2000
@@ -43,11 +42,0 @@
-private clock_t
-time_clear(char *buf, int bsize, int nreps)
-{
- clock_t t = clock();
- int i;
-
- for (i = 0; i < nreps; ++i)
- memset(buf, 0, bsize);
- return clock() - t;
-}
-
@@ -181,63 +170,2 @@
#undef PRINT_MAX
-
- section(f, "Cache sizes");
-
- /*
- * Determine the primary and secondary cache sizes by looking for a
- * non-linearity in the time required to fill blocks with memset.
- */
- {
-#define MAX_BLOCK (1 << 20)
- static char buf[MAX_BLOCK];
- int bsize = 1 << 10;
- int nreps = 1;
- clock_t t = 0;
- clock_t t_eps;
-
- /*
- * Increase the number of repetitions until the time is
- * long enough to exceed the likely uncertainty.
- */
-
- while ((t = time_clear(buf, bsize, nreps)) == 0)
- nreps <<= 1;
- t_eps = t;
- while ((t = time_clear(buf, bsize, nreps)) < t_eps * 10)
- nreps <<= 1;
-
- /*
- * Increase the block size until the time jumps non-linearly.
- */
- for (; bsize <= MAX_BLOCK;) {
- clock_t dt = time_clear(buf, bsize, nreps);
-
- if (dt > t + (t >> 1)) {
- t = dt;
- break;
- }
- bsize <<= 1;
- nreps >>= 1;
- if (nreps == 0)
- nreps = 1, t <<= 1;
- }
- define_int(f, "ARCH_CACHE1_SIZE", bsize >> 1);
- /*
- * Do the same thing a second time for the secondary cache.
- */
- if (nreps > 1)
- nreps >>= 1, t >>= 1;
- for (; bsize <= MAX_BLOCK;) {
- clock_t dt = time_clear(buf, bsize, nreps);
-
- if (dt > t * 1.25) {
- t = dt;
- break;
- }
- bsize <<= 1;
- nreps >>= 1;
- if (nreps == 0)
- nreps = 1, t <<= 1;
- }
- define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1);
- }