Hi!

Maria Valentina Marin:
> The attached patch allows users to specify a deterministic build path by
> using the new command line option --build-path or the configuration
> variable $build_path in the ~/.sbuilrc.

I don't know enough of sbuild to comment on the patch, but:

> +.BR \-\-build\-path=\fIstring\fP
> +By default the package is built in a path of the following format
> +/build/packagename-XXXXXX/packagename-version/ where XXXXXX is a random ascii
> +string. This option allows one to specify a custom path where the package is
> +built inside the chroot. Notice that the sbuild user in the chroot must have
> +permissions to create the path. Common writable locations are subdirectories 
> of
> +/tmp or /build. Caution: the last component of the path will be RECURSIVELY
> +REMOVED after the build is finished. So NEVER specify a build path like /tmp 
> or
> +/home/user because sbuild mounts /tmp and /home from the host into the 
> chroot!
> +Example: If your build path is /tmp/foo then the directory foo and all its
> +content will be removed after the build is finished. If you are running
> +multiple sbuild instances with the same build path in parallel for the same
> +package, make sure that your build path is not in a directory commonly 
> mounted
> +by all sbuild instances (like /tmp or /home). In that case, use for example
> +/build instead. Otherwise, your builds will probably fail or contain wrong
> +content.

How about using a safeguard here instead of warning users? I'd rather
not have to answer “it was written” to very angry users who just have
lost their home directory…

Maybe fail when the build path that has been set exists and is not
empty?

-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to