pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/43622: behaviour of pkg_add should be consistent with build system
>Number: 43622
>Category: pkg
>Synopsis: behaviour of pkg_add should be consistent with build system
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jul 15 12:20:00 +0000 2010
>Originator: Piotr Meyer
>Release: Linux
>Organization:
>Environment:
Linux buildhost.domain.pl 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:04:48 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux
>Description:
Package built under Linux has OS_VERSION stripped at first '-': for example
OS_VERSION '2.6.18-194.8.1.el5' is shortened to '2.6.18'. pkg_add has function
for this (normalise_platform() in pkg_install/files/add/perform.c) but at this
moment function is used only for DragonFly and FreeBSD, so pkg_add produces
annoying comments, for example:
pkg_add: Warning: package `p5-HTML-Parser-3.65' was built for a platform:
pkg_add: Linux/x86_64 2.6.18 (pkg) vs. Linux/x86_64 2.6.18-194.8.1.el5 (this
host)
To rid this we need only one, small change in configure.ac, see below.
Sample outputs from uname -r from various distros:
Ubuntu 10.04: 2.6.32-22-server
Fedora 13 2.6.33.5-124.fc13.i686.PAE
RHEL 5.3 2.6.18-194.8.1.el5
Denian 4.x 2.6.18-6-686
Debian 5.x 2.6.26-2-686
>How-To-Repeat:
Build and install any package under Linux.
>Fix:
Change, in pkg_install/files/configure.ac
from:
case $host in
*-*-dragonfly* |*-*-freebsd*)
AC_DEFINE([NUMERIC_VERSION_ONLY], [1], [Defined when to retain only the
numeric OS version])
;;
esac
to:
case $host in
*-*-dragonfly* |*-*-freebsd*|*-*-linux*)
AC_DEFINE([NUMERIC_VERSION_ONLY], [1], [Defined when to retain only the
numeric OS version])
;;
esac
and re-build 'configure'.
Home |
Main Index |
Thread Index |
Old Index