Menu

#1659 telnet-54.50.1-1

10.13
closed-fixed
4
2017-10-25
2017-08-26
No

The attached info file provides the deprecated telnet program from Sierra for High Sierra.

Package: telnet
Version: 54.50.1
Revision: 1
Distribution: 10.13
BuildDepends: xcode.app
Source: https://opensource.apple.com/tarballs/remote_cmds/remote_cmds-%v.tar.gz
Source-MD5: c1f86e0f942abaff94c28f169b56463d
Source2: https://opensource.apple.com/tarballs/libtelnet/libtelnet-13.tar.gz
Source2-MD5: 8486208dd3ec490121ec2b7d6a737554
SourceDirectory: remote_cmds-%v/telnet.tproj
PatchScript: <<
#!/bin/sh -ev
perl -pi -e "s|-DFORWARD |-DFORWARD -I.|g" Makefile
perl -pi -e "s|-ltelnet|-L%b/../../libtelnet-13/build/Release -ltelnet|g" Makefile
ln -s ../../../libtelnet-13 libtelnet 
cp ../APPLE_LICENSE APPLE_LICENSE
cp ../../libtelnet-13/LICENSE LICENSE
<<
CompileScript: <<
#!/bin/sh -ev
cd ../../libtelnet-13
xcodebuild -project libtelnet.xcodeproj -alltargets -configuration Release
cd ../remote_cmds-%v/telnet.tproj
make
<<
InstallScript: <<
#!/bin/sh -ev
mkdir -p %i/bin %i/share/man/man1
install -m 555 /tmp/telnet/Debug/telnet %i/bin/telnet
install -m 444 telnet.1 %i/share/man/man1/telnet.1
<<
DocFiles: APPLE_LICENSE LICENSE README
License: BSD
Description: Port of NetBSD remote client
DescDetail: <<
This package provide the deprecated telnet program from Sierra on High Sierra.
<<
Maintainer: None <fink-devel@lists.sourceforge.net>
Homepage: https://opensource.apple.com/source/remote_cmds/remote_cmds-54.50.1/telnet.tproj/

Tested on 10.13 with 'fink -m'.

Discussion

  • Hanspeter Niederstrasser

    Fails on 10.13/Xcode9: http://bindist.finkproject.org/10.13/logs/telnet_54.50.1-1_cd3d7717fa8d85606601c81876f86c56.log

    cd ../remote_cmds-54.50.1/telnet.tproj
    make
    Makefile:19: /CoreOS/ReleaseControl/BSDCommon.make: No such file or directory
    make: *** No rule to make target '/CoreOS/ReleaseControl/BSDCommon.make'.  Stop.
    

    On Xcode7.3, I have /Applications/Xcode.app/Contents/Developer/Makefiles/CoreOS/ReleaseControl/BSDCommon.make

     
  • Alexander Hansen

    Ticket moved from /p/fink/package-submissions/4983/

     
  • Alexander Hansen

    I moved this because the package is in the distribution and even maintained.

     
  • Alexander Hansen

    It built for me on 10.13/Xcode 9.0, which is why I put it in Fink. I don't happen to have my virtual machine with 10.13 available right now to reconfirm that.

     
    • Jack Howarth

      Jack Howarth - 2017-10-25

      I can reproduce this issue if I have the fink 'make' package installed so the trivial fix for now is just to add...

      Index: telnet.info
      ===================================================================
      RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/net/telnet.info,v
      retrieving revision 1.1
      diff -u -r1.1 telnet.info
      --- telnet.info 10 Oct 2017 17:25:03 -0000  1.1
      +++ telnet.info 25 Oct 2017 11:05:30 -0000
      @@ -21,7 +21,7 @@
       cd ../../libtelnet-13
       xcodebuild -project libtelnet.xcodeproj -alltargets -configuration Release
       cd ../remote_cmds-%v/telnet.tproj
      -make
      +/usr/bin/make
       <<
       InstallScript: <<
       #!/bin/sh -ev
      
       
      • Alexander Hansen

        Using /usr/bin/make explicitly in telnet 54.50.1-2

         
  • Daniel Macks

    Daniel Macks - 2017-10-25

    Unrelatedly, the build gives a fat binary. Any way we can scrap the i386 to save a bunch of compile-time?

     
    • Jack Howarth

      Jack Howarth - 2017-10-25

      On Wed, Oct 25, 2017 at 7:37 AM, Daniel Macks dmacks@users.sf.net wrote:

      Unrelatedly, the build gives a fat binary. Any way we can scrap the i386 to
      save a bunch of compile-time?

      Daniel,
      I assume this could be done by changing the line in
      libtelnet/libtelnet-13/libtelnet.xcodeproj/project.pbxproj from...

      ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";

      to

      ARCHS = "$(ARCHS_STANDARD)";

      per https://pewpewthespells.com/blog/buildsettings.html.
      Jack

       

      Last edit: Alexander Hansen 2017-10-25
      • Alexander Hansen

        Nope:

        cd ../remote_cmds-54.50.1/telnet.tproj
        /usr/bin/make
        ===== Building telnet RELEASE =====
        ===== Linking telnet RELEASE =====
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -arch x86_64 -arch i386  -lcurses -lkrb4 -lkrb5 -lipsec ../../libtelnet-13/build/Release/libtelnet.a          -dead_strip -pie -o /tmp/telnet/Debug/telnet \
                 /tmp/telnet/Build/telnet/authenc.o  /tmp/telnet/Build/telnet/commands.o  /tmp/telnet/Build/telnet/main.o  /tmp/telnet/Build/telnet/network.o  /tmp/telnet/Build/telnet/ring.o  /tmp/telnet/Build/telnet/sys_bsd.o  /tmp/telnet/Build/telnet/telnet.o  /tmp/telnet/Build/telnet/terminal.o  /tmp/telnet/Build/telnet/tn3270.o  /tmp/telnet/Build/telnet/utilities.o
        clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
        ld: warning: ignoring file ../../libtelnet-13/build/Release/libtelnet.a, file was built for archive which is not the architecture being linked (i386): ../../libtelnet-13/build/Release/libtelnet.a
        Undefined symbols for architecture i386:
          "_authtype_names", referenced from:
              _printsub in utilities.o
          "_auth_printsub", referenced from:
              _printsub in utilities.o
          "_auth_is", referenced from:
              _suboption in telnet.o
          "_auth_disable_name", referenced from:
              _main in main.o
          "_auth_name", referenced from:
              _suboption in telnet.o
          "_auth_enable", referenced from:
              _AuthList in commands.o
          "_forward_flags", referenced from:
              _main in main.o
          "_auth_status", referenced from:
              _AuthList in commands.o
          "_auth_togdebug", referenced from:
              _Togglelist in commands.o
          "_auth_disable", referenced from:
              _AuthList in commands.o
          "_Ambiguous", referenced from:
              _auth_cmd in commands.o
              _tn in commands.o
              _command in commands.o
              _display in commands.o
              _modecmd in commands.o
              _sendcmd in commands.o
              _setcmd in commands.o
              ...
          "_auth_reply", referenced from:
              _suboption in telnet.o
          "_genget", referenced from:
              _auth_cmd in commands.o
              _getcmd in commands.o
              _display in commands.o
              _modecmd in commands.o
              _sendcmd in commands.o
              _setcmd in commands.o
              _unsetcmd in commands.o
              ...
          "_auth_send", referenced from:
              _suboption in telnet.o
          "_isprefix", referenced from:
              _tn in commands.o
              _setcmd in commands.o
              _unsetcmd in commands.o
              _send_tncmd in commands.o
        ld: symbol(s) not found for architecture i386
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
        
         
  • Alexander Hansen

    • labels: --> build adjustment
    • status: closed-accepted --> open
    • assigned_to: Alexander Hansen
    • Group: Added_to_Fink --> 10.13
    • Priority: 5 --> 4
     
  • Alexander Hansen

    I pruned out the submission-related items, since we're now in bug mode.

     
  • Alexander Hansen

    • status: open --> closed-fixed
     

Log in to post a comment.