RPM

CI: make distcheck has gone awry

Bug #936610 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
RPM
Fix Committed
Medium
Jeff Johnson

Bug Description

Noticed while releasing rpm-5.4.5 (reported by mdawkins)
     make clean distcheck
had issues.

Tags: ci
Jeff Johnson (n3npq)
Changed in rpm:
milestone: none → 5.4.6
status: New → Confirmed
importance: Undecided → Medium
tags: added: ci
Revision history for this message
Jeff Johnson (n3npq) wrote :

The error message is this

libtool: relink: gcc -shared -fPIC -DPIC .libs/libsql.o -Wl,-rpath -Wl,/X/src/wdj54/rpm-5.4.5/_inst/lib -L/X/src/wdj54/rpm-5.4.5/_build/rpmdb/.libs -L/X/src/wdj54/rpm-5.4.5/_build/rpmio/.libs -L/X/src/wdj54/rpm-5.4.5/_build/misc/.libs -L/X/src/wdj54/rpm-5.4.5/_inst/lib -lrpm -L/usr/lib -lrpmdb -lrpmio -lrpmmisc -lm -lpcreposix -ldb_sql-5.3 -ldb-5.3 -lmagic -lbeecrypt -lgomp -ldl -lstdc++ -llzma -lbz2 -lpthread -lrt -lpopt -lz -lpcre -fopenmp -O2 -fopenmp -pthread -Wl,-soname -Wl,libsql.so.0 -o .libs/libsql.so.0.0.0
/usr/bin/ld: cannot find -lrpm
collect2: ld returned 1 exit status
libtool: install: error: relink `libsql.la' with the above command before installing it

The root cause is that libsql.a (a DSO to load a sqlite3 "virtual table" so that
SQL instead of headerGet(...) can be used to retrieve metadata) forces
a dependency on -lrpm which is in the same directory.

 The current AutoFu
    ...
    pkglibdir = @USRLIBRPM@
    pkglib_LTLIBRARIES = libsql.la
    ...
    libsql_la_SOURCES = libsql.c
    libsql_la_LIBADD = librpm.la $(RPMDB_LDADD_COMMON)

isn't tracking the "librpm.la" build prerequisite correctly for the stricter (than just typing
"make") environment of
    make distcheck

Commenting out libsql.la SHOULD be enough to resurrect a functional "make distcheck".

Verifying ... yes "progress" goes further with another failure:

make[1]: Entering directory `/home/X/src/wdj54/rpm-5.4.5/_build'
ERROR: files left after uninstall:
./var/lib/rpm/DB_CONFIG
make[1]: *** [distuninstallcheck] Error 1
make[1]: Leaving directory `/home/X/src/wdj54/rpm-5.4.5/_build'
make: *** [distcheck] Error 1

(which can be lived with for rpm-5.4.6 but also needs fixing).

Changed in rpm:
status: Confirmed → Fix Committed
Jeff Johnson (n3npq)
Changed in rpm:
milestone: 5.4.6 → 5.4.7
Revision history for this message
Jeff Johnson (n3npq) wrote :

There's still an issue removing the built rpmdb/DB_CONFIG. Punting to 5.4.8.

Changed in rpm:
milestone: 5.4.7 → 5.4.8
Revision history for this message
Jeff Johnson (n3npq) wrote :

punting to rpm-5.4.11

Changed in rpm:
milestone: 5.4.8 → 5.4.11
Jeff Johnson (n3npq)
Changed in rpm:
assignee: nobody → Jeff Johnson (n3npq)
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.