Status for extras? e.g. http://www.bluequartz.us/phpBB2/viewtopic.php?p=362410&sid=cb50643784021...
My first attempt to build rpm's results in error, but might be the result of starting too late on a Saturday... + cd iscsitarget-0.4.17 + /bin/rm -rf /var/tmp/iscsitarget-0.4.17-1-root + /usr/bin/make install-files KERNELSRC=/lib/modules/2.6.18-164.el5PAE/build DISTDIR=/var/tmp/iscsitarget-0.4.17-1-root make: *** No rule to make target `install-files'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.67902 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.67902 (%install)
On Sep 20, 2009, at 1:02 AM, Jerry Amundson jamundso@gmail.com wrote:
Status for extras? e.g. http://www.bluequartz.us/phpBB2/viewtopic.php?p=362410&sid=cb50643784021...
My first attempt to build rpm's results in error, but might be the result of starting too late on a Saturday...
- cd iscsitarget-0.4.17
- /bin/rm -rf /var/tmp/iscsitarget-0.4.17-1-root
- /usr/bin/make install-files
KERNELSRC=/lib/modules/2.6.18-164.el5PAE/build DISTDIR=/var/tmp/iscsitarget-0.4.17-1-root make: *** No rule to make target `install-files'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.67902 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.67902 (%install)
Waiting for 0.4.18 which should be out soon. This release has a bunch of fixes, compatibility and useability which will make a big difference.
If you want to test it out it you can get a copy from svn which comes with a spec file.
The build you attempted is with the 0.4.18 spec file and 0.4.17 Makefile which doesn't work without modification.
In fact if you get the latest spec file it has an option to build right from the svn. You can use the svn browser on Berlios to find it.
-Ross
On 9/21/09, Ross Walker rswwalker@gmail.com wrote:
Waiting for 0.4.18 which should be out soon. This release has a bunch of fixes, compatibility and useability which will make a big difference.
Cool. Gets much farther - compiles now, but fails at packaging... jerry
Processing files: kmod-iscsitarget-svn_r235-1_2.6.18_164.el5PAE Provides: kmod-iscsitarget Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh Requires(preun): /bin/sh Requires: kernel = 2.6.18-164.el5PAE Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/iscsitarget-svn_r235-1-root error: Installed (but unpackaged) file(s) found: /etc/iet/ietd.conf /etc/iet/initiators.allow /etc/iet/targets.allow
RPM build errors: File not found: /var/tmp/iscsitarget-svn_r235-1-root/etc/ietd.conf File not found: /var/tmp/iscsitarget-svn_r235-1-root/etc/initiators.allow File not found: /var/tmp/iscsitarget-svn_r235-1-root/etc/initiators.deny Installed (but unpackaged) file(s) found: /etc/iet/ietd.conf /etc/iet/initiators.allow /etc/iet/targets.allow
I dont know whats in the spec file but try adding:
/etc/iet/ietd.conf /etc/iet/initiators.allow /etc/iet/targets.allow
under %files
*From the Fedora docs:*
8.2.3.6. The files section
Finally, the files section lists the files to go into the binary RPM, along with the defined file attributes. For example:
%files
%defattr(-,root,root)
/usr/bin/jikes
-Adam
On Mon, Sep 21, 2009 at 4:41 PM, Jerry Amundson jamundso@gmail.com wrote:
On 9/21/09, Ross Walker rswwalker@gmail.com wrote:
Waiting for 0.4.18 which should be out soon. This release has a bunch of fixes, compatibility and useability which will make a big difference.
Cool. Gets much farther - compiles now, but fails at packaging... jerry
Processing files: kmod-iscsitarget-svn_r235-1_2.6.18_164.el5PAE Provides: kmod-iscsitarget Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh Requires(preun): /bin/sh Requires: kernel = 2.6.18-164.el5PAE Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/iscsitarget-svn_r235-1-root error: Installed (but unpackaged) file(s) found: /etc/iet/ietd.conf /etc/iet/initiators.allow /etc/iet/targets.allow
RPM build errors: File not found: /var/tmp/iscsitarget-svn_r235-1-root/etc/ietd.conf File not found: /var/tmp/iscsitarget-svn_r235-1-root/etc/initiators.allow File not found: /var/tmp/iscsitarget-svn_r235-1-root/etc/initiators.deny Installed (but unpackaged) file(s) found: /etc/iet/ietd.conf /etc/iet/initiators.allow /etc/iet/targets.allow _______________________________________________ CentOS-devel mailing list CentOS-devel@centos.org http://lists.centos.org/mailman/listinfo/centos-devel
On Mon, Sep 21, 2009 at 4:41 PM, Jerry Amundson jamundso@gmail.com wrote:
Installed (but unpackaged) file(s) found: /etc/iet/ietd.conf /etc/iet/initiators.allow /etc/iet/targets.allow
Looks like a missing subdir and misnamed file. These changes to the spec built fine for me. Now to reboot and start running with it...
--- ../BUILD/iscsitarget-svn_r236/iscsitarget.spec 2009-09-10 00:55:54.000000000 -0500 +++ iscsitarget.spec 2009-09-21 18:29:35.000000000 -0500 @@ -13,7 +13,7 @@ %define dkms 0
# Build from SVN repository -%define svn 0 +%define svn 1
## Package Definitions # @@ -237,9 +237,9 @@ %{_sbindir}/* %{_mandir}/man?/* %{_sysconfdir}/rc.d/init.d/* -%config(noreplace) %{_sysconfdir}/ietd.conf -%config(noreplace) %{_sysconfdir}/initiators.allow -%config(noreplace) %{_sysconfdir}/initiators.deny +%config(noreplace) %{_sysconfdir}/iet/ietd.conf +%config(noreplace) %{_sysconfdir}/iet/initiators.allow +%config(noreplace) %{_sysconfdir}/iet/targets.allow %doc ChangeLog COPYING README README.vmware %endif
On 9/21/09, Jerry Amundson jamundso@gmail.com wrote:
Now to reboot and start running with it...
or, just chkconfig iscsi-target on service iscsi-target start is what I meant. Modules are fun! :)
# modinfo iscsi_trgt filename: /lib/modules/2.6.18-164.el5PAE/kernel/iscsi/iscsi_trgt.ko author: IET development team iscsitarget-devel@lists.sourceforge.net description: iSCSI Enterprise Target license: GPL version: svn_r236 srcversion: 240A771B0B74BBB6B633171 depends: vermagic: 2.6.18-164.el5PAE SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1 parm: worker_thread_pool_size:Size of the worker thread pool (0 = dedicated threads per target (default)) (ulong) parm: debug_enable_flags:debug bitmask, low bits (0 ... 8) used, see iscsi_dbg.h (ulong)
jerry
On Sep 21, 2009, at 7:54 PM, Jerry Amundson jamundso@gmail.com wrote:
On 9/21/09, Jerry Amundson jamundso@gmail.com wrote:
Now to reboot and start running with it...
or, just chkconfig iscsi-target on service iscsi-target start is what I meant. Modules are fun! :)
The install scripts should 'chkconfig iscsi-target on' for you.
Still to do, is figure out a way to have it generate kabi tracking kernel module that is compatible with both RH and SLES.
Right now it can generate a dkms kernel module, but not everyone uses dkms and I don't think it's included in extras, but it is cross- platform, so you can have one kmod package for both C4 and C5 and all kernel variants, and 4 user code packages (32bit and 64bit for each version), much easier then 8 kernel packages and 4 user packages.
-Ross
On 9/22/09, Ross Walker rswwalker@gmail.com wrote:
The install scripts should 'chkconfig iscsi-target on' for you.
It prly did - just old sysadmin habit on my part...
Still to do, is figure out a way to have it generate kabi tracking kernel module that is compatible with both RH and SLES.
I don't currently have SLES installed, but have lot's of spare hw around if it would help for me to have it on something.
Right now it can generate a dkms kernel module, but not everyone uses dkms and I don't think it's included in extras, but it is cross- platform, so you can have one kmod package for both C4 and C5 and all kernel variants, and 4 user code packages (32bit and 64bit for each version), much easier then 8 kernel packages and 4 user packages.
I've always liked dkms - Matt is an über bright type... and as you may have noticed, kmod gives me nothing but headaches. However, I seem to be the only one, so I live with it until I can fix it myself.
jerry
On Tue, Sep 22, 2009 at 10:46 AM, Jerry Amundson jamundso@gmail.com wrote:
On 9/22/09, Ross Walker rswwalker@gmail.com wrote:
The install scripts should 'chkconfig iscsi-target on' for you.
It prly did - just old sysadmin habit on my part...
Actually it doesn't, it just 'chkconfig --add' it. Which is ok because maybe the operator doesn't want it starting right away.
Still to do, is figure out a way to have it generate kabi tracking kernel module that is compatible with both RH and SLES.
I don't currently have SLES installed, but have lot's of spare hw around if it would help for me to have it on something.
I don't have SLES either, which makes testing hard, but if you have the time to install a trial version of SLES and the rpmbuild stuff and give it a try I would definitely appreciate it.
Right now it can generate a dkms kernel module, but not everyone uses dkms and I don't think it's included in extras, but it is cross- platform, so you can have one kmod package for both C4 and C5 and all kernel variants, and 4 user code packages (32bit and 64bit for each version), much easier then 8 kernel packages and 4 user packages.
I've always liked dkms - Matt is an über bright type... and as you may have noticed, kmod gives me nothing but headaches. However, I seem to be the only one, so I live with it until I can fix it myself.
Well maybe a dkms port to 'extras' wouldn't be asking too much?
I like dkms as well because it provides detailed information that one would otherwise have to poke into /lib/modules for, it also allows for rebuilding due to kabi changes without re-installing which is nice.
-Ross
On Sep 21, 2009, at 4:41 PM, Jerry Amundson jamundso@gmail.com wrote:
On 9/21/09, Ross Walker rswwalker@gmail.com wrote:
Waiting for 0.4.18 which should be out soon. This release has a bunch of fixes, compatibility and useability which will make a big difference.
Cool. Gets much farther - compiles now, but fails at packaging... jerry
Processing files: kmod-iscsitarget-svn_r235-1_2.6.18_164.el5PAE Provides: kmod-iscsitarget Requires(interp): /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh Requires(preun): /bin/sh Requires: kernel = 2.6.18-164.el5PAE Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/iscsitarget-svn_r235-1-root error: Installed (but unpackaged) file(s) found: /etc/iet/ietd.conf /etc/iet/initiators.allow /etc/iet/targets.allow
RPM build errors: File not found: /var/tmp/iscsitarget-svn_r235-1-root/etc/ietd.conf File not found: /var/tmp/iscsitarget-svn_r235-1-root/etc/ initiators.allow File not found: /var/tmp/iscsitarget-svn_r235-1-root/etc/ initiators.deny Installed (but unpackaged) file(s) found: /etc/iet/ietd.conf /etc/iet/initiators.allow /etc/iet/targets.allow
Thanks for testing, I need to update .spec after last commit.
I'll try to get that in today.
-Ross