Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 717130 - x11-libs/libvdpau-1.4 - SRC_URI ERROR 404: Not Found.
Summary: x11-libs/libvdpau-1.4 - SRC_URI ERROR 404: Not Found.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-04-11 19:03 UTC by Alexandre Ferreira
Modified: 2020-04-13 19:46 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to ebuild to fix ebuild with correct SRC_URI (libvdpau-1.4.ebuild.patch,481 bytes, patch)
2020-04-11 19:04 UTC, Alexandre Ferreira
Details | Diff
Ebuild Patch that works for me (libvdpau-url.patch,1023 bytes, patch)
2020-04-13 16:13 UTC, James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Ferreira 2020-04-11 19:03:24 UTC
libvdpau-1.4 ebuild is trying to download from an incorrect URL and fails.

Reproducible: Always

Steps to Reproduce:
1.emerge --oneshot -v x11-libs/libvdpau
2.
3.
Actual Results:  
>>> Fetching (16 of 102) x11-libs/libvdpau-1.4::gentoo
>>> Downloading 'http://distfiles.gentoo.org/distfiles/44/libvdpau-1.4.tar.bz2'
--2020-04-11 02:26:29--  http://distfiles.gentoo.org/distfiles/44/libvdpau-1.4.tar.bz2
Resolving distfiles.gentoo.org... 216.165.129.135, 64.50.236.52, 140.211.166.134, ...
Connecting to distfiles.gentoo.org|216.165.129.135|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-04-11 02:26:29 ERROR 404: Not Found.

>>> Downloading 'https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/libvdpau-1.4/libvdpau-libvdpau-1.4.tar.bz2'
--2020-04-11 02:26:29--  https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/libvdpau-1.4/libvdpau-libvdpau-1.4.tar.bz2
Resolving gitlab.freedesktop.org... 35.185.111.185
Connecting to gitlab.freedesktop.org|35.185.111.185|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-04-11 02:26:30 ERROR 404: Not Found.



Expected Results:  
emerge successful

The file was uploaded at http://distfiles.gentoo.org/distfiles/44/libvdpau-1.4.tar.bz2 so the error does not happen but the ebuild is not correct since the SRC_URI is incorrect.

The following patch fixes the SRC_URI:
--- libvdpau-1.4.ebuild.old     2020-04-10 02:09:39.000000000 -0500
+++ libvdpau-1.4.ebuild 2020-04-11 13:46:18.754368704 -0500
@@ -7,7 +7,7 @@
 
 DESCRIPTION="VDPAU wrapper and trace libraries"
 HOMEPAGE="https://www.freedesktop.org/wiki/Software/VDPAU"
-SRC_URI="https://gitlab.freedesktop.org/vdpau/${PN}/-/archive/${P}/${PN}-${P}.tar.bz2 -> ${P}.tar.bz2"
+SRC_URI="https://gitlab.freedesktop.org/vdpau/${PN}/-/archive/${PV}/${P}.tar.bz2 -> ${P}.tar.bz2"
 
 LICENSE="MIT"
 SLOT="0"
Comment 1 Alexandre Ferreira 2020-04-11 19:04:46 UTC
Created attachment 632298 [details, diff]
patch to ebuild to fix ebuild with correct SRC_URI
Comment 2 James 2020-04-13 16:13:50 UTC
Created attachment 632682 [details, diff]
Ebuild Patch that works for me

The above patch didn't work for me.  It still didn't find the correct file from the server and I still had trouble with the ebuild trying to build in a directory that didn't exist (libvdpau-libvdpau-1.4), this patch worked great for me.
Comment 3 Alexandre Ferreira 2020-04-13 17:40:20 UTC
Unfortunately the plot thickens. The file downloaded from https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/1.4/libvdpau-1.4.tar.bz2
has this data:
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-1.4/
-rw-rw-r-- root/root       374 2020-04-09 09:45 libvdpau-1.4/.gitlab-ci.yml
-rw-rw-r-- root/root       129 2020-04-09 09:45 libvdpau-1.4/AUTHORS
-rw-rw-r-- root/root      1130 2020-04-09 09:45 libvdpau-1.4/COPYING
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-1.4/doc/
-rw-rw-r-- root/root     53661 2020-04-09 09:45 libvdpau-1.4/doc/Doxyfile.in
-rw-rw-r-- root/root       612 2020-04-09 09:45 libvdpau-1.4/doc/meson.build
-rw-rw-r-- root/root     69178 2020-04-09 09:45 libvdpau-1.4/doc/vdpau_data_flow.png
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-1.4/include/
-rw-rw-r-- root/root        16 2020-04-09 09:45 libvdpau-1.4/include/meson.build
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-1.4/include/vdpau/
-rw-rw-r-- root/root       110 2020-04-09 09:45 libvdpau-1.4/include/vdpau/meson.build
-rw-rw-r-- root/root    191212 2020-04-09 09:45 libvdpau-1.4/include/vdpau/vdpau.h
-rw-rw-r-- root/root      6391 2020-04-09 09:45 libvdpau-1.4/include/vdpau/vdpau_x11.h
-rw-rw-r-- root/root      1746 2020-04-09 09:45 libvdpau-1.4/meson.build
-rw-rw-r-- root/root       377 2020-04-09 09:45 libvdpau-1.4/meson_options.txt
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-1.4/src/
-rw-rw-r-- root/root      5998 2020-04-09 09:45 libvdpau-1.4/src/mesa_dri2.c
-rw-rw-r-- root/root      2316 2020-04-09 09:45 libvdpau-1.4/src/mesa_dri2.h
-rw-rw-r-- root/root       447 2020-04-09 09:45 libvdpau-1.4/src/meson.build
-rw-rw-r-- root/root      1672 2020-04-09 09:45 libvdpau-1.4/src/util.h
-rw-rw-r-- root/root     12549 2020-04-09 09:45 libvdpau-1.4/src/vdpau_wrapper.c
-rw-rw-r-- root/root        51 2020-04-09 09:45 libvdpau-1.4/src/vdpau_wrapper.cfg
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-1.4/test/
-rw-rw-r-- root/root      2627 2020-04-09 09:45 libvdpau-1.4/test/dlclose.c
-rwxrwxr-x root/root       158 2020-04-09 09:45 libvdpau-1.4/test/gitlab-ci.sh
-rw-rw-r-- root/root       134 2020-04-09 09:45 libvdpau-1.4/test/meson.build
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-1.4/trace/
-rw-rw-r-- root/root       202 2020-04-09 09:45 libvdpau-1.4/trace/meson.build
-rw-rw-r-- root/root    156140 2020-04-09 09:45 libvdpau-1.4/trace/vdpau_trace.cpp

But the file from http://distfiles.gentoo.org/distfiles/44/libvdpau-1.4.tar.bz2 has the following data: 
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-libvdpau-1.4/
-rw-rw-r-- root/root       374 2020-04-09 09:45 libvdpau-libvdpau-1.4/.gitlab-ci.yml
-rw-rw-r-- root/root       129 2020-04-09 09:45 libvdpau-libvdpau-1.4/AUTHORS
-rw-rw-r-- root/root      1130 2020-04-09 09:45 libvdpau-libvdpau-1.4/COPYING
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-libvdpau-1.4/doc/
-rw-rw-r-- root/root     53661 2020-04-09 09:45 libvdpau-libvdpau-1.4/doc/Doxyfile.in
-rw-rw-r-- root/root       612 2020-04-09 09:45 libvdpau-libvdpau-1.4/doc/meson.build
-rw-rw-r-- root/root     69178 2020-04-09 09:45 libvdpau-libvdpau-1.4/doc/vdpau_data_flow.png
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-libvdpau-1.4/include/
-rw-rw-r-- root/root        16 2020-04-09 09:45 libvdpau-libvdpau-1.4/include/meson.build
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-libvdpau-1.4/include/vdpau/
-rw-rw-r-- root/root       110 2020-04-09 09:45 libvdpau-libvdpau-1.4/include/vdpau/meson.build
-rw-rw-r-- root/root    191212 2020-04-09 09:45 libvdpau-libvdpau-1.4/include/vdpau/vdpau.h
-rw-rw-r-- root/root      6391 2020-04-09 09:45 libvdpau-libvdpau-1.4/include/vdpau/vdpau_x11.h
-rw-rw-r-- root/root      1746 2020-04-09 09:45 libvdpau-libvdpau-1.4/meson.build
-rw-rw-r-- root/root       377 2020-04-09 09:45 libvdpau-libvdpau-1.4/meson_options.txt
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-libvdpau-1.4/src/
-rw-rw-r-- root/root      5998 2020-04-09 09:45 libvdpau-libvdpau-1.4/src/mesa_dri2.c
-rw-rw-r-- root/root      2316 2020-04-09 09:45 libvdpau-libvdpau-1.4/src/mesa_dri2.h
-rw-rw-r-- root/root       447 2020-04-09 09:45 libvdpau-libvdpau-1.4/src/meson.build
-rw-rw-r-- root/root      1672 2020-04-09 09:45 libvdpau-libvdpau-1.4/src/util.h
-rw-rw-r-- root/root     12549 2020-04-09 09:45 libvdpau-libvdpau-1.4/src/vdpau_wrapper.c
-rw-rw-r-- root/root        51 2020-04-09 09:45 libvdpau-libvdpau-1.4/src/vdpau_wrapper.cfg
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-libvdpau-1.4/test/
-rw-rw-r-- root/root      2627 2020-04-09 09:45 libvdpau-libvdpau-1.4/test/dlclose.c
-rwxrwxr-x root/root       158 2020-04-09 09:45 libvdpau-libvdpau-1.4/test/gitlab-ci.sh
-rw-rw-r-- root/root       134 2020-04-09 09:45 libvdpau-libvdpau-1.4/test/meson.build
drwxrwxr-x root/root         0 2020-04-09 09:45 libvdpau-libvdpau-1.4/trace/
-rw-rw-r-- root/root       202 2020-04-09 09:45 libvdpau-libvdpau-1.4/trace/meson.build
-rw-rw-r-- root/root    156140 2020-04-09 09:45 libvdpau-libvdpau-1.4/trace/vdpau_trace.cpp

So the file on the gentoo distfiles has to be fixed too, otherwise one or the other will fail.
Comment 4 Larry the Git Cow gentoo-dev 2020-04-13 19:46:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6935a556b3d6e6c4fefe7258c0098f3c5c50d5ae

commit 6935a556b3d6e6c4fefe7258c0098f3c5c50d5ae
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-04-13 19:45:37 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-04-13 19:46:00 +0000

    x11-libs/libvdpau: Update SRC_URI/A
    
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Closes: https://bugs.gentoo.org/717130
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 x11-libs/libvdpau/Manifest            | 2 +-
 x11-libs/libvdpau/libvdpau-1.4.ebuild | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)