Hi,

I think You need to call fakeroot more above. These will fix to generate
changes files without to call 'fakeroot make-jpkg' and pass all command
line arguments into make-jpgk.
BTW: make-jpkg with --email or/and --full-name works also fine.

Greetings,
Christoph
diff --git a/make-jpkg b/make-jpkg
index ca4e6a9..2c82962 100755
--- a/make-jpkg
+++ b/make-jpkg
@@ -31,7 +31,34 @@ else
 fi
 
 genchanges=""
-faker00ted=false
+
+### check for run in fakeroot
+
+# are we running as fakeroot
+if ! dh_testroot >/dev/null 2>&1; then
+    if [ -n "$FAKEROOTKEY" ]; then
+        echo "Internal error, fakeroot seems to fail faking root" >&2
+        exit 1
+    fi
+	exec fakeroot "$0" "$@"
+fi
+
+# check whether I'm real root, and bail out if so... ugly, but needed
+if touch /lib/.test 2>/dev/null; then
+	rm -f /lib/.test
+	echo "You are real root -- unfortunately, some Java distributions have" >&2
+	echo "install scripts that directly manipulate /etc, and may cause some" >&2
+	echo "inconsistencies on your system. Instead, you should become a" >&2
+	echo "non-root user and run:" >&2
+	echo >&2
+	echo "fakeroot make-jpkg $@" >&2
+	echo >&2
+	echo "which will allow no damage to be done to your system files and" >&2
+	echo "still permit the Java distribution to successfully extract." >&2
+	echo >&2
+	echo "Aborting." >&2
+	exit 1
+fi
 
 
 ### Parse options
@@ -91,8 +118,6 @@ while [[ $# -gt 0 && "x$1" == x--* ]]; do
 	revision="-${1}"
     elif [[ "x$1" == x--changes ]]; then
 	genchanges="true"
-    elif [[ "x$1" == x--faker00ted ]]; then
-	faker00ted="true"
     else
 	unrecognized_option "$1"
     fi
@@ -121,32 +146,6 @@ archive_name="$( basename "$archive" )"
 archive_dir="$( cd "$( dirname "$archive" )" ; pwd )"
 archive_path="$archive_dir/$archive_name"
 
-# must be run as fakeroot
-if ! dh_testroot >/dev/null 2>&1; then
-	if $faker00ted; then
-		echo "Internal error, fakeroot seems to fail faking root" >&2
-		exit 1
-	fi
-	exec fakeroot "$0" --faker00ted "$@"
-fi
-
-# check whether I'm real root, and bail out if so... ugly, but needed
-if touch /lib/.test 2>/dev/null; then
-	rm -f /lib/.test
-	echo "You are real root -- unfortunately, some Java distributions have" >&2
-	echo "install scripts that directly manipulate /etc, and may cause some" >&2
-	echo "inconsistencies on your system. Instead, you should become a" >&2
-	echo "non-root user and run:" >&2
-	echo >&2
-	echo "fakeroot make-jpkg $@" >&2
-	echo >&2
-	echo "which will allow no damage to be done to your system files and" >&2
-	echo "still permit the Java distribution to successfully extract." >&2
-	echo >&2
-	echo "Aborting." >&2
-	exit 1
-fi
-
 
 # error handling
 

Attachment: signature.asc
Description: Digital signature

_______________________________________________
pkg-java-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers

Reply via email to