[tex-k] Running (g)make check on FreeBSD: lib/t1lib, utils/tpic2pdftex

Nikola Lečić nikola.lecic at anthesphoria.net
Thu Dec 10 15:23:56 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Dear TeXLive team,

Here are the patches I needed for (g)make check to pass on FreeBSD, for
(1) lib/t1lib and (2) utils/tpic2pdftex.

1. libs/t1lib

   - additional -lm linking is necessary, for the test only; I am not
     sure if this is an acceptable way to achieve this and if this is
     a *BSD-specific issue;
   - BSD sed does not support "sed FILE -e '...'" syntax; the patched
     version works for both sed and gsed.

So, I used:

- ----------------------------------- >8 ---------------------------------
Index: source/libs/t1lib/Makefile.in
===================================================================
- --- source/libs/t1lib/Makefile.in	(revision 16326)
+++ source/libs/t1lib/Makefile.in	(working copy)
@@ -210,6 +210,7 @@
 AM_CPPFLAGS = $(T1LIB_DEFINES) -DT1LIB_IDENT=\"@T1LIB_VERSIONSTRING@\" \
 	-DGLOBAL_CONFIG_DIR=\"@T1LIB_DATA_DIR@\"
 AM_CFLAGS = $(T1LIB_CFLAGS)
+AM_LDFLAGS = -lm
 LDADD = libt1.a
 noinst_LIBRARIES = libt1.a
 nodist_libt1_a_SOURCES = $(lib_t1lib_sources) $(lib_type1_sources)
Index: source/libs/t1lib/type1afm.test
===================================================================
- --- source/libs/t1lib/type1afm.test	(revision 16326)
+++ source/libs/t1lib/type1afm.test	(working copy)
@@ -11,7 +11,7 @@
 
 ./type1afm ./x047016t.pfa || exit 1
 
- -sed x047016t.afm -e '/^Comment File creation date:/d' >l047016t.afmx \
+sed -e '/^Comment File creation date:/d' x047016t.afm >l047016t.afmx \
 	&& diff l047016t.afmx $srcdir/l047016t.xafm \
 	|| exit 1
 
- ----------------------------------- >8 ---------------------------------

2. utils/tpic2pdftex

Here, example.exp does not match generated example.tex (beamerexample is
ok). First I thought that it was a FreeBSD-specific problem, maybe with
FreeBSD's pic(1), but it is not. FreeBSD's pic(1) and Linux pic produce
the same tpic. So I needed this:

- ----------------------------------- >8 ---------------------------------
Index: source/utils/tpic2pdftex/example.exp
===================================================================
- --- source/utils/tpic2pdftex/example.exp	(revision 16326)
+++ source/utils/tpic2pdftex/example.exp	(working copy)
@@ -402,8 +402,8 @@
 143.496 -14.472 m
 143.496 -14.472 l
 S
- -141.984 -11.232 m
- -141.984 -11.232 l
+142.056 -11.232 m
+142.056 -11.232 l
 S
 139.824 -8.424 m
 139.824 -8.424 l
@@ -536,77 +536,77 @@
 144 -18 m
 172.8 -18 l
 S
- -232.02864 -11.238401 m
- -232.334929 -11.742368 232.610282 -12.264498 232.853174 -12.801899 c
+232.028715 -11.238526 m
+232.334987 -11.742475 232.610325 -12.264585 232.853204 -12.801965 c
 S
- -230.975377 -9.770722 m
- -231.349857 -10.253474 231.696602 -10.757114 232.013936 -11.279209 c
+230.975516 -9.770901 m
+231.349975 -10.25364 231.696702 -10.757267 232.014019 -11.279346 c
 S
- -225.693804 -4.98167 m
- -226.708489 -5.626132 227.671516 -6.348532 228.574174 -7.142335 c
+225.693726 -4.98162 m
+226.708439 -5.626095 227.671493 -6.348511 228.574174 -7.142335 c
 S
- -219.281172 -1.964592 m
- -220.418948 -2.349286 221.534033 -2.798082 222.621076 -3.308826 c
+219.28075 -1.964449 m
+220.418742 -2.349199 221.534036 -2.798075 222.621278 -3.308921 c
 S
- -212.333894 -0.40708 m
- -213.522876 -0.565692 214.703718 -0.780277 215.872486 -1.05012 c
+212.333818 -0.40707 m
+213.522901 -0.565693 214.703843 -0.780298 215.872709 -1.050172 c
 S
- -205.200606 -0.040028 m
- -206.398633 0.013299 207.598438 0.013343 208.796469 -0.039898 c
+205.200647 -0.040027 m
+206.398647 0.013299 207.598425 0.013342 208.796429 -0.039897 c
 S
 198.12434 -1.050853 m
- -199.293321 -0.780855 200.474385 -0.566138 201.663596 -0.407415 c
+199.293235 -0.780876 200.47421 -0.56617 201.663332 -0.40745 c
 S
- -191.376004 -3.310198 m
- -192.463073 -2.799308 193.578194 -2.350371 194.716014 -1.965543 c
+191.375889 -3.310252 m
+192.463186 -2.799249 193.578548 -2.350226 194.716617 -1.96534 c
 S
- -185.424044 -7.143902 m
- -186.326784 -6.349863 187.289921 -5.627248 188.304741 -4.982594 c
+185.4234 -7.144469 m
+186.326116 -6.350391 187.289233 -5.627736 188.304036 -4.983042 c
 S
- -181.912252 -11.28219 m
- -182.229476 -10.760023 182.576116 -10.256303 182.950494 -9.773467 c
+181.912386 -11.28197 m
+182.229658 -10.759743 182.576351 -10.255969 182.950791 -9.773084 c
 S
- -181.145542 -12.80474 m
- -181.388313 -12.2673 181.663546 -11.745124 181.969719 -11.241103 c
+181.145536 -12.804753 m
+181.38834 -12.267238 181.663616 -11.744991 181.96984 -11.240904 c
 S
- -180.135449 -19.799705 m
- -179.955148 -18.608668 179.954849 -17.397298 180.134561 -16.206172 c
+180.135453 -19.799729 m
+179.955144 -18.608656 179.954848 -17.397249 180.134574 -16.206088 c
 S
- -181.97265 -24.763719 m
- -181.66638 -24.259979 181.391022 -23.738083 181.1481 -23.20092 c
+181.972725 -24.763844 m
+181.66641 -24.26004 181.391015 -23.738076 181.148064 -23.20084 c
 S
- -183.025934 -26.230968 m
- -182.651519 -25.748432 182.304817 -25.245018 181.987502 -24.723157 c
+183.026181 -26.231287 m
+182.651705 -25.748696 182.304948 -25.245221 181.987586 -24.723295 c
 S
- -188.309223 -31.020252 m
- -187.294602 -30.376051 186.331609 -29.653929 185.428954 -28.860415 c
+188.308518 -31.019805 m
+187.293887 -30.375546 186.330892 -29.653364 185.42824 -28.859787 c
 S
- -194.721259 -34.03623 m
- -193.583624 -33.651685 192.468666 -33.203056 191.381736 -32.692495 c
+194.721862 -34.036434 m
+193.583948 -33.65182 192.468721 -33.203091 191.381535 -32.6924 c
 S
- -201.66927 -35.665342 m
- -200.480162 -35.506814 199.29919 -35.292302 198.130289 -35.022521 c
+201.668968 -35.665301 m
+200.479936 -35.506775 199.29904 -35.29227 198.130215 -35.022504 c
 S
- -208.802412 -36.031837 m
- -207.604389 -36.085254 206.404583 -36.085387 205.206549 -36.032236 c
+208.80229 -36.031843 m
+207.604294 -36.085255 206.404516 -36.085386 205.206508 -36.032234 c
 S
- -215.878435 -35.020506 m
- -214.709586 -35.290565 213.528652 -35.505355 212.339568 -35.664162 c
+215.878621 -35.020463 m
+214.709686 -35.290548 213.528665 -35.505356 212.339492 -35.664173 c
 S
- -222.626779 -32.688494 m
- -221.539616 -33.199557 220.424387 -33.648652 219.286448 -34.033624 c
+222.626923 -32.688426 m
+221.53957 -33.199585 220.424142 -33.648754 219.285996 -34.033777 c
 S
- -228.579048 -28.853377 m
- -227.676327 -29.647684 226.713181 -30.370559 225.698325 -31.015458 c
+228.579013 -28.853408 m
+227.676268 -29.647733 226.713093 -30.370623 225.698207 -31.015533 c
 S
- -232.08916 -24.715485 m
- -231.771918 -25.237881 231.425238 -25.741821 231.050797 -26.224868 c
+232.089218 -24.715388 m
+231.771991 -25.237768 231.425328 -25.741694 231.050906 -26.224728 c
 S
 232.855725 -23.192455 m
- -232.612982 -23.730136 232.33775 -24.25255 232.031554 -24.756801 c
+232.612996 -23.730105 232.337782 -24.25249 232.031607 -24.756713 c
 S
- -233.864098 -16.197307 m
- -234.044704 -17.388339 234.045302 -18.599749 233.865871 -19.790959 c
+233.864109 -16.197378 m
+234.044707 -17.388403 234.045298 -18.599806 233.865864 -19.791006 c
 S
 Q
 }%

- ----------------------------------- >8 ---------------------------------

Best regards,
- -- 
Nikola Lečić = Никола Лечић
fingerprint : FEF3 66AF C90E EDC3 D878  7CDC 956D F4AB A377 1C9B
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)

iJwEAQEDAAYFAkshBIAACgkQ/MM/0rYIoZi+QAP/VtQm40M/EY2c1UQbBCX7fqIW
5UBZi5NY2LZIAE1vxcQry2xbHwwZF20pWU8x7pr/FU1zKkjS72pbnGnS6dbwqod5
vAiAS9LwxgB76n0RGv+JtaJ+dgDT7Rupac/WL+sFUjVV1eO25HTznriUbz25TMDS
uOW9snxxkIddUISBYEc=
=tNaD
-----END PGP SIGNATURE-----


More information about the tex-k mailing list