Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54371 - New version of Mondo ( 2.0 stable)
Summary: New version of Mondo ( 2.0 stable)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Jay Pfeifer (RETIRED)
URL: http://www.mondorescue.org
Whiteboard:
Keywords:
: 56412 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-18 16:08 UTC by Greg Yasko
Modified: 2004-08-12 17:44 UTC (History)
4 users (show)

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


Attachments
Ebuilds and Digests for Mondo 2.02, Mindi 1.02 and Mindi-Kernel 1.00 (mondo-rescue.tar.gz,2.01 KB, application/x-tar)
2004-07-06 10:54 UTC, Greg Yasko
Details
Working? Ebuilds and Digests for Mondo-Rescue, Mindi and Mindi-Kernel (mondo-rescue2.tar.gz,1.82 KB, application/x-tar)
2004-07-06 20:00 UTC, Greg Yasko
Details
Mondo-Rescue ebuild with just a few changes --- Last Attempt (mondo-rescue3.tar.gz,1.80 KB, application/x-tar)
2004-07-07 14:01 UTC, Greg Yasko
Details
Working mondo-rescue ebuild? (mondo-rescue4.tar.gz,2.08 KB, application/x-tar)
2004-07-08 15:33 UTC, Greg Yasko
Details
A working mondo-rescue-2.02 ebuild. Finally!:) (mondo-rescue5.tar.gz,2.03 KB, application/x-tar)
2004-07-08 16:31 UTC, Greg Yasko
Details
A Working Mondo-Rescue with "cannot stat /usr/share/mondo/autorun" fixed (mondo-rescue6.tar.gz,2.04 KB, application/x-tar)
2004-07-08 20:04 UTC, Greg Yasko
Details
Final mondo-rescue-2.02 ebuild with images directory in html docs fixed (mondo-rescue7.tar.gz,2.06 KB, application/x-tar)
2004-07-08 23:20 UTC, Greg Yasko
Details
Final mondo-rescue-2.02 ebuild with images directory in html docs fixed (mondo-rescue7.tar.gz,2.06 KB, application/x-tar)
2004-07-08 23:23 UTC, Greg Yasko
Details
Work in progress attached -- Mondo-Rescue and related packages (mondo-rescue8.tar.gz,2.09 KB, application/x-tar)
2004-07-09 13:20 UTC, Greg Yasko
Details
Mondo-Rescue working ebuild -- At long last!!! (mondo-rescue-it-works.tar.gz,2.07 KB, application/x-tar)
2004-07-09 20:08 UTC, Greg Yasko
Details
Mondo Resue 2.02 with final fixes (mondo-rescue.tar.gz,2.05 KB, application/x-tar)
2004-07-11 20:17 UTC, Greg Yasko
Details
Mondo-Rescue with fixes (mondo-rescue.tar.gz,2.05 KB, application/x-tar)
2004-07-14 07:07 UTC, Greg Yasko
Details
Mondo-Rescue -- media now boots (mondo-rescue.tar.gz,2.23 KB, application/x-tar)
2004-07-18 18:24 UTC, Greg Yasko
Details
Mondo Rescue Ebuilds with Mindi Post-Remove cleanup (mondo-rescue.tar.gz,2.24 KB, application/x-tar)
2004-07-21 14:47 UTC, Greg Yasko
Details
Mondo Rescue with mindi-kernel digest renamed (mondo-rescue.tar.gz,2.24 KB, application/x-tar)
2004-07-27 05:46 UTC, Greg Yasko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Yasko 2004-06-18 16:08:40 UTC
There are new stable versions of Mondo (2.0) and Mindi (1.0). 

Reproducible: Always
Steps to Reproduce:
Comment 1 Hugo Rabson 2004-06-25 11:17:43 UTC
I'm happy to release e-builds for Mondo and Mindi if a Gentoo developer will assist me in the crafting of a script to automate the process.
Comment 2 Greg Yasko 2004-07-06 10:54:52 UTC
Created attachment 34874 [details]
Ebuilds and Digests for Mondo 2.02, Mindi 1.02 and Mindi-Kernel 1.00

Attached are the ebuilds and digests for the latest stable Mondo-Rescue which
fixes problems with Gentoo. Included are ebuilds and digests for Mondo 2.02,
Mindi 1.02 and Mindi-Kernel 1.00. Mondo is dependent on Mindi and Mindi is
dependent on Mindi-Kernel.

Thanks.
Comment 3 Cal Evans 2004-07-06 11:30:00 UTC
It is my understanding from the docs that lilo is not a requirement anymore. Mondo-rescue and mindi will work with grub. Can we get the mindi ebuild changed to reflect this? (either/or instead of just lilo)  Reading their boards it does look like it requires grub .92 or better.

=C=
Comment 4 Greg Yasko 2004-07-06 11:44:58 UTC
Mondo-rescue still uses lilo for mounting the CDs/DVDs when restoring from backup. It is compatible with a system that uses grub for a bootloader though. 

-G.Y.
Comment 5 Brandon Low (RETIRED) gentoo-dev 2004-07-06 12:58:33 UTC
I'm going to toss this back to the wranglers, because while I did do the initial import, I have never used this package and as I am now a barely active dev, I can't be trusted to maintain things I don't use.
Comment 6 Cal Evans 2004-07-06 13:56:05 UTC
Installed all packages without a problem.  

Executed mondoarchive and it gave this error.

/usr/bin/mondoarchive: line 1: cd: /var/tmp/portage/mondo-rescue-2.02/work/mondo-2.02/mondo/mondoarchive: No such file or directory
gcc: main.o: No such file or directory
gcc: mondo-cli.o: No such file or directory
gcc: ../common/.libs/libmondo: No such file or directory
gcc: ../common/.libs/libmondo-newt: No such file or directory
Comment 7 Greg Yasko 2004-07-06 16:15:40 UTC
Had the same errors.

Relied on "make uninstall" and "make clean" when testing and those didn't get the job done. So basically the mondo-rescue ebuild is a wash. Mindi works though:(
Comment 8 Greg Yasko 2004-07-06 20:00:04 UTC
Created attachment 34893 [details]
Working? Ebuilds and Digests for Mondo-Rescue, Mindi and Mindi-Kernel

I completely redid the ebuild for mondo-rescue, the solution being far simpler
than the prior ebuild.

Please try this out and see if mondo-rescue works for you.

Thanks,

-G.Y.
Comment 9 Cal Evans 2004-07-07 06:38:24 UTC
Here's the output from this ebuild.

# emerge mondo-rescue
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/mondo-rescue-2.02 to /
>>> md5 src_uri ;-) mondo-2.02.tgz
mkdir: `/usr/share/mondo/post-nuke.sample/usr/bin/post-nuke' exists but is not a directory
>>> Unpacking source...
>>> Unpacking mondo-2.02.tgz to /var/tmp/portage/mondo-rescue-2.02/work
>>> Source unpacked.
./configure: ./configure: Permission denied

!!! ERROR: sys-apps/mondo-rescue-2.02 failed.
!!! Function econf, Line 365, Exitcode 126
!!! econf failed

NOTE: I got this error with the last one as well. I forgot to mention that I had to patch the ebuild to change the permissions on configure before it would work.  The one in the tar file won't execute.

=C=
Comment 10 Greg Yasko 2004-07-07 08:07:34 UTC
How did you change the permissions? I have no problems with permissions but that's with letting the portage download the tarball instead of dropping it into /usr/portage/distfiles. Please let me know so I can fix it.

The other error about post-nuke not being a directory is easy to fix:
mkdir -p /usr/share/mondo/post-nuke.sample/usr/bin/post-nuke
should be
mkdir -p /usr/share/mondo/post-nuke.sample/usr/bin

Thanks,

-G.Y.
Comment 11 Cal Evans 2004-07-07 08:18:00 UTC
I'll tell you but no laughing at me. I don't do ebuilds.

In src_compile I added a line to the beginning
chmod 777 configure

that did the trick.

There's probably a better way to do it though.

I made the change you suggested, did the emerge and this is what I get:
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-sys-apps_-_mondo-rescue-2.02-13580.log"

open_wr:   /usr/share/mondo/post-nuke.sample/usr/bin/post-nuke
--------------------------------------------------------------------------------

=C=
Comment 12 Greg Yasko 2004-07-07 14:01:31 UTC
Created attachment 34944 [details]
Mondo-Rescue ebuild with just a few changes --- Last Attempt

This should--hopefully--fix everything. If you're testing be sure to delete old
symlinks from /usr/bin (mondoarchive mondorestore mondo-makefilelist). This
ebuild installs those three in /usr/sbin without symlinking.

FYI:the only changed file in this tarball is mondo-rescue-2.02.ebuild.

Thanks,

-G.Y.
Comment 13 Greg Yasko 2004-07-07 14:47:10 UTC
For some reason Portage fails to create the post-nuke.sample directory and its subdirectories. It seems to treat it as a file instead of a directory.

Can anyone confirm that this is a bug in Portage? 

This is an extremely simple ebuild and should install from source without problems, but the directory has a funky name. I'm referring to the mondo-rescue-2.02.ebuild in mondo-rescue3.tar.gz



make[4]: Entering directory `/var/tmp/portage/mondo-rescue-2.02/work/mondo-2.02/mondo'
cp -R post-nuke.sample /usr/share/mondo/
ACCESS DENIED  mkdir:     /usr/share/mondo/post-nuke.sample
cp: cannot create directory `/usr/share/mondo/post-nuke.sample': Permission denied

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-sys-apps_-_mondo-rescue-2.02-3210.log"
 
mkdir:     /usr/share/mondo/post-nuke.sample
--------------------------------------------------------------------------------



Thanks,

-G.Y.
Comment 14 Cal Evans 2004-07-07 15:28:31 UTC
Still get this:
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/mondo-rescue-2.02 to /
>>> md5 src_uri ;-) mondo-2.02.tgz
>>> Unpacking source...
>>> Unpacking mondo-2.02.tgz to /var/tmp/portage/mondo-rescue-2.02/work
>>> Source unpacked.
./configure: ./configure: Permission denied

!!! ERROR: sys-apps/mondo-rescue-2.02 failed.
!!! Function econf, Line 365, Exitcode 126
!!! econf failed

Comment 15 Greg Yasko 2004-07-08 15:33:45 UTC
Created attachment 35029 [details]
Working mondo-rescue ebuild?

This mondo-rescue ebuild should work -- included the "chmod 777 configure" as
suggested and did away with the "make DESTDIR={D} install" that was causing all
the trouble. Little did I know it was calling make install, and that was
causing the access violations.

I appreciate any feedback in making this functional. Would better cleanup from
an unmerge be a good idea? ( like deleting /usr/share/mondo ?)
Comment 16 Greg Yasko 2004-07-08 16:31:11 UTC
Created attachment 35032 [details]
A working mondo-rescue-2.02 ebuild. Finally!:)

This ebuild cleans up after itself, removing /usr/share/mondo.

Please try this and see if it works and maybe if I'm lucky it can go into ~x86.


Thank you.

-G.Y.
Comment 17 Greg Yasko 2004-07-08 20:04:36 UTC
Created attachment 35049 [details]
A Working Mondo-Rescue with "cannot stat /usr/share/mondo/autorun" fixed

Just thought I'd get it right. When backing up, Mondo complained about autorun
not being in /usr/share/mondo. Fixed now.

This is my first ebuild ever so I apologize for all the attachments. And unless
there are problems it'll be my last post to this ebuild request.

Thank you,

-G.Y.
Comment 18 Greg Yasko 2004-07-08 23:20:01 UTC
Created attachment 35052 [details]
Final mondo-rescue-2.02 ebuild with images directory in html docs fixed

Six wouldn't be lucky so here's number seven. Found out dohtml doesn't copy the
images directory for the docs.

So attached are ebuilds for Mondo Rescue and Mindi. And one for Mindi-Kernel
that isn't changed much except for the specified download URL.

Everything is fixed and should work just dandy.

Thanks,

-G.Y.
Comment 19 Greg Yasko 2004-07-08 23:23:00 UTC
Created attachment 35053 [details]
Final mondo-rescue-2.02 ebuild with images directory in html docs fixed

Six wouldn't be lucky so here's number seven. Found out dohtml doesn't copy the
images directory for the docs.

So attached are ebuilds for Mondo Rescue and Mindi. And one for Mindi-Kernel
that isn't changed much except for the specified download URL.

Everything is fixed and should work just dandy.

Thanks,

-G.Y.
Comment 20 Greg Yasko 2004-07-08 23:30:28 UTC
*** Bug 56412 has been marked as a duplicate of this bug. ***
Comment 21 Cal Evans 2004-07-09 11:06:38 UTC
woot!

I emerged all 3 of them again and they worked.  Looks like we are ready for ~x86.

=C=
Comment 22 Cal Evans 2004-07-09 11:47:06 UTC
Spoke too soon.

Yes, it all compiles and installs but it won't run.

# mondoarchive 
/usr/sbin/mondoarchive: line 1: cd: /var/tmp/portage/mondo-rescue-2.02/work/mondo-2.02/mondo/mondoarchive: No such file or directory
gcc: main.o: No such file or directory
gcc: mondo-cli.o: No such file or directory
gcc: ../common/.libs/libmondo: No such file or directory
gcc: ../common/.libs/libmondo-newt: No such file or directory

If I remember correctly, mondoarchive is a shell script that is build in the make process. make puts directory info in it about where the libs are and such. Since where they are when make is run is NOT where they are when mondoarchive is run, these are incorrect.

=C=
Comment 23 Greg Yasko 2004-07-09 13:20:55 UTC
Created attachment 35075 [details]
Work in progress attached -- Mondo-Rescue and related packages

Did an rm -rf /var/tmp/portage/mondo-rescue-2.02 and get the exact same error
you got. My god-awful luck:(

Will research econf + autoconf and read all of the Gentoo Developer docs,
hopefully get it working within two weeks, and post one final attachment.

Am attaching what I've done so far just in case someone more experienced wants
to pitch in.

Thanks for testing so thoroughly -- wouldn't have wanted it get to ~x86 in this
shape! And I must have emerged and unmerged a couple dozen times.
Comment 24 Greg Yasko 2004-07-09 19:14:33 UTC
After viewing mondoarchive with less I know what you mean now.

Yep, it's a script & depends entirely on being built in-place. Posted to the mondo-devel list about this and hope Gentoo will eventually be supported.

Nice working with you.
Comment 25 Greg Yasko 2004-07-09 20:08:40 UTC
Created attachment 35092 [details]
Mondo-Rescue working ebuild -- At long last!!!

Try this.

A Mondo-Rescue developer straightened me out -- for some reason the binaries
are in the .libs directories for mondoarchive/.libs/mondoarchive & same thing
for mondorestore. I've been referencing/installing the wrong files.
Comment 26 Cal Evans 2004-07-10 06:42:56 UTC
Complete unmerge of all 3 ebuilds and then emerged them using new ebuilds provided.

mondoarchive seems to work now! (At least it runs, that's a good sign)

Thanks for your help.

=C=
Comment 27 Greg Yasko 2004-07-10 10:42:20 UTC
Thanks for your help, Cal!

This was my first ebuild as a raw n00b and I really made a mess of things.

Couldn't have gotten it working without your assistance.

-G.Y.
Comment 28 Greg Yasko 2004-07-11 20:17:23 UTC
Created attachment 35219 [details]
Mondo Resue 2.02 with final fixes

Found an unnecessary line "dodir /usr/lib" and removed it because dolib runs
install -d. There was as well a broken symlink in /usr/lib that's fixed now. 

And I've updated the deps to reflect what was installed on my system when the
Mondo Rescue packages were built. Though I don't know if that's the proper way
to handle the deps.

Have used it to back-up and everything seems to work so far.

Thank you for your patience.

-G.Y.
Comment 29 Greg Yasko 2004-07-14 07:07:18 UTC
Created attachment 35392 [details]
Mondo-Rescue with fixes

Had to specify the full package name for CDRTools in the dependencies &
couldn't find a workaround. Also removed the line "MYDIR=/usr"

Please give this a try and let me know if it works for you.

-G.Y.
Comment 30 Greg Yasko 2004-07-16 07:31:34 UTC
Comment on attachment 35392 [details]
Mondo-Rescue with fixes

mindi-kernel ebuild doesn't work properly
Comment 31 Greg Yasko 2004-07-18 18:24:35 UTC
Created attachment 35719 [details]
Mondo-Rescue -- media now boots

Fixed it so both the mondorescue disk and the first of the backup set now boot
properly. Also added a dependency on buffer for the mondo-rescue ebuild, and
corrected the mondo-rescue and mindi ebuilds' dependency line for cdrtools.

Please try this and post here if it works.

Thanks,

-G.Y.
Comment 32 Greg Yasko 2004-07-21 14:47:04 UTC
Created attachment 35920 [details]
Mondo Rescue Ebuilds with Mindi Post-Remove cleanup

The directory /usr/share/mindi wasn't being removed upon unmerge due to the
/usr/share/mindi/rootfs directory lingering. Fixed it.

Please test this, now that it seems functional.
Comment 33 Andreas Kotowicz 2004-07-24 16:19:09 UTC
the ebuild seems to compile nice. mondoarchive seems also to work until I get this:

Done with: Primary Volume Descriptor               Block(s)    1
Writing:   Eltorito Volume Descriptor              Start Block 17
mkisofs: Uh oh, I cant find the boot image 'isolinux.bin' !
:-( write failed: Input/output error
Failed to burn DVD #1. Retry?

seems like the file can't be found. but is here: /usr/lib/syslinux/isolinux.bin
Comment 34 Greg Yasko 2004-07-24 18:11:09 UTC
The DVD drivers are unstable so Mondo has a problem with writing direct to a DVD. There's been discussion on the Mondo-Devel list about this. Try making an ISO image and burning it to DVD if possible.
Comment 35 Andreas Kotowicz 2004-07-26 03:52:55 UTC
trying to just make an iso fails aswell, as mkisofs is needed for that.
Comment 36 Greg Yasko 2004-07-26 07:35:13 UTC
Are you running Mondo Rescue as root? Also what is your hardware and are you running the 2.6 kernel?

I've had no problems creating ISOs and burning to CDRWs, even after reinstalling the entire OS & all apps from scratch.
Comment 37 Greg Yasko 2004-07-26 09:22:50 UTC
It works for me wasn't the right answer here.

I may have found a solution to your problem on the Mondo-Devel list:

********************************************************************

From: Hugo Rabson <hugo@mo...>
RE: Re: mondoarchive and mkisofs  
2004-07-03 13:50

 "mkisofs: Uh oh, I cant find the boot image "isolinux.bin" !"
 
 OK, so it doesn"t like your isolinux/syslinux version. Try using lilo
 instead.
 
 # man mondoarchive
 Look for "-o"
 
 -Hugo
Comment 38 Andreas Kotowicz 2004-07-26 11:31:19 UTC
I've tried that aswell but it doesn't work either.
Comment 39 Greg Yasko 2004-07-26 11:43:57 UTC
Have you tried running just the GUI, mondoarchive with no flags?
Comment 40 Andreas Kotowicz 2004-07-26 14:36:39 UTC
I've just tried it. it works! so there must be something wrong with the passing of command line arguments (which I need for automaticated backups)
Comment 41 Greg Yasko 2004-07-26 15:06:10 UTC
Parsing of command line args isn't related to the ebuild though. All I can figure is the args should be mostly in the same order as when stepping through the GUI. Also it doesn't seem to like groupings of flags such as -DvE (instead of single flags like -D -v -E). Hope this helps.

For more info you could post to the mondo devel list.
Comment 42 Talamona Francesco 2004-07-26 22:30:52 UTC
File digest-mindi-kernel-1.0 provided with attachment 35920 [details] should be named digest-mindi-kernel-1.0-r1.
Comment 43 Greg Yasko 2004-07-27 05:46:35 UTC
Created attachment 36255 [details]
Mondo Rescue with mindi-kernel digest renamed

Renamed digest-mindi-kernel-1.0 to digest-mindi-kernel-1.0-r1 as suggested.
Comment 44 Greg Yasko 2004-08-10 10:11:10 UTC
Please close this bug.

There are new versions of Mondo Rescue (2.03) and Mindi (1.03) out & the build process has changed entirely to autotools -- no more "install" section in the Makefile.

I'm unfamiliar with autotools and so can't write an ebuild for Mondo-2.03.

Thanks.

-G.Y.
Comment 45 Jay Pfeifer (RETIRED) gentoo-dev 2004-08-12 09:20:02 UTC
Alright... I'm working on ebuilds for mondo-2.10 and mindi-1.10.
Comment 46 Jay Pfeifer (RETIRED) gentoo-dev 2004-08-12 09:46:10 UTC
also will get ebuilds for 2.03/1.03 since they are latest "stable".
Comment 47 Jay Pfeifer (RETIRED) gentoo-dev 2004-08-12 14:37:30 UTC
OK... I just commited the following:
sys-apps/mindi-1.03
sys-apps/mondo-rescue-2.03

and I package masked:
sys-apps/mindi-1.10
sys-apps/mondo-rescue-2.10
for those who want to test.

Ah, I also update the mindi-kernel ebuild a bit.

Closing...

Have a good one,

Jay
Comment 48 Robb Romans (RETIRED) gentoo-dev 2004-08-12 17:12:17 UTC
mindi-kernel-1.0-r1 emerges fine
mindi-1.03.ebuild will emerge after fixing the digest.
mondo-rescue-2.03.ebuild dies:
>>> emerge (1 of 1) sys-apps/mondo-rescue-2.03 to /
>>> md5 src_uri ;-) mondo-2.03.tgz
>>> Unpacking source...
>>> Unpacking mondo-2.03.tgz to /opt/tmp/portage/mondo-rescue-2.03/work
>>> Source unpacked.
 * Patching ${S}/ltmain.sh...
 *   Applying portage-1.4.1.patch...
 *   Applying max_cmd_len-1.5.0.patch...
./configure: ./configure: Permission denied

!!! ERROR: sys-apps/mondo-rescue-2.03 failed.
!!! Function econf, Line 362, Exitcode 126
!!! econf failed

This one is odd:
mindi-1.10.ebuild
Continued download failed on this file, which conflicts with `-c'.
Refusing to truncate existing file `/opt/portage/distfiles/mindi-1.10.tgz'.

>>> Resuming download...
>>> Downloading http://www.microwerks.net/~hugo/download/MondoCD/TGZS/mindi-1.10.tgz
--19:09:29--  http://www.microwerks.net/%7Ehugo/download/MondoCD/TGZS/mindi-1.10.tgz
           => `/opt/portage/distfiles/mindi-1.10.tgz'
Resolving www.microwerks.net... 198.68.233.7
Connecting to www.microwerks.net[198.68.233.7]:80... connected.
HTTP request sent, awaiting response... 200 OK

    The file is already fully retrieved; nothing to do.

!!! Couldn't download mindi-1.10.tgz. Aborting.


Comment 49 Jay Pfeifer (RETIRED) gentoo-dev 2004-08-12 17:44:01 UTC
ok, this bug should be closed. subsequent bugs need to go on new bugs since this bug was to have packages in portage. which they are in portage.