[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Scala 2.10



# Dropped debian-mentors

Hi all,

On Fri, 2016-11-11 at 08:26 +0100, Christian Seiler wrote:
> pbuilder sets the home directory of the pbuilder user to /nonexistent
> to make sure that builds don't modify files in the home directory,
> which is forbidden by Debian Policy (for good reason builds are not
> supposed to change things outside the build directory). In your case
> the build process does try create the directory $HOME/.m2/repository,
> and that fails because of this. So in this case pbuilder caught the
> problem very early.

I believe I fixed this issue by looking at a commit
7a7cfb5a07781aef3a85e40ea5be32a8b23f7cd2 from the 'scala' Git repository
on Alioth and doing this:

diff --git a/debian/rules b/debian/rules
index 970bec0..5911489 100755
--- a/debian/rules
+++ b/debian/rules
@@ -18,6 +18,7 @@ override_dh_auto_build:
            -Dreflect.starr.jar=/usr/share/java/scala-reflect.jar \
            -Dcompiler.starr.jar=/usr/share/java/scala-compiler.jar \
            -Djline.version=2.x \
+           -Duser.home=debian/tmp \
            fastdist-opt

I also cherry-picked commits 77a7de7d7521ca7d5c0eee967f3948ad75f3e282
and eba8521c8d45705a3870d6ff3697a9a698b559cc.

I still can't build the package with dpkg-buildpackage. It reports:

dpkg-source: error: aborting due to unexpected upstream changes,
see /tmp/scala_2.10.5-1.diff.jTc9mZ


However, the temporary file is a patch/diff file that doesn't make much
sense to me. I guess it is a result of changes done directly to source,
and not via patches (this is not me doing it; it's been there from
before).


I would really appreciate some code contributions here. At least to get
me to a point where it compiles. It's been weeks since I started working
on an SBT package and a Scala 2.10 package, and I am still pretty much
nowhere.

You can find a Git repository here:

https://gitlab.com/mdimjasevic/scala-2.10-debian-package-take-2

It's the 'scala-2.10' branch.


Kind regards,
Marko

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: