From 8a826295a40a78046bbdc0daaacb7d1e14c1710a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alin=20N=C4=83stac?= Date: Tue, 10 Apr 2007 00:40:28 +0000 Subject: [PATCH] Fix implicit declaration compiler warnings. Force executable permission on kernelcompiler.sh (#173414). Stable on x86 (#173561). Package-Manager: portage-2.1.2.2 --- net-dialup/hcfpcimodem/ChangeLog | 10 ++- net-dialup/hcfpcimodem/Manifest | 25 ++++-- .../files/digest-hcfpcimodem-1.12-r1 | 6 ++ ...fpcimodem-1.12-implicit-declarations.patch | 22 +++++ .../hcfpcimodem/hcfpcimodem-1.12-r1.ebuild | 83 +++++++++++++++++++ 5 files changed, 138 insertions(+), 8 deletions(-) create mode 100644 net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.12-r1 create mode 100644 net-dialup/hcfpcimodem/files/hcfpcimodem-1.12-implicit-declarations.patch create mode 100644 net-dialup/hcfpcimodem/hcfpcimodem-1.12-r1.ebuild diff --git a/net-dialup/hcfpcimodem/ChangeLog b/net-dialup/hcfpcimodem/ChangeLog index 8a7044a7baae..d66bc82ecca8 100644 --- a/net-dialup/hcfpcimodem/ChangeLog +++ b/net-dialup/hcfpcimodem/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-dialup/hcfpcimodem # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v 1.28 2007/03/13 09:08:17 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/ChangeLog,v 1.29 2007/04/10 00:40:28 mrness Exp $ + +*hcfpcimodem-1.12-r1 (10 Apr 2007) + + 10 Apr 2007; Alin Năstac + +files/hcfpcimodem-1.12-implicit-declarations.patch, + +hcfpcimodem-1.12-r1.ebuild: + Fix implicit declaration compiler warnings. Force executable permission on + kernelcompiler.sh (#173414). Stable on x86 (#173561). *hcfpcimodem-1.12 (13 Mar 2007) diff --git a/net-dialup/hcfpcimodem/Manifest b/net-dialup/hcfpcimodem/Manifest index 92910cf93ee7..6601589a372a 100644 --- a/net-dialup/hcfpcimodem/Manifest +++ b/net-dialup/hcfpcimodem/Manifest @@ -5,6 +5,10 @@ AUX hcfpcimodem-1.10-suspend2.patch 800 RMD160 a6493cbd2428f0de594a5c4982fedbe27 MD5 d49ba111af3016191da29fc85232ae77 files/hcfpcimodem-1.10-suspend2.patch 800 RMD160 a6493cbd2428f0de594a5c4982fedbe270febf32 files/hcfpcimodem-1.10-suspend2.patch 800 SHA256 2471713d6d04fbd0a56a75cf40d8c8d7b5e5e7d2130599365407704ff0d094c6 files/hcfpcimodem-1.10-suspend2.patch 800 +AUX hcfpcimodem-1.12-implicit-declarations.patch 808 RMD160 49b81112cc4823347c2a14758fb2f0688eb85ee7 SHA1 7f68778461cb3850faa80d11512ef24b24caa6f8 SHA256 185317fa5e54b810a7ee215e318046402eb9e2e4b965820d6f3b3f421d867de0 +MD5 3142af1c55f944cb685bd7e4c2e74229 files/hcfpcimodem-1.12-implicit-declarations.patch 808 +RMD160 49b81112cc4823347c2a14758fb2f0688eb85ee7 files/hcfpcimodem-1.12-implicit-declarations.patch 808 +SHA256 185317fa5e54b810a7ee215e318046402eb9e2e4b965820d6f3b3f421d867de0 files/hcfpcimodem-1.12-implicit-declarations.patch 808 DIST 100498D_RM_HxF_Released.pdf 718949 RMD160 be9df1ae492bcce46775c0325cd438b91213bf7a SHA1 519c9b064e734873d67cf9c17d8eb1389a6f4eef SHA256 e05385b094ac97f13aabc9432ba7478c0acf12862b3c4da097272435d43f6ac1 DIST hcfpcimodem-1.10full.tar.gz 673764 RMD160 b034f6595eaf45adcfe47803ad99097c8e056ca1 SHA1 d74ae9fda6ff8a9b2b7523460d80f30e14cab698 SHA256 007f24b11e4ae2723f4a2b29172ec80f1d3d0bd86436769f471172fbf7af4556 DIST hcfpcimodem-1.11full.tar.gz 677772 RMD160 b1cc280c6511176c215b33124098072f7449eb5d SHA1 b3bf833e9b23d11dd14b4645f1ce4ec4ff54761d SHA256 a1c8f8a2d6818d3f1c2da0372383be0e68c887b610f3f8135f640e136dc3e0fe @@ -17,14 +21,18 @@ EBUILD hcfpcimodem-1.11.ebuild 1968 RMD160 d2011336aa407e75f557f49cc25e326abfcc8 MD5 3e06128fb1f12276cbe5c013ef98e064 hcfpcimodem-1.11.ebuild 1968 RMD160 d2011336aa407e75f557f49cc25e326abfcc85cc hcfpcimodem-1.11.ebuild 1968 SHA256 9d6f2929284ce97710f25fbe8c0e2ef4d013f3008efac067aff9589ec525f344 hcfpcimodem-1.11.ebuild 1968 +EBUILD hcfpcimodem-1.12-r1.ebuild 2191 RMD160 72b732336ff0c99dc64c5fd440200de2771b95d8 SHA1 91c6210497e93fd1b182ddaae893c62ed0e27294 SHA256 b24cb870ebfb09ea8a78c74b5b96fd398d713f3bd8068dc54b9d35cce091034d +MD5 c6d2be85870155902b4d7e2c354c91de hcfpcimodem-1.12-r1.ebuild 2191 +RMD160 72b732336ff0c99dc64c5fd440200de2771b95d8 hcfpcimodem-1.12-r1.ebuild 2191 +SHA256 b24cb870ebfb09ea8a78c74b5b96fd398d713f3bd8068dc54b9d35cce091034d hcfpcimodem-1.12-r1.ebuild 2191 EBUILD hcfpcimodem-1.12.ebuild 1968 RMD160 b9768cce5abea485a082adbff753024d28f6cd1a SHA1 7224ce6fa2bb57be0db3a1faeed2f6251debe876 SHA256 503f46251a264878cf7fb4103296fb0008ebb14042c0f55f6d244f42b4b9cac4 MD5 abaaa142e026e2b330986ae6a39b80eb hcfpcimodem-1.12.ebuild 1968 RMD160 b9768cce5abea485a082adbff753024d28f6cd1a hcfpcimodem-1.12.ebuild 1968 SHA256 503f46251a264878cf7fb4103296fb0008ebb14042c0f55f6d244f42b4b9cac4 hcfpcimodem-1.12.ebuild 1968 -MISC ChangeLog 4882 RMD160 512451a27ebeafa30192a1eedc2ba1e197009bb0 SHA1 ab3345953e14f4e22e5473f85d88e30a60ecd65f SHA256 96f7bf047f8740972048cbf27795cef3ff585226f1c87be81ead979a641f9153 -MD5 f31ad15bd97ba0699446c2093ecddc7d ChangeLog 4882 -RMD160 512451a27ebeafa30192a1eedc2ba1e197009bb0 ChangeLog 4882 -SHA256 96f7bf047f8740972048cbf27795cef3ff585226f1c87be81ead979a641f9153 ChangeLog 4882 +MISC ChangeLog 5186 RMD160 9f0c52559d5766c95c6fd9a6b4291811713c2c5d SHA1 29e1df0b16a63a3cd2afcb34c6434381bf790017 SHA256 56428c3dc63ac9760a36119d7adba5c46707c8c6b7a909681f78ee1dbc86415c +MD5 e03cf59751de3c4221e7085227bcdc36 ChangeLog 5186 +RMD160 9f0c52559d5766c95c6fd9a6b4291811713c2c5d ChangeLog 5186 +SHA256 56428c3dc63ac9760a36119d7adba5c46707c8c6b7a909681f78ee1dbc86415c ChangeLog 5186 MISC metadata.xml 163 RMD160 df94c60cc0bb7abe5913b464a33966b142b2fe1e SHA1 d8332605fd22c32f15438bbdf24aa622c3d2738a SHA256 1137a0fd866641cf719b0c2e9e77ca9fa4541a42f2cc851fe4659cf2677acca3 MD5 ec2f84816306825d125d0c01bd86758d metadata.xml 163 RMD160 df94c60cc0bb7abe5913b464a33966b142b2fe1e metadata.xml 163 @@ -38,10 +46,13 @@ SHA256 c8eec865992bcf7ef9907ac08ccde353029e17477f869baf923416d94ef99a00 files/di MD5 904a494c7d20319430e5829e1d1f7f06 files/digest-hcfpcimodem-1.12 524 RMD160 e6d30607b43a3ad464acb0374d0d44cf82ce8912 files/digest-hcfpcimodem-1.12 524 SHA256 4de578a60510cb775534392bcb38a8e3f0e232a1609c6d1f41aac933cce135f7 files/digest-hcfpcimodem-1.12 524 +MD5 904a494c7d20319430e5829e1d1f7f06 files/digest-hcfpcimodem-1.12-r1 524 +RMD160 e6d30607b43a3ad464acb0374d0d44cf82ce8912 files/digest-hcfpcimodem-1.12-r1 524 +SHA256 4de578a60510cb775534392bcb38a8e3f0e232a1609c6d1f41aac933cce135f7 files/digest-hcfpcimodem-1.12-r1 524 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (GNU/Linux) -iD8DBQFF9moIJnxX6mF440QRAkGsAJ4ilC1UeCMRDoDvb+/oZstRVvRvNQCgpUW+ -zZcqUGT41GKc06QHC86hLjM= -=rQeq +iD8DBQFGGt0GJnxX6mF440QRApkhAKDMEgAVxaYlowyfdW2PHwvpGha7ggCeKTqr +5SssnwRrXJobRgJapLzzC9E= +=VPbj -----END PGP SIGNATURE----- diff --git a/net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.12-r1 b/net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.12-r1 new file mode 100644 index 000000000000..00953ad038fd --- /dev/null +++ b/net-dialup/hcfpcimodem/files/digest-hcfpcimodem-1.12-r1 @@ -0,0 +1,6 @@ +MD5 e6d8fea8f5f641d7bb4dfb33c6f478e7 100498D_RM_HxF_Released.pdf 718949 +RMD160 be9df1ae492bcce46775c0325cd438b91213bf7a 100498D_RM_HxF_Released.pdf 718949 +SHA256 e05385b094ac97f13aabc9432ba7478c0acf12862b3c4da097272435d43f6ac1 100498D_RM_HxF_Released.pdf 718949 +MD5 a50e38e11545ade89b5ec109e610bc85 hcfpcimodem-1.12full.tar.gz 677933 +RMD160 debdd7fd6b4fc446897431a9643c7e6750a1295e hcfpcimodem-1.12full.tar.gz 677933 +SHA256 7ec8c42c22db367ef9060f4e7cdf2a7d0c79e009b00ec74fd3f545e9dd3dea89 hcfpcimodem-1.12full.tar.gz 677933 diff --git a/net-dialup/hcfpcimodem/files/hcfpcimodem-1.12-implicit-declarations.patch b/net-dialup/hcfpcimodem/files/hcfpcimodem-1.12-implicit-declarations.patch new file mode 100644 index 000000000000..c1fc95102cde --- /dev/null +++ b/net-dialup/hcfpcimodem/files/hcfpcimodem-1.12-implicit-declarations.patch @@ -0,0 +1,22 @@ +diff -Nru hcfpcimodem-1.12full.orig/diag/diag.c hcfpcimodem-1.12full/diag/diag.c +--- hcfpcimodem-1.12full.orig/diag/diag.c 2004-12-14 09:50:46.000000000 +0200 ++++ hcfpcimodem-1.12full/diag/diag.c 2007-04-10 03:32:15.000000000 +0300 +@@ -13,6 +13,7 @@ + #include + #include + #include ++#include + + #include "framewrk.h" + #include "osservices.h" +diff -Nru hcfpcimodem-1.12full.orig/diag/modemexpert.c hcfpcimodem-1.12full/diag/modemexpert.c +--- hcfpcimodem-1.12full.orig/diag/modemexpert.c 2004-12-14 09:50:39.000000000 +0200 ++++ hcfpcimodem-1.12full/diag/modemexpert.c 2007-04-10 03:36:16.000000000 +0300 +@@ -13,6 +13,7 @@ + #include + #include + #include ++#include + + #include "framewrk.h" + #include "osservices.h" diff --git a/net-dialup/hcfpcimodem/hcfpcimodem-1.12-r1.ebuild b/net-dialup/hcfpcimodem/hcfpcimodem-1.12-r1.ebuild new file mode 100644 index 000000000000..6413cf321ce1 --- /dev/null +++ b/net-dialup/hcfpcimodem/hcfpcimodem-1.12-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/hcfpcimodem/hcfpcimodem-1.12-r1.ebuild,v 1.1 2007/04/10 00:40:28 mrness Exp $ + +inherit eutils linux-info + +#The document is the same as in hsfmodem, even if it has a different URL +MY_DOC="100498D_RM_HxF_Released.pdf" + +DESCRIPTION="Linuxant's modem driver for Connexant HCF chipset" +HOMEPAGE="http://www.linuxant.com/drivers/hcf/index.php" +SRC_URI="http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${P}full.tar.gz + doc? ( http://www.linuxant.com/drivers/hcf/full/archive/${P}full/${MY_DOC} )" + +LICENSE="Conexant" +SLOT="0" +KEYWORDS="-* x86" +IUSE="doc" + +DEPEND="dev-lang/perl + app-arch/cpio" + +S="${WORKDIR}/${P}full" + +QA_EXECSTACK="usr/lib/hcfpcimodem/modules/imported/hcfblam-i386.O usr/lib/hcfpcimodem/modules/imported/hcfengine-i386.O" + +pkg_setup() { + linux-info_pkg_setup + + MOD_N="hcfpci" + # Check to see if module is inserted into kernel, otherwise, build fails + if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then + eerror + eerror "Module is in use by the kernel!!!" + eerror "Attempting to unload..." + eerror + + # Unloading module... + ${MOD_N}stop + if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then + eerror "Failed to unload modules from kernel!!!" + eerror "Please manualy remove the module from the kernel and emerge again." + eerror + die + fi + einfo "Successfuly removed module from memory. Resuming emerge." + einfo + fi +} + +src_unpack() { + unpack ${A} + + epatch "${FILESDIR}/${P}-implicit-declarations.patch" +} + +src_compile() { + emake all || die "make failed" +} + +pkg_preinst() { + local NVMDIR="${ROOT}/etc/${PN}/nvm" + if [ -d "${NVMDIR}" ]; then + einfo "Cleaning ${NVMDIR}..." + rm -rf "${NVMDIR}" + eend + fi +} + +src_install () { + make PREFIX="${D}/usr/" ROOT="${D}" install || die "make install failed" + + # in some cases, kernelcompiler.sh does not have x permission (#173414) + fperms a+rx /usr/lib/hcfpcimodem/modules/kernelcompiler.sh + + use doc && dodoc "${DISTDIR}/${MY_DOC}" +} + +pkg_postinst() { + einfo "To complete the installation and configuration of your HCF modem," + einfo "please run hcfpciconfig." +} + -- 2.26.2