Bug#444005: [uscan] Please use the get-orig-source target in debian/rules if available to get the source

2009-05-02 Thread Andres Mejia
On Tuesday 07 April 2009 04:28:42 Patrick Schoenfeld wrote:
 Hi,

 Daniel Leidert wrote:
  Normally people add the get-orig-source in debian/rules, because the
  original tarball needs to be repackaged. In such cases, trying to get
  the upstream tarball from the location in debian/watch is probably
  not, what the maintainer wants, because then he gets the original
  tarball, that doesn't contain the necessary change.
 
  What is your opinion? Are there limitations that need to be kept in mind
  when trying to provide a patch?

 I agree that this is an interesting feature which is worth beeing
 added. The only question is weither we should do this by default or not.
 Lets say we've added a heuristic that tries to detect weither a makefile
 has a get-orig-source target (e.g. by issueing something like make -n
 debian/rules get-orig-source and looking at the exit code). So far so
 good. Technically no big problem.

 I just fear that not everybody uses the get-orig-source target in the
 same way. For example I know that some people have the perception
 that get-orig-source should download a specific version, while others
 make it download the newest source. In the first case this would break
 the usual uscan behaviour, because uscan wouldn't download the version
 it reports but another one that is hardcoded in the rules file.
 So possibly this should be made a command line paramater, or a
 configuration option, or both.

 What do you think?

 Andres Meija wrote:
  # Run a script (such as debian/rules) to download the orig tarball
  use-download-script=debian/rules \
  use-download-script-options=get-orig-source

 I'm unsure weither this makes sense or not.

 On the one side I have the fear that uscan doesn't work properly
 if maintainers use get-orig-source different. But on the other side
 I think its better to let the one who invocates uscan decide weither he
 wants to take the risk to get the wrong source.
 Additional I don't see much benefit in making it configurable. We have
 debian/rules and the get-orig-source target defined in our policy
 so we should stick with it.

Seems the get-orig-source target is not as well defined as a lot of people are 
unsure what it should do exactly (see bug #466550).

My suggestion was to support something like,

use-check-script=debian/some_script args ...
use-download-script=debian/some_script args ...

Supporting this for get-orig-source targets can be like,

use-download-script=debian/rules get-orig-source

I think one issue raised was that the DEHS servers could possibly not have the 
proper dependencies to run the many scripts that could be written (whether they 
were implemented in a get-orig-source target or in some other script). If that 
is the case, I suggest we implement a way to get these lines ignored, perhaps 
when the --dehs option is set.

-- 
Regards,
Andres


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


Bug#444005: [uscan] Please use the get-orig-source target in debian/rules if available to get the source

2008-01-08 Thread Andres Mejia
Perhaps this bug and bug #458789 have a similar goal. The watchfile
could look like this.

# Run a script (such as debian/rules) to download the orig tarball
use-download-script=debian/rules \
use-download-script-options=get-orig-source

-- 
Regards,
Andres Mejia



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#444005: [uscan] Please use the get-orig-source target in debian/rules if available to get the source

2007-09-25 Thread Daniel Leidert
Package: devscripts
Version: 2.10.8
Severity: wishlist

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Normally people add the get-orig-source in debian/rules, because the
original tarball needs to be repackaged. In such cases, trying to get
the upstream tarball from the location in debian/watch is probably
not, what the maintainer wants, because then he gets the original
tarball, that doesn't contain the necessary change.

What is your opinion? Are there limitations that need to be kept in mind
when trying to provide a patch?

Regards, Daniel


- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (850, 'unstable'), (700, 'testing'), (550, 'stable'), (110, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21.5 (PREEMPT)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages devscripts depends on:
ii  debianutils   2.25   Miscellaneous utilities specific t
ii  dpkg-dev  1.14.6 package building tools for Debian
ii  libc6 2.6.1-5GNU C Library: Shared libraries
ii  perl  5.8.8-11   Larry Wall's Practical Extraction 
ii  sed   4.1.5-3The GNU sed stream editor

Versions of packages devscripts recommends:
ii  fakeroot  1.8Gives a fake root environment

- -- no debconf information

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFG+PsDm0bx+wiPa4wRAv9qAJwPiXw52xW7ej2cFtXeK3YfQQ8wjACg2gKF
6ZM3KgftRe9uEk8GJ6PKk7c=
=XyNX
-END PGP SIGNATURE-



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]