Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 152856
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo/BSD Team <bsd@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Diego E. 'Flameeyes' Pettenò <flameeyes@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
portage-mkdb-env.patch portage-mkdb-env.patch patch Diego E. 'Flameeyes' Pettenò 2006-10-26 01:33 0000 845 bytes Details | Diff
x.txt pkg_postinst method text/plain Roy Marples (RETIRED) 2006-10-26 01:57 0000 302 bytes Details
x.txt pkg_postinst method text/plain Roy Marples (RETIRED) 2006-10-26 02:53 0000 311 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 152856 depends on: Show dependency tree
Bug 152856 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-10-26 01:32 0000
As per summary, the attached patch makes env-update actually update the
password and capability databases needed on FreeBSD. Although running those
commands is not technically needed every time env-update is called, it's
probably simpler to always run them for safety, so that users still only need
env-update if they changed settings like login.conf.

This is needed to get the stage correctly building with catalyst and latest
baselayout by the way :)

Thanks,
Diego

------- Comment #1 From Diego E. 'Flameeyes' Pettenò 2006-10-26 01:33:43 0000 -------
Created an attachment (id=100513) [details]
portage-mkdb-env.patch

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2006-10-26 01:38:13 0000 -------
Uhm maybe this is not really needed, Roy what you think, this implementation
works, but might be overkill, as nobody should change master.passwd by hand
anyway...

------- Comment #3 From Zac Medico 2006-10-26 01:41:25 0000 -------
If you do decide that this is needed, can we make those commands ${ROOT}
friendly?  The relevant variable in that scope is target_root.

------- Comment #4 From Diego E. 'Flameeyes' Pettenò 2006-10-26 01:43:33 0000 -------
Err okay remind me not to send patches without having my coffee first. I did
put %s for adding target_root and forgot about it -_-

------- Comment #5 From Roy Marples (RETIRED) 2006-10-26 01:57:04 0000 -------
Created an attachment (id=100516) [details]
pkg_postinst method

IMO that's overkill.

What is needed is that we only run pwd_mkdb and cap_mkdb when we need to.
For Linux, baselayout installs /etc/passwd and the shadow ebuild runs grpconv
if a file is missing, so we can take the same approach here.

Attached is a pkg_postinst() snippet for the freebsd-usbin ebuild - as that is
the ebuild that installs pwd_mkdb and cap_mkdb.

------- Comment #6 From Roy Marples (RETIRED) 2006-10-26 02:53:55 0000 -------
Created an attachment (id=100519) [details]
pkg_postinst method

Better in respect to ${ROOT}

------- Comment #7 From Roy Marples (RETIRED) 2006-10-26 04:08:46 0000 -------
bsd team will change our ebuilds for this.

------- Comment #8 From Roy Marples (RETIRED) 2006-10-26 04:46:55 0000 -------
Fixored

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug