Bug#280707: java-package: building package with fakeroot creates an incomplete package
Rogério Brito
Rogério Brito , 280707@bugs.debian.org
Thu Nov 11 01:24:02 2004
Package: java-package
Version: 0.16
Severity: important
Hi.
Today I tried making a package from Sun's Java SDK 1.5 with java-package.
Unfortunately, it seems that building the package with fakeroot is not OK,
because make-jpkg tries to write files where a regular user might not have
writing permissions. The following in an excerpt from the messagest that I
got when I tried to use:
fakeroot make-jpkg jdk-1_5_0-linux-i586.bin (sorry for the long line lengths):
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(...)
inflating: jdk1.5.0/man/ja_JP.eucJP/man1/rmic.1
inflating: jdk1.5.0/man/ja_JP.eucJP/man1/serialver.1
inflating: jdk1.5.0/man/ja_JP.eucJP/man1/idlj.1
Creating jdk1.5.0/lib/tools.jar
Creating jdk1.5.0/jre/lib/rt.jar
Creating jdk1.5.0/jre/lib/jsse.jar
Creating jdk1.5.0/jre/lib/charsets.jar
Creating jdk1.5.0/jre/lib/ext/localedata.jar
Creating jdk1.5.0/jre/lib/plugin.jar
Creating jdk1.5.0/jre/lib/javaws.jar
Creating jdk1.5.0/jre/lib/deploy.jar
mkdir: cannot create directory `/etc/.java': Permission denied
mkdir: cannot create directory `/etc/.java/.systemPrefs': No such file or directory
touch: cannot touch `/etc/.java/.systemPrefs/.system.lock': No such file or directory
chmod: cannot access `/etc/.java/.systemPrefs/.system.lock': No such file or directory
touch: cannot touch `/etc/.java/.systemPrefs/.systemRootModFile': No such file or directory
chmod: cannot access `/etc/.java/.systemPrefs/.systemRootModFile': No such file or directory
/home/rbrito/jdk-1_5_0-linux-i586.bin: 658: cannot create /etc/mailcap: Permission denied
mkdir: cannot create directory `/usr/share/icons/HighContrast': Permission denied
mkdir: cannot create directory `/usr/share/icons/HighContrastInverse': Permission denied
mkdir: cannot create directory `/usr/share/icons/LowContrast': Permission denied
cp: cannot create regular file `/usr/share/pixmaps/sun-java.png': Permission denied
(...)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
It seems that there may be some absolute path used in the scripts used to
make the java-package.
Thanks in advance for any help, Rogério Brito.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-ac6-1
Locale: LANG=C, LC_CTYPE=pt_BR
Versions of packages java-package depends on:
ii debhelper 4.2.23 helper programs for debian/rules
-- no debconf information
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rogério Brito - rbrito@ime.usp.br - http://www.ime.usp.br/~rbrito
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=