Packager-3.1-lightning

Support section for FREESCO v0.3.x 3rd Party Packages

Postby victor32 » Sun Nov 04, 2007 3:27 pm

Hi,

I am making a package that contains man files.

The package script did not recognise the man pages so I tried to convert these man pages to text using the man2text utility that is included in the packager-3.1 package.

I issued the following command:

[root@Freesco] packaging$ ./man2text -d ./pkg/man/man1

and get the following errors:

groff: can't find `DESC' file
groff:fatal error: invalid device `latin1'
Creating ./pkg/man/man1/manfile.1.txt

The file ./pkg/man/man1/manfile.1.txt is created but empty. What is the `DESC' file and what could be missing here?

/
User avatar
victor32
Junior Member
 
Posts: 43
Joined: Sun Apr 08, 2007 1:39 pm
Location: Stockholm, Sweden

Postby Lightning » Mon Nov 05, 2007 2:53 am

Unfortunately man2text doesn't really work very well even when it is working. However I have my own special script built into the packager that will do the job completely without intervention other than needing to delete some extra blank spaces in the text files produced. The problem is that you MUST put the actual man files in the ./pkg/man directory without any subdirectories before it is going to work. This is also required to make the man pages work from within the system as they are designed to work. So just remove all of the extra subdirectories in the man directory and add the man pages to it and then try and repackage the package again and it should prompt you to convert them.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby victor32 » Mon Nov 05, 2007 6:00 pm

Hi again,

Thanks for the help. It got me half way through.

I have removed all subdirectories in ./pkg/man and added the man files to this directory.

The package script now finds the man files, however, I get errors.

[root@Freesco] ./package snmpd-3.7-victor
Checking for unused directories and files..... Done
Checking for required libraries...... Done
Checking for man pages
./pkg/man/authkey.1 is a man page.
Convert ./pkg/man/authkey.1 to a text file (y/n)? [y]
Creating ./pkg/man/authkey.1.txt
groff: can't find `DESC' file
groff:fatal error: invalid device `latin1'
Removing ./pkg/man/authkey.1


The DESC file is missing and groff won't recognize `latin1'. Is this a dependancy issue. Should I install some other package before using the packager scripts?

/
User avatar
victor32
Junior Member
 
Posts: 43
Joined: Sun Apr 08, 2007 1:39 pm
Location: Stockholm, Sweden

Postby Lightning » Mon Nov 05, 2007 6:42 pm

Hmmmmm, well it is entirely possible that there is a file or library missing. The single best package to install to resolve this problem is the newest mc package.
Code: Select all
pkg -i  http://lewys-spot.dyndns.org:1080/packages/0.3.x/mc-4.6.0-lewis

This package will also make creating packages MUCH easier in general.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby victor32 » Tue Nov 06, 2007 3:23 pm

Thanks again,

After installing the MC package, 'man2text' and the 'package' script works fine.


During the install of 'mc' I got the following 'Could not create file' error (or warning):

Do you want install this package (y/n) [y]?
Do you want to save a copy of this package (y/n) [n]?
<a href='http://lewys-spot.dyndns.org/packages/0.3.x/mc-4.6.0-lightning.tgz' target='_blank'>http://lewys-spot.dyndns.org/packages/0.3....0-lightning.tgz</a> (6123K)
/boot/12367~/mc-4.6.0-li [########################] 6123K | 17.08K/s
6270069 bytes transferred in 358.66 sec (17.07k/sec)
Unpacking mc-4.6.0-lightning.tgz .. tar: pkg/sbin/tar: Could not create file: No such file or directory
tar: Error exit delayed from previous errors
Done
Successfully installed... mc-4.6.0-lightning


/
User avatar
victor32
Junior Member
 
Posts: 43
Joined: Sun Apr 08, 2007 1:39 pm
Location: Stockholm, Sweden

Postby Lightning » Tue Nov 06, 2007 7:44 pm

The error happens because you are already using the tar binary and so it can not replace it's self while in use. So the error is real but is not anything to worry about.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Postby victor32 » Wed Nov 07, 2007 3:47 pm

Lewis,

Thank you for excellent support. Everything works fine now.

And again, thank you for Freesco. Excellent software, very reliable and amusing to use.


/
User avatar
victor32
Junior Member
 
Posts: 43
Joined: Sun Apr 08, 2007 1:39 pm
Location: Stockholm, Sweden


Return to 3rd Party Package Support for FREESCO v0.3.x

Who is online

Users browsing this forum: No registered users and 2 guests

cron