/sqldeveloper-package
sqldeveloper-package for Debian and derivatives
sqldeveloper-package is a small script that will build a Debian package from Oracle‘s SQL Developer.
This utility makes it possible to build a Debian package of Oracle SQL Developer. The Oracle SQL Developer program is governed by the copyright holder (Oracle USA, Inc.), so you may be limited as to what you can do with the resulting package (i.e. no redistribution, etc). This utility will simply help you create the Debian package, it is your responsibility to use the resulting package acordingly with the OTN license, a copy of which is included in the created package, that you must agree on when downloading the source.
This utility will require you to download the architecture independent archive from <http://www.oracle.com/technetwork/developer-tools/sql-developer>, identified as “Oracle SQL Developer for other platforms”, “Oracle SQL Developer for Multiple Platforms” or “Oracle SQL Developer for Linux and Unix” (depending on which version you are building), to create the Debian package from.
The Debian Package sqldeveloper-package
In order to run Oracle SQL Developer you’ll need a full working JDK. The versions that are compatible with SQL Developer are any JDK 1.5.0_06 or above or JDK 1.6.0_03 or above for SQL Developer versions up to 1.5.5. SQL Developer versions from 2.1 to 3.1 are compatible with JDK 1.6.0_11 or above and SQL Developer version 3.2 is compatible with JDK 1.6.0_04 or above. SQL Developer version 4.0 is compatible with JDK 1.7 (JDK7.0) series and SQL Developer versions from 4.1 to 17.3 are compatible with JDK 1.8 (JDK8.0) series or newer.
Note that Oracle SQL Developer prior to version 4.0 is not compatible with JDK 1.7 (JDK7.0) or newer and prior to version 4.1 is not compatible with JDK 1.8 (JDK8.0) or newer.
There are several ways to obtain a compatible JDK:
- install default-jdk(java), making sure it depends on the required JDK version
- install one of the required openjdk-6-jdk,openjdk-7-jdk,openjdk-8-jdkoropenjdk-9-jdk(java)
- install the meta-package java-sdk, making sure that it installs the required JDK version as dependency
- install one of the meta-packages java6-sdk,java7-sdk,java8-sdk, orjava9-sdk, making sure that it installs the required JDK version as dependency
- download and run the installer for the version you wish to install from Oracle <http://www.oracle.com/technetwork/java/javase/downloads/>
- install java-package(contrib/misc) and generate a Debian package from the above installer
After installing a compatible JDK simply launch SQL Developer through the graphical interface or by invoking /usr/bin/sqldeveloper and supply the path where the JDK was installed when prompted.
Version History
Version 0.5.4:
- changelog:
    - Updated wrapper script copyright to include 2018
 
- downloads:
    - sqldeveloper-package_0.5.4_all.deb(binary package)
- sqldeveloper-package_0.5.4.dsc(source description file)
- sqldeveloper-package_0.5.4.tar.xz(source code archive)
- v0.5.3_v0.5.4.debdiff(Debian diff from previous version)
 
Version 0.5.3:
- changelog:
    - Fixed LD_LIBRARY_PATHinitialization, which was rendering the wrapper script unusable, thus breaking the package
- Fixed QA “unsatisfiable Depends” alerts by disabling cross-building
- Updated debhelpercompat version to 11
- Verified compliancy with Standards-Version: 4.1.3
 
- Fixed 
- downloads:
    - (unpublished)
 
Version 0.5.2:
- changelog:
    - Fixed wrapper script command line options invocation
- Added environment variables ORACLE_PATHandSQLPATHinitialization to wrapper script
 
- downloads:
    - (unpublished)
 
Version 0.5.1:
- changelog:
    - Verified compliancy with Standards-Version: 4.1.2
- Bumped version to reflect functionality
 
- downloads:
    - sqldeveloper-package_0.5.1_all.deb(binary package)
- sqldeveloper-package_0.5.1.dsc(source description file)
- sqldeveloper-package_0.5.1.tar.xz(source code archive)
- v0.5.0_v0.5.1.debdiff(Debian diff from previous version)
 
Version 0.5.0:
- changelog:
    - Since SQL Developer v4.1, Oracle has started to include i386andamd64shared libraries in NetBeans Platform modules. Due to this, convertedmake-sqldeveloper-packageto both generate multiple packages and to be Multi-Arch compatible:- Added Multi-Archdependencies
- Added cross-packaging functionality
- Rewrote a large portion of make-sqldeveloper-packageto deal with the additional logic
- Rearranged the debian/*files to support multiple packages
- Generated packages recommend each other (libraries and SQL Developer)
- Added a new command line option -s|--skip-librariesto skip building the shared libraries package(s)
 
- Added 
- Multiple versions can now coexist, sqldeveloper.[upstream version]will invoke a specific version of Oracle SQL Developer whilesqldevelopertakes advantage of Debian’salternativessystem and, when left in auto mode, will always invoke the highest version installed
- Exposed Oracle CLI for SQL Developer, a non-gui interface for scripting or headless control of Oracle SQL Developer. Following the multiple versions  coexistence concept, sdcli.[upstream version]andsdcliwill behave as described above
- Since SQL Developer v4.2, Oracle started to bundle Oracle SQL Developer Command-Line (SQLcl) with Oracle SQL Developer. When available, and as an alternative to the standalone package (see sqlcl-package),make-sqldeveloper-packagewill expose it. Since there is a name conflict with content of packageparallel, the upstream binarysqlwill be renamed, and following the above multiple versions coexistence concept,sql.[upstream version].bundledwill invoke a specific SQLcl version whilesqlcl.bundledtakes advantage of Debian’salternativessystem and, when left in auto mode, will always invoke the highest bundled version installed, andsqlclwill invoke the highest version installed (either standalone or bundled, in this order)
- Added a new command line option -x|--extract-onlyto prepare a build tree without building package(s) (this option implies-k|--keep-dir)
- Added descriptive header, detailed progress output and stdout/stderrselection according to the type of message
- Added a new command line option -q|--quietto suppress normal output
- Fixed the long time broken command line option -i|--installwhich was not finding the correct package name
- Synchronized code between sqldeveloper-packageandsqlcl-package
- Updated sqldeveloperpackage description to reflect Oracle’s site
- Fixed some small typos in the machine readable copyright file License: section creation
- Fixed lintianwarnings and errors:- possible-documentation-but-no-doc-base-registration
- desktop-entry-lacks-keywords-entry
 
- Silenced all lintianwarnings and errors that are upstream originated and impossible to fix
- Tested against v4.x and v17.x release families of SQL Developer
- Bumped version to reflect functionality
 
- Since SQL Developer v4.1, Oracle has started to include 
- downloads:
    - sqldeveloper-package_0.5.0_all.deb(binary package)
- sqldeveloper-package_0.5.0.dsc(source description file)
- sqldeveloper-package_0.5.0.tar.xz(source code archive)
- v0.4.4_v0.5.0.debdiff(Debian diff from previous version)
 
Version 0.4.4:
- changelog:
    - Removed debian/watchscript, it doesn’t belong in a native package
 
- Removed 
- downloads:
    - sqldeveloper-package_0.4.4_all.deb(binary package)
- sqldeveloper-package_0.4.4.dsc(source description file)
- sqldeveloper-package_0.4.4.tar.xz(source code archive)
- v0.4.2_v0.4.4.debdiff(Debian diff from previous version)
 
Version 0.4.3:
- changelog:
    - Changed author/maintainer email address
- Generated new GPG key
- Added debian/watchscript
 
- downloads:
    - (unpublished)
 
Version 0.4.2:
- changelog:
    - Fixed lintianwarningno-dep5-copyright
- Clarified the JDK requirements for all SQL Developer version families
 
- Fixed 
- downloads:
    - sqldeveloper-package_0.4.2_all.deb(binary package)
- sqldeveloper-package_0.4.2.dsc(source description file)
- sqldeveloper-package_0.4.2.tar.xz(source code archive)
- v0.4.1_v0.4.2.debdiff(Debian diff from previous version)
 
Version 0.4.1:
- changelog:
    - Fixed a flaw in the added logic to remove a stale JVM path from configuration, the way the path is stored has changed from v4.x onward (Closes: #693798) (Reported by Steven Post)
- Several small fixes and improvements:
        - Fixed the JDK requirements for SQL Developer v4.0
- Added image thumbnails databases to the list of cruft to remove
 
- Fixed lintianwarningwindows-thumbnail-database-in-package
- (Re-)Tested against v3.x release family of SQL Developer
 
- downloads:
    - sqldeveloper-package_0.4.1_all.deb(binary package)
- sqldeveloper-package_0.4.1.dsc(source description file)
- sqldeveloper-package_0.4.1.tar.xz(source code archive)
- v0.3.0_v0.4.1.debdiff(Debian diff from previous version)
 
Version 0.4.0:
- changelog:
    - Addressed all correctable issues and bugs:
        - Separated target from options and disabled check for original file in package build (Closes: #868673) (Reported and patch by Phil Morrell)
- Added logic to wrapper script to remove a stale JVM path from configuration (Reported by Steven Post)
 
- Fixed lintianwarnings:- ancient-standards-version
- package-uses-deprecated-debhelper-compat-version
- spelling-error-in-description
 
- Modified make-sqldeveloper-packageto fixlintianwarnings and errors:- command-in-menu-file-and-desktop-file
- desktop-mime-but-no-exec-code
- extra-license-file
- new-package-should-close-itp-bug
- priority-extra-is-replaced-by-priority-optional
 
- Several small fixes and improvements:
        - Simplified debian/rulessincedh_strip_nondeterminismwas heavilly impacting build time bymake-sqldeveloper-package
- Added 64-bit foreign DLLs to the list of cruft to remove
- Moved demo files to documentation structure
- Introduced lintianoverrides for warnings out of our control:- classpath-contains-relative-path
- codeless-jar
 
 
- Simplified 
- New homepage for the package
- Updated documentation regarding compatible JDKs
- Tested against v4.x and v17.x release families of SQL Developer
- Verified compliancy with Standards-Version: 4.1.1
- Bumped version to reflect functionality
 
- Addressed all correctable issues and bugs:
        
- downloads:
    - (unpublished)
 
Version 0.3.0:
- changelog:
    - Addressed all reported issues and bugs:
        - Included debhelperon the build dependency list (LP: #588458) (Reported by Seth Rosenblum)
- Replaced dhoptions with overrides (LP: #998258) (Reported by Christian Loos)
 
- Included 
- Several small fixes and improvements:
        - Fixed an unknown parameter passed to trap when in debug mode
- Strengthened trap exit handling
- (Re-)Corrected an unescaped ‘$’ in OTN license text introduced in the previous version
 
- New homepage for the package
- Updated documentation regarding compatible JDKs
- Solved Debian QA warnings:
        - Converted source format to 3.0 (native)
- Added Homepage to debian/control
 
- Changed the source compression format to xz
- Verified compliancy with Standards-Version: 3.9.3
- Bumped version to reflect functionality
 
- Addressed all reported issues and bugs:
        
- downloads:
    - sqldeveloper-package_0.3.0_all.deb(binary package)
- sqldeveloper-package_0.3.0.dsc(source description file)
- sqldeveloper-package_0.3.0.tar.xz(source code archive)
- v0.2.4_v0.3.0.debdiff(Debian diff from previous version)
 
Version 0.2.4:
- changelog:
    - Addressed bugs for inclusion in Wheezy’s freeze:
        - Replaced dos2unixwithtofrodos(LP: #560803,#626272) (Closes: #568982) (Reported by Seth Rosenblum)
- Split grepfor shell script (LP: #985810,#998610) (Closes: #692534) (Reported by Bruno Medeiros and patch by Brad Powell)
- Download links updated (Closes: #618650) (Reported by Sergio Fernandez)
 
- Replaced 
- Fixed JDK dependencies for pre and post SQL Developer v2
- Updated documentation regarding above changes
- Updated OTN license information to current version
- Tested against v2.x and v3.x release families of SQL Developer
- Bumped version to reflect functionality
 
- Addressed bugs for inclusion in Wheezy’s freeze:
        
- downloads:
    - sqldeveloper-package_0.2.4_all.deb(binary package)
- sqldeveloper-package_0.2.4.dsc(source description file)
- sqldeveloper-package_0.2.4.tar.gz(source code archive)
- v0.2.3_v0.2.4.debdiff(Debian diff from previous version)
 
Version 0.2.3+nmu1:
- changelog:
    - Non-maintainer upload.
- Use fromdosin place of gonedos2unixfor CRLF conversion management. Remove no longer needed alternative dep onsysutils, which is gone too. Patch from Michael Musenbrock. (Closes: #568982)
 
- downloads:
    - sqldeveloper-package_0.2.3+nmu1_all.deb(binary package)
- sqldeveloper-package_0.2.3+nmu1.dsc(source description file)
- sqldeveloper-package_0.2.3+nmu1.tar.gz(source code archive)
 
Version 0.2.3:
- changelog:
    - Fixed the command line options -m|--maintaineroption which was not getting the current login
 
- Fixed the command line options 
- downloads:
    - sqldeveloper-package_0.2.3_all.deb(binary package)
- sqldeveloper-package_0.2.3.dsc(source description file)
- sqldeveloper-package_0.2.3.tar.gz(source code archive)
 
Version 0.2.2:
- changelog:
    - Modified make-sqldeveloper-packageto not default to the author name and email for the Maintainer: field of the Debian package as follows: if command line options-m|--maintainerand/or-e|--emailare set then use these, else ifDEBFULLNAMEand/orDEBEMAILenvironment variables are set then use these, else default the Maintainer name to an empty string and/or generate the Maintainer email from the current login and hostname
 
- Modified 
- downloads:
    - (unpublished)
 
Version 0.2.1:
- changelog:
    - Rearranged make-sqldeveloper-packagehelp output to fit without wrapping in 80 columns
- Rewrote the sqldeveloperwrapper script fixing all issues reported bycheckbashisms
- Modified the versioning of the resulting Debian package to include the version of make-sqldeveloper-packageused to build it
- Changed the Priority: from optionaltoextrafor the resulting Debian package
- Modified the make-sqldeveloper-packageto honor theDEBFULLNAMEandDEBEMAILenvironment variables for the Maintainer: field of the Debian package as follows: if command line options-m|--maintainerand/or-e|--emailare set then use these, else ifDEBFULLNAMEand/orDEBEMAILenvironment variables are set then use these, else default to the author name and email
- Changed all negative exit and return values to positive integers
 
- Rearranged 
- downloads:
    - (unpublished)
 
Version 0.2.0:
- changelog:
    - Rewrote the make-sqldeveloper-packagefixing all issues reported bycheckbashisms(thanks to Nelson A. de Oliveira who reported this)
- Added support for long options to make-sqldeveloper-package
- Tested against latest release of SQL Developer
- Verified compliancy with Standards-Version: 3.8.1
- Bumped version to reflect functionality
 
- Rewrote the 
- downloads:
    - (unpublished)
 
Version 0.1.6:
- changelog:
    - Modified make-sqldeveloper-packageto generate a cleaner package, fixing the followinglintianinfo warning:- desktop-entry-contains-encoding-key
 
- Fixed lintianpedantic:- copyright-refers-to-symlink-license
 
 
- Modified 
- downloads:
    - (unpublished)
 
Version 0.1.5:
- changelog:
    - Modified make-sqldeveloper-packageto generate a clean package, fixing the followinglintianwarning:- copyright-refers-to-versionless-license-file
 
- Fixed lintianwarning:- debhelper-but-no-misc-depends
 
- Corrected an unescaped ‘$’ in Oracle license text
- Silenced the build process of make-sqldeveloper-package
 
- Modified 
- downloads:
    - (unpublished)
 
Version 0.1.4:
- changelog:
    - Modified make-sqldeveloper-packageto generate a clean package, fixing the followinglintianwarnings and errors:- binary-without-manpage
- extra-license-file
- package-contains-empty-directory
- menu-icon-not-in-xpm-format
- debian-revision-should-not-be-zero
- virtual-package-depends-without-real-package-depends
- new-package-should-close-itp-bug(Closes: #515233)
 
- Modified the sqldeveloperwrapper script to pass command line parameters to the application
- Added -helpand-versionswitches to thesqldeveloperwrapper script
 
- Modified 
- downloads:
    - (unpublished)
 
Version 0.1.3:
- changelog:
    - Fixed a bug introduced with the replacement of dh_*scripts bydhcalls where the wrapper script stopped being renamed
 
- Fixed a bug introduced with the replacement of 
- downloads:
    - (unpublished)
 
Version 0.1.2:
- changelog:
    - Added the Debian Developer’s Reference recommendation to auto close the ITP filled against WNPP (Closes: #514124)
 
- downloads:
    - (unpublished)
 
Version 0.1.1:
- changelog:
    - Modified the install path from /optto/usr/share
 
- Modified the install path from 
- downloads:
    - (unpublished)
 
Version 0.1.0:
- changelog:
    - Tested against every release of SQL Developer published to date
- Bumped version to reflect functionality
 
- downloads:
    - (unpublished)
 
Version 0.0.5:
- changelog:
    - Modified make-sqldeveloper-packageto support version 1.0.0 of SQL Developer
- Changed documentation to include instructions for earlier SQL Developer releases
 
- Modified 
- downloads:
    - (unpublished)
 
Version 0.0.4:
- changelog:
    - Fixed the make-sqldeveloper-packagescript to remove unused targets from the.PHONYline in the temporarydebian/rulesfile.
 
- Fixed the 
- downloads:
    - (unpublished)
 
Version 0.0.3:
- changelog:
    - Filled ITP against WNPP (#514124)
- Moved make-sqldeveloper-package.1andREADMEto the top level directory
- Fixed lintianwarnings:- dh-clean-k-is-deprecated
- copyright-with-old-dh-make-debian-copyright
 
- Replaced dh_*scripts withdhcalls
- Modified make-sqldeveloper-packageto apply the above packaging changes when generating the sqldeveloper package
 
- downloads:
    - (unpublished)
 
Version 0.0.2:
- changelog:
    - Replaced xtermdependency tox-terminal-emulatoron thesqldeveloperwrapper script.
 
- Replaced 
- downloads:
    - (unpublished)
 
Version 0.0.1:
- changelog:
    - Initial Release.
 
- downloads:
    - (unpublished)