Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 101159 - cowloop udev entries
Summary: cowloop udev entries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-08-02 21:07 UTC by Jérôme Poulin
Modified: 2005-08-04 16:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for cowloop ebuild (cowloop-2.15.ebuild.patch,594 bytes, patch)
2005-08-02 21:21 UTC, Jérôme Poulin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jérôme Poulin 2005-08-02 21:07:03 UTC
In version 2.15 of cowloop, cowmerge has been added to the package and the
make/install part of the ebuild weren't added that source file to compile, I
added the patch for this bug at the end of the bug report.

Another problem I was wondering, is there a way to automatically add rules to
udev for that package as when you use udev it creates on modprobe /dev/cowctl
but the program search for /dev/cow/ctl when used and will not work until it is
created there, also when it works it will create a cowdev /dev/cowloop0 when the
program says it has created /dev/cow/[0-16] depending on the number of cowloops,
I added those lines to /etc/udev/rules.d/50-udev.rules :

# cow loop
KERNEL=="cowctl"        NAME="cow/ctl"
KERNEL=="cowloop[0-9]"  NAME="cow/%n"

those lines worked perfectly and fixed it.

--- portage/sys-fs/cowloop/cowloop-2.15.ebuild	2005-06-26 05:38:58.000000000 -0400
+++ portage-cowloop/sys-fs/cowloop/cowloop-2.15.ebuild	2005-08-02
23:55:56.000000000 -0400
@@ -32,11 +32,11 @@ pkg_setup() {
 
 src_compile() {
 	linux-mod_src_compile
-	CC="$(tc-getCC) ${CFLAGS}" emake cowdev cowrepair cowsync cowlist || die "make
failed"
+	CC="$(tc-getCC) ${CFLAGS}" emake cowdev cowrepair cowsync cowlist cowmerge ||
die "make failed"
 }
 
 src_install() {
 	linux-mod_src_install
-	dosbin cowdev cowrepair cowsync cowlist
+	dosbin cowdev cowrepair cowsync cowlist cowmerge
 	doman man/*
 }
Comment 1 Jérôme Poulin 2005-08-02 21:21:03 UTC
Created attachment 64964 [details, diff]
Patch for cowloop ebuild
Comment 2 Jérôme Poulin 2005-08-02 21:23:04 UTC
Comment on attachment 64964 [details, diff]
Patch for cowloop ebuild

Just though it could be an idea to have a file instead of text.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2005-08-04 02:00:16 UTC
cowloop-2.15-r1 fixes cowmerge  
  
Greg - are the udev additions feasible? 
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-08-04 11:48:56 UTC
You don't need to add those udev entries to the main udev rules file, just drop
them into the /etc/udev/rules.d/ directory.  With a name something like
"60-cowloop.rules" so they get run after the other rules.
Comment 5 Daniel Black (RETIRED) gentoo-dev 2005-08-04 14:51:18 UTC
done - thanks greg. 
Comment 6 Jérôme Poulin 2005-08-04 16:41:58 UTC
Ah ok! I tried that but didn't add the .rules suffix and it didn't work but with
.rules it works perfectly. Thanks.