HylaFAX The world's most advanced open source fax server

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

[hylafax-users] resolved Re: attachments are zero bytes - problem with ubuntu / debian packages?



executive summary: resolved
details: see notes on my fumblings and bumblings inline

Giuseppe Sacco wrote:
Il giorno lun, 01/10/2007 alle 12.23 -0400, marthter ha scritto:
[...]
Now for a real contranewbie question (having used Linux for years I'm used to non-package-manager setup, and/or .rpms that I fetch manually including dependencies, and for some programs like hylafax I usually from source .tar.gz. I'm actually better with that than all this fancy apt-get stuff! - serves me right for trying to go the "simpler" way on this server.)...

How do I tell apt-get to get something later than what it thinks is the latest?
[...]

download these three files:
http://ftp.debian.org/debian/pool/main/h/hylafax/hylafax_4.4.1-2.dsc
http://ftp.debian.org/debian/pool/main/h/hylafax/hylafax_4.4.1-2.diff.gz
http://ftp.debian.org/debian/pool/main/h/hylafax/hylafax_4.4.1.orig.tar.gz

then type:

$ apt-get build-dep hylafax
This command kept asking me to put the CD in, and since I'm trying to do the rest of this process remotely by ssh, that wasn't possible. I kept pressing enter even though the CD wasn't in, and it seemed to get some packages by downloading, but eventually it seemed stuck at requiring the CD so I had to press Ctrl-C.

So I commented out the line from /etc/apt/sources.list that mentioned the CD, was that the right thing to do?

(I thought I'd already unchecked the CD in the GUI when I was physically on site, but I guess I'm either remembering wrong, or the GUI doesn't affect this file.)

Then I re-ran that first command and it downloaded more stuff and seemed to finish fine.

$ apt-get install build-essential devscripts
Seemed like build-essential was installed implicitly by the first command, but no harm in repeating it here I guess.

$ dpkg-source -x *dsc
gpg: can't open '/gnupg/options.skel': no such file or directory
gpg: Signature made Fri 24 Aug 207 02:00:50 AM EDT using DSA kay ID EC97089D
gpg: Can't check signature: public key not found
dpkg-source: extracting hylafax in hylafax-4.4.1
dpkg-source: unpacking hylafax_4.4.1.orig.tar.gz
dpkg-source: applying ./hylafax_4.4.1-2.diff.gz

I wasn't sure if these errors were critical, but given the later observations, clearly they weren't.

$ cd hylafax-4.4.1
$ dpkg-buildpackage -rfakeroot
dpkg-buildpackage: source package is hylafax
dpkg-buildpackage: source version is 2:4.4.1-2
dpkg-buildpackage: source changed by Giuseppe Sacco <eppesuig@xxxxxxxxxx>
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 4.4.1-2
fakeroot debian/rules clean
/usr/bin/dpkg-buildpackage: 212: fakeroot: not found

checking the man page for dpkg-buildpackage, is saw that the -r parameter is looking for some command that "...might typically be fakeroot, sudo..." so I did apt-get install fakeroot and repeated the above command. It gave tons of configure and build output and seemed to complete successfully (looked very similar to building from source that I'm used to). However there were quite a lot of warnings at the bottom and the exit code was 1 so I'm not sure if it worked entirely.

...
8< much output snipped 8<
...
chown uucp:uucp \
debian/hylafax-server/var/spool/hylafax/{client,config,dev,info,log,recvq,status,archive,docq,doneq,pollq,sendq,tmp,.}
chmod 755 \
debian/hylafax-server/var/spool/hylafax/{archive,docq,doneq,pollq,sendq}
chmod 775 debian/hylafax-server/var/spool/hylafax
chmod 4777 debian/hylafax-server/var/spool/hylafax/tmp
chmod 755 debian/hylafax-server/var/spool/hylafax/dev
chown uucp debian/hylafax-server/etc/hylafax/hosts.hfaxd
chmod 600 debian/hylafax-server/etc/hylafax/hosts.hfaxd
dh_makeshlibs -a
dh_installdeb -a
dh_shlibdeps -phylafax-client \
debian/hylafax-client/usr/bin/faxalter \
debian/hylafax-client/usr/bin/faxcover \
debian/hylafax-client/usr/bin/faxmail \
debian/hylafax-client/usr/bin/faxrm \
debian/hylafax-client/usr/bin/faxstat \
debian/hylafax-client/usr/bin/sendfax \
debian/hylafax-client/usr/bin/sendpage \
debian/hylafax-client/usr/bin/textfmt
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dh_shlibdeps -phylafax-server \
debian/hylafax-server/usr/sbin/choptest \
debian/hylafax-server/usr/sbin/cqtest \
debian/hylafax-server/usr/sbin/dialtest \
debian/hylafax-server/usr/sbin/faxadduser \
debian/hylafax-server/usr/sbin/faxconfig \
debian/hylafax-server/usr/sbin/faxdeluser \
debian/hylafax-server/usr/sbin/faxgetty \
debian/hylafax-server/usr/sbin/faxinfo \
debian/hylafax-server/usr/sbin/faxmodem \
debian/hylafax-server/usr/sbin/faxmsg \
debian/hylafax-server/usr/sbin/faxq \
debian/hylafax-server/usr/sbin/faxqclean \
debian/hylafax-server/usr/sbin/faxsend \
debian/hylafax-server/usr/sbin/faxstate \
debian/hylafax-server/usr/sbin/faxwatch \
debian/hylafax-server/usr/sbin/hfaxd \
debian/hylafax-server/usr/sbin/ondelay \
debian/hylafax-server/usr/sbin/lockname \
debian/hylafax-server/usr/sbin/pagesend \
debian/hylafax-server/usr/sbin/tagtest \
debian/hylafax-server/usr/sbin/tiffcheck \
debian/hylafax-server/usr/sbin/tsitest \
debian/hylafax-server/usr/sbin/typetest
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxserver.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxserver.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxserver.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxserver.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxserver.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxserver.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxserver.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxserver.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxserver.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dpkg-shlibdeps: warning: format of `NEEDED libfaxutil.so' not recognized
dh_gencontrol -a
dpkg-gencontrol: warning: unknown information field `C1 Tag' in input data in package's section of control info file
dpkg-gencontrol: warning: unknown information field `C2 Tag' in input data in package's section of control info file
dh_md5sums -a
dh_builddeb -a
dpkg-deb: building package `hylafax-server' in `../hylafax-server_4.4.1-2_i386.deb'.
dpkg-deb: building package `hylafax-client' in `../hylafax-client_4.4.1-2_i386.deb'.
signfile hylafax_4.4.1-2.dsc
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: skipped "Giuseppe Sacco <eppesuig@xxxxxxxxxx>": secret key not available
gpg: [stdin]: clearsign failed: secret key not available


dpkg-genchanges
dpkg-genchanges: warning: unknown information field `Tag' in input data in package's section of control info file
dpkg-genchanges: warning: unknown information field `Tag' in input data in package's section of control info file
dpkg-genchanges: not including original source code in upload
dpkg-buildpackage: binary and diff upload (original source NOT included)
(WARNING: Failed to sign .dsc and .changes file)


root@johann:/download/hylafax/hylafax-4.4.1# echo $?
1
root@johann:/download/hylafax/hylafax-4.4.1#


$ cd ..
That worked : - ) and ls showed hylafax-client_4.4.1-2_i386.deb and -server_ so I guess the dpkg-buildpackage command worked well enough despite the warnings.

$ sudo dpkg -i *deb
This command ran fine, including what looked like a (non-interactive) run of faxsetup. Yay!



I re-ran the bin/faxrcvd command from yesterday and the e-mail came through fine, PDF attachment and all. I also sent another test fax from another hylafax server and that worked equally well.

Thanks guys, your helpful responses really made my day.

Though I must say, the fact this didn't work with the packages that apt-get currently thinks are "the latest" rather un-made my Saturday and Sunday. Shouldn't there have been an easier ubuntu-esque version of these steps where I just enable the "testing" repository in my synaptic GUI and re-request the hylafax-server package?

What can I do to help that along? File a bug with Debian and/or Ubuntu to promote some later greater version of the hylafax-server package from "testing" to "stable"? (xubuntu 7.04 feisty and /etc/debian_version says 4.0)


Cheers.


Martin


____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions