LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   cannot create temp file for here document (https://www.linuxquestions.org/questions/linux-general-1/cannot-create-temp-file-for-here-document-441068/)

giancarlo76 05-02-2006 07:58 PM

cannot create temp file for here document
 
I'm trying to make a deb package of Sun JDK 1.5 on Debian testing, with the java-package tool. Here's the output of
Code:

fakeroot make-jpkg jdk-1_5_0_06-linux-i586.bin
Code:

Creating temporary directory: /tmp/make-jpkg.XXXXHCc0sl
Loading plugins: blackdown-j2re.sh blackdown-j2sdk.sh common.sh ibm-j2re.sh ibm-j2sdk.sh j2re.sh j2sdk-doc.sh j2sdk.sh j2se.sh sun-j2re.sh sun-j2sdk-doc.sh sun-j2sdk.sh
/usr/share/java-package/sun-j2sdk.sh: line 75: cannot create temp file for here document: Success
/usr/bin/make-jpkg: line 156: cannot create temp file for here document: Success

The script stops its executions here.
Some googling didn't point me to the right place, since the most common causes for the heredoc temp file failed creation refer to these:
  • No space left on device (/tmp or /var/tmp). I've got a lot of it...
  • Permissions. drwxrwxrwt seems to be correct for a tmp dir.
  • Setting $TMP and/or $TMPDIR doesn't change the things.
It's also curious that the temp file is actually created, and after the error message a "Success" is reported. It leaves me quite unsettled :scratch:

I may think it's a permissions' problem, anyway, because executing the (modified :rolleyes: ) make-jpkg script as root (I shouldn't do it, I know...) I can create the package. But I really have not idea of what to do or where to search to solve the problem.
Any idea?
Thanks in advance.

nx5000 05-04-2006 05:44 AM

Quote:

Originally Posted by giancarlo76
But I really have not idea of what to do or where to search to solve the problem.
Any idea?
Thanks in advance.

Maybe more info on http://bugs.debian.org/cgi-bin/pkgre...g=java-package
like this one?:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=280707

giancarlo76 05-04-2006 02:03 PM

I couldn't find an answer there (thanks for the suggestions). I reported the problem as a bug, even though I don't think it's related with this package in particular. I hope, anyway, someone can give me a hint. I'll post here any useful answer they can give me.


All times are GMT -5. The time now is 11:35 AM.