diff options
author | Thomas Beierlein <tomjbe@gentoo.org> | 2010-09-24 17:52:16 +0000 |
---|---|---|
committer | Thomas Beierlein <tomjbe@gentoo.org> | 2010-09-24 17:52:16 +0000 |
commit | 12199a983cd60c07e11240b329a2c85322413bfe (patch) | |
tree | e810807fe45fb2f45caaf4050862b6d5f3a872eb /media-radio | |
parent | Version bump (diff) | |
download | historical-12199a983cd60c07e11240b329a2c85322413bfe.tar.gz historical-12199a983cd60c07e11240b329a2c85322413bfe.tar.bz2 historical-12199a983cd60c07e11240b329a2c85322413bfe.zip |
Fix for bug #337365 (Thanks Diego for reporting) and fix installdir for doc files
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'media-radio')
-rw-r--r-- | media-radio/xastir/ChangeLog | 9 | ||||
-rw-r--r-- | media-radio/xastir/Manifest | 14 | ||||
-rw-r--r-- | media-radio/xastir/files/xastir-1.9.8-fortify.diff | 141 | ||||
-rw-r--r-- | media-radio/xastir/xastir-1.9.8-r1.ebuild | 79 |
4 files changed, 231 insertions, 12 deletions
diff --git a/media-radio/xastir/ChangeLog b/media-radio/xastir/ChangeLog index 71ceff0e1584..87242e3a2935 100644 --- a/media-radio/xastir/ChangeLog +++ b/media-radio/xastir/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-radio/xastir # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/ChangeLog,v 1.13 2010/07/17 09:41:43 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/ChangeLog,v 1.14 2010/09/24 17:52:16 tomjbe Exp $ + +*xastir-1.9.8-r1 (24 Sep 2010) + + 24 Sep 2010; Thomas Beierlein <tomjbe@gentoo.org> +xastir-1.9.8-r1.ebuild, + +files/xastir-1.9.8-fortify.diff: + Fix for bug #337365 (Thanks Diego for reporting) and fix installdir for + doc files 17 Jul 2010; Christian Faulhammer <fauli@gentoo.org> xastir-1.9.8.ebuild: stable x86, bug 328067 diff --git a/media-radio/xastir/Manifest b/media-radio/xastir/Manifest index 4cbf2506c64f..ffb840de06d6 100644 --- a/media-radio/xastir/Manifest +++ b/media-radio/xastir/Manifest @@ -1,16 +1,8 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX xastir-1.9.8-Destdir.diff 630 RMD160 510c390e0c68eaf275ccb6a0d06800efddfd60f0 SHA1 566bd560cb78d1a46af7a48954d8c44730a62800 SHA256 a468240fc6c9397272057bf0cdb313dde6420a14b13697b87554e7e6e07f07c8 +AUX xastir-1.9.8-fortify.diff 4349 RMD160 e5eb39b90696dc03f0dc194343bc4738225aee36 SHA1 9a726fc83e28e974717220e1096f4c6be99417ed SHA256 11d2db08af1af0c5c19ece44b6d51b86010e651381d0ed544743de26a8cf9c62 AUX xastir-1.9.8-scripts.diff 2741 RMD160 68f6b2c5a663b23f83002f3f2b381f7e2470d622 SHA1 e47b3db778066d0fbf5511d2f3b14246b442480a SHA256 44276ac01a0a8da7908444c3d46502fb9a38cea9a73cabbb248b7b68829de517 DIST xastir-1.9.8.tar.gz 2471489 RMD160 c5c7d0ab1fe9abfcbda4ddd1db3e97c0548babd5 SHA1 0832e73fd3b2863561e1eabd4ea97abd2ca3e669 SHA256 11006763874bf8a9bcf034f4fd1ff4de4d0038fb26f3df94798f2e89a4a22cdf +EBUILD xastir-1.9.8-r1.ebuild 2094 RMD160 c898a88a458392ae244491a79e9b2f90992692f1 SHA1 88476a2a9aea89023abe0ad292b310316c0cdd2f SHA256 2e1a8c26bdef63ed5a627eb03fe7bab39285a9b84d54492422ddff57302c4506 EBUILD xastir-1.9.8.ebuild 1999 RMD160 d0a14b0ab31ef7e87785b907bb13c93070072e7c SHA1 631a38b3d11616a15052d49b66bd387f6a04d261 SHA256 a1209358da6c3501e29663db66cfba845325047b4f4ce30bbcceb4994dce6fcc -MISC ChangeLog 654 RMD160 225fd6b4eebf49005b9fdb5615f8378fd9a3feb6 SHA1 8f36e4cc8d9686352320f778f76d3f0503070850 SHA256 a0d403399d5ef4eb172f12103ce26c4fb40fe276f8f9260ddf4f865ee37b7aa1 +MISC ChangeLog 887 RMD160 1b62ceb858797ec8a5bd3cc8dfc8292520ad672a SHA1 94d6855bb555ca5445a177fa556181addb045ac2 SHA256 aeab6db01c790b4036c02a450afa6adceb4a1b6b735ad9aafed3bf8be93b9a97 MISC metadata.xml 530 RMD160 54ce1ef09ca00341b1bca45f43fb2c1eeb6e8b12 SHA1 e6868af9c19b455d40b3cc484db25fcc90bbf563 SHA256 879907969e00f8138fb25e7a5034d06d00e2c1327fe3355aebe6902f0a0f4b63 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.15 (GNU/Linux) - -iEYEARECAAYFAkxBe1MACgkQNQqtfCuFnePVxACdE3Dbx79no/nmr2zWtMlGOVM9 -FBsAni9qgmcpQRWuRlTnEYfPXoGW2o40 -=nAjU ------END PGP SIGNATURE----- diff --git a/media-radio/xastir/files/xastir-1.9.8-fortify.diff b/media-radio/xastir/files/xastir-1.9.8-fortify.diff new file mode 100644 index 000000000000..b9fb4a9f38a5 --- /dev/null +++ b/media-radio/xastir/files/xastir-1.9.8-fortify.diff @@ -0,0 +1,141 @@ +--- src/rac_data.c.orig 2010-09-24 15:43:04.000000000 +0000 ++++ src/rac_data.c 2010-09-24 15:57:00.000000000 +0000 +@@ -209,12 +209,13 @@ + char char_offset[16]; + char index[32]; + int found = 0; +- rac_record racdata; ++ char buffer[sizeof(rac_record)]; ++ rac_record *racdata = (rac_record *)buffer; + /*char filler[8];*/ + + + xastir_snprintf(index, sizeof(index)," "); +- xastir_snprintf(racdata.callsign, sizeof(racdata.callsign)," "); ++ xastir_snprintf(racdata->callsign, sizeof(racdata->callsign)," "); + + /* ==================================================================== */ + /* Search thru the index, get the RBA */ +@@ -251,19 +252,19 @@ + if (callsign[5] == '-') + (void)chomp(callsign,5); + +- while (!feof(fdb) && strncmp((char *)&racdata, callsign, 6) < 0) ++ while (!feof(fdb) && strncmp(buffer, callsign, 6) < 0) + + //WE7U + // Problem here: We're sticking 8 bytes too many into racdata! +- rc = fgets((char *)&racdata, sizeof(racdata), fdb); ++ rc = fgets(buffer, sizeof(buffer), fdb); + + } else + fprintf(stderr,"Search:Could not open RAC data base: %s\n", get_data_base_dir("fcc/AMACALL.LST") ); + + /* || (callsign[5] == '-' && strncmp((char *)&racdata,callsign,5) < 0)) */ +- (void)chomp(racdata.callsign, 6); ++ (void)chomp(racdata->callsign, 6); + +- if (!strncmp((char *)racdata.callsign, callsign, 6)) { ++ if (!strncmp(racdata->callsign, callsign, 6)) { + found = 1; + + // Some of these cause problems on 64-bit processors, so commented +@@ -287,82 +288,82 @@ + xastir_snprintf(data->callsign, + sizeof(data->callsign), + "%s", +- racdata.callsign); ++ racdata->callsign); + + xastir_snprintf(data->first_name, + sizeof(data->first_name), + "%s", +- racdata.first_name); ++ racdata->first_name); + + xastir_snprintf(data->last_name, + sizeof(data->last_name), + "%s", +- racdata.last_name); ++ racdata->last_name); + + xastir_snprintf(data->address, + sizeof(data->address), + "%s", +- racdata.address); ++ racdata->address); + + xastir_snprintf(data->city, + sizeof(data->city), + "%s", +- racdata.city); ++ racdata->city); + + xastir_snprintf(data->province, + sizeof(data->province), + "%s", +- racdata.province); ++ racdata->province); + + xastir_snprintf(data->postal_code, + sizeof(data->postal_code), + "%s", +- racdata.postal_code); ++ racdata->postal_code); + + xastir_snprintf(data->qual_a, + sizeof(data->qual_a), + "%s", +- racdata.qual_a); ++ racdata->qual_a); + + xastir_snprintf(data->qual_b, + sizeof(data->qual_b), + "%s", +- racdata.qual_b); ++ racdata->qual_b); + + xastir_snprintf(data->qual_c, + sizeof(data->qual_c), + "%s", +- racdata.qual_c); ++ racdata->qual_c); + + xastir_snprintf(data->qual_d, + sizeof(data->qual_d), + "%s", +- racdata.qual_d); ++ racdata->qual_d); + + xastir_snprintf(data->club_name, + sizeof(data->club_name), + "%s", +- racdata.club_name); ++ racdata->club_name); + + xastir_snprintf(data->club_address, + sizeof(data->club_address), + "%s", +- racdata.club_address); ++ racdata->club_address); + + xastir_snprintf(data->club_city, + sizeof(data->club_city), + "%s", +- racdata.club_city); ++ racdata->club_city); + + xastir_snprintf(data->club_province, + sizeof(data->club_province), + "%s", +- racdata.club_province); ++ racdata->club_province); + + xastir_snprintf(data->club_postal_code, + sizeof(data->club_postal_code), + "%s", +- racdata.club_postal_code); ++ racdata->club_postal_code); + + } + (void)fclose(fdb); diff --git a/media-radio/xastir/xastir-1.9.8-r1.ebuild b/media-radio/xastir/xastir-1.9.8-r1.ebuild new file mode 100644 index 000000000000..06d94c6f594d --- /dev/null +++ b/media-radio/xastir/xastir-1.9.8-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-radio/xastir/xastir-1.9.8-r1.ebuild,v 1.1 2010/09/24 17:52:16 tomjbe Exp $ + +EAPI=2 +inherit autotools eutils multilib + +DESCRIPTION="X Amateur Station Tracking and Information Reporting" +HOMEPAGE="http://xastir.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="festival gdal geotiff imagemagick" + +DEPEND="x11-libs/openmotif + x11-libs/libXpm + x11-apps/xfontsel + dev-libs/libpcre + net-misc/curl + sys-libs/db + sci-libs/shapelib + geotiff? ( sci-libs/proj + sci-libs/libgeotiff + media-libs/tiff ) + gdal? ( sci-libs/gdal ) + imagemagick? ( media-gfx/imagemagick ) + festival? ( app-accessibility/festival )" +RDEPEND="${DEPEND}" + +src_prepare() { + # fix hardcoded /usr/local paths in scripts + epatch "${FILESDIR}"/${P}-scripts.diff + # and patch libdir + for f in scripts/permutations.pl scripts/test_coord.pl \ + scripts/toporama250k.pl scripts/toporama50k.pl; do + sed -i -e "s:/usr/lib:/usr/$(get_libdir):g" "${f}" \ + || die "sed failed on ${f}" + done + + # fix __FORTIFY_SOURCE warning (bug #337365) + epatch "${FILESDIR}"/${P}-fortify.diff + + # fix for DESTDIR + epatch "${FILESDIR}"/${P}-Destdir.diff + + eautoreconf +} + +src_configure() { + econf --without-graphicsmagick \ + --with-pcre \ + --with-shapelib \ + --with-dbfawk \ + --without-ax25 \ + --without-gpsman \ + $(use_with geotiff libproj) \ + $(use_with geotiff) \ + $(use_with gdal) \ + $(use_with imagemagick) \ + $(use_with festival) +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + rm -rf "${D}"/usr/share/doc/${PN} + dodoc AUTHORS ChangeLog FAQ README README.Contributing \ + README.Getting-Started README.MAPS || die "dodoc failed" +} + +pkg_postinst() { + elog "Kernel mode AX.25 and GPSman library not supported." + elog + elog "Remember you have to be root to add addditional scripts," + elog "maps and other configuration data under /usr/share/xastir" + elog "and /usr/$(get_libdir)/xastir." +} |