[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-cdrom patch -- testers wanted



 --- Robert Bihlmeyer <robbe@orcus.priv.at> a écrit : 
> I now have a hopefully clean patch for the apt-cdrom/umount issue. It

Yes, that's good for all except for me. I wasted my whole weekend making a
patch for apt, thinking that nobody was working on this thing. I figured out
that if nobody aswered my email asking for someone working on apt's patch, then
I might work alone on this.

> is now <URL:http://pluto.tuwien.ac.at/~robbe/debian/hurd/> Also

Yes, I saw it. The patch I did is more simple (sorry, I can't send it as an
attachment due to an unknown reason):

cut here:
---------------------------------------------------------------------
--- /gnu/home/src/apt/apt/apt-pkg/init.cc	Sun Jul 15 14:54:37 2001
+++ init.cc	Sun Jul 15 21:00:31 2001
@@ -68,13 +68,6 @@
    Cnf.Set("Dir::Etc::preferences","preferences");
    Cnf.Set("Dir::Bin::methods","/usr/lib/apt/methods");
 
-   // Mount / Umount operations for Hurd
-   #ifdef __GNU__
-      Cnf.Set("Acquire::cdrom::/cdrom/","");
-      Cnf.Set("Acquire::cdrom::/cdrom/::Mount","settrans -a /cdrom /hurd/isofs
/dev/cdrom");
-      Cnf.Set("Acquire::cdrom::/cdrom/::UMount","settrans -fag /cdrom");
-   #endif
-
    bool Res = true;
    
    // Read an alternate config file
---------------------------------------------------------------------
cut here:

In order to use this patch, you must apply to init.cc, compile, copy binaries
from apt/bin to /bin, and copy libraries:

cp libapt-pkg-libc6.2-NEEDED /lib/libapt-pkg-libc6.2-2.10.0.so.3.1

> available there are patched source and binary packages. The impatient
> can go straight to

If someone thinks my patch is useful, I'll put binaries in my homepage.

> The changes don't break anything AFAICS, but I couldn't test the cdrom
> aspect at all, because I don't have any Debian CDs!

I installed some pakages in my hurd and all went fine, there was no need for
configuration files for apt-cdrom and dselect.

> You should have a passive translator on the cdrom node (/cdrom or
> whatever) so that mounting will need no special tricks. I'm interested

In order to work with my patch, you must have /dev/cdrom linked to real cdrom
device file.

> * What happens if you replace that with a bogus setting?

I didn't make a test about bogus settings with my patch; again, if somebody
thinks my patch is useful, I'll do more test.

=====
--------- 
|   |   |                    Cronos 
|   |   |            "No confies en nadie mayor de treinta" 
|   ----| 
|       |            Email: cronos1_mx@yahoo.com 
|       |            WWW:   http://www.geocities.com/cronos1_mx/
---------

___________________________________________________________
Do You Yahoo!? -- Vos albums photos en ligne, 
Yahoo! Photos : http://fr.photos.yahoo.com



Reply to: