From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Comment-To: "Albert R. Valiev" To: ALT Linux kernel packages development Subject: Re: [d-kernel] kernel fix build In-Reply-To: <200307071401.03830.darkstar@altlinux.ru> (Albert R. Valiev's message of "Mon, 7 Jul 2003 14:01:03 +0400") References: <200307061553.13088.darkstar@altlinux.ru> <200307071305.24963.darkstar@altlinux.ru> <200307071401.03830.darkstar@altlinux.ru> From: ed@altlinux.ru (Ed V. Bartosh) Organization: ALT Linux Date: Mon, 07 Jul 2003 13:15:04 +0400 Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Portable Code, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-BeenThere: devel-kernel@altlinux.ru X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 10:16:00 -0000 Archived-At: List-Archive: List-Post: >>>>> "ARV" == Albert R. Valiev writes: >> Хех, если бы мне было понятно, то я бы не спрашивал :( Можно ли >> для особо тупящих объяснить еще разок ? ARV> rmkmvtag.c лезет в /usr/include/linux за заголовочными ARV> файлами. А их там вполне может и не быть, этот патч всего лишь ARV> добавляет в пути include каталог include, который идет с самим ARV> ядром. Хех :( 1. Смотрим в rhkmvtag.c #include extern const char *linux_banner; int main() { printf("%s", linux_banner); return 0; } Ничего подозрительного :( 2. ls -l /usr/include |grep linux - нету такого :( 2. nm init/version.o 00000000 t gcc2_compiled. 00000188 D linux_banner 00000000 D system_utsname 00000000 B Version_132117 linux_banner присутствует. 3. Пробуем собирать: gcc-2.96 -v -o rhkmvtag /home/rpm/kernel-image-aw-smp/SOURCES/rhkmvtag.c init/version.o Reading specs from /usr/lib/gcc-lib/i586-alt-linux/2.96/specs gcc version 2.96 20000731 (ALT Linux, build 2.96-alt3) /usr/lib/gcc-lib/i586-alt-linux/2.96/cpp0 -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__NO_INLINE__ -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ /home/rpm/kernel-image-aw-smp/SOURCES/rhkmvtag.c /home/ed/tmp/ccYA85g7.i GNU CPP version 2.96 20000731 (ALT Linux, build 2.96-alt3) (cpplib) (i386 Linux/ELF) ignoring nonexistent directory "/usr/i586-alt-linux/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/gcc-lib/i586-alt-linux/2.96/include /usr/include End of search list. /usr/lib/gcc-lib/i586-alt-linux/2.96/cc1 /home/ed/tmp/ccYA85g7.i -quiet -dumpbase rhkmvtag.c -version -o /home/ed/tmp/ccyYsmb5.s GNU C version 2.96 20000731 (ALT Linux, build 2.96-alt3) (i586-alt-linux) compiled by GNU C version 2.96 20000731 (ALT Linux, build 2.96-alt3). as -V -Qy -o /home/ed/tmp/ccooQdl6.o /home/ed/tmp/ccyYsmb5.s GNU assembler version 2.13.90.0.4 (i586-alt-linux) using BFD version 2.13.90.0.4 20020814 /usr/lib/gcc-lib/i586-alt-linux/2.96/collect2 -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o rhkmvtag /usr/lib/gcc-lib/i586-alt-linux/2.96/../../../crt1.o /usr/lib/gcc-lib/i586-alt-linux/2.96/../../../crti.o /usr/lib/gcc-lib/i586-alt-linux/2.96/crtbegin.o -L/usr/lib/gcc-lib/i586-alt-linux/2.96 -L/usr/lib/gcc-lib/i586-alt-linux/2.96/../../.. /home/ed/tmp/ccooQdl6.o init/version.o -lgcc -lc -lgcc /usr/lib/gcc-lib/i586-alt-linux/2.96/crtend.o /usr/lib/gcc-lib/i586-alt-linux/2.96/../../../crtn.o Собирается. Что я не так сделал ? -- Best regards, Ed V. Bartosh >>From mike@fly.osdn.org.ua Mon Jul 7 14:29:15 2003 Return-Path: Delivered-To: devel-kernel@lrn.ru Received: from master.altlinux.ru (master.altlinux.ru [62.118.250.235]) by lrn.ru (Postfix) with ESMTP id 108CA4933D for ; Mon, 7 Jul 2003 14:29:15 +0400 (MSD) Received: from fly.osdn.org.ua (osdn-2.tsua.net [212.40.36.150]) by master.altlinux.ru (Postfix) with ESMTP id 30ABFE31CF for ; Mon, 7 Jul 2003 14:29:14 +0400 (MSD) Received: by fly.osdn.org.ua (Postfix, from userid 500) id E1821165E58; Mon, 7 Jul 2003 13:29:13 +0300 (EEST) Date: Mon, 7 Jul 2003 13:29:13 +0300 From: Michael Shigorin To: ALT Linux kernel packages development Message-ID: <20030707102913.GD8981@osdn.org.ua> Mail-Followup-To: ALT Linux kernel packages development References: <1057415369.8726.220.camel@pyro.hopawar.private.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J4XPiPrVK1ev6Sgr" Content-Disposition: inline In-Reply-To: <1057415369.8726.220.camel@pyro.hopawar.private.net> User-Agent: Mutt/1.4.1i Subject: [d-kernel] module-init-tools (was: =?koi8-r?b?5MEsIMXdxSDQ0s8g09DFyyk=?= X-BeenThere: devel-kernel@altlinux.ru X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 10:29:17 -0000 --J4XPiPrVK1ev6Sgr Content-Type: multipart/mixed; boundary="6Nae48J/T25AfBN4" Content-Disposition: inline Content-Transfer-Encoding: 8bit --6Nae48J/T25AfBN4 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Sat, Jul 05, 2003 at 09:29:29PM +0700, Alexey Morozov wrote: > 2Mike Shigorin: Михаил, все же механизм Epoch - по моему, > слишком тяжелая дубина для такого случая. Ну так ядра у нас и так отдельно отрабатываются. В частности, их может быть тележка :) > Перепрыгивать с ядра на ядро (н-р, с целью поиграться с 2.5 и Кстати, у кого-то еще есть module-init-tools.spec? Мой хак в аттаче, но он (кажется) требовал еще какого-то надфиля после %post*... -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --6Nae48J/T25AfBN4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="module-init-tools.spec" #TODO Take care of the conversion %define priority 20 #%%define toalternate insmod lsmod modprobe rmmod depmod modinfo %define toalternate insmod modprobe rmmod depmod modinfo Name: module-init-tools Version: 0.9.12 Release: alt0.1 %define prerelease -pre1 Summary: Tools for managing Linux kernel modules License: GPL Group: System/Kernel and hardware Url: ftp://ftp.kernel.org/pub/linux/kernel/people/rusty/modules Source: %url/%name-%version%prerelease.tar.bz2 #Patch: module-init-tools-0.9.7-export-gpl.patch.bz2 Prefix: / #PreReq: %_sbindir/update-alternatives #Conflicts: modutils < 2.4.22 %description This package contains a set of programs for loading, inserting, and removing kernel modules for Linux (versions 2.5.47 and above). It serves the same function that the modutils package does for Linux 2.4. %prep %setup -q -n %name-%version%prerelease #%%patch -p1 -b .export-gpl %build #%%serverbuild %configure --bindir=/bin --sbindir=/sbin %make bindir=%buildroot/bin sbindir=%buildroot/sbin %install %makeinstall transform= \ bindir=%buildroot/bin \ sbindir=%buildroot/sbin mv %buildroot/bin/lsmod %buildroot/sbin pushd %buildroot/sbin && { for i in %toalternate lsmod; do mv $i $i-25 done } && popd rm -rf %buildroot/%_mandir for n in 5 8;do install -d %buildroot/%_mandir/man$n/ for i in *.$n;do [[ $n == 8 ]] && ext="-25" || ext="" install -m644 $i %buildroot/%_mandir/man${n}/${i%%%%.*}${ext}.$n done done #rm -f %buildroot/sbin/*.static install -d -m755 %buildroot/etc/ touch %buildroot/etc/modprobe.conf %pre # lsmod is symlinked to insmod in modutils-2.4.25-alt1 for i in %toalternate lsmod; do [ -e /sbin/$i ] && mv /sbin/$i /sbin/$i.old ln -s /sbin/$i-25 /sbin/$i done ln -sf /sbin/insmod.old /sbin/lsmod.old #for i in %toalternate;do # update-alternatives --install /sbin/$i $i /sbin/$i-25 %priority # update-alternatives --install \ # %_mandir/man8/$i.8%_extension man-$i %_mandir/man8/$i-25.8%_extension %priority # [ -e /sbin/$i ] || update-alternatives --auto $i # [ -e %_mandir/$i.8%_extension ] || update-alternatives --auto man-$i #done %postun for i in %toalternate; do [ -s /sbin/$i ] && readlink /sbin/$i | grep -q 35$ && rm /sbin/$i [ -e /sbin/$i.old ] && mv /sbin/$i.old /sbin/$i done rm /sbin/lsmod.old ln -sf /sbin/insmod /sbin/lsmod #for i in %toalternate;do # if [ ! -f /sbin/$i-25 ]; then # update-alternatives --remove $i /sbin/$i # fi # [ -e /sbin/$i ] || update-alternatives --auto $i # # if [ ! -f %_mandir/man8/$i-25.8%_extension ]; then # update-alternatives --remove man-$i %_mandir/man8/$i.8%_extension # fi # [ -e %_mandir/man8/$i.8%_extension ] || update-alternatives --auto man-$i #done %files %doc AUTHORS ChangeLog NEWS README FAQ %doc TODO stress_modules.sh %config(noreplace) /etc/modprobe.conf /sbin/generate-modprobe.conf /sbin/*25 %_mandir/*/* %changelog * Fri May 02 2003 Michael Shigorin 0.9.11a-alt1 - built for ALT Linux - spec adapted from Cooker - fixed configure/make/install paths - temporarily removed alternatives since modutils isn't alternated (yet) - some trickery put in instead; note that in modutils-2.4.25-alt1 /sbin/lsmod is a symlink to /sbin/insmod and in module-init-tools it's not "the same" * Mon Apr 7 2003 Chmouel Boudjnah 0.9.11a-1mdk - Move lsmod to /sbin to don't break alternatives system (#3679) * Fri Apr 4 2003 Chmouel Boudjnah 0.9.11a-1mdk - Bump to version 0.9.11a. * Thu Mar 27 2003 Chmouel Boudjnah 0.9.10-1mdk - Bump to version 0.9.10. * Thu Feb 6 2003 Chmouel Boudjnah 0.9.9-1mdk - Bump to version 0.9.9. * Wed Jan 15 2003 Chmouel Boudjnah 0.9.8-2mdk - Remove modutils package and move it to his own package. * Tue Jan 14 2003 Chmouel Boudjnah 0.9.8-1mdk - Bump to version 0.9.8. * Tue Jan 14 2003 Chmouel Boudjnah 0.9.7-5mdk - handle gpl symbol in module-init-tools (Petr Vandrovec). * Tue Jan 14 2003 Chmouel Boudjnah 0.9.7-4mdk - Add modules.conf as noreplace config file. * Fri Jan 10 2003 Chmouel Boudjnah 0.9.7-3mdk - Silly me forgot that bloody Prereq: on update-alternatives. * Wed Jan 8 2003 Chmouel Boudjnah 0.9.7-2mdk - I promess i will go to temple every day light-up a candle and pray that update-alternatives will work this time 8-(. - Generate modutils from here (not really necessary but easy to maintain) and try to make it live with new module-init package. - New module-init-tools package. * Wed Jan 8 2003 Chmouel Boudjnah 0.9.7-1mdk - First version. - Fake ChangeLog never released because of upgrade of modutils nevermind since i am the master of this specfile. # end of file --6Nae48J/T25AfBN4-- --J4XPiPrVK1ev6Sgr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/CUt5bsPDprYMm3IRAgZ6AJ4jn+zRThstu2aWy0xn+x+d963qMwCg2owV flCAZBLfvDnjm17isxdVsHw= =b6xH -----END PGP SIGNATURE----- --J4XPiPrVK1ev6Sgr-- >>From darkstar@altlinux.ru Mon Jul 7 14:37:42 2003 Return-Path: Delivered-To: devel-kernel@lrn.ru Received: from master.altlinux.ru (master.altlinux.ru [62.118.250.235]) by lrn.ru (Postfix) with ESMTP id ED3C449513 for ; Mon, 7 Jul 2003 14:37:41 +0400 (MSD) Received: from e-nk.ru (unknown [217.107.90.106]) by master.altlinux.ru (Postfix) with ESMTP id BD6CDE31CF for ; Mon, 7 Jul 2003 14:37:41 +0400 (MSD) Received: by e-nk.ru (Postfix, from userid 501) id 95925210E8D; Mon, 7 Jul 2003 14:38:50 +0400 (MSD) Received: from 217.107.125.113 (darkstar.e-nk.ru [217.107.125.113]) by e-nk.ru (Postfix) with ESMTP id 92EAE210E8A for ; Mon, 7 Jul 2003 14:38:49 +0400 (MSD) From: "Albert R. Valiev" Organization: ALT Linux Team To: ALT Linux kernel packages development Subject: Re: [d-kernel] kernel fix build Date: Mon, 7 Jul 2003 14:35:38 +0400 User-Agent: KMail/1.5.2 References: <200307061553.13088.darkstar@altlinux.ru> <200307071401.03830.darkstar@altlinux.ru> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_6zUC/6S9xbo7nMc"; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <200307071435.38884.darkstar@altlinux.ru> X-BeenThere: devel-kernel@altlinux.ru X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ALT Linux kernel packages development List-Id: ALT Linux kernel packages development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 10:37:44 -0000 --Boundary-02=_6zUC/6S9xbo7nMc Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: base64 Content-Description: signed data Content-Disposition: inline 9yDTz8/C3cXOyckgz9QgNyDpwMzYIDIwMDMgMTM6MTUgRWQgVi4gQmFydG9zaCDOwdDJ08HMOgo+ ID4+Pj4+ICJBUlYiID09IEFsYmVydCBSLiBWYWxpZXYgd3JpdGVzOgo+ICA+Pgo+ICA+PiAg6MXI LCDF08zJIMLZIM3OxSDC2czPINDPztHUzs8sINTPINEgwtkgzsUg09DSwdvJ18HMIDooCj4gID4+ IO3P1s7PIMzJIMTM0SDP08/CzyDU1dDR3cnIIM/C39HTzsnU2CDF3cUg0sHaz8sgPwo+Cj4gIEFS Vj4gIHJta212dGFnLmMgzMXaxdQg1yAvdXNyL2luY2x1ZGUvbGludXgg2sEg2sHHz8zP18/eztnN yQo+ICBBUlY+ICDGwcrMwc3JLiDhIMnIINTBzSDX0M/MzsUgzc/WxdQgySDOxSDC2dTYLCDc1M/U INDB1N4KPiDX08XHzyDMydvYIEFSVj4gIMTPw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3tTPIMvT1MHUySDX0M/MzsUg 0sXBzNjOzy4KCi0tIAoKV2l0aCBCZXN0IFJlZ2FyZHMsIEFsYmVydCBSLiBWYWxpZXYKLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCkFMVCBMaW51eCBUZWFtIFt3d3cuYWx0bGlu dXgucnVdCkFSVi1EQVJLU1RBUi1SSVBOLCBBUlYyLVJJUEUK --Boundary-02=_6zUC/6S9xbo7nMc Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/CUz67d6wAH+0KuARAoIzAJ9Y+Msoy5LPxGLse0G/EdI2cDHz5gCgpDjf Vejr4JD1K4xSVAIyO2miTEI= =cOrr -----END PGP SIGNATURE----- --Boundary-02=_6zUC/6S9xbo7nMc--