Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#49900 - [git] fix package to add remote for mediawiki

Attached to Project: Arch Linux
Opened by Alexandru Zbârcea (alexz) - Friday, 01 July 2016, 04:52 GMT
Last edited by Christian Hesse (eworm) - Tuesday, 06 June 2017, 10:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:

git should provide the mediawiki remote, like in:

```clone
$ git clone -c remote.origin.shallow=true -c remote.origin.pages='Pacman' mediawiki::https://wiki.archlinux.org wiki
Cloning into 'wiki'...
Searching revisions...
No previous mediawiki revision found, fetching from beginning.
Fetching & writing export data by pages...
Listing pages on remote wiki...
1 pages found.
page 1/1: Pacman
Found 1 revision (shallow import).
1/1: Revision #246189 of Pacman
Searching revisions...
No previous mediawiki revision found, fetching from beginning.
Fetching & writing export data by pages...
Listing pages on remote wiki...
1 pages found.
page 1/1: Pacman
Found 1 revision (shallow import).
1/1: Revision #246189 of Pacman
Checking connectivity... done.
```

Additional info:
* package version(s)

Name : git
Version : 2.9.0-1

* config and/or log files etc.

following files aren't needed (and they come with the git package - I think it shouldn't):
```
extra/git /usr/share/git/mw-to-git/
extra/git /usr/share/git/mw-to-git/.gitignore
extra/git /usr/share/git/mw-to-git/.perlcriticrc
extra/git /usr/share/git/mw-to-git/Git/
extra/git /usr/share/git/mw-to-git/Git/Mediawiki.pm
extra/git /usr/share/git/mw-to-git/Makefile
extra/git /usr/share/git/mw-to-git/bin-wrapper/
extra/git /usr/share/git/mw-to-git/bin-wrapper/git
extra/git /usr/share/git/mw-to-git/git-mw.perl
extra/git /usr/share/git/mw-to-git/git-remote-mediawiki.perl
extra/git /usr/share/git/mw-to-git/git-remote-mediawiki.txt
extra/git /usr/share/git/mw-to-git/t/
extra/git /usr/share/git/mw-to-git/t/.gitignore
extra/git /usr/share/git/mw-to-git/t/Makefile
extra/git /usr/share/git/mw-to-git/t/README
extra/git /usr/share/git/mw-to-git/t/install-wiki.sh
extra/git /usr/share/git/mw-to-git/t/install-wiki/
extra/git /usr/share/git/mw-to-git/t/install-wiki/.gitignore
extra/git /usr/share/git/mw-to-git/t/install-wiki/LocalSettings.php
extra/git /usr/share/git/mw-to-git/t/install-wiki/db_install.php
extra/git /usr/share/git/mw-to-git/t/push-pull-tests.sh
extra/git /usr/share/git/mw-to-git/t/t9360-mw-to-git-clone.sh
extra/git /usr/share/git/mw-to-git/t/t9361-mw-to-git-push-pull.sh
extra/git /usr/share/git/mw-to-git/t/t9362-mw-to-git-utf8.sh
extra/git /usr/share/git/mw-to-git/t/t9363-mw-to-git-export-import.sh
extra/git /usr/share/git/mw-to-git/t/t9364-pull-by-rev.sh
extra/git /usr/share/git/mw-to-git/t/t9365-continuing-queries.sh
extra/git /usr/share/git/mw-to-git/t/test-gitmw-lib.sh
extra/git /usr/share/git/mw-to-git/t/test-gitmw.pl
extra/git /usr/share/git/mw-to-git/t/test.config
```

it should be enough to add the remote

on debian:
```
$ sudo apt-file list git-mediawiki
git-mediawiki: /usr/lib/git-core/git-mw
git-mediawiki: /usr/lib/git-core/git-remote-mediawiki
git-mediawiki: /usr/share/doc/git-mediawiki/changelog.Debian.gz
git-mediawiki: /usr/share/doc/git-mediawiki/copyright
git-mediawiki: /usr/share/doc/git-mediawiki/git-remote-mediawiki.txt
git-mediawiki: /usr/share/perl5/Git/Mediawiki.pm
```

Steps to reproduce:

```
$ pacman -S git
$ git clone -c remote.origin.shallow=true -c remote.origin.pages='Pacman' mediawiki::https://wiki.archlinux.org wiki
Cloning into 'wiki'...
fatal: Unable to find remote helper for 'mediawiki'
```
This task depends upon

Closed by  Christian Hesse (eworm)
Tuesday, 06 June 2017, 10:19 GMT
Reason for closing:  Implemented
Additional comments about closing:  git 2.13.1-1
Comment by azrdev (azrdev) - Monday, 19 September 2016, 11:27 GMT
I second that request. The only thing necessary should be to add
- `make -C contrib/mw-to-git prefix=/usr all` to the end of build()
- `make -C contrib/mw-to-git prefix=/usr DESTDIR="$pkgdir" install` to [the end of] package()

(Related bug: https://bugs.archlinux.org/task/16263 which introduced contrib/ into the git package)

Loading...