WTF kind of a command is that!?



  • OK so a while ago adept (linux package manager) went a bit belly up trying to install the sun jre. Just now I tried to an apt-get install and got the usual lock-related errors, so I did a ps aux | less to try and track down and kill any offending processes.

    This process in particular caught my eye:

     root     10916  0.0  0.2   4020   536 pts/4    S+   Jan07   0:00 whiptail --backtitle Ubuntu Configuration --title Configuring sun-java5-bin
    --output-fd 11 --msgbox Operating System Distributor License for Java v1.1 (DLJ)??Operating System Distributor License for Java version 1.1 (
    DLJ)??SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE JAVA PLATFORM ?STANDARD EDITION DEVELOPER KIT ("JDK" - THE "SOFTWARE") TO YOU
    ONLY UPON?THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS LICENSE?AGREEMENT (THE "AGREEMENT").  PLEASE READ THE AGREEMENT CA
    REFULLY.  BY ?INSTALLING, USING, OR DISTRIBUTING THIS SOFTWARE, YOU ACCEPT ALL OF THE ?TERMS OF THE AGREEMENT.??1.  DEFINITIONS. "Software" m
    eans the code identified above in binary?    form, any other machine readable materials including, but not?    limited to, libraries, source
    files, header files, and data files),?    any updates or error corrections provided by Sun, and any user?    manuals, programming guides and
    other documentation provided to you?    by Sun under this Agreement, and any subsequent versions that Sun?    makes available to you hereunde
    r.  "Operating System" means any?    version of the Linux or OpenSolaris operating systems that manages?    the hardware resources of a gener
    al purpose desktop or server?    computer and shares these resources with various software programs?    that run on top of it. "Programs" mea
    ns Java technology applets and?    applications intended to run on the Java Platform Standard Edition?    (Java SE platform) platform on Java
    -enabled general purpose desktop?    computers and servers.???2.  License Grant. Subject to the terms and conditions of this?    Agreement, a
    s well as the restrictions and exceptions set forth in?    the Software README file, Sun grants you a non-exclusive,?    non-transferable, ro
    yalty-free limited license to reproduce and use?    the Software internally, complete and unmodified, for the sole?    purposes of running Pr
    ograms and designing, developing and testing?    Programs.  Sun also grants you a non-exclusive, non-transferable,?    royalty-free limited l
    icense to reproduce and distribute the?    Software, directly or indirectly through your licensees,?    distributors, resellers, or OEMs, ele
    ctronically or in physical?    form or pre-installed with your Operating System on a general?    purpose desktop computer or server, provided
     that: (a) the Software?    and any proprietary legends or notices are complete and unmodified;?    (b) the Software is distributed with your
     Operating System, and?    such distribution is solely for the purposes of running Programs?    under the control of your Operating System an
    d designing,?    developing and testing Programs to be run under the control of your?    Operating System; (c) you do not combine, configure
    or distribute?    the Software to run in conjunction with any additional software?    that implements the same or similar functionality or AP
    Is as the?    Software; (d) you do not remove or modify any included license?    agreement or impede or prevent it from displaying and requir
    ing?    acceptance; (e) you only distribute the Software subject to this?    license agreement; and (f) you agree to defend and indemnify Sun
    ?    and its licensors from and against any damages, costs, liabilities,?    settlement amounts and/or expenses (including attorneys' fees)?
       incurred in connection with any claim, lawsuit or action by any?    third party that arises or results from (i) the use or distribution?
      of your Operating System, or any part thereof, in any manner, or?    (ii) your use or distribution of the Software in violation of the?
    terms of this Agreement or applicable law.  You shall not be?    obligated under Section 2(f)(i) if such claim would not have?    occurred bu
    t for a modification made to your Operating System by?    someone not under your direction or control, and you were in?    compliance with al
    l other terms of this Agreement.  If the Software?    README file permits certain files to be replaced or omitted from?    your distribution,
     then any such replacement(s) or omission(s)?    shall not be considered 



  • Lol, passing the license agreement as a parameter to the installer. That's just... dumb. Really really dumb. Someone could just launch it with a different license agreement passed and have any rights they wanted.



  • It's not quite that bad; that's like a line in the package config script or something, not the installer itself. But it's still a stupid way to do it - use a file!



  • Have you seen this?

    I have a vague recollection that the JRE package used to only install through Synaptic back in 6.06 as the licence wouldn't display on the command-line. Perhaps I recall incorrectly, but you can see they're running 'whiptail' there, which they probably stuck in to work around the previous bug.



  • This was (K)ubuntu 6.06, and it WOULDN'T work in Adept, but did work from the command line.



  • The EULA. Even Linux cannot deflect them! Submit. You will be assimilated. Yadayadayada.



  • "whiptail" is a proggie that displays text. It's usually used to display short messages. But the thing is, that concept is not in the vocabulary of the lawyers of the world.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.