[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[plamo:33653] Re: Plamo-7.3 ncftp make error
-
From:KOJIMA Mitsuhiro
-
Date:Tue, 13 Apr 2021 22:17:09 +0900 (JST)
- Subject: [plamo:33653] Re: Plamo-7.3 ncftp make error
- From: KOJIMA Mitsuhiro <kojima@xxxxxxxxxxx>
- Date: Tue, 13 Apr 2021 22:17:05 +0900 (JST)
From: Tetsuya Ohnishi <oonishi@xxxxxxxxxxxxx>
Subject: [plamo:33652] Re: Plamo-7.3 ncftp make error
Date: Tue, 13 Apr 2021 20:24:54 +0900 (JST)
> 先のメールはダメダメですね。失礼しました。
> 単純に
>
> extern Bookmark gBm;
>
> でよかったですね。
ざっと見,ncftp-2.3.6 は 2016 から更新されていないので,
昔は extern しなくても通ってたんですかね?
# 調べてないけど,リンカのスコープが変ったのかな?
sed で該当箇所をいじるようなビルドスクリプトを書いてみたけど,
こんな感じでどうでせう?
#!/bin/sh
##############################################################
pkgbase="ncftp"
vers="3.2.6"
url="ftp://ftp.ncftp.com/ncftp/ncftp-3.2.6-src.tar.gz"
verify=""
digest=""
arch=`uname -m`
build=B1
src="ncftp-3.2.6"
OPT_CONFIG="--disable-static --enable-shared"
DOCS="DONATE.txt README.txt doc"
# specifies files that are not in source archive and patchfiles
addfiles=""
compress=txz
##############################################################
source /usr/share/plamobuild_functions.sh
# このスクリプトで使う1文字変数の意味
#
# $W : このスクリプトを動かすカレントディレクトリ
# $S : ソースコードのあるディレクトリ(デフォルト: $W/${src})
# $B : ビルド用ディレクトリ(デフォルト: /tmp/build)
# $P : ビルドしたファイルをインストールするディレクトリ(デフォルト: $W/work)
if [ $# -eq 0 ] ; then
opt_download=0 ; opt_config=1 ; opt_build=1 ; opt_package=1
else
opt_download=0 ; opt_config=0 ; opt_build=0 ; opt_package=0
for i in $@ ; do
case $i in
download) opt_download=1 ;;
config) opt_config=1 ;;
build) opt_build=1 ;;
package) opt_package=1 ;;
esac
done
fi
if [ $opt_download -eq 1 ] ; then
download_sources
fi
if [ $opt_config -eq 1 ] ; then
for f in $addfiles $patchfiles
do
if [ ! -f $f ]; then
echo "Required file ($f) is missing."
exit 255
fi
done
######################################################################
# source copy build. patch apply in build dir
######################################################################
if [ -d $B ] ; then rm -rf $B ; fi ; cp -a $S $B
cd $B
for patch in $patchfiles ; do
patch -p1 < $W/$patch
done
# if [ -f autogen.sh ] ; then
# sh ./autogen.sh
# fi
sed -i -e "s/^Bookmark gBm;/extern Bookmark gBm;/" sh_util/gpshare.c
export PKG_CONFIG_PATH=/usr/${libdir}/pkgconfig:/usr/share/pkgconfig
export LDFLAGS='-Wl,--as-needed'
./configure --prefix=/usr --libdir=/usr/${libdir} --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man ${OPT_CONFIG}
if [ $? != 0 ]; then
echo "configure error. $0 script stop"
exit 255
fi
fi
if [ $opt_build -eq 1 ] ; then
cd $B
export LDFLAGS='-Wl,--as-needed'
make -j3
if [ $? != 0 ]; then
echo "build error. $0 script stop"
exit 255
fi
cd libncftp
make so
fi
if [ $opt_package -eq 1 ] ; then
check_root
if [ -d $P ] ; then rm -rf $P ; fi ; mkdir -p $P
cd $B
export LDFLAGS='-Wl,--as-needed'
make install DESTDIR=$P
cd libncftp
make soinstall PREFIX=$P/usr
################################
# install tweaks
# strip binaries, delete locale except ja, compress man,
# install docs and patches, compress them and chown root.root
################################
install_tweak
#############################
# convert symlink to null file and
# add "ln -sf" command into install/doinst.sh
################################
convert_links
cd $P
/sbin/makepkg ../$pkg.$compress <<EOF
y
1
EOF
fi
- Follow-Ups
-
- [plamo:33654] Re: Plamo-7.3 ncftp make error, 山本 伸一
- [plamo:33655] Re: Plamo-7.3 ncftp make error, KATOH Yasufumi
- References
-
- [plamo:33650] Re: Plamo-7.3 ncftp make error, 山本 伸一
- [plamo:33651] Re: Plamo-7.3 ncftp make error, Tetsuya Ohnishi
- [plamo:33652] Re: Plamo-7.3 ncftp make error, Tetsuya Ohnishi
[検索ページ]
[メール一覧]
Plamo ML 公開システム