Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 101256

Summary: dev-db/libpq - incorrect /
Product: Gentoo Linux Reporter: Carsten Lohrke (RETIRED) <carlo>
Component: New packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Carsten Lohrke (RETIRED) gentoo-dev 2005-08-03 15:12:04 UTC
When you directly deal with the root directory, you have to prefix with ${ROOT}.

pkg_preinst() {
        # removing wrong symlink which is created by previous ebuild.
        if [ -L ${ROOT}/usr/include/libpq ]; then
                rm ${ROOT}/usr/include/libpq
        fi
}

Also you don't have to filter -ffast-math. The flag is unsupported. Bugs of
those who use it can directly go to /dev/null.

At last it would be nice to get a pointer regarding
https://bugs.kde.org/show_bug.cgi?id=110033
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2005-08-03 16:02:34 UTC
Fixed
I forgot ${ROOT} thing. Thank you for reporting.

I'm going to fix pg_config problem..
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-08-03 16:16:43 UTC
Eh, I was keen on a comment on the linked bug report, especially because I think
it's unreasonable to expect that upstream should support
/usr/include/postgresql/libpq-${SLOT}/libpq-fe.h. Is slotting here so important?
It'll lead to a lot of patch work. If this issue wouldn't be, I had not detected
the missing ${ROOT} in the first place.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-08-04 05:35:13 UTC
Uh sorry, got the pg_config pointer.