[arch-general] Is it a bug ? (device-mapper PKGBUILD)
Hi , I was looking at the device-mapper PKGBUILD . I'm not sure but the last line looks problematic : # fix device-mapper link bug ln -sf /lib/libdevmapper.so "${pkgdir}/usr/lib/libdevmapper.so" || return 1 What If device-mapper is not yet installed in the system ? What am I missing ?
On 07/01/09 at 05:00pm, nezmer@gmail.com wrote:
Hi , I was looking at the device-mapper PKGBUILD . I'm not sure but the last line looks problematic :
# fix device-mapper link bug ln -sf /lib/libdevmapper.so "${pkgdir}/usr/lib/libdevmapper.so" || return 1
What If device-mapper is not yet installed in the system ? What am I missing ?
if i understand it correctly, build() just builds the package. only when you pacman -U it will you execute those commands (in sequence). therefore, the make and install steps are exectuted before the symlink is created. -- patrick brisbin
On Wed, 2009-07-01 at 17:00 +0300, nezmer@gmail.com wrote:
Hi , I was looking at the device-mapper PKGBUILD . I'm not sure but the last line looks problematic :
# fix device-mapper link bug ln -sf /lib/libdevmapper.so "${pkgdir}/usr/lib/libdevmapper.so" || return 1
What If device-mapper is not yet installed in the system ? What am I missing ?
There will be a symlink in /usr/lib/libdevmapper.so that links to /lib/libdevmapper.so, whether this file exists or not. When the package is installed, this file exists because it is included inside the package.
On Wed, Jul 01, 2009 at 04:20:55PM +0200, Jan de Groot wrote:
On Wed, 2009-07-01 at 17:00 +0300, nezmer@gmail.com wrote:
Hi , I was looking at the device-mapper PKGBUILD . I'm not sure but the last line looks problematic :
# fix device-mapper link bug ln -sf /lib/libdevmapper.so "${pkgdir}/usr/lib/libdevmapper.so" || return 1
What If device-mapper is not yet installed in the system ? What am I missing ?
There will be a symlink in /usr/lib/libdevmapper.so that links to /lib/libdevmapper.so, whether this file exists or not. When the package is installed, this file exists because it is included inside the package.
aha . Lesson of the day : We can link non-existing files . Thank you for the clarification .
nezmer@gmail.com schrieb:
Hi , I was looking at the device-mapper PKGBUILD . I'm not sure but the last line looks problematic :
# fix device-mapper link bug ln -sf /lib/libdevmapper.so "${pkgdir}/usr/lib/libdevmapper.so" || return 1
What If device-mapper is not yet installed in the system ? What am I missing ?
If you would tell us why you think there is be anything problematic, then we might answer you.
participants (4)
-
Jan de Groot
-
nezmer@gmail.com
-
Patrick Brisbin
-
Thomas Bächler