Skip to content

Commit

Permalink
enchant: Create compatibility links for enchant 1.x
Browse files Browse the repository at this point in the history
As the package is not installed in parallel ensure compatibility [1].

> rm -rf /usr/include/enchant; ln -sfn ...: Create symlinks for this
> package version so that other other packages can find it using the old
> name.

The warning below is shown.

```
[BEE] => entering mee_install_post() ..
‘/dev/shm/bee-root/enchant/enchant-2.2.3-0/image//usr/include/enchant’ -> ‘enchant-2’
‘/dev/shm/bee-root/enchant/enchant-2.2.3-0/image//usr/bin/enchant’ -> ‘enchant-2’
‘/dev/shm/bee-root/enchant/enchant-2.2.3-0/image//usr/lib/libenchant.so’ -> ‘libenchant-2.so’
‘/dev/shm/bee-root/enchant/enchant-2.2.3-0/image//usr/lib/pkgconfig/enchant.pc’ -> ‘enchant-2.pc’
[BEE] <= leaving mee_install_post() ..
[BEE] changing to image directory: /dev/shm/bee-root/enchant/enchant-2.2.3-0/image
[BEE] WARNING: system and image files named '/usr/include/enchant' differ
[BEE]          image : symbolic link to enchant-2
[BEE]          system: directory
[BEE]  -> creating package enchant-2.2.3-0.x86_64.bee.tar.bz2 ..
```

[1]: http://www.linuxfromscratch.org/blfs/view/svn/general/enchant.html
  • Loading branch information
pmenzel committed Jul 18, 2018
1 parent 9c33977 commit 8533a5d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions enchant.be0
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ mee_configure() {
#}
## by default this may be 'make install DESTDIR="${D}"'

mee_install_post() {
ln -sfv enchant-2 ${D}/${INCLUDEDIR}/enchant
ln -sfv enchant-2 ${D}/${BINDIR}/enchant
ln -sfv libenchant-2.so ${D}/${LIBDIR}/libenchant.so &&
ln -sfv enchant-2.pc ${D}/${LIBDIR}/pkgconfig/enchant.pc
}

###############################################################################
##
## Additional hints:
Expand Down

0 comments on commit 8533a5d

Please sign in to comment.