dpkg-shlibdeps: error: package. is not a valid version

Bug #878562 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Invalid
Undecided
Unassigned
mesa (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The daily build of VLC [1] fails to build on precise:

make[1]: Leaving directory `/build/buildd/vlc-1.2.0~~git20111019+r956'
   dh_makeshlibs -a -O--parallel
   dh_shlibdeps -a -O--parallel
dpkg-shlibdeps: error: package. is not a valid version
dh_shlibdeps: dpkg-shlibdeps -Tdebian/vlc.substvars debian/vlc/usr/lib/vlc/plugins/gui/libskins2_plugin.so debian/vlc/usr/lib/vlc/plugins/gui/libqt4_plugin.so debian/vlc/usr/lib/vlc/plugins/services_discovery/libxcb_apps_plugin.so debian/vlc/usr/lib/vlc/plugins/access/libxcb_screen_plugin.so debian/vlc/usr/lib/vlc/plugins/video_filter/libpanoramix_plugin.so debian/vlc/usr/lib/vlc/plugins/codec/libavcodec_plugin.so debian/vlc/usr/lib/vlc/plugins/codec/libsdl_image_plugin.so debian/vlc/usr/lib/vlc/plugins/video_output/libaa_plugin.so debian/vlc/usr/lib/vlc/plugins/video_output/libxcb_xv_plugin.so debian/vlc/usr/lib/vlc/plugins/video_output/libxcb_window_plugin.so debian/vlc/usr/lib/vlc/plugins/video_output/libxcb_x11_plugin.so debian/vlc/usr/lib/vlc/plugins/video_output/libegl_plugin.so debian/vlc/usr/lib/vlc/plugins/video_output/libxcb_glx_plugin.so debian/vlc/usr/lib/vlc/plugins/misc/libxscreensaver_plugin.so debian/vlc/usr/lib/vlc/plugins/misc/libxdg_screensaver_plugin.so debian/vlc/usr/lib/vlc/plugins/control/libglobalhotkeys_plugin.so returned exit code 255
make: *** [binary-arch] Error 255
dpkg-buildpackage: error: /usr/bin/fakeroot debian/rules binary-arch gave error exit status 2

The version is "1.2.0~~git20111019+r956-0~r45~precise1".

Full build log: https://launchpadlibrarian.net/83223870/buildlog_ubuntu-precise-amd64.vlc_1.2.0%7E%7Egit20111019%2Br956-0%7Er45%7Eprecise1_FAILEDTOBUILD.txt.gz
[1] https://code.launchpad.net/~videolan/+recipe/master-daily

Related branches

Benjamin Drung (bdrung)
description: updated
Revision history for this message
Raphaël Hertzog (hertzog) wrote : Re: [Bug 878562] [NEW] dpkg-shlibdeps: error: package. is not a valid version

 status invalid
 done

On Wed, 19 Oct 2011, Benjamin Drung wrote:
> dpkg-shlibdeps: error: package. is not a valid version

The error is explicit. Something, somewhere, uses a package version
"package." and versions are not allowed to start with a letter, they must
start with a digit.

Try looking into shlibs and symbols files in particular. I was unable to
find anything in "precise"... so it must be something specific to your daily
build environment.

Try running dpkg-shlibdeps in verbose mode (-v -v) to have a better idea
where this is found.

Cheers,
--
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/go/ulule-rh/

Changed in dpkg (Ubuntu):
status: New → Invalid
Revision history for this message
Raphaël Hertzog (hertzog) wrote : Re: [Bug 878562] [NEW] dpkg-shlibdeps: error: package. is not a valid version

On Thu, 20 Oct 2011, Raphaël Hertzog wrote:
> Try looking into shlibs and symbols files in particular. I was unable to
> find anything in "precise"... so it must be something specific to your daily
> build environment.

Or rather I installed the build-dependencies of vlc in precise and did not
find any such version in symbols/shlibs on my precise chroot. But if you
have new build-deps in your daily build, it's still possible that they are
broken in precise.

Cheers,
--
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/go/ulule-rh/

Revision history for this message
Benjamin Drung (bdrung) wrote :

Here's the build log which runs dpkg-shlibdeps in verbose mode: https://launchpadlibrarian.net/83339925/buildlog_ubuntu-precise-amd64.vlc_1.2.0~~git20111020%2Br956-0~r46~precise1_FAILEDTOBUILD.txt.gz

The build log isn't very useful. I ran "grep -ir 'package\.' /var/lib/dpkg/info/*.symbols" and revealed libegl1-mesa as source for the problem. The head of libegl1-mesa:amd64.symbols is

libEGL.so.1 libegl1-mesa #MINVER# | libegl1-x11
 # package.
 _eglBindContext@Base 7.8.1
 _eglBindTexImage@Base 7.8.1

Is a line that start with a space followed by a # considered as comment? In this case it would be a bug in dpkg-shlibdeps, otherwise it's a bug in mesa.

Changed in dpkg (Ubuntu):
status: Invalid → New
Revision history for this message
Raphaël Hertzog (hertzog) wrote : Re: [Bug 878562] Re: dpkg-shlibdeps: error: package. is not a valid version

On Thu, 20 Oct 2011, Benjamin Drung wrote:
> libEGL.so.1 libegl1-mesa #MINVER# | libegl1-x11
> # package.
> _eglBindContext@Base 7.8.1
> _eglBindTexImage@Base 7.8.1
>
> Is a line that start with a space followed by a # considered as comment?

No, comments must have their # on the first character of the line (and
they are usually stripped in the symbols file that ends up in the .deb).

As it is, it's parsed as symbol "#" associated to version "package.".
Hence the error message you saw.

> In this case it would be a bug in dpkg-shlibdeps, otherwise it's a bug
> in mesa.

 affects ubuntu/mesa

Cheers,
--
Raphaël Hertzog ◈ Debian Developer

Pre-order a copy of the Debian Administrator's Handbook and help
liberate it: http://debian-handbook.info/go/ulule-rh/

Changed in dpkg (Ubuntu):
status: New → Invalid
Revision history for this message
šumski (schumski-deactivatedaccount-deactivatedaccount) wrote :

I'm having the same issue, but with kde-workspace. Note that the same package builds OK in Oneiric.

dh_shlibdeps -pkde-workspace-dev -- -xkde-runtime
dh_shlibdeps -plibkdecorations4 -plibkwineffects1abi2 -plibkwineffects1abi2-gles -plibkephal4abi1 -plibkscreensaver5 -plibksgrd4 -plibksignalplotter4 -plibkworkspace4 -pliblsofui4 -plibplasmaclock4abi2 -plibplasma-geolocation-interface4 -plibplasmagenericshell4 -plibprocesscore4abi1 -plibprocessui4a -plibsolidcontrol4abi2 -plibsolidcontrolifaces4abi2 -plibtaskmanager4abi2 -plibweather-ion6 -- -xkde-runtime
dpkg-shlibdeps: error: package. is not a valid version
dh_shlibdeps: dpkg-shlibdeps -Tdebian/libkwineffects1abi2-gles.substvars -xkde-runtime debian/libkwineffects1abi2-gles/usr/lib/libkwineffects.so.1.0.0.abi2 returned exit code 255
make[2]: *** [override_dh_shlibdeps] Error 255

Faillog:
https://launchpadlibrarian.net/82812618/buildlog_ubuntu-precise-amd64.kde-workspace_4%3A4.7.2git20111014-precise%7Eppa1_FAILEDTOBUILD.txt.gz

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mesa - 7.11-0ubuntu4

---------------
mesa (7.11-0ubuntu4) precise; urgency=low

  * Fix comments in libegl1-mesa.symbols to avoid build failures with
    dpkg-dev 1.16.1 (Closes: #642690, LP: #878562).
 -- Benjamin Drung <email address hidden> Fri, 21 Oct 2011 13:53:25 +0200

Changed in mesa (Ubuntu):
status: New → Fix Released
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.