rmadison --no-conf option not supported

Bug #1732667 reported by 4dro
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devscripts (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

According to the manual of rmadison:

       --no-conf, --noconf
           don't read the devscripts configuration files

While trying to use it:

 rmadison -u debian,ubuntu --no-conf apulse
Unknown option: no-conf
Usage: rmadison [OPTION] PACKAGE[...]
[…]

rmadison -u debian,ubuntu --noconf apulse 1 ↵
Unknown option: noconf
Usage: rmadison [OPTION] PACKAGE[...]
[…]

Don't know if the manpage should be updated, the rmadison in ubuntu is out of date or something else?

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: devscripts 2.16.2ubuntu3
ProcVersionSignature: Ubuntu 4.4.0-97.120-generic 4.4.87
Uname: Linux 4.4.0-97-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Nov 16 11:32:21 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2012-08-21 (1912 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: devscripts
UpgradeStatus: Upgraded to xenial on 2016-12-18 (332 days ago)

Revision history for this message
4dro (kwadronaut) wrote :
Revision history for this message
Eric Desrochers (slashd) wrote :
Download full text (3.2 KiB)

I can reproduce the situation, it seems like the "--" of "--noconf" or "--no-conf" is not taken into account if not place as the first ARG.

Unknown option: no-conf
Unknown option: noconf

Example :
rmadison -s trusty --no-conf devscripts
rmadison -u debian,ubuntu --noconf devscripts

* If the "no conf" option is place as first ARG, then it passes without error.

I haven't read the code yet, but before going further, could you please confirm the --no-conf and --noconf work as expected if pass as first ARG ? to make sure the feature is functioning as it should.

# rmadison --no-conf -s trusty devscripts
 devscripts | 2.14.1 | trusty | source, amd64, arm64, armhf, i386, powerpc, ppc64el

# rmadison --noconf -u debian,ubuntu devscripts
debian:
devscripts | 2.12.6+deb7u2 | oldoldstable | source, amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc
devscripts | 2.14.11~bpo70+1 | wheezy-backports | source, amd64, armel, armhf, i386, ia64, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, s390, s390x, sparc
devscripts | 2.15.3 | oldstable-kfreebsd | source, kfreebsd-amd64, kfreebsd-i386
devscripts | 2.15.3+deb8u1 | oldstable | source, amd64, arm64, armel, armhf, i386, mips, mipsel, powerpc, ppc64el, s390x
devscripts | 2.17.6~bpo8+1 | jessie-backports | source, amd64, arm64, armel, armhf, i386, kfreebsd-amd64, kfreebsd-i386, mips, mipsel, powerpc, ppc64el, s390x
devscripts | 2.17.6+deb9u1 | stable | source, amd64, arm64, armel, armhf, i386, mips, mips64el, mipsel, ppc64el, s390x
devscripts | 2.17.6+deb9u1 | stable-debug | source
devscripts | 2.17.11~bpo9+1 | stretch-backports | source, amd64, arm64, armel, armhf, i386, mips, mips64el, mipsel, ppc64el, s390x
devscripts | 2.17.11~bpo9+1 | stretch-backports-debug | source
devscripts | 2.17.11 | testing | source, amd64, arm64, armel, armhf, i386, mips, mips64el, mipsel, ppc64el, s390x
devscripts | 2.17.11 | unstable | source, amd64, arm64, armel, armhf, hurd-i386, i386, kfreebsd-amd64, kfreebsd-i386, mips, mips64el, mipsel, powerpc, ppc64el, s390x
devscripts | 2.17.11 | unstable-debug | source
ubuntu:
 devscripts | 2.11.6ubuntu1 | precise | source, amd64, armel, armhf, i386, powerpc
 devscripts | 2.11.6ubuntu1.7 | precise-security | source, amd64, armel, armhf, i386, powerpc
 devscripts | 2.11.6ubuntu1.7 | precise-updates | source, amd64, armel, armhf, i386, powerpc
 devscripts | 2.14.1 | trusty | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 devscripts | 2.14.1ubuntu0.1 | trusty-security | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 devscripts | 2.14.1ubuntu0.1 | trusty-updates | source, amd64, arm64, armhf, i386, powerpc, ppc64el
 devscripts | 2.16.2ubuntu3 | xenial | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x
 devscripts | 2.16.8ubuntu2 | zesty | source, amd64, arm64, armhf, i386, ppc64el, s390x
 devscripts | 2.17.9build1 | artful | source, amd64, arm64, armhf, i386, ppc64el, s390x
 ...

Read more...

Revision history for this message
Eric Desrochers (slashd) wrote :

# scripts/rmadison.pl
...
if (@ARGV and $ARGV[0] =~ /^--no-?conf$/) {
    shift;
} else {
    # We don't have any predefined variables, but allow any of the form
    # RMADISON_URL_MAP_SHORTCODE=URL
    my @config_files = ('/etc/devscripts.conf', '~/.devscripts');
    my @config_vars = ();
..

$ARGV[0] being the first argument passed to the program.

So in conclusion --noconf and/or --no-conf need to be pass as first ARG.

Changed in devscripts (Ubuntu):
status: New → Invalid
Revision history for this message
4dro (kwadronaut) wrote :

I'm fine with a 'don't care to change the code,' but in that case the manpage should mention that it must be the first argument. Currently it's listed as the last option.

Revision history for this message
Eric Desrochers (slashd) wrote :

@4dro,

I would then suggest you report a bug with upstream debian for devscripts package
(if a bug doesn't already exist)

https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=devscripts;dist=unstable

If and once approved/merged in Debian... It will then follow on next debian->ubuntu merge/sync for future release.

- Eric

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.