Displaying 14 results from an estimated 14 matches for "rpm_package_name".
2002 Feb 27
2
problems builing mandrake rpm from 3.0 alpha15
...src/RPM/SOURCES"
RPM_BUILD_DIR="/usr/src/RPM/BUILD"
RPM_OPT_FLAGS="-O2 -march=i686"
RPM_ARCH="i386"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="samba"
RPM_PACKAGE_VERSION="PVERSION"
RPM_PACKAGE_RELEASE="PRELEASE"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/var/tmp/samba"
export RPM_BUILD_ROOT
set -x
umask 022
cd /usr/src/RPM/BUILD
cd samba-PVER...
2020 Aug 26
2
[supermin PATCH] rpm: check for SQLite-based RPM DB
...ng back to the old format.
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
---
src/ph_rpm.ml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml
index dbe3bda..0821126 100644
--- a/src/ph_rpm.ml
+++ b/src/ph_rpm.ml
@@ -234,7 +234,10 @@ let rpm_package_name pkg =
rpm.name
let rpm_get_package_database_mtime () =
- (lstat "/var/lib/rpm/Packages").st_mtime
+ try
+ (lstat "/var/lib/rpm/rpmdb.sqlite").st_mtime
+ with Unix_error (ENOENT, _, _) ->
+ (lstat "/var/lib/rpm/Packages").st_mtime
(* Return the best...
2015 Jul 02
6
boot... round 2
Hi,
hpa wrote:
> On PowerPC (I think) "unsigned char" is the default.
In any case it seems a good idea to interpret the character
more explicitely. To my experience, one signdness change causes
a little tree of consequential signedness changes or questionable
cast operations.
How about the following instead ?
if ((c >= 0 && c <= ' ') || c == '\x7f')
2015 Jul 03
0
boot... round 2
...nchronous-unwind-tables
optflags: i586 %{__global_cflags} -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables
optflags: i686 %{__global_cflags} -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables
optflags: x86_64 %{__global_cflags} -m64 -mtune=generic
$ grep ' RPM_OPT_FLAGS\| RPM_PACKAGE_NAME' /var/tmp/rpm-tmp.XNVZuk
RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic"
RPM_PACKAGE_NAME=&qu...
2012 Mar 23
2
[Bug 1992] New: RPM build fails using Red Hat spec file
...-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic"
RPM_ARCH="x86_64"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="openssh"
RPM_PACKAGE_VERSION="5.9p1"
RPM_PACKAGE_RELEASE="1"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/var/tmp/openssh-5.9p1-buildroot"
export RPM_BUILD_ROOT
PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/share/pkgcon...
2020 Aug 27
1
Re: [supermin PATCH] rpm: check for SQLite-based RPM DB
...gt; ---
> > src/ph_rpm.ml | 5 ++++-
> > 1 file changed, 4 insertions(+), 1 deletion(-)
> >
> > diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml
> > index dbe3bda..0821126 100644
> > --- a/src/ph_rpm.ml
> > +++ b/src/ph_rpm.ml
> > @@ -234,7 +234,10 @@ let rpm_package_name pkg =
> > rpm.name
> >
> > let rpm_get_package_database_mtime () =
> > - (lstat "/var/lib/rpm/Packages").st_mtime
> > + try
> > + (lstat "/var/lib/rpm/rpmdb.sqlite").st_mtime
> > + with Unix_error (ENOENT, _, _) ->
> &g...
2008 Dec 15
3
Problems compiling PostgreSQL package from FC8 on CentOS 5
...DIR="/home/peter.hopfgartner/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -g -march=i386 -mcpu=i686"
RPM_ARCH="i386"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="postgresql"
RPM_PACKAGE_VERSION="8.2.11"
RPM_PACKAGE_RELEASE="1"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/home/peter.hopfgartner/rpmbuild/tmp/postgresql-8.2.11-1-root"
export RPM_BUILD_ROOT
set -x
um...
2014 Sep 17
4
[PATCH 0/2] supermin: use librpm for rpm support
Hi,
this work makes supermin use the rpm library instead of invoking rpm
directly. This, together with a needed refactoring of the dependency
resolution, should help in make supermin faster on rpm-based systems.
Surely the patches will still need polishing, especially for behaviours
of newly added stuff, but at least it's a good starting point.
Noting that you need rpm-devel on most of rpm
2020 Aug 26
0
Re: [supermin PATCH] rpm: check for SQLite-based RPM DB
...no Toscano <ptoscano@redhat.com>
> ---
> src/ph_rpm.ml | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/ph_rpm.ml b/src/ph_rpm.ml
> index dbe3bda..0821126 100644
> --- a/src/ph_rpm.ml
> +++ b/src/ph_rpm.ml
> @@ -234,7 +234,10 @@ let rpm_package_name pkg =
> rpm.name
>
> let rpm_get_package_database_mtime () =
> - (lstat "/var/lib/rpm/Packages").st_mtime
> + try
> + (lstat "/var/lib/rpm/rpmdb.sqlite").st_mtime
> + with Unix_error (ENOENT, _, _) ->
> + (lstat "/var/lib/rpm/Packag...
2015 Oct 13
6
[PATCH 0/4] rpm: Choose providers better (RHBZ#1266918).
Fix for
https://bugzilla.redhat.com/show_bug.cgi?id=1266918
2015 Oct 13
0
[PATCH 4/4] rpm: Choose providers better (RHBZ#1266918).
...is not easy to implement
this second change.
---
src/rpm.ml | 55 +++++++++++++++++++++++++++++++++++++++----------------
1 file changed, 39 insertions(+), 16 deletions(-)
diff --git a/src/rpm.ml b/src/rpm.ml
index 4d31472..d3ab7da 100644
--- a/src/rpm.ml
+++ b/src/rpm.ml
@@ -210,8 +210,42 @@ let rpm_package_name pkg =
let rpm_get_package_database_mtime () =
(lstat "/var/lib/rpm/Packages").st_mtime
-(* Memo of resolved provides. *)
-let rpm_providers = Hashtbl.create 13
+(* Return the best provider of a particular RPM requirement.
+ *
+ * There may be multiple, or no providers. In case ther...
2015 Oct 13
1
[PATCH v2] rpm: Choose providers better (RHBZ#1266918).
This is v2 of the 4/4 patch from the original series.
Changes:
- memoize the function this time
- check packages are installed using rpm_package_of_string
However I didn't combine the two case together, because the code is a
bit simpler with them separate.
Rich.
2016 Oct 31
5
[PATCH 0/4] supermin: use dnf on Mageia
Hi,
as pointed out by Neal Gompa, Mageia recently introduced dnf in the
distribution (currently only in Cauldron, which is the future Mageia 6),
and most probably it will replace urpmi in the future.
As such, on Mageia make supermin prefer dnf over urpmi when found,
using the same code already used for Fedora.
Related change: make test-harder.sh work explicitly also on Mageia
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...r;
+ r
+
+let rpm_package_to_string pkg =
+ let rpm = rpm_of_pkg pkg in
+ if rpm.epoch = 0_l then
+ sprintf "%s-%s-%s.%s" rpm.name rpm.version rpm.release rpm.arch
+ else
+ sprintf "%s-%ld:%s-%s.%s"
+ rpm.name rpm.epoch rpm.version rpm.release rpm.arch
+
+let rpm_package_name pkg =
+ let rpm = rpm_of_pkg pkg in
+ rpm.name
+
+let rpm_get_all_requires pkgs =
+ let get pkgs =
+ let cmd = sprintf "\
+ rpm -qR %s |
+ awk '{print $1}' |
+ xargs rpm -q --qf '%%{name}\\n' --whatprovides |
+ grep -v 'no package provides&...