Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1508056

Summary: Rebase libmount to include mnt_unref_table()
Product: Red Hat Enterprise Linux 7 Reporter: Colin Walters <walters>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: mcepl, walters
Target Milestone: rcKeywords: Rebase
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-01 14:24:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1481386, 1507661    

Description Colin Walters 2017-10-31 18:30:02 UTC
Newer glib2 versions require this:

checking for libmount/libmount.h... yes
checking for mnt_unref_table in -lmount... no
configure: error: *** Could not find libmount

Comment 2 Karel Zak 2017-10-31 22:34:20 UTC
Nice, I have doubts I want to rebase libmount. 

Maybe we can make some changes in glib2 code to make it compatible with the old libmount. The old version does not use reference counting, but free()-like functions. I can help with it. Where is the glib2 code?

Comment 3 Karel Zak 2017-10-31 22:37:35 UTC
BTW, libmount/src diffstat between rhel7.5 and the current upstream:

  23 files changed, 5573 insertions(+), 1848 deletions(-)

Comment 4 Colin Walters 2017-11-01 13:45:57 UTC
glib code is https://git.gnome.org/browse/glib/ (hasn't changed in probably > 10 years 😉)

OK, something like what we did for ostree:

https://github.com/ostreedev/ostree/commit/cee57a0268334d51cd312c6cdcf367bedfd3e30d ?

Comment 5 Colin Walters 2017-11-01 14:24:23 UTC
OK that was easy https://bugzilla.gnome.org/show_bug.cgi?id=789767

Comment 6 Karel Zak 2017-11-01 15:15:45 UTC
Cool :-)