kernsuite / packaging

Use this repository to report issues with packages or request new packages
13 stars 4 forks source link

update AIPS (and upload to KERN-3) #78

Closed gijzelaerr closed 6 years ago

shulevski commented 6 years ago

Indeed, AIPS is not packaged in KERN-3

However, I can't start it even from KERN-2 it seems, and it is there. What I did was to install the base KERN image, then go to KERN-2 by executing while logged into the base image (as per the launchpad):

add-apt-repository ppa:kernsuite/kern-2
apt-get update

Then, I installed AIPS:

apt-get install aips

which completes without issues:


...
Unpacking aips (31dec16-1kern1) ...
Selecting previously unselected package rename.
Preparing to unpack .../archives/rename_0.20-4_all.deb ...
Unpacking rename (0.20-4) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21) ...
Setting up libatm1:amd64 (1:2.5.1-1.5) ...
Setting up libmnl0:amd64 (1.0.3-5) ...
Setting up libgdbm3:amd64 (1.8.3-13.1) ...
Setting up libxau6:amd64 (1:1.0.8-1) ...
Setting up libxdmcp6:amd64 (1:1.1.2-1.1) ...
Setting up libxcb1:amd64 (1.11.1-1ubuntu1) ...
Setting up libx11-data (2:1.6.3-1ubuntu2) ...
Setting up libx11-6:amd64 (2:1.6.3-1ubuntu2) ...
Setting up libxext6:amd64 (2:1.3.3-1) ...
Setting up perl-modules-5.22 (5.22.1-9ubuntu0.2) ...
Setting up libperl5.22:amd64 (5.22.1-9ubuntu0.2) ...
Setting up perl (5.22.1-9ubuntu0.2) ...
update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode
Setting up iproute2 (4.3.0-1ubuntu3.16.04.3) ...
Setting up ifupdown (0.8.10ubuntu1.2) ...
Creating /etc/network/interfaces.
Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.10) ...
Setting up isc-dhcp-client (4.3.3-5ubuntu12.10) ...
Setting up isc-dhcp-common (4.3.3-5ubuntu12.10) ...
Setting up libxtables11:amd64 (1.6.0-2ubuntu3) ...
Setting up netbase (5.3) ...
Setting up libc6-i386 (2.23-0ubuntu10) ...
Setting up lib32gcc1 (1:6.0.1-0ubuntu1) ...
Setting up aips (31dec16-1kern1) ...
#!/bin/bash -ve

addgroup --system aips || true
Adding group `aips' (GID 109) ...
Done.
chgrp -R aips /opt/aips/DA*
chmod -R g+w /opt/aips/DA*
Setting up rename (0.20-4) ...
update-alternatives: using /usr/bin/file-rename to provide /usr/bin/rename (rename) in auto mode
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21) ...

When I try to run it: root@c11ac0b01b4a:/# aips tpok tv=local, I get: bash: aips: command not found.

gijzelaerr commented 6 years ago

The package just puts aips in /opt/aips and doesn't do much else for you. You still need to set up the rest yourself. That said, there is a script called runaips in /usr/bin that could be what you need.

gijzelaerr commented 6 years ago

If this works for I can update the same package to KERN-3, but I don't have the time to update AIPS itself, it is just too much unrewarding work.

shulevski commented 6 years ago

ok... it seems to work:

root@e21aca0f7aa3:/# /usr/bin/runaips tpok tv=local
START_AIPS: Will use or start first available Unix Socket based TV
START_AIPS: Your initial AIPS printer is the 
START_AIPS:  - system name , AIPS type 

START_AIPS: User data area assignments:
DADEVS.PL: This program is untested under Perl version 5.022
  (Using global default file /opt/aips/DA00/DADEVS.LIST for DADEVS.PL)
   Disk 1 (1) is /opt/aips/DATA/LOCALHOST_1

Tape assignments: 
   Tape 1 is REMOTE
   Tape 2 is REMOTE

START_AIPS: I am GUESSING you are at a workstation called localhost
START_AIPS:  - but have chosen to run the TV locally on LOCALHOST
START_AIPS: Starting TV servers on localhost asynchronously
START_AIPS:  - WITH Unix Sockets as requested...
START_AIPS: Starting TPMON daemons on LOCALHOST asynchronously...
Starting up 31DEC16 AIPS with normal priority
Begin the one true AIPS number 1 (release of 31DEC16) at priority =   0 
AIPS 1: You are not on a local TV device, welcome stranger
AIPS 1: You are assigned TV device/server   3
AIPS 1: You are assigned graphics device/server   3
AIPS 1: Enter user ID number
?DADEVS.PL: This program is untested under Perl version 5.022
STARTPMON: [LOCALHOST] The FITS area (/opt/aips/FITS) is not a directory!
STARTPMON: [LOCALHOST] This area is needed by TPMON1 (for FITS disk access)
STARTPMON: [LOCALHOST] Will NOT start any TPMON daemons.
UNIXSERVERS: TVSRV1 is already running on host localhost, user root
UNIXSERVERS: Start XAS1 on localhost, DISPLAY :1
XAS: ** TrueColor FOUND!!! 
XAS: ***  Using shared memory option for speed ***
XAS: Using screen width 1910 height 980,
     max grey level 8191 in 16 grey-scale memories
UNIXSERVERS: Start graphics server TKSRV1 on localhost, display :1
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  130 (MIT-SHM)
  Minor opcode of failed request:  1 (X_ShmAttach)
  Serial number of failed request:  26
  Current serial number in output stream:  27
/opt/aips/31DEC16/SYSTEM/UNIX/UNIXSERVERS: 352: /opt/aips/31DEC16/SYSTEM/UNIX/UNIXSERVERS: xterm: not found
UNIXSERVERS: Start message server MSSRV1 on localhost, display :1
/opt/aips/31DEC16/SYSTEM/UNIX/UNIXSERVERS: 460: /opt/aips/31DEC16/SYSTEM/UNIX/UNIXSERVERS: xterm: not found
1978
AIPS 1:                          31DEC16 AIPS:
AIPS 1:      Copyright (C) 1995-2018 Associated Universities, Inc.
AIPS 1:            AIPS comes with ABSOLUTELY NO WARRANTY;
AIPS 1:                 for details, type HELP GNUGPL
AIPS 1: This is free software, and you are welcome to redistribute it
AIPS 1: under certain conditions; type EXPLAIN GNUGPL for details.
AIPS 1: Previous session command-line history *not* recovered.
AIPS 1: TAB-key completions enabled, type HELP READLINE for details.
AIPS 1: Loading a brand new POPS vocabulary
>pcat
AIPS 1: Catalog on disk  1
AIPS 1:   Cat  Usid Mapname      Class   Seq  Pt    Last access     Stat
>

although it has issues with the Xserver...

I guess having it in KERN-3 as is would not be a bad thing to do. I can try to sort out the X issues later.

gijzelaerr commented 6 years ago

Uploaded the same package to KERN-3. If somebody needs a newer AIPS package please do a PR on the kernsuite-debian/aips branch.